@wireio/stake 1.1.69 → 1.3.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/stake.browser.js +1385 -91
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +1085 -137
- package/lib/stake.js +1385 -90
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +1385 -91
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/ethereum/hoodi/common/Base58.sol/Base58.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/iodata.sol/iodata.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/iodata_util.sol/iodata_util.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_data.sol/sysio_data.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_errors.sol/sysio_errors.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_merkle.sol/sysio_merkle.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_name.sol/sysio_name.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_read.sol/sysio_read.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_tester.sol/SysioTester.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_verify.sol/sysio_verify.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_write.sol/sysio_write.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/BeaconState.sol/BeaconState.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/DepositManager.sol/DepositManagerV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/Yield.sol/YieldOracle.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/accounting.sol/AccountingV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/liqEth.sol/LiqEthTokenV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/stakingModule.sol/StakingModuleV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/DepositManager.sol/DepositManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/accounting.sol/Accounting.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/liqEth.sol/LiqEthToken.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/stakingModule.sol/StakingModule.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawFailedCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawFailedCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/IDepositorBridgeHooks.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.json +47 -4
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPP.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPInbound.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPSender.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPEndpoint.sol/OPPEndpoint.json +43 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +43 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +43 -0
- package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.json +109 -15
- package/src/assets/ethereum/hoodi/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPReceiver.sol/OPPReceiver.json +43 -0
- package/src/assets/ethereum/hoodi/outpost/OPPSender.sol/OPPSender.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPSender.sol/OPPSender.json +43 -0
- package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostErrors.sol/OutpostErrors.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManaged.sol/OutpostManaged.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostOwnable.sol/OutpostOwnable.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/Pool.sol/Pool.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/Pool.sol/Pool.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.json +45 -2
- package/src/assets/ethereum/hoodi/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/ReceiptNFT.sol/ReceiptNFT.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/token/ERC1155Token.sol/ERC1155Token.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/token/ERC20Token.sol/ERC20Token.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/token/ERC721Token.sol/ERC721Token.dbg.json +1 -1
- package/src/assets/solana/devnet/idl/liqsol_core.json +774 -16
- package/src/assets/solana/devnet/idl/validator_leaderboard.json +161 -0
- package/src/assets/solana/devnet/types/liqsol_core.ts +774 -16
- package/src/assets/solana/devnet/types/validator_leaderboard.ts +161 -0
- package/src/networks/solana/clients/instaswap.client.ts +59 -47
- package/src/assets/ethereum/hoodi/WNS/BucketWNS.sol/BucketWNS.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/BucketWNS.sol/BucketWNS.json +0 -699
- package/src/assets/ethereum/hoodi/WNS/Challenge.sol/Challenge.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/Challenge.sol/Challenge.json +0 -3139
- package/src/assets/ethereum/hoodi/WNS/ChallengeLib.sol/ChallengeLib.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/ChallengeLib.sol/ChallengeLib.json +0 -106
- package/src/assets/ethereum/hoodi/WNS/Errors.sol/WNSErrs.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/Errors.sol/WNSErrs.json +0 -180
- package/src/assets/ethereum/hoodi/WNS/LiqWNS.sol/LiqWNS.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/LiqWNS.sol/LiqWNS.json +0 -470
- package/src/assets/ethereum/hoodi/WNS/SChain.sol/SChain.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/SChain.sol/SChain.json +0 -1983
- package/src/assets/ethereum/hoodi/WNS/UTXO.sol/UTXO.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/UTXO.sol/UTXO.json +0 -1231
- package/src/assets/ethereum/hoodi/WNS/UTXOio.sol/UTXOio.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/UTXOio.sol/UTXOio.json +0 -1524
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IBucketWNS.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IBucketWNS.json +0 -119
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IChallenge.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IChallenge.json +0 -374
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/ISChain.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/ISChain.json +0 -865
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IUTXO.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IUTXO.json +0 -524
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/WNSCommon.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/WNSCommon.json +0 -10
- package/src/assets/ethereum/hoodi/WNS/WithdrawBatch.sol/WithdrawBatch.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/WNS/WithdrawBatch.sol/WithdrawBatch.json +0 -1232
- package/src/assets/ethereum/hoodi/outpost/MockAggregator.sol/MockAggregator.json +0 -97
- package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.json +0 -560
- package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.json +0 -460
- package/src/assets/ethereum/hoodi/token/Eman721.sol/Eman721.dbg.json +0 -4
- package/src/assets/ethereum/hoodi/token/Eman721.sol/Eman721.json +0 -624
|
@@ -69,6 +69,167 @@ export type ValidatorLeaderboard = {
|
|
|
69
69
|
],
|
|
70
70
|
"args": []
|
|
71
71
|
},
|
|
72
|
+
{
|
|
73
|
+
"name": "testClearLeaderboard",
|
|
74
|
+
"discriminator": [
|
|
75
|
+
118,
|
|
76
|
+
207,
|
|
77
|
+
26,
|
|
78
|
+
205,
|
|
79
|
+
180,
|
|
80
|
+
7,
|
|
81
|
+
75,
|
|
82
|
+
244
|
|
83
|
+
],
|
|
84
|
+
"accounts": [
|
|
85
|
+
{
|
|
86
|
+
"name": "leaderboardState",
|
|
87
|
+
"writable": true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "authority",
|
|
91
|
+
"signer": true
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"args": []
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "testForceRegisterValidator",
|
|
98
|
+
"discriminator": [
|
|
99
|
+
136,
|
|
100
|
+
156,
|
|
101
|
+
132,
|
|
102
|
+
32,
|
|
103
|
+
96,
|
|
104
|
+
240,
|
|
105
|
+
7,
|
|
106
|
+
115
|
|
107
|
+
],
|
|
108
|
+
"accounts": [
|
|
109
|
+
{
|
|
110
|
+
"name": "registrant",
|
|
111
|
+
"writable": true,
|
|
112
|
+
"signer": true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "voteAccount"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "validatorRecord",
|
|
119
|
+
"writable": true
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "leaderboardState",
|
|
123
|
+
"writable": true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "systemProgram"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "clock"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"args": [
|
|
133
|
+
{
|
|
134
|
+
"name": "vpp",
|
|
135
|
+
"type": "u8"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "testForceUpdateVpp",
|
|
141
|
+
"discriminator": [
|
|
142
|
+
67,
|
|
143
|
+
51,
|
|
144
|
+
28,
|
|
145
|
+
174,
|
|
146
|
+
200,
|
|
147
|
+
214,
|
|
148
|
+
203,
|
|
149
|
+
162
|
|
150
|
+
],
|
|
151
|
+
"accounts": [
|
|
152
|
+
{
|
|
153
|
+
"name": "registrant",
|
|
154
|
+
"writable": true,
|
|
155
|
+
"signer": true
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "voteAccount"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "validatorRecord",
|
|
162
|
+
"writable": true
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "leaderboardState",
|
|
166
|
+
"writable": true
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"args": [
|
|
170
|
+
{
|
|
171
|
+
"name": "vpp",
|
|
172
|
+
"type": "u8"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "testLogEpochInfo",
|
|
178
|
+
"discriminator": [
|
|
179
|
+
196,
|
|
180
|
+
206,
|
|
181
|
+
58,
|
|
182
|
+
88,
|
|
183
|
+
160,
|
|
184
|
+
47,
|
|
185
|
+
2,
|
|
186
|
+
153
|
|
187
|
+
],
|
|
188
|
+
"accounts": [],
|
|
189
|
+
"args": []
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "testSeedRandomValidators",
|
|
193
|
+
"discriminator": [
|
|
194
|
+
48,
|
|
195
|
+
155,
|
|
196
|
+
181,
|
|
197
|
+
112,
|
|
198
|
+
163,
|
|
199
|
+
242,
|
|
200
|
+
43,
|
|
201
|
+
146
|
|
202
|
+
],
|
|
203
|
+
"accounts": [
|
|
204
|
+
{
|
|
205
|
+
"name": "registrant",
|
|
206
|
+
"writable": true,
|
|
207
|
+
"signer": true
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "leaderboardState",
|
|
211
|
+
"writable": true
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"args": [
|
|
215
|
+
{
|
|
216
|
+
"name": "count",
|
|
217
|
+
"type": "u16"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "seed",
|
|
221
|
+
"type": "u64"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "minVpp",
|
|
225
|
+
"type": "u8"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "maxVpp",
|
|
229
|
+
"type": "u8"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
72
233
|
{
|
|
73
234
|
"name": "updateCommission",
|
|
74
235
|
"discriminator": [
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '@solana/web3.js';
|
|
10
10
|
import { getAssociatedTokenAddressSync, TOKEN_2022_PROGRAM_ID } from '@solana/spl-token';
|
|
11
11
|
|
|
12
|
-
import { buildOutpostAccounts } from '../utils';
|
|
12
|
+
import { buildOutpostAccounts, OutpostAccounts } from '../utils';
|
|
13
13
|
import { LiqsolCoreClientIdl, SolanaProgramService } from '../program';
|
|
14
14
|
import { ConvertClient } from './convert.client';
|
|
15
15
|
|
|
@@ -38,6 +38,46 @@ export type SolanaInstaswapConnectedBalances = {
|
|
|
38
38
|
liqsolDecimals: number;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
export function buildSolanaInstaswapCrossChainAccounts(params: {
|
|
42
|
+
user: PublicKey;
|
|
43
|
+
accounts: OutpostAccounts;
|
|
44
|
+
liqsolCoreProgram: PublicKey;
|
|
45
|
+
transferHookProgram: PublicKey;
|
|
46
|
+
pendingAttestations: PublicKey;
|
|
47
|
+
}) {
|
|
48
|
+
const {
|
|
49
|
+
user,
|
|
50
|
+
accounts,
|
|
51
|
+
liqsolCoreProgram,
|
|
52
|
+
transferHookProgram,
|
|
53
|
+
pendingAttestations,
|
|
54
|
+
} = params;
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
user,
|
|
58
|
+
globalState: accounts.globalState,
|
|
59
|
+
liqsolMint: accounts.liqsolMint,
|
|
60
|
+
distributionState: accounts.distributionState,
|
|
61
|
+
userAta: accounts.userAta,
|
|
62
|
+
senderUserRecord: accounts.userUserRecord,
|
|
63
|
+
bridgeAuthority: accounts.bridgeAuthority,
|
|
64
|
+
bridgeVaultAta: accounts.bridgeVaultAta,
|
|
65
|
+
bridgeUserRecord: accounts.bridgeUserRecord,
|
|
66
|
+
bridgeState: accounts.bridgeState,
|
|
67
|
+
extraAccountMetaList: accounts.extraAccountMetaList,
|
|
68
|
+
liqsolCoreProgram,
|
|
69
|
+
transferHookProgram,
|
|
70
|
+
bucketAuthority: accounts.bucketAuthority,
|
|
71
|
+
bucketTokenAccount: accounts.bucketTokenAccount,
|
|
72
|
+
bucketUserRecord: accounts.bucketUserRecord,
|
|
73
|
+
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
74
|
+
systemProgram: SystemProgram.programId,
|
|
75
|
+
globalConfig: accounts.globalConfig,
|
|
76
|
+
oppEpochState: accounts.oppEpochState,
|
|
77
|
+
pendingAttestations,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
41
81
|
export class SolanaInstaswapClient {
|
|
42
82
|
private readonly program: Program<LiqsolCoreClientIdl>;
|
|
43
83
|
private readonly convertClient: ConvertClient;
|
|
@@ -81,29 +121,15 @@ export class SolanaInstaswapClient {
|
|
|
81
121
|
destinationAddress,
|
|
82
122
|
minOut,
|
|
83
123
|
)
|
|
84
|
-
.accounts(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
poolUserRecord: accounts.liqsolPoolUserRecord,
|
|
94
|
-
bridgeState: accounts.bridgeState,
|
|
95
|
-
extraAccountMetaList: accounts.extraAccountMetaList,
|
|
96
|
-
liqsolCoreProgram: this.program.programId,
|
|
97
|
-
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
98
|
-
bucketAuthority: accounts.bucketAuthority,
|
|
99
|
-
bucketTokenAccount: accounts.bucketTokenAccount,
|
|
100
|
-
bucketUserRecord: accounts.bucketUserRecord,
|
|
101
|
-
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
102
|
-
systemProgram: SystemProgram.programId,
|
|
103
|
-
globalConfig: accounts.globalConfig,
|
|
104
|
-
oppEpochState: accounts.oppEpochState,
|
|
105
|
-
pendingAttestations,
|
|
106
|
-
})
|
|
124
|
+
.accounts(
|
|
125
|
+
buildSolanaInstaswapCrossChainAccounts({
|
|
126
|
+
user,
|
|
127
|
+
accounts,
|
|
128
|
+
liqsolCoreProgram: this.program.programId,
|
|
129
|
+
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
130
|
+
pendingAttestations,
|
|
131
|
+
}),
|
|
132
|
+
)
|
|
107
133
|
.preInstructions([
|
|
108
134
|
ComputeBudgetProgram.setComputeUnitLimit({ units: 900_000 }),
|
|
109
135
|
])
|
|
@@ -126,29 +152,15 @@ export class SolanaInstaswapClient {
|
|
|
126
152
|
destinationAddress,
|
|
127
153
|
minOut,
|
|
128
154
|
)
|
|
129
|
-
.accounts(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
poolUserRecord: accounts.liqsolPoolUserRecord,
|
|
139
|
-
bridgeState: accounts.bridgeState,
|
|
140
|
-
extraAccountMetaList: accounts.extraAccountMetaList,
|
|
141
|
-
liqsolCoreProgram: this.program.programId,
|
|
142
|
-
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
143
|
-
bucketAuthority: accounts.bucketAuthority,
|
|
144
|
-
bucketTokenAccount: accounts.bucketTokenAccount,
|
|
145
|
-
bucketUserRecord: accounts.bucketUserRecord,
|
|
146
|
-
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
147
|
-
systemProgram: SystemProgram.programId,
|
|
148
|
-
globalConfig: accounts.globalConfig,
|
|
149
|
-
oppEpochState: accounts.oppEpochState,
|
|
150
|
-
pendingAttestations,
|
|
151
|
-
})
|
|
155
|
+
.accounts(
|
|
156
|
+
buildSolanaInstaswapCrossChainAccounts({
|
|
157
|
+
user,
|
|
158
|
+
accounts,
|
|
159
|
+
liqsolCoreProgram: this.program.programId,
|
|
160
|
+
transferHookProgram: this.pgs.PROGRAM_IDS.TRANSFER_HOOK,
|
|
161
|
+
pendingAttestations,
|
|
162
|
+
}),
|
|
163
|
+
)
|
|
152
164
|
.preInstructions([
|
|
153
165
|
ComputeBudgetProgram.setComputeUnitLimit({ units: 900_000 }),
|
|
154
166
|
])
|