@wireio/stake 0.0.5 → 0.0.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 +204 -15
- package/lib/stake.browser.js +69370 -4589
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +17899 -5512
- package/lib/stake.js +70103 -4899
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +69370 -4589
- package/lib/stake.m.js.map +1 -1
- package/package.json +6 -3
- package/src/assets/ethereum/hoodi/common/Base58.sol/Base58.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/Base58.sol/Base58.json +164 -0
- package/src/assets/ethereum/hoodi/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.json +76 -0
- package/src/assets/ethereum/hoodi/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/RestrictedCallers.sol/RestrictedCallers.json +10 -0
- package/src/assets/ethereum/hoodi/common/iodata.sol/iodata.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/iodata.sol/iodata.json +618 -0
- package/src/assets/ethereum/hoodi/common/iodata_util.sol/iodata_util.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/iodata_util.sol/iodata_util.json +40 -0
- package/src/assets/ethereum/hoodi/common/sysio_data.sol/sysio_data.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_data.sol/sysio_data.json +10 -0
- package/src/assets/ethereum/hoodi/common/sysio_errors.sol/sysio_errors.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_errors.sol/sysio_errors.json +10 -0
- package/src/assets/ethereum/hoodi/common/sysio_merkle.sol/sysio_merkle.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_merkle.sol/sysio_merkle.json +233 -0
- package/src/assets/ethereum/hoodi/common/sysio_name.sol/sysio_name.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_name.sol/sysio_name.json +49 -0
- package/src/assets/ethereum/hoodi/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_pubkey.sol/sysio_pubkey.json +64 -0
- package/src/assets/ethereum/hoodi/common/sysio_read.sol/sysio_read.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_read.sol/sysio_read.json +1458 -0
- package/src/assets/ethereum/hoodi/common/sysio_tester.sol/SysioTester.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_tester.sol/SysioTester.json +1532 -0
- package/src/assets/ethereum/hoodi/common/sysio_verify.sol/sysio_verify.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_verify.sol/sysio_verify.json +1525 -0
- package/src/assets/ethereum/hoodi/common/sysio_write.sol/sysio_write.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/common/sysio_write.sol/sysio_write.json +1076 -0
- package/src/assets/ethereum/hoodi/liqEth/BeaconState.sol/BeaconState.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/BeaconState.sol/BeaconState.json +807 -0
- package/src/assets/ethereum/hoodi/liqEth/DepositManager.sol/DepositManagerV2.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/DepositManager.sol/DepositManagerV2.json +985 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthAuthority.sol/LiqEthAuthority.json +1289 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IAccounting.json +182 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositContract.json +39 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositManager.json +64 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.json +29 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20.json +319 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.json +333 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IStakingModule.json +344 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.json +129 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IWithdrawalRecord.json +66 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/LiqEthCommon.json +10 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.json +236 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/LiqEthManaged.sol/LiqEthManaged.json +229 -0
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.json +957 -0
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.json +1020 -0
- package/src/assets/ethereum/hoodi/liqEth/Yield.sol/YieldOracle.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/Yield.sol/YieldOracle.json +1376 -0
- package/src/assets/ethereum/hoodi/liqEth/accounting.sol/AccountingV2.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/accounting.sol/AccountingV2.json +629 -0
- package/src/assets/ethereum/hoodi/liqEth/liqEth.sol/LiqEthTokenV2.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/liqEth.sol/LiqEthTokenV2.json +1323 -0
- package/src/assets/ethereum/hoodi/liqEth/stakingModule.sol/StakingModuleV2.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/stakingModule.sol/StakingModuleV2.json +1779 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/DepositManager.sol/DepositManager.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/DepositManager.sol/DepositManager.json +978 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IAccounting.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IAccounting.json +176 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositContract.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositContract.json +39 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositManager.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositManager.json +64 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.json +29 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.json +249 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.json +263 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IStakingModule.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IStakingModule.json +344 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.json +129 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.json +66 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.json +10 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.json +874 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.json +937 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/accounting.sol/Accounting.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/accounting.sol/Accounting.json +548 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/liqEth.sol/LiqEthToken.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/liqEth.sol/LiqEthToken.json +1233 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/stakingModule.sol/StakingModule.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/v1/stakingModule.sol/StakingModule.json +1772 -0
- package/src/assets/ethereum/hoodi/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +973 -0
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/Uint64BE.json +10 -0
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/WithdrawalVault.json +441 -0
- package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.json +1111 -0
- package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.json +1696 -0
- package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.json +122 -0
- package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +274 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.json +1044 -0
- package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.json +1055 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPP.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPP.json +81 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPEndpoint.json +29 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPInbound.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPInbound.json +330 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPReceiver.json +29 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPSender.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPSender.json +41 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.json +287 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpoint.sol/OPPEndpoint.json +294 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +415 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +399 -0
- package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.json +245 -0
- package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.json +1204 -0
- package/src/assets/ethereum/hoodi/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPReceiver.sol/OPPReceiver.json +312 -0
- package/src/assets/ethereum/hoodi/outpost/OPPSender.sol/OPPSender.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OPPSender.sol/OPPSender.json +324 -0
- package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.json +1068 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostErrors.sol/OutpostErrors.json +211 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManaged.sol/OutpostManaged.json +229 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.json +751 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +1432 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostManager.json +130 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.json +29 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +141 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostOwnable.sol/OutpostOwnable.json +213 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.json +888 -0
- package/src/assets/ethereum/hoodi/outpost/Pool.sol/Pool.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/Pool.sol/Pool.json +659 -0
- package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.json +1393 -0
- package/src/assets/ethereum/hoodi/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/ReceiptNFT.sol/ReceiptNFT.json +1738 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.json +1437 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.json +10 -0
- package/src/assets/ethereum/hoodi/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/interfaces/IPretoken.sol/IPretoken.json +29 -0
- package/src/assets/ethereum/hoodi/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/interfaces/IWarrant.sol/IWarrant.json +29 -0
- package/src/assets/ethereum/hoodi/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.json +858 -0
- package/src/assets/ethereum/hoodi/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.json +30 -0
- package/src/assets/ethereum/hoodi/token/ERC1155Token.sol/ERC1155Token.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/ERC1155Token.sol/ERC1155Token.json +472 -0
- package/src/assets/ethereum/hoodi/token/ERC20Token.sol/ERC20Token.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/ERC20Token.sol/ERC20Token.json +330 -0
- package/src/assets/ethereum/hoodi/token/ERC721Token.sol/ERC721Token.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/ERC721Token.sol/ERC721Token.json +449 -0
- package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.json +560 -0
- package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.json +460 -0
- package/src/assets/ethereum/hoodi/token/Eman721.sol/Eman721.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/Eman721.sol/Eman721.json +624 -0
- package/src/assets/ethereum/mainnet/common/Base58.sol/Base58.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/Base58.sol/Base58.json +164 -0
- package/src/assets/ethereum/mainnet/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.json +76 -0
- package/src/assets/ethereum/mainnet/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/RestrictedCallers.sol/RestrictedCallers.json +10 -0
- package/src/assets/ethereum/mainnet/common/iodata.sol/iodata.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/iodata.sol/iodata.json +618 -0
- package/src/assets/ethereum/mainnet/common/iodata_util.sol/iodata_util.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/iodata_util.sol/iodata_util.json +40 -0
- package/src/assets/ethereum/mainnet/common/sysio_data.sol/sysio_data.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_data.sol/sysio_data.json +10 -0
- package/src/assets/ethereum/mainnet/common/sysio_errors.sol/sysio_errors.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_errors.sol/sysio_errors.json +10 -0
- package/src/assets/ethereum/mainnet/common/sysio_merkle.sol/sysio_merkle.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_merkle.sol/sysio_merkle.json +233 -0
- package/src/assets/ethereum/mainnet/common/sysio_name.sol/sysio_name.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_name.sol/sysio_name.json +49 -0
- package/src/assets/ethereum/mainnet/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_pubkey.sol/sysio_pubkey.json +64 -0
- package/src/assets/ethereum/mainnet/common/sysio_read.sol/sysio_read.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_read.sol/sysio_read.json +1458 -0
- package/src/assets/ethereum/mainnet/common/sysio_tester.sol/SysioTester.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_tester.sol/SysioTester.json +1532 -0
- package/src/assets/ethereum/mainnet/common/sysio_verify.sol/sysio_verify.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_verify.sol/sysio_verify.json +1525 -0
- package/src/assets/ethereum/mainnet/common/sysio_write.sol/sysio_write.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/common/sysio_write.sol/sysio_write.json +1076 -0
- package/src/assets/ethereum/mainnet/liqEth/BeaconState.sol/BeaconState.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/BeaconState.sol/BeaconState.json +807 -0
- package/src/assets/ethereum/mainnet/liqEth/DepositManager.sol/DepositManagerV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/DepositManager.sol/DepositManagerV2.json +1004 -0
- package/src/assets/ethereum/mainnet/liqEth/DepositManager.sol/IStakingModuleBondLocker.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/DepositManager.sol/IStakingModuleBondLocker.json +29 -0
- package/src/assets/ethereum/mainnet/liqEth/KeyBondManager.sol/KeyBondManager.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/KeyBondManager.sol/KeyBondManager.json +897 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthAuthority.sol/LiqEthAuthority.json +1289 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IDepositContract.json +39 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IDepositManager.json +64 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IKeyBondManager.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IKeyBondManager.json +189 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.json +29 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20.json +319 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.json +333 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IStakingModule.json +279 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.json +129 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/IWithdrawalRecord.json +66 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthCommon.sol/LiqEthCommon.json +10 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.json +236 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/LiqEthManaged.sol/LiqEthManaged.json +229 -0
- package/src/assets/ethereum/mainnet/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.json +957 -0
- package/src/assets/ethereum/mainnet/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.json +1020 -0
- package/src/assets/ethereum/mainnet/liqEth/StakingLib.sol/StakingLib.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/StakingLib.sol/StakingLib.json +89 -0
- package/src/assets/ethereum/mainnet/liqEth/Yield.sol/YieldOracle.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/Yield.sol/YieldOracle.json +1376 -0
- package/src/assets/ethereum/mainnet/liqEth/liqEth.sol/LiqEthTokenV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/liqEth.sol/LiqEthTokenV2.json +1323 -0
- package/src/assets/ethereum/mainnet/liqEth/stakingModule.sol/StakingModuleV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/stakingModule.sol/StakingModuleV2.json +1896 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/DepositManager.sol/DepositManager.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/DepositManager.sol/DepositManager.json +978 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IAccounting.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IAccounting.json +176 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositContract.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositContract.json +39 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositManager.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositManager.json +64 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.json +29 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.json +249 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.json +263 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IStakingModule.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IStakingModule.json +344 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.json +129 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.json +66 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.json +10 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.json +874 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.json +937 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/accounting.sol/Accounting.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/accounting.sol/Accounting.json +542 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/liqEth.sol/LiqEthToken.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/liqEth.sol/LiqEthToken.json +1233 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/stakingModule.sol/StakingModule.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/v1/stakingModule.sol/StakingModule.json +1772 -0
- package/src/assets/ethereum/mainnet/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +973 -0
- package/src/assets/ethereum/mainnet/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/withdrawalVault.sol/Uint64BE.json +10 -0
- package/src/assets/ethereum/mainnet/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/liqEth/withdrawalVault.sol/WithdrawalVault.json +441 -0
- package/src/assets/ethereum/mainnet/outpost/BAR.sol/BARV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/BAR.sol/BARV2.json +1915 -0
- package/src/assets/ethereum/mainnet/outpost/Depositor.sol/DepositorV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/Depositor.sol/DepositorV2.json +1845 -0
- package/src/assets/ethereum/mainnet/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.json +122 -0
- package/src/assets/ethereum/mainnet/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +551 -0
- package/src/assets/ethereum/mainnet/outpost/OPP.sol/OPP.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPP.sol/OPP.json +948 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPP.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPP.json +88 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPEndpoint.json +29 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPInbound.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPInbound.json +194 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPReceiver.json +29 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPSender.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/IOPPSender.json +36 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/OPPCommon.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPCommon.sol/OPPCommon.json +199 -0
- package/src/assets/ethereum/mainnet/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPEndpoint.sol/OPPEndpoint.json +273 -0
- package/src/assets/ethereum/mainnet/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +394 -0
- package/src/assets/ethereum/mainnet/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +378 -0
- package/src/assets/ethereum/mainnet/outpost/OPPErrors.sol/OPPErrors.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPErrors.sol/OPPErrors.json +224 -0
- package/src/assets/ethereum/mainnet/outpost/OPPInbound.sol/OPPInbound.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPInbound.sol/OPPInbound.json +1010 -0
- package/src/assets/ethereum/mainnet/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPReceiver.sol/OPPReceiver.json +291 -0
- package/src/assets/ethereum/mainnet/outpost/OPPSender.sol/OPPSender.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OPPSender.sol/OPPSender.json +298 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostErrors.sol/OutpostErrors.json +488 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManaged.sol/OutpostManaged.json +229 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManager.sol/OutpostManagerV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManager.sol/OutpostManagerV2.json +737 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +1432 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerCommon.sol/IOutpostManager.json +130 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.json +29 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +141 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/OutpostOwnable.sol/OutpostOwnable.json +213 -0
- package/src/assets/ethereum/mainnet/outpost/Pool.sol/PoolV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/Pool.sol/PoolV2.json +943 -0
- package/src/assets/ethereum/mainnet/outpost/Pretoken.sol/PretokenV2.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/Pretoken.sol/PretokenV2.json +1703 -0
- package/src/assets/ethereum/mainnet/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/ReceiptNFT.sol/ReceiptNFT.json +2015 -0
- package/src/assets/ethereum/mainnet/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/interfaces/IPretoken.sol/IPretoken.json +29 -0
- package/src/assets/ethereum/mainnet/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/interfaces/IWarrant.sol/IWarrant.json +29 -0
- package/src/assets/ethereum/mainnet/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.json +858 -0
- package/src/assets/ethereum/mainnet/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.json +30 -0
- package/src/assets/ethereum/mainnet/outpost/v1/BAR.sol/BAR.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/v1/BAR.sol/BAR.json +1871 -0
- package/src/assets/ethereum/mainnet/outpost/v1/Depositor.sol/Depositor.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/v1/Depositor.sol/Depositor.json +1653 -0
- package/src/assets/ethereum/mainnet/outpost/v1/OutpostManager.sol/OutpostManager.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/v1/OutpostManager.sol/OutpostManager.json +730 -0
- package/src/assets/ethereum/mainnet/outpost/v1/Pool.sol/Pool.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/v1/Pool.sol/Pool.json +936 -0
- package/src/assets/ethereum/mainnet/outpost/v1/Pretoken.sol/Pretoken.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/outpost/v1/Pretoken.sol/Pretoken.json +1665 -0
- package/src/assets/ethereum/mainnet/token/ERC1155Token.sol/ERC1155Token.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/token/ERC1155Token.sol/ERC1155Token.json +472 -0
- package/src/assets/ethereum/mainnet/token/ERC20Token.sol/ERC20Token.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/token/ERC20Token.sol/ERC20Token.json +330 -0
- package/src/assets/ethereum/mainnet/token/ERC721Token.sol/ERC721Token.dbg.json +4 -0
- package/src/assets/ethereum/mainnet/token/ERC721Token.sol/ERC721Token.json +449 -0
- package/src/assets/solana/devnet/idl/liqsol_core.json +8546 -0
- package/src/assets/solana/devnet/idl/liqsol_token.json +217 -0
- package/src/assets/solana/devnet/idl/transfer_hook.json +490 -0
- package/src/assets/solana/devnet/idl/validator_leaderboard.json +735 -0
- package/src/assets/solana/devnet/types/liqsol_core.ts +8552 -0
- package/src/assets/solana/devnet/types/liqsol_token.ts +223 -0
- package/src/assets/solana/devnet/types/transfer_hook.ts +496 -0
- package/src/assets/solana/devnet/types/validator_leaderboard.ts +741 -0
- package/src/assets/solana/mainnet/idl/liqsol_core.json +6678 -0
- package/src/assets/solana/mainnet/idl/liqsol_token.json +217 -0
- package/src/assets/solana/mainnet/idl/transfer_hook.json +479 -0
- package/src/assets/solana/mainnet/idl/validator_leaderboard.json +574 -0
- package/src/assets/solana/mainnet/types/liqsol_core.ts +6684 -0
- package/src/assets/solana/mainnet/types/liqsol_token.ts +223 -0
- package/src/assets/solana/mainnet/types/transfer_hook.ts +485 -0
- package/src/assets/solana/mainnet/types/validator_leaderboard.ts +580 -0
- package/src/assets/solana/realdevnet/idl/liqsol_core.json +7112 -0
- package/src/assets/solana/realdevnet/idl/liqsol_token.json +217 -0
- package/src/assets/solana/realdevnet/idl/transfer_hook.json +479 -0
- package/src/assets/solana/realdevnet/idl/validator_leaderboard.json +735 -0
- package/src/assets/solana/realdevnet/types/liqsol_core.ts +7118 -0
- package/src/assets/solana/realdevnet/types/liqsol_token.ts +223 -0
- package/src/assets/solana/realdevnet/types/transfer_hook.ts +485 -0
- package/src/assets/solana/realdevnet/types/validator_leaderboard.ts +741 -0
- package/src/index.ts +7 -8
- package/src/networks/ethereum/clients/convert.client.ts +221 -0
- package/src/networks/ethereum/clients/opp.client.ts +389 -0
- package/src/networks/ethereum/clients/pretoken.client.ts +165 -0
- package/src/networks/ethereum/clients/receipt.client.ts +199 -0
- package/src/networks/ethereum/clients/stake.client.ts +203 -0
- package/src/networks/ethereum/clients/validator.client.ts +61 -0
- package/src/networks/ethereum/contract.ts +438 -58
- package/src/networks/ethereum/ethereum.ts +591 -51
- package/src/networks/ethereum/types.ts +138 -2
- package/src/networks/ethereum/utils.ts +340 -0
- package/src/networks/solana/clients/convert.client.ts +341 -0
- package/src/networks/solana/clients/distribution.client.ts +304 -176
- package/src/networks/solana/clients/leaderboard.client.ts +85 -163
- package/src/networks/solana/clients/outpost.client.ts +325 -0
- package/src/networks/solana/clients/token.client.ts +210 -0
- package/src/networks/solana/constants.ts +152 -69
- package/src/networks/solana/program.ts +397 -102
- package/src/networks/solana/solana.ts +1208 -68
- package/src/networks/solana/types.ts +757 -0
- package/src/networks/solana/utils.ts +542 -93
- package/src/scripts/fetch-artifacts.sh +24 -0
- package/src/scripts/tsconfig.json +17 -0
- package/src/staker.ts +85 -0
- package/src/types.ts +364 -0
- package/src/assets/ethereum/ABI/token/ERC1155Token.sol/ERC1155Token.dbg.json +0 -4
- package/src/assets/ethereum/ABI/token/ERC1155Token.sol/ERC1155Token.json +0 -472
- package/src/assets/ethereum/ABI/token/ERC20Token.sol/ERC20Token.dbg.json +0 -4
- package/src/assets/ethereum/ABI/token/ERC20Token.sol/ERC20Token.json +0 -330
- package/src/assets/ethereum/ABI/token/ERC721Token.sol/ERC721Token.dbg.json +0 -4
- package/src/assets/ethereum/ABI/token/ERC721Token.sol/ERC721Token.json +0 -449
- package/src/assets/solana/idl/deposit.json +0 -260
- package/src/assets/solana/idl/distribution.json +0 -736
- package/src/assets/solana/idl/liq_sol_token.json +0 -275
- package/src/assets/solana/idl/stake_controller.json +0 -1788
- package/src/assets/solana/idl/stake_registry.json +0 -435
- package/src/assets/solana/idl/treasury.json +0 -336
- package/src/assets/solana/idl/validator_leaderboard.json +0 -528
- package/src/assets/solana/idl/validator_registry.json +0 -418
- package/src/assets/solana/idl/yield_oracle.json +0 -32
- package/src/assets/solana/types/deposit.ts +0 -266
- package/src/assets/solana/types/distribution.ts +0 -742
- package/src/assets/solana/types/liq_sol_token.ts +0 -281
- package/src/assets/solana/types/stake_controller.ts +0 -1794
- package/src/assets/solana/types/stake_registry.ts +0 -441
- package/src/assets/solana/types/treasury.ts +0 -342
- package/src/assets/solana/types/validator_leaderboard.ts +0 -534
- package/src/assets/solana/types/validator_registry.ts +0 -424
- package/src/assets/solana/types/yield_oracle.ts +0 -38
- package/src/networks/solana/clients/deposit.client.ts +0 -178
- package/src/staker/staker.ts +0 -56
- package/src/staker/types.ts +0 -40
- package/src/utils.ts +0 -9
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
3
|
-
*
|
|
4
|
-
* Note that this is only a type helper and is not the actual IDL. The original
|
|
5
|
-
* IDL can be found at `target/idl/validator_registry.json`.
|
|
6
|
-
*/
|
|
7
|
-
export type ValidatorRegistry = {
|
|
8
|
-
"address": "DqaNZkyhg6ASSkut8tyQGjwMtv35Yj5rA9JZvzmzZb3e",
|
|
9
|
-
"metadata": {
|
|
10
|
-
"name": "validatorRegistry",
|
|
11
|
-
"version": "0.1.0",
|
|
12
|
-
"spec": "0.1.0",
|
|
13
|
-
"description": "Created with Anchor"
|
|
14
|
-
},
|
|
15
|
-
"instructions": [
|
|
16
|
-
{
|
|
17
|
-
"name": "addValidator",
|
|
18
|
-
"discriminator": [
|
|
19
|
-
250,
|
|
20
|
-
113,
|
|
21
|
-
53,
|
|
22
|
-
54,
|
|
23
|
-
141,
|
|
24
|
-
117,
|
|
25
|
-
215,
|
|
26
|
-
185
|
|
27
|
-
],
|
|
28
|
-
"accounts": [
|
|
29
|
-
{
|
|
30
|
-
"name": "authority",
|
|
31
|
-
"signer": true
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "validatorRegistry",
|
|
35
|
-
"writable": true
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"args": [
|
|
39
|
-
{
|
|
40
|
-
"name": "voteAccount",
|
|
41
|
-
"type": "pubkey"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "name",
|
|
45
|
-
"type": "string"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "performanceScore",
|
|
49
|
-
"type": "u32"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "getValidators",
|
|
55
|
-
"discriminator": [
|
|
56
|
-
74,
|
|
57
|
-
81,
|
|
58
|
-
116,
|
|
59
|
-
129,
|
|
60
|
-
224,
|
|
61
|
-
19,
|
|
62
|
-
17,
|
|
63
|
-
238
|
|
64
|
-
],
|
|
65
|
-
"accounts": [
|
|
66
|
-
{
|
|
67
|
-
"name": "validatorRegistry"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"args": []
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "initialize",
|
|
74
|
-
"discriminator": [
|
|
75
|
-
175,
|
|
76
|
-
175,
|
|
77
|
-
109,
|
|
78
|
-
31,
|
|
79
|
-
13,
|
|
80
|
-
152,
|
|
81
|
-
155,
|
|
82
|
-
237
|
|
83
|
-
],
|
|
84
|
-
"accounts": [
|
|
85
|
-
{
|
|
86
|
-
"name": "payer",
|
|
87
|
-
"writable": true,
|
|
88
|
-
"signer": true
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "validatorRegistry",
|
|
92
|
-
"writable": true,
|
|
93
|
-
"pda": {
|
|
94
|
-
"seeds": [
|
|
95
|
-
{
|
|
96
|
-
"kind": "const",
|
|
97
|
-
"value": [
|
|
98
|
-
118,
|
|
99
|
-
97,
|
|
100
|
-
108,
|
|
101
|
-
105,
|
|
102
|
-
100,
|
|
103
|
-
97,
|
|
104
|
-
116,
|
|
105
|
-
111,
|
|
106
|
-
114,
|
|
107
|
-
95,
|
|
108
|
-
114,
|
|
109
|
-
101,
|
|
110
|
-
103,
|
|
111
|
-
105,
|
|
112
|
-
115,
|
|
113
|
-
116,
|
|
114
|
-
114,
|
|
115
|
-
121
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"name": "systemProgram",
|
|
123
|
-
"address": "11111111111111111111111111111111"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"args": [
|
|
127
|
-
{
|
|
128
|
-
"name": "authority",
|
|
129
|
-
"type": "pubkey"
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "syncValidatorsFromChain",
|
|
135
|
-
"discriminator": [
|
|
136
|
-
247,
|
|
137
|
-
11,
|
|
138
|
-
19,
|
|
139
|
-
18,
|
|
140
|
-
37,
|
|
141
|
-
20,
|
|
142
|
-
245,
|
|
143
|
-
232
|
|
144
|
-
],
|
|
145
|
-
"accounts": [
|
|
146
|
-
{
|
|
147
|
-
"name": "authority",
|
|
148
|
-
"signer": true
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "validatorRegistry",
|
|
152
|
-
"writable": true
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "stakeControllerProgram"
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"args": [
|
|
159
|
-
{
|
|
160
|
-
"name": "voteAccounts",
|
|
161
|
-
"type": {
|
|
162
|
-
"vec": "pubkey"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "validatorMetrics",
|
|
167
|
-
"type": {
|
|
168
|
-
"vec": {
|
|
169
|
-
"defined": {
|
|
170
|
-
"name": "validatorMetrics"
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"name": "updatePerformance",
|
|
179
|
-
"discriminator": [
|
|
180
|
-
11,
|
|
181
|
-
251,
|
|
182
|
-
66,
|
|
183
|
-
148,
|
|
184
|
-
20,
|
|
185
|
-
86,
|
|
186
|
-
149,
|
|
187
|
-
20
|
|
188
|
-
],
|
|
189
|
-
"accounts": [
|
|
190
|
-
{
|
|
191
|
-
"name": "authority",
|
|
192
|
-
"signer": true
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "validatorRegistry",
|
|
196
|
-
"writable": true
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"args": [
|
|
200
|
-
{
|
|
201
|
-
"name": "voteAccount",
|
|
202
|
-
"type": "pubkey"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"name": "performanceScore",
|
|
206
|
-
"type": "u32"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "activeStake",
|
|
210
|
-
"type": "u64"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "commission",
|
|
214
|
-
"type": "u64"
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
"accounts": [
|
|
220
|
-
{
|
|
221
|
-
"name": "validatorRegistry",
|
|
222
|
-
"discriminator": [
|
|
223
|
-
168,
|
|
224
|
-
113,
|
|
225
|
-
195,
|
|
226
|
-
186,
|
|
227
|
-
62,
|
|
228
|
-
121,
|
|
229
|
-
163,
|
|
230
|
-
230
|
|
231
|
-
]
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"events": [
|
|
235
|
-
{
|
|
236
|
-
"name": "validatorsSyncedEvent",
|
|
237
|
-
"discriminator": [
|
|
238
|
-
119,
|
|
239
|
-
121,
|
|
240
|
-
49,
|
|
241
|
-
120,
|
|
242
|
-
230,
|
|
243
|
-
132,
|
|
244
|
-
109,
|
|
245
|
-
214
|
|
246
|
-
]
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
"errors": [
|
|
250
|
-
{
|
|
251
|
-
"code": 6000,
|
|
252
|
-
"name": "unauthorized",
|
|
253
|
-
"msg": "Unauthorized access"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"code": 6001,
|
|
257
|
-
"name": "maxValidatorsReached",
|
|
258
|
-
"msg": "Maximum validators reached"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"code": 6002,
|
|
262
|
-
"name": "validatorAlreadyExists",
|
|
263
|
-
"msg": "Validator already exists"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"code": 6003,
|
|
267
|
-
"name": "validatorNotFound",
|
|
268
|
-
"msg": "Validator not found"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"code": 6004,
|
|
272
|
-
"name": "invalidStakeUpdateType",
|
|
273
|
-
"msg": "Invalid stake update type"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"code": 6005,
|
|
277
|
-
"name": "invalidVoteAccount",
|
|
278
|
-
"msg": "Invalid vote account provided"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"code": 6006,
|
|
282
|
-
"name": "invalidInputLength",
|
|
283
|
-
"msg": "Invalid input length - all vectors must have same length"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"code": 6007,
|
|
287
|
-
"name": "invalidStakeAccount",
|
|
288
|
-
"msg": "Invalid Stake Account"
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
"types": [
|
|
292
|
-
{
|
|
293
|
-
"name": "validatorInfo",
|
|
294
|
-
"type": {
|
|
295
|
-
"kind": "struct",
|
|
296
|
-
"fields": [
|
|
297
|
-
{
|
|
298
|
-
"name": "voteAccount",
|
|
299
|
-
"type": "pubkey"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"name": "name",
|
|
303
|
-
"type": {
|
|
304
|
-
"array": [
|
|
305
|
-
"u8",
|
|
306
|
-
32
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "performanceScore",
|
|
312
|
-
"type": "u32"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "activeStake",
|
|
316
|
-
"type": "u64"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"name": "activatingStake",
|
|
320
|
-
"type": "u64"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"name": "deactivatingStake",
|
|
324
|
-
"type": "u64"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"name": "commission",
|
|
328
|
-
"type": "u64"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"name": "lastUpdatedEpoch",
|
|
332
|
-
"type": "u64"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"name": "initialStake",
|
|
336
|
-
"type": "u64"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"name": "previousEpochActiveStake",
|
|
340
|
-
"type": "u64"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"name": "previousEpochSnapshot",
|
|
344
|
-
"type": "u64"
|
|
345
|
-
}
|
|
346
|
-
]
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"name": "validatorMetrics",
|
|
351
|
-
"type": {
|
|
352
|
-
"kind": "struct",
|
|
353
|
-
"fields": [
|
|
354
|
-
{
|
|
355
|
-
"name": "commission",
|
|
356
|
-
"type": "u8"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"name": "skipRateBps",
|
|
360
|
-
"type": "u32"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"name": "isDelinquent",
|
|
364
|
-
"type": "bool"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"name": "activatedStake",
|
|
368
|
-
"type": "u64"
|
|
369
|
-
}
|
|
370
|
-
]
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"name": "validatorRegistry",
|
|
375
|
-
"type": {
|
|
376
|
-
"kind": "struct",
|
|
377
|
-
"fields": [
|
|
378
|
-
{
|
|
379
|
-
"name": "authority",
|
|
380
|
-
"type": "pubkey"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"name": "validators",
|
|
384
|
-
"type": {
|
|
385
|
-
"vec": {
|
|
386
|
-
"defined": {
|
|
387
|
-
"name": "validatorInfo"
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"name": "lastUpdateEpoch",
|
|
394
|
-
"type": "u64"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"name": "bump",
|
|
398
|
-
"type": "u8"
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"name": "validatorsSyncedEvent",
|
|
405
|
-
"type": {
|
|
406
|
-
"kind": "struct",
|
|
407
|
-
"fields": [
|
|
408
|
-
{
|
|
409
|
-
"name": "updatedCount",
|
|
410
|
-
"type": "u32"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"name": "notFoundCount",
|
|
414
|
-
"type": "u32"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"name": "epoch",
|
|
418
|
-
"type": "u64"
|
|
419
|
-
}
|
|
420
|
-
]
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
]
|
|
424
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
3
|
-
*
|
|
4
|
-
* Note that this is only a type helper and is not the actual IDL. The original
|
|
5
|
-
* IDL can be found at `target/idl/yield_oracle.json`.
|
|
6
|
-
*/
|
|
7
|
-
export type YieldOracle = {
|
|
8
|
-
"address": "ABMUzgJCoJ17WPYvxZg4Biuo5oCaEbuD4svUVGFBTWCz",
|
|
9
|
-
"metadata": {
|
|
10
|
-
"name": "yieldOracle",
|
|
11
|
-
"version": "0.1.0",
|
|
12
|
-
"spec": "0.1.0",
|
|
13
|
-
"description": "Created with Anchor"
|
|
14
|
-
},
|
|
15
|
-
"instructions": [
|
|
16
|
-
{
|
|
17
|
-
"name": "calculateYieldPerSol",
|
|
18
|
-
"discriminator": [
|
|
19
|
-
51,
|
|
20
|
-
25,
|
|
21
|
-
150,
|
|
22
|
-
38,
|
|
23
|
-
173,
|
|
24
|
-
32,
|
|
25
|
-
27,
|
|
26
|
-
202
|
|
27
|
-
],
|
|
28
|
-
"accounts": [
|
|
29
|
-
{
|
|
30
|
-
"name": "systemProgram",
|
|
31
|
-
"address": "11111111111111111111111111111111"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"args": [],
|
|
35
|
-
"returns": "u64"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { AnchorProvider } from '@coral-xyz/anchor';
|
|
2
|
-
import { BN } from '@coral-xyz/anchor';
|
|
3
|
-
import {
|
|
4
|
-
PublicKey,
|
|
5
|
-
Transaction,
|
|
6
|
-
SystemProgram,
|
|
7
|
-
SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
8
|
-
SYSVAR_CLOCK_PUBKEY,
|
|
9
|
-
SYSVAR_RENT_PUBKEY,
|
|
10
|
-
SYSVAR_STAKE_HISTORY_PUBKEY,
|
|
11
|
-
StakeProgram,
|
|
12
|
-
ComputeBudgetProgram,
|
|
13
|
-
VersionedTransaction,
|
|
14
|
-
Signer,
|
|
15
|
-
TransactionSignature,
|
|
16
|
-
} from '@solana/web3.js';
|
|
17
|
-
import {
|
|
18
|
-
TOKEN_2022_PROGRAM_ID,
|
|
19
|
-
ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
20
|
-
} from '@solana/spl-token';
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
deriveDepositAuthorityPDA,
|
|
24
|
-
deriveLiqsolMintAuthorityPDA,
|
|
25
|
-
deriveStakeControllerVaultPDA,
|
|
26
|
-
deriveStakeControllerReservePoolPDA,
|
|
27
|
-
deriveStakeControllerStatePDA,
|
|
28
|
-
deriveDistributionStatePDA,
|
|
29
|
-
deriveUserRecordPDA,
|
|
30
|
-
getUserLiqsolATA,
|
|
31
|
-
} from '../utils';
|
|
32
|
-
import {
|
|
33
|
-
LIQSOL_MINT_ADDRESS,
|
|
34
|
-
TREASURY_WALLET_PDA,
|
|
35
|
-
STAKE_CONTROLLER_PROGRAM_ID,
|
|
36
|
-
LIQSOL_TOKEN_PROGRAM_ID,
|
|
37
|
-
YIELD_ORACLE_PROGRAM_ID,
|
|
38
|
-
DISTRIBUTION_PROGRAM_ID,
|
|
39
|
-
MIN_SOL_TO_PARTICIPATE,
|
|
40
|
-
} from '../constants';
|
|
41
|
-
import { SolanaProgramService } from '../program';
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* DepositClient provides methods for building, simulating, and sending deposit transactions
|
|
45
|
-
* to the Solana blockchain using the Anchor framework. It handles the creation of ephemeral
|
|
46
|
-
* stake accounts, derives necessary PDAs and ATAs, and manages transaction construction
|
|
47
|
-
* with compute budget adjustments. This client is designed to facilitate deposits into
|
|
48
|
-
* the Liqsol staking protocol, ensuring all required accounts and instructions are included.
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* - Uses AnchorProvider for network interactions.
|
|
52
|
-
* - Enforces minimum deposit requirements.
|
|
53
|
-
* - Supports dry-run simulation for transaction debugging.
|
|
54
|
-
* - Provides high-level helper for building and sending deposit transactions.
|
|
55
|
-
*/
|
|
56
|
-
export class DepositClient {
|
|
57
|
-
private program = new SolanaProgramService(this.provider);
|
|
58
|
-
|
|
59
|
-
constructor(private provider: AnchorProvider) { }
|
|
60
|
-
|
|
61
|
-
/** Minimum lamports (1 SOL) */
|
|
62
|
-
static readonly MIN_DEPOSIT = MIN_SOL_TO_PARTICIPATE;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Build the deposit transaction (compute-budget bump + deposit Ix).
|
|
66
|
-
* Returns both the Transaction and the ephemeral stake account Pubkey.
|
|
67
|
-
*/
|
|
68
|
-
async buildDepositTx(
|
|
69
|
-
user: PublicKey,
|
|
70
|
-
amount: number
|
|
71
|
-
): Promise<{ transaction: Transaction; ephemeralStakePubkey: PublicKey }> {
|
|
72
|
-
if (amount < MIN_SOL_TO_PARTICIPATE) {
|
|
73
|
-
throw new Error(
|
|
74
|
-
`Minimum deposit is ${MIN_SOL_TO_PARTICIPATE / 1e9} SOL`
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// 1) grab your typed Anchor program
|
|
79
|
-
const program = this.program.getProgram('deposit');
|
|
80
|
-
|
|
81
|
-
// 2) PDAs & ATAs
|
|
82
|
-
const userAta = getUserLiqsolATA(user);
|
|
83
|
-
const [depositAuthPDA] = deriveDepositAuthorityPDA();
|
|
84
|
-
const [mintAuthPDA] = deriveLiqsolMintAuthorityPDA();
|
|
85
|
-
const [vaultPDA] = deriveStakeControllerVaultPDA();
|
|
86
|
-
const [reservePoolPDA] = deriveStakeControllerReservePoolPDA();
|
|
87
|
-
const [controllerStatePDA] = deriveStakeControllerStatePDA();
|
|
88
|
-
const [distStatePDA] = deriveDistributionStatePDA();
|
|
89
|
-
const [userRecordPDA] = deriveUserRecordPDA(user);
|
|
90
|
-
|
|
91
|
-
// 3) ephemeral stake account
|
|
92
|
-
const seed = Math.floor(Math.random() * 0xffffffff);
|
|
93
|
-
const ephemeralSeed = `ephemeral_${seed}`;
|
|
94
|
-
const ephemeralStakePubkey = await PublicKey.createWithSeed(
|
|
95
|
-
user,
|
|
96
|
-
ephemeralSeed,
|
|
97
|
-
StakeProgram.programId
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
// 4) build deposit instruction
|
|
101
|
-
const depositIx = await program.methods
|
|
102
|
-
.deposit(new BN(amount), seed)
|
|
103
|
-
.accounts({
|
|
104
|
-
user,
|
|
105
|
-
programAuthority: depositAuthPDA,
|
|
106
|
-
treasuryWallet: TREASURY_WALLET_PDA,
|
|
107
|
-
systemProgram: SystemProgram.programId,
|
|
108
|
-
tokenProgram: TOKEN_2022_PROGRAM_ID,
|
|
109
|
-
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
|
110
|
-
stakeControllerProgram: STAKE_CONTROLLER_PROGRAM_ID,
|
|
111
|
-
liqsolProgram: LIQSOL_TOKEN_PROGRAM_ID,
|
|
112
|
-
yieldOracleProgram: YIELD_ORACLE_PROGRAM_ID,
|
|
113
|
-
stakeProgram: StakeProgram.programId,
|
|
114
|
-
distributionProgram: DISTRIBUTION_PROGRAM_ID,
|
|
115
|
-
liqsolMint: LIQSOL_MINT_ADDRESS,
|
|
116
|
-
userAta,
|
|
117
|
-
liqsolMintAuthority: mintAuthPDA,
|
|
118
|
-
reservePool: reservePoolPDA,
|
|
119
|
-
vault: vaultPDA,
|
|
120
|
-
ephemeralStake: ephemeralStakePubkey,
|
|
121
|
-
controllerState: controllerStatePDA,
|
|
122
|
-
userRecord: userRecordPDA,
|
|
123
|
-
distributionState: distStatePDA,
|
|
124
|
-
instructionsSysvar: SYSVAR_INSTRUCTIONS_PUBKEY,
|
|
125
|
-
clock: SYSVAR_CLOCK_PUBKEY,
|
|
126
|
-
stakeHistory: SYSVAR_STAKE_HISTORY_PUBKEY,
|
|
127
|
-
rent: SYSVAR_RENT_PUBKEY,
|
|
128
|
-
} as any)
|
|
129
|
-
.instruction();
|
|
130
|
-
|
|
131
|
-
// 5) prepend compute-budget bump
|
|
132
|
-
const computeIx = ComputeBudgetProgram.setComputeUnitLimit({
|
|
133
|
-
units: 400_000,
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
const tx = new Transaction().add(computeIx, depositIx);
|
|
137
|
-
return { transaction: tx, ephemeralStakePubkey };
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Simulate (dry-run) a built transaction.
|
|
142
|
-
* Returns any error plus the total compute-units consumed.
|
|
143
|
-
*/
|
|
144
|
-
async simulate(
|
|
145
|
-
tx: Transaction
|
|
146
|
-
): Promise<{ err: any; unitsConsumed: number }> {
|
|
147
|
-
tx.feePayer = this.provider.wallet.publicKey;
|
|
148
|
-
const { blockhash } = await this.provider.connection.getLatestBlockhash();
|
|
149
|
-
tx.recentBlockhash = blockhash;
|
|
150
|
-
|
|
151
|
-
const versioned = new VersionedTransaction(tx.compileMessage());
|
|
152
|
-
const sim = await this.provider.connection.simulateTransaction(
|
|
153
|
-
versioned,
|
|
154
|
-
{ sigVerify: false }
|
|
155
|
-
);
|
|
156
|
-
return { err: sim.value.err, unitsConsumed: sim.value.unitsConsumed! };
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* High-level “build & send” helper.
|
|
161
|
-
* Returns the confirmed signature.
|
|
162
|
-
*/
|
|
163
|
-
async deposit(
|
|
164
|
-
user: PublicKey,
|
|
165
|
-
amount: number,
|
|
166
|
-
signers: Signer[] = []
|
|
167
|
-
): Promise<TransactionSignature> {
|
|
168
|
-
const { transaction } = await this.buildDepositTx(user, amount);
|
|
169
|
-
|
|
170
|
-
// set feePayer & recent blockhash
|
|
171
|
-
transaction.feePayer = this.provider.wallet.publicKey;
|
|
172
|
-
const { blockhash } = await this.provider.connection.getLatestBlockhash();
|
|
173
|
-
transaction.recentBlockhash = blockhash;
|
|
174
|
-
|
|
175
|
-
// send + confirm
|
|
176
|
-
return this.provider.sendAndConfirm(transaction, signers);
|
|
177
|
-
}
|
|
178
|
-
}
|
package/src/staker/staker.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// src/staker/staker.ts
|
|
2
|
-
|
|
3
|
-
import { ChainID, Curve, EvmChainID, SolChainID } from '@wireio/core';
|
|
4
|
-
import { IStakingClient, StakeBalance, StakerConfig } from './types';
|
|
5
|
-
import { SolanaStakingClient } from '../networks/solana/solana';
|
|
6
|
-
import { EthereumStakingClient } from '../networks/ethereum/ethereum';
|
|
7
|
-
|
|
8
|
-
export class Staker {
|
|
9
|
-
private clients: Map<ChainID, IStakingClient> = new Map();
|
|
10
|
-
|
|
11
|
-
constructor(config: StakerConfig | StakerConfig[]) {
|
|
12
|
-
if (!Array.isArray(config)) config = [config];
|
|
13
|
-
|
|
14
|
-
config.forEach((cfg) => {
|
|
15
|
-
switch (cfg.network.chainId) {
|
|
16
|
-
case SolChainID.WireTestnet:
|
|
17
|
-
this.clients.set(cfg.network.chainId, new SolanaStakingClient(cfg));
|
|
18
|
-
break;
|
|
19
|
-
|
|
20
|
-
// case EvmChainID.Sepolia:
|
|
21
|
-
// this.clients.set(EvmChainID.Sepolia, new EthereumStakingClient(cfg));
|
|
22
|
-
// break;
|
|
23
|
-
default:
|
|
24
|
-
throw new Error(`Unsupported network curve: ${cfg.network.name}`);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** Return the raw client (if any) for a chain */
|
|
30
|
-
getClient(chainId: ChainID): IStakingClient | undefined {
|
|
31
|
-
return this.clients.get(chainId);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** Convenience: ensure a client exists or throw a friendly error */
|
|
35
|
-
private ensureClient(chainId: ChainID): IStakingClient {
|
|
36
|
-
const c = this.clients.get(chainId);
|
|
37
|
-
if (!c) throw new Error(`Staker not initialized for chain ${chainId}`);
|
|
38
|
-
return c;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Deposit funds into the staking pool.
|
|
43
|
-
* @param chainId The chain ID to deposit into.
|
|
44
|
-
* @param amount The amount to deposit (in smallest unit i.e. Lamport or Wei).
|
|
45
|
-
* @returns The transaction signature.
|
|
46
|
-
*/
|
|
47
|
-
deposit(chainId: ChainID, amount: number): Promise<string> {
|
|
48
|
-
return this.ensureClient(chainId).deposit(amount);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
getBalance(chainId: ChainID): Promise<StakeBalance> {
|
|
52
|
-
return this.ensureClient(chainId).setBalances();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// …withdraw, claimRewards, etc…
|
|
56
|
-
}
|