File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,15 @@ sequenceDiagram
1111 box Builder Vault
1212 participant TSM1 as MPC Wallet <br>(private key share 1)
1313 participant TSM2 as MPC Wallet <br>(private key share 2)
14- participant TSM3 as MPC Wallet <br>(private key share 3)
1514 end
1615
1716 StakeClient ->> StakeAPI: get StakeIntent unsigned tx data <br>(amount, withdrawal & recipient address)
18- StakeClient ->> Blockchain: get blockchain inputs for new tx<br>(gas fee, chainID, sender wallet nonce )
17+ StakeClient ->> Blockchain: get blockchain inputs (gas, nonce) for new tx<br>(sender wallet)
1918 StakeClient ->> StakeClient: construct unsigned tx
20- StakeClient ->> TSM1: request signature of unsigned tx
19+ StakeClient ->> TSM1: request signature ( unsigned tx)
2120 TSM1 -->> StakeClient: return partial signature
22- StakeClient ->> TSM2: request signature of unsigned tx
21+ StakeClient ->> TSM2: request signature ( unsigned tx)
2322 TSM2 -->> StakeClient: return partial signature
24- StakeClient ->> TSM3: request signature of unsigned tx
25- TSM3 -->> StakeClient: return partial signature
2623 StakeClient ->> StakeClient: combine partial signatures
2724 StakeClient ->> Blockchain: broadcast signed tx<br>(signed tx, deposit contract)
2825```
Original file line number Diff line number Diff line change @@ -219,12 +219,13 @@ func main() {
219219 ethereumSenderAddress := "0xE8fE1C1058b34d5152f2B23908dD8c65715F2D3A"
220220 stakeWithdrawalAddress := "0xE8fE1C1058b34d5152f2B23908dD8c65715F2D3A"
221221 stakeFeeRecipientAddress := "0xE8fE1C1058b34d5152f2B23908dD8c65715F2D3A"
222+ stakeAmount := "32000000000" // denominated in Gwei
222223
223- // Define stake intent request: 1x32ETH
224+ // Define stake intent request
224225 stakeRequest := & Request {
225226 Stakes : []Stake {
226227 {
227- Amount : "32000000000" , // denominated in Gwei
228+ Amount : stakeAmount ,
228229 WithdrawalAddress : stakeWithdrawalAddress ,
229230 FeeRecipient : stakeFeeRecipientAddress ,
230231 },
You can’t perform that action at this time.
0 commit comments