mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-30 04:35:22 +08:00
feat: add signer-key to synthetic pox events
This commit is contained in:
@@ -127,7 +127,9 @@ fn create_event_info_data_code(
|
|||||||
start-burn-height: {start_burn_height},
|
start-burn-height: {start_burn_height},
|
||||||
;; how long to lock, in burn blocks
|
;; how long to lock, in burn blocks
|
||||||
;; equal to args[3]
|
;; equal to args[3]
|
||||||
lock-period: {lock_period}
|
lock-period: {lock_period},
|
||||||
|
;; equal to args[4]
|
||||||
|
signer-key: {signer_key}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
"#,
|
"#,
|
||||||
@@ -135,6 +137,7 @@ fn create_event_info_data_code(
|
|||||||
lock_period = &args[3],
|
lock_period = &args[3],
|
||||||
pox_addr = &args[1],
|
pox_addr = &args[1],
|
||||||
start_burn_height = &args[2],
|
start_burn_height = &args[2],
|
||||||
|
signer_key = &args.get(3).map_or("none".to_string(), |v| v.to_string()),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
"delegate-stack-stx" => {
|
"delegate-stack-stx" => {
|
||||||
@@ -244,12 +247,15 @@ fn create_event_info_data_code(
|
|||||||
;; equal to args[0]
|
;; equal to args[0]
|
||||||
extend-count: {extend_count},
|
extend-count: {extend_count},
|
||||||
;; new unlock burnchain block height
|
;; new unlock burnchain block height
|
||||||
unlock-burn-height: new-unlock-ht
|
unlock-burn-height: new-unlock-ht,
|
||||||
|
;; equal to args[2]
|
||||||
|
signer-key: {signer_key}
|
||||||
}}
|
}}
|
||||||
}})
|
}})
|
||||||
"#,
|
"#,
|
||||||
extend_count = &args[0],
|
extend_count = &args[0],
|
||||||
pox_addr = &args[1],
|
pox_addr = &args[1],
|
||||||
|
signer_key = &args.get(2).map_or("none".to_string(), |v| v.to_string()),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
"delegate-stack-extend" => {
|
"delegate-stack-extend" => {
|
||||||
@@ -307,12 +313,15 @@ fn create_event_info_data_code(
|
|||||||
(unwrap-panic (map-get? logged-partial-stacked-by-cycle
|
(unwrap-panic (map-get? logged-partial-stacked-by-cycle
|
||||||
{{ pox-addr: {pox_addr}, sender: tx-sender, reward-cycle: {reward_cycle} }}))),
|
{{ pox-addr: {pox_addr}, sender: tx-sender, reward-cycle: {reward_cycle} }}))),
|
||||||
;; delegator (this is the caller)
|
;; delegator (this is the caller)
|
||||||
delegator: tx-sender
|
delegator: tx-sender,
|
||||||
|
;; equal to args[2]
|
||||||
|
signer-key: {signer_key}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
"#,
|
"#,
|
||||||
pox_addr = &args[0],
|
pox_addr = &args[0],
|
||||||
reward_cycle = &args[1]
|
reward_cycle = &args[1],
|
||||||
|
signer_key = &args.get(2).map_or("none".to_string(), |v| v.to_string()),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
"delegate-stx" => {
|
"delegate-stx" => {
|
||||||
|
|||||||
Reference in New Issue
Block a user