Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staking example improvements #104

Merged
merged 3 commits into from
Mar 19, 2024
Merged

Staking example improvements #104

merged 3 commits into from
Mar 19, 2024

Conversation

fadeev
Copy link
Member

@fadeev fadeev commented Jan 9, 2024

I was wrong about context.origin not containing a full Bitcoin address, so these are the changes to use context.origin directly when staking. We no longer need to set withdrawal address, because it's available through origin.

EVM

Staking

npx hardhat stake --contract 0x5d4501795aB2fA159533b6C2357F106EAB023756 --amount 0.1 --beneficiary 0x2cD3D070aE1BD365909dD859d29F387AA96911e1 --network goerli_testnet

🔑 Using account: 0x2cD3D070aE1BD365909dD859d29F387AA96911e1

🚀 Successfully broadcasted a token transfer transaction on goerli_testnet network.
📝 Transaction hash: 0x54c2f622550ae866cb1efa555ee65658f460806f5be7e9ab37706678b647940f

npx hardhat cctx 0x54c2f622550ae866cb1efa555ee65658f460806f5be7e9ab37706678b647940f

✓ CCTXs on ZetaChain found.

✓ 0x7fd9ccd884a856ed72b64aab139874381f82d11756e80603a2b5616b74e1e9e8: 5 → 7001: OutboundMined (Remote omnichain contract call completed)

Changing Beneficiary

npx hardhat update-beneficiary 0x24FaC07028B4646FC532653aE9d2a9Fa7fc2e9CD --contract 0x5d4501795aB2fA159533b6C2357F106EAB023756 --network goerli_testnet

🔑 Using account: 0x2cD3D070aE1BD365909dD859d29F387AA96911e1

🚀 Successfully broadcasted a token transfer transaction on goerli_testnet network.
📝 Transaction hash: 0x28cab56600becc7b19a511797df13038bd3103a6184b05a50ffa46ac05a48c2a

npx hardhat cctx 0x28cab56600becc7b19a511797df13038bd3103a6184b05a50ffa46ac05a48c2a

✓ CCTXs on ZetaChain found.

✓ 0x709f16454280632f53d80b099762ce3fd4d2eca85bc088c32b0240304ba1818a: 5 → 7001: OutboundMined (Remote omnichain contract call completed)

Unstaking

npx hardhat unstake --contract 0x5d4501795aB2fA159533b6C2357F106EAB023756 --network goerli_testnet 
🔑 Using account: 0x2cD3D070aE1BD365909dD859d29F387AA96911e1

🚀 Successfully broadcasted a token transfer transaction on goerli_testnet network.
📝 Transaction hash: 0x40cbddf61285e8ef42ebcdc6c42f58fa76d4d4d4eb21d7215a980a175f85bddc

npx hardhat cctx 0x40cbddf61285e8ef42ebcdc6c42f58fa76d4d4d4eb21d7215a980a175f85bddc

CCTXs on ZetaChain found.

✓ 0x4ddb065a6d578d9017e52671ab9705acd49f4d36e266c1df7012940625f0dfd6: 5 → 7001: OutboundMined (Remote omnichain contract call completed)
⠧ 0x389e3c690f1939d8c389f8b043679e32b050a4fcf74e0ccf046b856f2c6f61d6: 7001 → 5: PendingOutbound

Bitcoin

Staking

npx hardhat send-btc --amount 0.001 --memo 1FCF62e7C149eE27C26fa3a15cD3321c3C7b93eF012cD3D070aE1BD365909dD859d29F387AA96911e1 --recipient tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur

npx hardhat cctx 8e92f9f479f262d444edb2c6c7cd79897227e18c6514cfd2dec2c9bfec177625

✓ CCTXs on ZetaChain found.

✓ 0x3db240b7cb37b22c9ad8ec3561815285bf83b67e584715e8449291b85702d3a6: 18332 → 7001: OutboundMined (Remote omnichain contract call completed)

Unstaking

npx hardhat send-btc --amount 0.000 --memo 1FCF62e7C149eE27C26fa3a15cD3321c3C7b93eF02 --recipient tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur

npx hardhat cctx 59f7709dfc65274bd69777a5ad01d006441c3d07ee900fb460251644d2d44eac

✓ CCTXs on ZetaChain found.

✓ 0xdf46d02493a1d47f30c8844e599602f7f062e04cd7ff5c207c18ab532207683b: 18332 → 7001: OutboundMined (Remote omnichain contract call completed)
⠋ 0x39b083eaf6a74d9895524f4b884d9bd9ace0f32798b994c0785da6923e5e5e68: 7001 → 18332: PendingOutbound 

@fadeev fadeev marked this pull request as ready for review January 9, 2024 08:39
@fadeev fadeev mentioned this pull request Feb 19, 2024
@fadeev fadeev merged commit f0c4f8d into main Mar 19, 2024
5 checks passed
@fadeev fadeev deleted the staking-improvement branch March 19, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants