@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.
Files changed (201) hide show
  1. package/README.md +1 -1
  2. package/lib/stake.browser.js +1385 -91
  3. package/lib/stake.browser.js.map +1 -1
  4. package/lib/stake.d.ts +1085 -137
  5. package/lib/stake.js +1385 -90
  6. package/lib/stake.js.map +1 -1
  7. package/lib/stake.m.js +1385 -91
  8. package/lib/stake.m.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/assets/ethereum/hoodi/common/Base58.sol/Base58.dbg.json +1 -1
  11. package/src/assets/ethereum/hoodi/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +1 -1
  12. package/src/assets/ethereum/hoodi/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +1 -1
  13. package/src/assets/ethereum/hoodi/common/iodata.sol/iodata.dbg.json +1 -1
  14. package/src/assets/ethereum/hoodi/common/iodata_util.sol/iodata_util.dbg.json +1 -1
  15. package/src/assets/ethereum/hoodi/common/sysio_data.sol/sysio_data.dbg.json +1 -1
  16. package/src/assets/ethereum/hoodi/common/sysio_errors.sol/sysio_errors.dbg.json +1 -1
  17. package/src/assets/ethereum/hoodi/common/sysio_merkle.sol/sysio_merkle.dbg.json +1 -1
  18. package/src/assets/ethereum/hoodi/common/sysio_name.sol/sysio_name.dbg.json +1 -1
  19. package/src/assets/ethereum/hoodi/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +1 -1
  20. package/src/assets/ethereum/hoodi/common/sysio_read.sol/sysio_read.dbg.json +1 -1
  21. package/src/assets/ethereum/hoodi/common/sysio_tester.sol/SysioTester.dbg.json +1 -1
  22. package/src/assets/ethereum/hoodi/common/sysio_verify.sol/sysio_verify.dbg.json +1 -1
  23. package/src/assets/ethereum/hoodi/common/sysio_write.sol/sysio_write.dbg.json +1 -1
  24. package/src/assets/ethereum/hoodi/liqEth/BeaconState.sol/BeaconState.dbg.json +1 -1
  25. package/src/assets/ethereum/hoodi/liqEth/DepositManager.sol/DepositManagerV2.dbg.json +1 -1
  26. package/src/assets/ethereum/hoodi/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +1 -1
  27. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
  28. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
  29. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
  30. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +1 -1
  31. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
  32. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +1 -1
  33. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
  34. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
  35. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
  36. package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
  37. package/src/assets/ethereum/hoodi/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.dbg.json +1 -1
  38. package/src/assets/ethereum/hoodi/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +1 -1
  39. package/src/assets/ethereum/hoodi/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.dbg.json +1 -1
  40. package/src/assets/ethereum/hoodi/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.dbg.json +1 -1
  41. package/src/assets/ethereum/hoodi/liqEth/Yield.sol/YieldOracle.dbg.json +1 -1
  42. package/src/assets/ethereum/hoodi/liqEth/accounting.sol/AccountingV2.dbg.json +1 -1
  43. package/src/assets/ethereum/hoodi/liqEth/liqEth.sol/LiqEthTokenV2.dbg.json +1 -1
  44. package/src/assets/ethereum/hoodi/liqEth/stakingModule.sol/StakingModuleV2.dbg.json +1 -1
  45. package/src/assets/ethereum/hoodi/liqEth/v1/DepositManager.sol/DepositManager.dbg.json +1 -1
  46. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
  47. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
  48. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
  49. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +1 -1
  50. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
  51. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +1 -1
  52. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
  53. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
  54. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
  55. package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
  56. package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +1 -1
  57. package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +1 -1
  58. package/src/assets/ethereum/hoodi/liqEth/v1/accounting.sol/Accounting.dbg.json +1 -1
  59. package/src/assets/ethereum/hoodi/liqEth/v1/liqEth.sol/LiqEthToken.dbg.json +1 -1
  60. package/src/assets/ethereum/hoodi/liqEth/v1/stakingModule.sol/StakingModule.dbg.json +1 -1
  61. package/src/assets/ethereum/hoodi/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +1 -1
  62. package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +1 -1
  63. package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +1 -1
  64. package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.dbg.json +1 -1
  65. package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.json +45 -2
  66. package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.dbg.json +1 -1
  67. package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.json +45 -2
  68. package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +1 -1
  69. package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +1 -1
  70. package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +2 -2
  71. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.dbg.json +1 -1
  72. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.json +2 -2
  73. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.dbg.json +1 -1
  74. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.json +2 -2
  75. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.dbg.json +1 -1
  76. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.json +2 -2
  77. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawFailedCodec.dbg.json +1 -1
  78. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawFailedCodec.json +2 -2
  79. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.dbg.json +1 -1
  80. package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.json +2 -2
  81. package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/IDepositorBridgeHooks.dbg.json +1 -1
  82. package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.dbg.json +1 -1
  83. package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.json +45 -2
  84. package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.dbg.json +1 -1
  85. package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.json +47 -4
  86. package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPP.dbg.json +1 -1
  87. package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +1 -1
  88. package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPInbound.dbg.json +1 -1
  89. package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +1 -1
  90. package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPSender.dbg.json +1 -1
  91. package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.dbg.json +1 -1
  92. package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.json +2 -2
  93. package/src/assets/ethereum/hoodi/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +1 -1
  94. package/src/assets/ethereum/hoodi/outpost/OPPEndpoint.sol/OPPEndpoint.json +43 -0
  95. package/src/assets/ethereum/hoodi/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +1 -1
  96. package/src/assets/ethereum/hoodi/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +43 -0
  97. package/src/assets/ethereum/hoodi/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +1 -1
  98. package/src/assets/ethereum/hoodi/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +43 -0
  99. package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.dbg.json +1 -1
  100. package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.json +45 -2
  101. package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.dbg.json +1 -1
  102. package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.json +109 -15
  103. package/src/assets/ethereum/hoodi/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +1 -1
  104. package/src/assets/ethereum/hoodi/outpost/OPPReceiver.sol/OPPReceiver.json +43 -0
  105. package/src/assets/ethereum/hoodi/outpost/OPPSender.sol/OPPSender.dbg.json +1 -1
  106. package/src/assets/ethereum/hoodi/outpost/OPPSender.sol/OPPSender.json +43 -0
  107. package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.dbg.json +1 -1
  108. package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.json +45 -2
  109. package/src/assets/ethereum/hoodi/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +1 -1
  110. package/src/assets/ethereum/hoodi/outpost/OutpostErrors.sol/OutpostErrors.json +2 -2
  111. package/src/assets/ethereum/hoodi/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +1 -1
  112. package/src/assets/ethereum/hoodi/outpost/OutpostManaged.sol/OutpostManaged.json +2 -2
  113. package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.dbg.json +1 -1
  114. package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.json +45 -2
  115. package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +1 -1
  116. package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +2 -2
  117. package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +1 -1
  118. package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +1 -1
  119. package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +1 -1
  120. package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +2 -2
  121. package/src/assets/ethereum/hoodi/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +1 -1
  122. package/src/assets/ethereum/hoodi/outpost/OutpostOwnable.sol/OutpostOwnable.json +2 -2
  123. package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.dbg.json +1 -1
  124. package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.json +45 -2
  125. package/src/assets/ethereum/hoodi/outpost/Pool.sol/Pool.dbg.json +1 -1
  126. package/src/assets/ethereum/hoodi/outpost/Pool.sol/Pool.json +2 -2
  127. package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.dbg.json +1 -1
  128. package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.json +45 -2
  129. package/src/assets/ethereum/hoodi/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +1 -1
  130. package/src/assets/ethereum/hoodi/outpost/ReceiptNFT.sol/ReceiptNFT.json +2 -2
  131. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.dbg.json +1 -1
  132. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.json +2 -2
  133. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.dbg.json +1 -1
  134. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.json +2 -2
  135. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.dbg.json +1 -1
  136. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.json +2 -2
  137. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.dbg.json +1 -1
  138. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.json +2 -2
  139. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.dbg.json +1 -1
  140. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.json +2 -2
  141. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.dbg.json +1 -1
  142. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.json +2 -2
  143. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.dbg.json +1 -1
  144. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.json +2 -2
  145. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.dbg.json +1 -1
  146. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.json +2 -2
  147. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.dbg.json +1 -1
  148. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.json +2 -2
  149. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.dbg.json +1 -1
  150. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.json +2 -2
  151. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.dbg.json +1 -1
  152. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.json +2 -2
  153. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.dbg.json +1 -1
  154. package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.json +2 -2
  155. package/src/assets/ethereum/hoodi/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +1 -1
  156. package/src/assets/ethereum/hoodi/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +1 -1
  157. package/src/assets/ethereum/hoodi/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +1 -1
  158. package/src/assets/ethereum/hoodi/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +1 -1
  159. package/src/assets/ethereum/hoodi/token/ERC1155Token.sol/ERC1155Token.dbg.json +1 -1
  160. package/src/assets/ethereum/hoodi/token/ERC20Token.sol/ERC20Token.dbg.json +1 -1
  161. package/src/assets/ethereum/hoodi/token/ERC721Token.sol/ERC721Token.dbg.json +1 -1
  162. package/src/assets/solana/devnet/idl/liqsol_core.json +774 -16
  163. package/src/assets/solana/devnet/idl/validator_leaderboard.json +161 -0
  164. package/src/assets/solana/devnet/types/liqsol_core.ts +774 -16
  165. package/src/assets/solana/devnet/types/validator_leaderboard.ts +161 -0
  166. package/src/networks/solana/clients/instaswap.client.ts +59 -47
  167. package/src/assets/ethereum/hoodi/WNS/BucketWNS.sol/BucketWNS.dbg.json +0 -4
  168. package/src/assets/ethereum/hoodi/WNS/BucketWNS.sol/BucketWNS.json +0 -699
  169. package/src/assets/ethereum/hoodi/WNS/Challenge.sol/Challenge.dbg.json +0 -4
  170. package/src/assets/ethereum/hoodi/WNS/Challenge.sol/Challenge.json +0 -3139
  171. package/src/assets/ethereum/hoodi/WNS/ChallengeLib.sol/ChallengeLib.dbg.json +0 -4
  172. package/src/assets/ethereum/hoodi/WNS/ChallengeLib.sol/ChallengeLib.json +0 -106
  173. package/src/assets/ethereum/hoodi/WNS/Errors.sol/WNSErrs.dbg.json +0 -4
  174. package/src/assets/ethereum/hoodi/WNS/Errors.sol/WNSErrs.json +0 -180
  175. package/src/assets/ethereum/hoodi/WNS/LiqWNS.sol/LiqWNS.dbg.json +0 -4
  176. package/src/assets/ethereum/hoodi/WNS/LiqWNS.sol/LiqWNS.json +0 -470
  177. package/src/assets/ethereum/hoodi/WNS/SChain.sol/SChain.dbg.json +0 -4
  178. package/src/assets/ethereum/hoodi/WNS/SChain.sol/SChain.json +0 -1983
  179. package/src/assets/ethereum/hoodi/WNS/UTXO.sol/UTXO.dbg.json +0 -4
  180. package/src/assets/ethereum/hoodi/WNS/UTXO.sol/UTXO.json +0 -1231
  181. package/src/assets/ethereum/hoodi/WNS/UTXOio.sol/UTXOio.dbg.json +0 -4
  182. package/src/assets/ethereum/hoodi/WNS/UTXOio.sol/UTXOio.json +0 -1524
  183. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IBucketWNS.dbg.json +0 -4
  184. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IBucketWNS.json +0 -119
  185. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IChallenge.dbg.json +0 -4
  186. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IChallenge.json +0 -374
  187. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/ISChain.dbg.json +0 -4
  188. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/ISChain.json +0 -865
  189. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IUTXO.dbg.json +0 -4
  190. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/IUTXO.json +0 -524
  191. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/WNSCommon.dbg.json +0 -4
  192. package/src/assets/ethereum/hoodi/WNS/WNSCommon.sol/WNSCommon.json +0 -10
  193. package/src/assets/ethereum/hoodi/WNS/WithdrawBatch.sol/WithdrawBatch.dbg.json +0 -4
  194. package/src/assets/ethereum/hoodi/WNS/WithdrawBatch.sol/WithdrawBatch.json +0 -1232
  195. package/src/assets/ethereum/hoodi/outpost/MockAggregator.sol/MockAggregator.json +0 -97
  196. package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.dbg.json +0 -4
  197. package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.json +0 -560
  198. package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.dbg.json +0 -4
  199. package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.json +0 -460
  200. package/src/assets/ethereum/hoodi/token/Eman721.sol/Eman721.dbg.json +0 -4
  201. 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
- user,
86
- globalState: accounts.globalState,
87
- liqsolMint: accounts.liqsolMint,
88
- distributionState: accounts.distributionState,
89
- userAta: accounts.userAta,
90
- senderUserRecord: accounts.userUserRecord,
91
- poolAuthority: accounts.poolAuthority,
92
- liqsolPoolAta: accounts.liqsolPoolAta,
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
- user,
131
- globalState: accounts.globalState,
132
- liqsolMint: accounts.liqsolMint,
133
- distributionState: accounts.distributionState,
134
- userAta: accounts.userAta,
135
- senderUserRecord: accounts.userUserRecord,
136
- poolAuthority: accounts.poolAuthority,
137
- liqsolPoolAta: accounts.liqsolPoolAta,
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
  ])
@@ -1,4 +0,0 @@
1
- {
2
- "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/181e522070aaa09cddac0c3db158bfe9.json"
4
- }