@wireio/stake 2.7.4 → 3.0.0
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 +34 -15
- package/lib/stake.browser.js +50561 -13484
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +564 -15719
- package/lib/stake.js +47546 -10288
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +50561 -13484
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/evm/hoodi/.gitkeep +1 -0
- package/src/assets/evm/monad-testnet/.gitkeep +0 -0
- package/src/assets/evm/polygon-amoy/.gitkeep +0 -0
- package/src/assets/evm/wiredev/common/Base58.sol/Base58.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/Base58.sol/Base58.json +164 -0
- package/src/assets/evm/wiredev/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.json +76 -0
- package/src/assets/evm/wiredev/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/RestrictedCallers.sol/RestrictedCallers.json +10 -0
- package/src/assets/evm/wiredev/common/iodata.sol/iodata.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/iodata.sol/iodata.json +618 -0
- package/src/assets/evm/wiredev/common/iodata_util.sol/iodata_util.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/iodata_util.sol/iodata_util.json +40 -0
- package/src/assets/evm/wiredev/common/sysio_data.sol/sysio_data.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_data.sol/sysio_data.json +10 -0
- package/src/assets/evm/wiredev/common/sysio_errors.sol/sysio_errors.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_errors.sol/sysio_errors.json +10 -0
- package/src/assets/evm/wiredev/common/sysio_merkle.sol/sysio_merkle.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_merkle.sol/sysio_merkle.json +233 -0
- package/src/assets/evm/wiredev/common/sysio_name.sol/sysio_name.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_name.sol/sysio_name.json +49 -0
- package/src/assets/evm/wiredev/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_pubkey.sol/sysio_pubkey.json +64 -0
- package/src/assets/evm/wiredev/common/sysio_read.sol/sysio_read.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_read.sol/sysio_read.json +1458 -0
- package/src/assets/evm/wiredev/common/sysio_tester.sol/SysioTester.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_tester.sol/SysioTester.json +1532 -0
- package/src/assets/evm/wiredev/common/sysio_verify.sol/sysio_verify.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_verify.sol/sysio_verify.json +1525 -0
- package/src/assets/evm/wiredev/common/sysio_write.sol/sysio_write.dbg.json +4 -0
- package/src/assets/evm/wiredev/common/sysio_write.sol/sysio_write.json +1076 -0
- package/src/assets/evm/wiredev/liqEth/BeaconState.sol/BeaconState.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/BeaconState.sol/BeaconState.json +807 -0
- package/src/assets/evm/wiredev/liqEth/DepositManager.sol/DepositManagerV2.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/DepositManager.sol/DepositManagerV2.json +985 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthAuthority.sol/LiqEthAuthority.json +1289 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IAccounting.json +182 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IDepositContract.json +39 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IDepositManager.json +64 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.json +29 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IRewardsERC20.json +319 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.json +333 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IStakingModule.json +344 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.json +129 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/IWithdrawalRecord.json +66 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthCommon.sol/LiqEthCommon.json +10 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.json +236 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/LiqEthManaged.sol/LiqEthManaged.json +229 -0
- package/src/assets/evm/wiredev/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.json +957 -0
- package/src/assets/evm/wiredev/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.json +1020 -0
- package/src/assets/evm/wiredev/liqEth/Yield.sol/YieldOracle.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/Yield.sol/YieldOracle.json +1376 -0
- package/src/assets/evm/wiredev/liqEth/accounting.sol/AccountingV2.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/accounting.sol/AccountingV2.json +629 -0
- package/src/assets/evm/wiredev/liqEth/liqEth.sol/LiqEthTokenV2.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/liqEth.sol/LiqEthTokenV2.json +1323 -0
- package/src/assets/evm/wiredev/liqEth/stakingModule.sol/StakingModuleV2.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/stakingModule.sol/StakingModuleV2.json +1779 -0
- package/src/assets/evm/wiredev/liqEth/v1/DepositManager.sol/DepositManager.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/DepositManager.sol/DepositManager.json +978 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IAccounting.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IAccounting.json +176 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IDepositContract.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IDepositContract.json +39 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IDepositManager.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IDepositManager.json +64 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.json +29 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.json +249 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.json +263 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IStakingModule.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IStakingModule.json +344 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.json +129 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.json +66 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.json +10 -0
- package/src/assets/evm/wiredev/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.json +874 -0
- package/src/assets/evm/wiredev/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.json +937 -0
- package/src/assets/evm/wiredev/liqEth/v1/accounting.sol/Accounting.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/accounting.sol/Accounting.json +548 -0
- package/src/assets/evm/wiredev/liqEth/v1/liqEth.sol/LiqEthToken.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/liqEth.sol/LiqEthToken.json +1233 -0
- package/src/assets/evm/wiredev/liqEth/v1/stakingModule.sol/StakingModule.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/v1/stakingModule.sol/StakingModule.json +1772 -0
- package/src/assets/evm/wiredev/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +973 -0
- package/src/assets/evm/wiredev/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/withdrawalVault.sol/Uint64BE.json +10 -0
- package/src/assets/evm/wiredev/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +4 -0
- package/src/assets/evm/wiredev/liqEth/withdrawalVault.sol/WithdrawalVault.json +441 -0
- package/src/assets/evm/wiredev/outpost/BAR.sol/BAR.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/BAR.sol/BAR.json +1154 -0
- package/src/assets/evm/wiredev/outpost/Depositor.sol/Depositor.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/Depositor.sol/Depositor.json +1633 -0
- package/src/assets/evm/wiredev/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.json +122 -0
- package/src/assets/evm/wiredev/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +274 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeDepositCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawConfirmCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawFailedCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/BridgeWithdrawFailedCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/InstaswapBridgeAttestations.sol/InstaswapBridgeAttestationTypeLib.json +10 -0
- package/src/assets/evm/wiredev/outpost/LiqEthBridge.sol/IDepositorBridgeHooks.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/LiqEthBridge.sol/IDepositorBridgeHooks.json +29 -0
- package/src/assets/evm/wiredev/outpost/LiqEthBridge.sol/LiqEthBridge.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/LiqEthBridge.sol/LiqEthBridge.json +1076 -0
- package/src/assets/evm/wiredev/outpost/OPP.sol/OPP.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPP.sol/OPP.json +1098 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPP.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPP.json +81 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPEndpoint.json +29 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPInbound.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPInbound.json +330 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPReceiver.json +29 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPSender.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/IOPPSender.json +41 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/OPPCommon.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPCommon.sol/OPPCommon.json +287 -0
- package/src/assets/evm/wiredev/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPEndpoint.sol/OPPEndpoint.json +337 -0
- package/src/assets/evm/wiredev/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +458 -0
- package/src/assets/evm/wiredev/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +442 -0
- package/src/assets/evm/wiredev/outpost/OPPErrors.sol/OPPErrors.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPErrors.sol/OPPErrors.json +288 -0
- package/src/assets/evm/wiredev/outpost/OPPInbound.sol/OPPInbound.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPInbound.sol/OPPInbound.json +1298 -0
- package/src/assets/evm/wiredev/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPReceiver.sol/OPPReceiver.json +355 -0
- package/src/assets/evm/wiredev/outpost/OPPSender.sol/OPPSender.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OPPSender.sol/OPPSender.json +367 -0
- package/src/assets/evm/wiredev/outpost/OperatorRegistry.sol/OperatorRegistry.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OperatorRegistry.sol/OperatorRegistry.json +1111 -0
- package/src/assets/evm/wiredev/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostErrors.sol/OutpostErrors.json +211 -0
- package/src/assets/evm/wiredev/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostManaged.sol/OutpostManaged.json +229 -0
- package/src/assets/evm/wiredev/outpost/OutpostManager.sol/OutpostManager.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostManager.sol/OutpostManager.json +794 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +1432 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerCommon.sol/IOutpostManager.json +130 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.json +29 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +141 -0
- package/src/assets/evm/wiredev/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostOwnable.sol/OutpostOwnable.json +213 -0
- package/src/assets/evm/wiredev/outpost/OutpostReserve.sol/OutpostReserve.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/OutpostReserve.sol/OutpostReserve.json +931 -0
- package/src/assets/evm/wiredev/outpost/Pool.sol/Pool.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/Pool.sol/Pool.json +659 -0
- package/src/assets/evm/wiredev/outpost/Pretoken.sol/Pretoken.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/Pretoken.sol/Pretoken.json +1436 -0
- package/src/assets/evm/wiredev/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/ReceiptNFT.sol/ReceiptNFT.json +1738 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapConfirmCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapFailedCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapRequestCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/InstaswapSettlementCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalExitConfirmCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalExitFailedCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalExitRequestCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/PrincipalStakeDeltaCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/WireYieldHubAssetCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestationTypeLib.json +10 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/WireYieldHubAttestations.json +1437 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/WireYieldHubAttestations.sol/YieldDepositCodec.json +10 -0
- package/src/assets/evm/wiredev/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/interfaces/IPretoken.sol/IPretoken.json +29 -0
- package/src/assets/evm/wiredev/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/interfaces/IWarrant.sol/IWarrant.json +29 -0
- package/src/assets/evm/wiredev/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.json +858 -0
- package/src/assets/evm/wiredev/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +4 -0
- package/src/assets/evm/wiredev/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.json +30 -0
- package/src/assets/evm/wiredev/token/ERC1155Token.sol/ERC1155Token.dbg.json +4 -0
- package/src/assets/evm/wiredev/token/ERC1155Token.sol/ERC1155Token.json +472 -0
- package/src/assets/evm/wiredev/token/ERC20Token.sol/ERC20Token.dbg.json +4 -0
- package/src/assets/evm/wiredev/token/ERC20Token.sol/ERC20Token.json +330 -0
- package/src/assets/evm/wiredev/token/ERC721Token.sol/ERC721Token.dbg.json +4 -0
- package/src/assets/evm/wiredev/token/ERC721Token.sol/ERC721Token.json +449 -0
- package/src/assets/evm/wiredev/token/Eman1155.sol/Eman1155.dbg.json +4 -0
- package/src/assets/evm/wiredev/token/Eman1155.sol/Eman1155.json +560 -0
- package/src/assets/evm/wiredev/token/Eman20.sol/Eman20.dbg.json +4 -0
- package/src/assets/evm/wiredev/token/Eman20.sol/Eman20.json +460 -0
- package/src/assets/evm/wiredev/token/Eman721.sol/Eman721.dbg.json +4 -0
- package/src/assets/evm/wiredev/token/Eman721.sol/Eman721.json +624 -0
- package/src/assets/solana/mainnet/idl/validator_leaderboard.json.bak +568 -0
- package/src/assets/solana/wiredev/idl/liqsol_core.json +8726 -0
- package/src/assets/solana/wiredev/idl/liqsol_token.json +217 -0
- package/src/assets/solana/wiredev/idl/transfer_hook.json +490 -0
- package/src/assets/solana/wiredev/idl/validator_leaderboard.json +735 -0
- package/src/assets/solana/wiredev/types/liqsol_core.ts +8732 -0
- package/src/assets/solana/wiredev/types/liqsol_token.ts +223 -0
- package/src/assets/solana/wiredev/types/transfer_hook.ts +496 -0
- package/src/assets/solana/wiredev/types/validator_leaderboard.ts +741 -0
- package/src/chains.ts +165 -0
- package/src/index.ts +7 -3
- package/src/networks/{ethereum → evm}/clients/convert.client.ts +8 -3
- package/src/networks/evm/clients/instaswap.client.ts +440 -0
- package/src/networks/{ethereum → evm}/clients/opp.client.ts +3 -3
- package/src/networks/{ethereum → evm}/clients/pretoken.client.ts +11 -6
- package/src/networks/{ethereum → evm}/clients/receipt.client.ts +3 -3
- package/src/networks/{ethereum → evm}/clients/stake.client.ts +144 -20
- package/src/networks/{ethereum → evm}/clients/validator.client.ts +3 -3
- package/src/networks/{ethereum → evm}/contract.ts +207 -116
- package/src/networks/{ethereum/ethereum.ts → evm/evm.ts} +214 -68
- package/src/networks/{ethereum → evm}/utils.ts +56 -4
- package/src/networks/solana/clients/convert.client.ts +47 -11
- package/src/networks/solana/clients/distribution.client.ts +17 -13
- package/src/networks/solana/clients/instaswap.client.ts +486 -0
- package/src/networks/solana/clients/leaderboard.client.ts +4 -5
- package/src/networks/solana/clients/outpost.client.ts +110 -47
- package/src/networks/solana/clients/token.client.ts +20 -11
- package/src/networks/solana/constants.ts +27 -7
- package/src/networks/solana/program.ts +104 -19
- package/src/networks/solana/solana.ts +145 -15
- package/src/networks/solana/types.ts +1 -2
- package/src/networks/solana/utils.ts +36 -4
- package/src/staker.ts +22 -20
- package/src/status.ts +301 -0
- package/src/types.ts +6 -11
- /package/src/assets/{ethereum → evm}/mainnet/common/Base58.sol/Base58.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/Base58.sol/Base58.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/RestrictedCallers.sol/RestrictedCallers.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/iodata.sol/iodata.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/iodata.sol/iodata.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/iodata_util.sol/iodata_util.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/iodata_util.sol/iodata_util.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_data.sol/sysio_data.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_data.sol/sysio_data.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_errors.sol/sysio_errors.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_errors.sol/sysio_errors.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_merkle.sol/sysio_merkle.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_merkle.sol/sysio_merkle.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_name.sol/sysio_name.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_name.sol/sysio_name.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_pubkey.sol/sysio_pubkey.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_read.sol/sysio_read.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_read.sol/sysio_read.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_tester.sol/SysioTester.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_tester.sol/SysioTester.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_verify.sol/sysio_verify.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_verify.sol/sysio_verify.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_write.sol/sysio_write.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/common/sysio_write.sol/sysio_write.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/BeaconState.sol/BeaconState.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/BeaconState.sol/BeaconState.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/DepositManager.sol/DepositManagerV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/DepositManager.sol/DepositManagerV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/DepositManager.sol/IStakingModuleBondLocker.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/DepositManager.sol/IStakingModuleBondLocker.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/KeyBondManager.sol/KeyBondManager.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/KeyBondManager.sol/KeyBondManager.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthAuthority.sol/LiqEthAuthority.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IDepositContract.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IDepositManager.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IKeyBondManager.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IKeyBondManager.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IStakingModule.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/IWithdrawalRecord.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthCommon.sol/LiqEthCommon.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/LiqEthManaged.sol/LiqEthManaged.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/StakingLib.sol/StakingLib.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/StakingLib.sol/StakingLib.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/Yield.sol/YieldOracle.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/Yield.sol/YieldOracle.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/liqEth.sol/LiqEthTokenV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/liqEth.sol/LiqEthTokenV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/stakingModule.sol/StakingModuleV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/stakingModule.sol/StakingModuleV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/DepositManager.sol/DepositManager.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/DepositManager.sol/DepositManager.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IAccounting.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IAccounting.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositContract.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositContract.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositManager.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IDepositManager.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IStakingModule.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IStakingModule.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/accounting.sol/Accounting.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/accounting.sol/Accounting.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/liqEth.sol/LiqEthToken.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/liqEth.sol/LiqEthToken.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/stakingModule.sol/StakingModule.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/v1/stakingModule.sol/StakingModule.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/withdrawalVault.sol/Uint64BE.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/liqEth/withdrawalVault.sol/WithdrawalVault.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/BAR.sol/BARV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/BAR.sol/BARV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/Depositor.sol/DepositorV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/Depositor.sol/DepositorV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPP.sol/OPP.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPP.sol/OPP.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPP.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPP.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPEndpoint.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPInbound.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPInbound.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPReceiver.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPSender.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/IOPPSender.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/OPPCommon.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPCommon.sol/OPPCommon.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPEndpoint.sol/OPPEndpoint.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPErrors.sol/OPPErrors.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPErrors.sol/OPPErrors.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPInbound.sol/OPPInbound.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPInbound.sol/OPPInbound.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPReceiver.sol/OPPReceiver.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPSender.sol/OPPSender.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OPPSender.sol/OPPSender.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostErrors.sol/OutpostErrors.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManaged.sol/OutpostManaged.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManager.sol/OutpostManagerV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManager.sol/OutpostManagerV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerCommon.sol/IOutpostManager.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/OutpostOwnable.sol/OutpostOwnable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/Pool.sol/PoolV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/Pool.sol/PoolV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/Pretoken.sol/PretokenV2.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/Pretoken.sol/PretokenV2.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/ReceiptNFT.sol/ReceiptNFT.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/interfaces/IPretoken.sol/IPretoken.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/interfaces/IWarrant.sol/IWarrant.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/BAR.sol/BAR.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/BAR.sol/BAR.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/Depositor.sol/Depositor.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/Depositor.sol/Depositor.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/OutpostManager.sol/OutpostManager.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/OutpostManager.sol/OutpostManager.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/Pool.sol/Pool.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/Pool.sol/Pool.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/Pretoken.sol/Pretoken.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/outpost/v1/Pretoken.sol/Pretoken.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/token/ERC1155Token.sol/ERC1155Token.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/token/ERC1155Token.sol/ERC1155Token.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/token/ERC20Token.sol/ERC20Token.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/token/ERC20Token.sol/ERC20Token.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/token/ERC721Token.sol/ERC721Token.dbg.json +0 -0
- /package/src/assets/{ethereum → evm}/mainnet/token/ERC721Token.sol/ERC721Token.json +0 -0
- /package/src/networks/{ethereum → evm}/types.ts +0 -0
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @module
|
|
2
|
+
* @module EvmContractService
|
|
3
3
|
*
|
|
4
4
|
* Provides a unified service for interacting with Ethereum smart contracts using ethers.js.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Mainnet artifacts
|
|
8
|
-
import MainnetAccountingArtifact from '../../assets/
|
|
9
|
-
import MainnetDepositManagerArtifact from '../../assets/
|
|
10
|
-
import MainnetLiqEthArtifact from '../../assets/
|
|
11
|
-
import MainnetStakingModuleArtifact from '../../assets/
|
|
12
|
-
import MainnetWithdrawalQueueArtifact from '../../assets/
|
|
13
|
-
import MainnetWithdrawalVaultArtifact from '../../assets/
|
|
14
|
-
import MainnetBeaconStateArtifact from '../../assets/
|
|
15
|
-
import MainnetYieldOracleArtifact from '../../assets/
|
|
16
|
-
import MainnetDepositorArtifact from '../../assets/
|
|
17
|
-
import MainnetReceiptNFTArtifact from '../../assets/
|
|
18
|
-
import MainnetOutpostManagerArtifact from '../../assets/
|
|
19
|
-
import MainnetBARArtifact from '../../assets/
|
|
20
|
-
import MainnetOPPArtifact from '../../assets/
|
|
21
|
-
import MainnetOPPCommonArtifact from '../../assets/
|
|
22
|
-
import MainnetOPPInboundArtifact from '../../assets/
|
|
23
|
-
import MainnetPretokenArtifact from '../../assets/
|
|
24
|
-
import MainnetEthUsdPriceConsumerArtifact from '../../assets/
|
|
25
|
-
import MainnetPoolArtifact from '../../assets/
|
|
26
|
-
import MainnetOutpostManagerAuthorityArtifact from '../../assets/
|
|
27
|
-
import MainnetIodataArtifact from '../../assets/
|
|
28
|
-
import MainnetBase58Artifact from '../../assets/
|
|
29
|
-
import MainnetSysioMerkleArtifact from '../../assets/
|
|
30
|
-
import MainnetSysioWriteArtifact from '../../assets/
|
|
31
|
-
import MainnetERC20Artifact from '../../assets/
|
|
32
|
-
import MainnetERC721Artifact from '../../assets/
|
|
33
|
-
import MainnetERC1155Artifact from '../../assets/
|
|
34
|
-
|
|
35
|
-
//
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
8
|
+
import MainnetAccountingArtifact from '../../assets/evm/mainnet/liqEth/v1/accounting.sol/Accounting.json';
|
|
9
|
+
import MainnetDepositManagerArtifact from '../../assets/evm/mainnet/liqEth/v1/DepositManager.sol/DepositManager.json';
|
|
10
|
+
import MainnetLiqEthArtifact from '../../assets/evm/mainnet/liqEth/v1/liqEth.sol/LiqEthToken.json';
|
|
11
|
+
import MainnetStakingModuleArtifact from '../../assets/evm/mainnet/liqEth/v1/stakingModule.sol/StakingModule.json';
|
|
12
|
+
import MainnetWithdrawalQueueArtifact from '../../assets/evm/mainnet/liqEth/withdrawalQueue.sol/WithdrawalQueue.json';
|
|
13
|
+
import MainnetWithdrawalVaultArtifact from '../../assets/evm/mainnet/liqEth/withdrawalVault.sol/WithdrawalVault.json';
|
|
14
|
+
import MainnetBeaconStateArtifact from '../../assets/evm/mainnet/liqEth/BeaconState.sol/BeaconState.json';
|
|
15
|
+
import MainnetYieldOracleArtifact from '../../assets/evm/mainnet/liqEth/Yield.sol/YieldOracle.json';
|
|
16
|
+
import MainnetDepositorArtifact from '../../assets/evm/mainnet/outpost/Depositor.sol/DepositorV2.json';
|
|
17
|
+
import MainnetReceiptNFTArtifact from '../../assets/evm/mainnet/outpost/ReceiptNFT.sol/ReceiptNFT.json';
|
|
18
|
+
import MainnetOutpostManagerArtifact from '../../assets/evm/mainnet/outpost/OutpostManager.sol/OutpostManagerV2.json';
|
|
19
|
+
import MainnetBARArtifact from '../../assets/evm/mainnet/outpost/BAR.sol/BARV2.json';
|
|
20
|
+
import MainnetOPPArtifact from '../../assets/evm/mainnet/outpost/OPP.sol/OPP.json';
|
|
21
|
+
import MainnetOPPCommonArtifact from '../../assets/evm/mainnet/outpost/OPPCommon.sol/OPPCommon.json';
|
|
22
|
+
import MainnetOPPInboundArtifact from '../../assets/evm/mainnet/outpost/OPPInbound.sol/OPPInbound.json';
|
|
23
|
+
import MainnetPretokenArtifact from '../../assets/evm/mainnet/outpost/Pretoken.sol/PretokenV2.json';
|
|
24
|
+
import MainnetEthUsdPriceConsumerArtifact from '../../assets/evm/mainnet/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json';
|
|
25
|
+
import MainnetPoolArtifact from '../../assets/evm/mainnet/outpost/Pool.sol/PoolV2.json';
|
|
26
|
+
import MainnetOutpostManagerAuthorityArtifact from '../../assets/evm/mainnet/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json';
|
|
27
|
+
import MainnetIodataArtifact from '../../assets/evm/mainnet/common/iodata.sol/iodata.json';
|
|
28
|
+
import MainnetBase58Artifact from '../../assets/evm/mainnet/common/Base58.sol/Base58.json';
|
|
29
|
+
import MainnetSysioMerkleArtifact from '../../assets/evm/mainnet/common/sysio_merkle.sol/sysio_merkle.json';
|
|
30
|
+
import MainnetSysioWriteArtifact from '../../assets/evm/mainnet/common/sysio_write.sol/sysio_write.json';
|
|
31
|
+
import MainnetERC20Artifact from '../../assets/evm/mainnet/token/ERC20Token.sol/ERC20Token.json';
|
|
32
|
+
import MainnetERC721Artifact from '../../assets/evm/mainnet/token/ERC721Token.sol/ERC721Token.json';
|
|
33
|
+
import MainnetERC1155Artifact from '../../assets/evm/mainnet/token/ERC1155Token.sol/ERC1155Token.json';
|
|
34
|
+
|
|
35
|
+
// Wiredev artifacts
|
|
36
|
+
import WiredevAccountingArtifact from '../../assets/evm/wiredev/liqEth/v1/accounting.sol/Accounting.json';
|
|
37
|
+
import WiredevDepositManagerArtifact from '../../assets/evm/wiredev/liqEth/v1/DepositManager.sol/DepositManager.json';
|
|
38
|
+
import WiredevLiqEthArtifact from '../../assets/evm/wiredev/liqEth/v1/liqEth.sol/LiqEthToken.json';
|
|
39
|
+
import WiredevStakingModuleArtifact from '../../assets/evm/wiredev/liqEth/v1/stakingModule.sol/StakingModule.json';
|
|
40
|
+
import WiredevWithdrawalQueueArtifact from '../../assets/evm/wiredev/liqEth/withdrawalQueue.sol/WithdrawalQueue.json';
|
|
41
|
+
import WiredevWithdrawalVaultArtifact from '../../assets/evm/wiredev/liqEth/withdrawalVault.sol/WithdrawalVault.json';
|
|
42
|
+
import WiredevBeaconStateArtifact from '../../assets/evm/wiredev/liqEth/BeaconState.sol/BeaconState.json';
|
|
43
|
+
import WiredevYieldOracleArtifact from '../../assets/evm/wiredev/liqEth/Yield.sol/YieldOracle.json';
|
|
44
|
+
import WiredevDepositorArtifact from '../../assets/evm/wiredev/outpost/Depositor.sol/Depositor.json';
|
|
45
|
+
import WiredevReceiptNFTArtifact from '../../assets/evm/wiredev/outpost/ReceiptNFT.sol/ReceiptNFT.json';
|
|
46
|
+
import WiredevOutpostManagerArtifact from '../../assets/evm/wiredev/outpost/OutpostManager.sol/OutpostManager.json';
|
|
47
|
+
import WiredevBARArtifact from '../../assets/evm/wiredev/outpost/BAR.sol/BAR.json';
|
|
48
|
+
import WiredevOPPArtifact from '../../assets/evm/wiredev/outpost/OPP.sol/OPP.json';
|
|
49
|
+
import WiredevOPPCommonArtifact from '../../assets/evm/wiredev/outpost/OPPCommon.sol/OPPCommon.json';
|
|
50
|
+
import WiredevOPPInboundArtifact from '../../assets/evm/wiredev/outpost/OPPInbound.sol/OPPInbound.json';
|
|
51
|
+
import WiredevPretokenArtifact from '../../assets/evm/wiredev/outpost/Pretoken.sol/Pretoken.json';
|
|
52
|
+
import WiredevEthUsdPriceConsumerArtifact from '../../assets/evm/wiredev/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json';
|
|
53
|
+
import WiredevPoolArtifact from '../../assets/evm/wiredev/outpost/Pool.sol/Pool.json';
|
|
54
|
+
import WiredevOutpostManagerAuthorityArtifact from '../../assets/evm/wiredev/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json';
|
|
55
|
+
import WiredevIodataArtifact from '../../assets/evm/wiredev/common/iodata.sol/iodata.json';
|
|
56
|
+
import WiredevBase58Artifact from '../../assets/evm/wiredev/common/Base58.sol/Base58.json';
|
|
57
|
+
import WiredevSysioMerkleArtifact from '../../assets/evm/wiredev/common/sysio_merkle.sol/sysio_merkle.json';
|
|
58
|
+
import WiredevSysioWriteArtifact from '../../assets/evm/wiredev/common/sysio_write.sol/sysio_write.json';
|
|
59
|
+
import WiredevERC20Artifact from '../../assets/evm/wiredev/token/ERC20Token.sol/ERC20Token.json';
|
|
60
|
+
import WiredevERC721Artifact from '../../assets/evm/wiredev/token/ERC721Token.sol/ERC721Token.json';
|
|
61
|
+
import WiredevERC1155Artifact from '../../assets/evm/wiredev/token/ERC1155Token.sol/ERC1155Token.json';
|
|
62
62
|
|
|
63
63
|
import { AddressBook, ContractName } from './types';
|
|
64
64
|
import { Contract, ethers, providers, Signer } from 'ethers';
|
|
65
65
|
import { JsonFragment } from '@ethersproject/abi';
|
|
66
66
|
import { ErrorDescription } from '@ethersproject/abi/lib/interface';
|
|
67
67
|
import { EvmChainID } from '@wireio/core';
|
|
68
|
-
import {
|
|
68
|
+
import { EVM_WIRE_DEVNET_CHAIN_ID, type SupportedEvmContractChainID } from '../../chains';
|
|
69
69
|
|
|
70
70
|
export const ERC20Abi = MainnetERC20Artifact.abi;
|
|
71
71
|
export const ERC721Abi = MainnetERC721Artifact.abi;
|
|
@@ -131,35 +131,41 @@ const MAINNET_ARTIFACTS: ArtifactBundle = {
|
|
|
131
131
|
ERC1155: MainnetERC1155Artifact as AbiArtifact,
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
const
|
|
135
|
-
Accounting:
|
|
136
|
-
DepositManager:
|
|
137
|
-
LiqEthToken:
|
|
138
|
-
StakingModule:
|
|
139
|
-
WithdrawalQueue:
|
|
140
|
-
WithdrawalVault:
|
|
141
|
-
BeaconState:
|
|
142
|
-
YieldOracle:
|
|
143
|
-
Depositor:
|
|
144
|
-
ReceiptNFT:
|
|
145
|
-
OutpostManager:
|
|
146
|
-
BAR:
|
|
147
|
-
OPP:
|
|
148
|
-
OPPCommon:
|
|
149
|
-
OPPInbound:
|
|
150
|
-
Pretoken:
|
|
151
|
-
EthUsdPriceConsumer:
|
|
152
|
-
Pool:
|
|
153
|
-
OutpostManagerAuthority:
|
|
154
|
-
iodata:
|
|
155
|
-
Base58:
|
|
156
|
-
sysio_merkle:
|
|
157
|
-
sysio_write:
|
|
158
|
-
ERC20:
|
|
159
|
-
ERC721:
|
|
160
|
-
ERC1155:
|
|
134
|
+
const WIREDEV_ARTIFACTS: ArtifactBundle = {
|
|
135
|
+
Accounting: WiredevAccountingArtifact as AbiArtifact,
|
|
136
|
+
DepositManager: WiredevDepositManagerArtifact as AbiArtifact,
|
|
137
|
+
LiqEthToken: WiredevLiqEthArtifact as AbiArtifact,
|
|
138
|
+
StakingModule: WiredevStakingModuleArtifact as AbiArtifact,
|
|
139
|
+
WithdrawalQueue: WiredevWithdrawalQueueArtifact as AbiArtifact,
|
|
140
|
+
WithdrawalVault: WiredevWithdrawalVaultArtifact as AbiArtifact,
|
|
141
|
+
BeaconState: WiredevBeaconStateArtifact as AbiArtifact,
|
|
142
|
+
YieldOracle: WiredevYieldOracleArtifact as AbiArtifact,
|
|
143
|
+
Depositor: WiredevDepositorArtifact as AbiArtifact,
|
|
144
|
+
ReceiptNFT: WiredevReceiptNFTArtifact as AbiArtifact,
|
|
145
|
+
OutpostManager: WiredevOutpostManagerArtifact as AbiArtifact,
|
|
146
|
+
BAR: WiredevBARArtifact as AbiArtifact,
|
|
147
|
+
OPP: WiredevOPPArtifact as AbiArtifact,
|
|
148
|
+
OPPCommon: WiredevOPPCommonArtifact as AbiArtifact,
|
|
149
|
+
OPPInbound: WiredevOPPInboundArtifact as AbiArtifact,
|
|
150
|
+
Pretoken: WiredevPretokenArtifact as AbiArtifact,
|
|
151
|
+
EthUsdPriceConsumer: WiredevEthUsdPriceConsumerArtifact as AbiArtifact,
|
|
152
|
+
Pool: WiredevPoolArtifact as AbiArtifact,
|
|
153
|
+
OutpostManagerAuthority: WiredevOutpostManagerAuthorityArtifact as AbiArtifact,
|
|
154
|
+
iodata: WiredevIodataArtifact as AbiArtifact,
|
|
155
|
+
Base58: WiredevBase58Artifact as AbiArtifact,
|
|
156
|
+
sysio_merkle: WiredevSysioMerkleArtifact as AbiArtifact,
|
|
157
|
+
sysio_write: WiredevSysioWriteArtifact as AbiArtifact,
|
|
158
|
+
ERC20: WiredevERC20Artifact as AbiArtifact,
|
|
159
|
+
ERC721: WiredevERC721Artifact as AbiArtifact,
|
|
160
|
+
ERC1155: WiredevERC1155Artifact as AbiArtifact,
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Hoodi currently shares the same ABI artifact surface as mainnet. When Hoodi
|
|
165
|
+
* artifacts diverge, replace this alias with imports from `assets/evm/hoodi`.
|
|
166
|
+
*/
|
|
167
|
+
const HOODI_ARTIFACTS: ArtifactBundle = MAINNET_ARTIFACTS;
|
|
168
|
+
|
|
163
169
|
// -----------------------------------------------------------------------------
|
|
164
170
|
// Address books (per-chain)
|
|
165
171
|
// -----------------------------------------------------------------------------
|
|
@@ -202,45 +208,128 @@ export const MAINNET_ADDRESSES: AddressBook = {
|
|
|
202
208
|
};
|
|
203
209
|
|
|
204
210
|
/**
|
|
205
|
-
*
|
|
206
|
-
*
|
|
211
|
+
* Hoodi currently reuses the mainnet address/artifact shape in this SDK layer.
|
|
212
|
+
* Replace this alias with a Hoodi deployment address book when one diverges.
|
|
207
213
|
*/
|
|
208
|
-
export const HOODI_ADDRESSES: AddressBook =
|
|
214
|
+
export const HOODI_ADDRESSES: AddressBook = MAINNET_ADDRESSES;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* ---WIREDEV TESTNET LATEST
|
|
218
|
+
* ---3/25/26
|
|
219
|
+
*
|
|
220
|
+
* TEMPORARILY LOCAL ETH WIRE DEVNET ADDRESSES
|
|
221
|
+
* 4/10/26
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
export const WIREDEV_ADDRESSES: AddressBook = {
|
|
225
|
+
// WIRE ETH DEVNET - AWS deployment 4/23/26
|
|
209
226
|
// LiqETH contracts
|
|
210
|
-
LiqEthAuthority:
|
|
211
|
-
BeaconState:
|
|
212
|
-
WithdrawalQueue:
|
|
213
|
-
LiqEthToken:
|
|
214
|
-
Accounting:
|
|
215
|
-
DepositManager:
|
|
216
|
-
WithdrawalVault:
|
|
217
|
-
StakingModule:
|
|
218
|
-
// YieldOracle:
|
|
227
|
+
LiqEthAuthority: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
|
|
228
|
+
BeaconState: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",
|
|
229
|
+
WithdrawalQueue: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
|
|
230
|
+
LiqEthToken: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318",
|
|
231
|
+
Accounting: "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
|
|
232
|
+
DepositManager: "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82",
|
|
233
|
+
WithdrawalVault: "0x0B306BF915C4d645ff596e518fAf3F9669b97016",
|
|
234
|
+
StakingModule: "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE",
|
|
235
|
+
// YieldOracle: "0x3Aa5ebB10DC797CAC828524e59A333d0A371443c"
|
|
219
236
|
|
|
220
237
|
// Outpost contracts
|
|
221
|
-
OutpostManagerAuthority:
|
|
222
|
-
iodata: '0x4aCABbC74a1cA9B0058d9ADAa0E00Af0f4f73212',
|
|
223
|
-
Base58: '0x1241F36ff30065deD52d51f0d6524EF971259A12',
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
OutpostManagerAuthority: "0x172076E0166D1F9Cc711C77Adf8488051744980C",
|
|
239
|
+
iodata: '0x4aCABbC74a1cA9B0058d9ADAa0E00Af0f4f73212', // not provided in outpost-addrs.json, re-using previous value
|
|
240
|
+
Base58: '0x1241F36ff30065deD52d51f0d6524EF971259A12', // not provided in outpost-addrs.json, re-using previous value
|
|
241
|
+
OPPCommon: "0x4EE6eCAD1c2Dae9f525404De8555724e3c35d07B",
|
|
242
|
+
sysio_merkle: "0xBEc49fA140aCaA83533fB00A2BB19bDdd0290f25",
|
|
243
|
+
OPP: "0x2B0d36FACD61B71CC05ab8F3D2355ec3631C0dd5",
|
|
244
|
+
ReceiptNFT: "0x46b142DD1E924FAb83eCc3c08e4D46E82f005e0E",
|
|
245
|
+
// MockAggregator: "0x1c85638e118b37167e9298c2268758e058DdfDA0",
|
|
246
|
+
Pool: "0x4C2F7092C2aE51D986bEFEe378e50BD4dB99C901",
|
|
247
|
+
// WireYieldHubAttestations: "0x7A9Ec1d04904907De0ED7b6839CcdD59c3716AC9",
|
|
248
|
+
// LiqEthBridge: "0x4631BCAbD6dF18D94796344963cB60d44a4136b6",
|
|
249
|
+
BAR: "0xA4899D35897033b927acFCf422bc745916139776",
|
|
250
|
+
// OperatorRegistry: "0xAA292E8611aDF267e563f334Ee42320aC96D0463",
|
|
251
|
+
OutpostManager: "0x720472c8ce72c2A2D711333e064ABD3E6BbEAdd3",
|
|
252
|
+
sysio_write: '0x0Ec4C1BaB772958aa3Db27459643bfbE7d92E305', // not provided in outpost-addrs.json, re-using previous value
|
|
253
|
+
OPPInbound: "0x5067457698Fd6Fa1C6964e416b3f42713513B3dD",
|
|
254
|
+
EthUsdPriceConsumer: "0x18E317A7D70d8fBf8e6E893616b52390EbBdb629",
|
|
255
|
+
Pretoken: "0xCace1b78160AE76398F486c8a18044da0d66d86D",
|
|
256
|
+
Depositor: "0xF8e31cb472bc70500f08Cd84917E5A1912Ec8397"
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
// LiqETH contracts
|
|
261
|
+
// LiqEthAuthority: '0x3Eb66Bb91F7a022FbABc1619Cb6acce7025Bc41F',
|
|
262
|
+
// BeaconState: '0x08F879c6D0964E0A17bF688Af23168f654DF372e',
|
|
263
|
+
// WithdrawalQueue: '0x74aDeD940369baDDb0F36426F23B08499e45Fe18',
|
|
264
|
+
// LiqEthToken: '0x8C974517D038e2e3b8a1da7b1A026bC8132A4b2e',
|
|
265
|
+
// Accounting: '0x766CE996B8132b927988c5b2ECAE8108fB1a9307',
|
|
266
|
+
// DepositManager: '0xEd391dB5DB11B5eDBE08e69A51D16e84293C09a3',
|
|
267
|
+
// WithdrawalVault: '0xbaBc0D5997283ab9886696A0dEaB8A8093436b48',
|
|
268
|
+
// StakingModule: '0x4998fBb6Ca5Ee3Db6c339e2962A34791Af643fEa',
|
|
269
|
+
// // YieldOracle: '0x61Fe311C57dd9a38Fb7B0c5A8ec521452dB25378',
|
|
270
|
+
|
|
271
|
+
// // Outpost contracts
|
|
272
|
+
// OutpostManagerAuthority: '0x3B8705Ba1195AF632b3bd9E46F19348BC828FA3D',
|
|
273
|
+
// iodata: '0x4aCABbC74a1cA9B0058d9ADAa0E00Af0f4f73212',
|
|
274
|
+
// Base58: '0x1241F36ff30065deD52d51f0d6524EF971259A12',
|
|
275
|
+
// sysio_merkle: '0x58ca9b5515266Fd6bF94D5F1268C505b2eC9679c',
|
|
276
|
+
// ReceiptNFT: '0x03d6bD46cA9F54B8F8bbA21CfAfe717b36cB8593',
|
|
277
|
+
// EthUsdPriceConsumer: '0xdC2DD993A13b3DD6D255B52285625694bd967c9A',
|
|
278
|
+
// Pool: '0xd4742757AA61B1Fd3Fcd87980D7D460B12Cd9275',
|
|
279
|
+
// OutpostManager: '0x38ec2B56cBCeCaFFe28b535517de1a102C3D74E3',
|
|
280
|
+
// sysio_write: '0x0Ec4C1BaB772958aa3Db27459643bfbE7d92E305',
|
|
281
|
+
// Pretoken: '0x8c97a51A71640fa411DEfab8feC3401eFfd1a2E4',
|
|
282
|
+
// BAR: '0xbAFac13ffd3Aa9aEabaaeb6e4C2cF3dFf3479DC0',
|
|
283
|
+
// OPPCommon: '0x12283a6d4E6cE4A0e8AdB319Fc161c7F4f91EA8F',
|
|
284
|
+
// OPP: '0x87CE3Fe2CDca39C04aa2c14bbF1E1d9DB6358C4A',
|
|
285
|
+
// Depositor: '0x5351B30EA4b75bD9be9Fc0048e88F675f7b3Ac2b',
|
|
286
|
+
// OPPInbound: '0x0B1f7FB1c7f01A9cf490a1387E1E100F2bEA6C6d',
|
|
236
287
|
|
|
237
288
|
// Test-only mock aggregator
|
|
238
289
|
// MockAggregator: '0xFCfc3ddd4CBd9Ad3b3af3A374B8bdA1b66eE6FFF',
|
|
290
|
+
|
|
291
|
+
// TEMPORARY WIRE ETH DEVNET ADDRESSES - 4/21/26
|
|
292
|
+
// LiqETH contracts
|
|
293
|
+
// LiqEthAuthority: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512',
|
|
294
|
+
// BeaconState: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9',
|
|
295
|
+
// WithdrawalQueue: '0x5FC8d32690cc91D4c39d9d3abcBD16989F875707',
|
|
296
|
+
// LiqEthToken: '0xa513E6E4b8f2a923D98304ec87F64353C4D5C853',
|
|
297
|
+
// Accounting: '0x8A791620dd6260079BF849Dc5567aDC3F2FdC318',
|
|
298
|
+
// DepositManager: '0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e',
|
|
299
|
+
// WithdrawalVault: '0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82',
|
|
300
|
+
// StakingModule: '0x0B306BF915C4d645ff596e518fAf3F9669b97016',
|
|
301
|
+
// // YieldOracle: '0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE',
|
|
302
|
+
|
|
303
|
+
// // Outpost contracts
|
|
304
|
+
// OutpostManagerAuthority: '0x202CCe504e04bEd6fC0521238dDf04Bc9E8E15aB',
|
|
305
|
+
// iodata: '0x4aCABbC74a1cA9B0058d9ADAa0E00Af0f4f73212',
|
|
306
|
+
// Base58: '0x1241F36ff30065deD52d51f0d6524EF971259A12',
|
|
307
|
+
// sysio_merkle: '0x172076E0166D1F9Cc711C77Adf8488051744980C',
|
|
308
|
+
// ReceiptNFT: '0x2B0d36FACD61B71CC05ab8F3D2355ec3631C0dd5',
|
|
309
|
+
// EthUsdPriceConsumer: '0xe8D2A1E88c91DCd5433208d4152Cc4F399a7e91d',
|
|
310
|
+
// Pool: '0x1c85638e118b37167e9298c2268758e058DdfDA0',
|
|
311
|
+
// OutpostManager: '0xAA292E8611aDF267e563f334Ee42320aC96D0463',
|
|
312
|
+
// sysio_write: '0x0Ec4C1BaB772958aa3Db27459643bfbE7d92E305',
|
|
313
|
+
// Pretoken: '0x18E317A7D70d8fBfE6E893616b52390EbBdb629',
|
|
314
|
+
// BAR: '0x4631BCAbD6dF18D94796344963cB60d44a4136b6',
|
|
315
|
+
// OPPCommon: '0xf4B146FbA71F41E0592668ffbF264F1D186b2Ca8',
|
|
316
|
+
// OPP: '0xBEc49fA140aCaA83533fB00A2BB19bDdd0290f25',
|
|
317
|
+
// Depositor: '0xCace1b78160AE76398F486c8a18044da0d66d86D',
|
|
318
|
+
// OPPInbound: '0x720472c8ce72c2A2D711333e064ABD3E6BbEAdd3',
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
// MockDepositContract: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0',
|
|
322
|
+
// LiqEthBridge: '0x7A9Ec1d04904907De0ED7b6839CcdD59c3716AC9', internal
|
|
323
|
+
// WireYieldHubAttestations: '0x367761085BF3C12e5DA2Df99AC6E1a824612b8fb', internal
|
|
324
|
+
|
|
325
|
+
// Test-only mock aggregator
|
|
326
|
+
// MockAggregator: '0x46b142DD1E924FAb83eCc3c08e4D46E82f005e0E',
|
|
239
327
|
};
|
|
240
328
|
|
|
241
|
-
export const ADDRESS_BOOK_BY_CHAIN: Record<
|
|
329
|
+
export const ADDRESS_BOOK_BY_CHAIN: Record<SupportedEvmContractChainID, AddressBook> = {
|
|
242
330
|
[EvmChainID.Ethereum]: MAINNET_ADDRESSES,
|
|
243
331
|
[EvmChainID.Hoodi]: HOODI_ADDRESSES,
|
|
332
|
+
[EVM_WIRE_DEVNET_CHAIN_ID]: WIREDEV_ADDRESSES,
|
|
244
333
|
};
|
|
245
334
|
|
|
246
335
|
// Old name kept as a mainnet default (optional convenience)
|
|
@@ -366,9 +455,10 @@ function buildContracts(addresses: AddressBook, artifacts: ArtifactBundle): Cont
|
|
|
366
455
|
};
|
|
367
456
|
}
|
|
368
457
|
|
|
369
|
-
export const CONTRACTS_BY_CHAIN: Record<
|
|
458
|
+
export const CONTRACTS_BY_CHAIN: Record<SupportedEvmContractChainID, Contracts<ContractName>> = {
|
|
370
459
|
[EvmChainID.Ethereum]: buildContracts(MAINNET_ADDRESSES, MAINNET_ARTIFACTS),
|
|
371
460
|
[EvmChainID.Hoodi]: buildContracts(HOODI_ADDRESSES, HOODI_ARTIFACTS),
|
|
461
|
+
[EVM_WIRE_DEVNET_CHAIN_ID]: buildContracts(WIREDEV_ADDRESSES, WIREDEV_ARTIFACTS),
|
|
372
462
|
};
|
|
373
463
|
|
|
374
464
|
// -----------------------------------------------------------------------------
|
|
@@ -377,22 +467,23 @@ export const CONTRACTS_BY_CHAIN: Record<SupportedEvmChainID, Contracts<ContractN
|
|
|
377
467
|
|
|
378
468
|
export interface ContractOptions {
|
|
379
469
|
/** EVM chain id to select the correct address/contract set */
|
|
380
|
-
chainId:
|
|
470
|
+
chainId: SupportedEvmContractChainID;
|
|
381
471
|
/** RPC endpoint or injected EIP-1193 provider */
|
|
382
472
|
provider?: ethers.providers.Provider;
|
|
383
473
|
/** Only required if you need to send txns */
|
|
384
474
|
signer?: Signer;
|
|
385
475
|
}
|
|
386
476
|
|
|
387
|
-
const ARTIFACTS_BY_CHAIN: Record<
|
|
477
|
+
const ARTIFACTS_BY_CHAIN: Record<SupportedEvmContractChainID, ArtifactBundle> = {
|
|
388
478
|
[EvmChainID.Ethereum]: MAINNET_ARTIFACTS,
|
|
389
479
|
[EvmChainID.Hoodi]: HOODI_ARTIFACTS,
|
|
480
|
+
[EVM_WIRE_DEVNET_CHAIN_ID]: WIREDEV_ARTIFACTS,
|
|
390
481
|
};
|
|
391
482
|
|
|
392
|
-
export class
|
|
483
|
+
export class EvmContractService {
|
|
393
484
|
private provider?: providers.Provider;
|
|
394
485
|
private signer?: Signer;
|
|
395
|
-
private readonly chainId:
|
|
486
|
+
private readonly chainId: SupportedEvmContractChainID;
|
|
396
487
|
private readonly contractsConfig: Contracts<ContractName>;
|
|
397
488
|
|
|
398
489
|
public readonly contract: { [N in ContractName]: ethers.Contract } = {} as any;
|