@townsq/mm-sdk 1.0.1
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 +95 -0
- package/dist/chains/evm/common/constant/abi/arbitrum-node-interface-abi.d.ts +25 -0
- package/dist/chains/evm/common/constant/abi/arbitrum-node-interface-abi.js +18 -0
- package/dist/chains/evm/common/constant/abi/arbitrum-node-interface-abi.js.map +1 -0
- package/dist/chains/evm/common/constant/abi/bridge-router-abi.d.ts +1030 -0
- package/dist/chains/evm/common/constant/abi/bridge-router-abi.js +794 -0
- package/dist/chains/evm/common/constant/abi/bridge-router-abi.js.map +1 -0
- package/dist/chains/evm/common/constant/abi/ccip-data-adapter-abi.d.ts +796 -0
- package/dist/chains/evm/common/constant/abi/ccip-data-adapter-abi.js +622 -0
- package/dist/chains/evm/common/constant/abi/ccip-data-adapter-abi.js.map +1 -0
- package/dist/chains/evm/common/constant/abi/erc-20-abi.d.ts +235 -0
- package/dist/chains/evm/common/constant/abi/erc-20-abi.js +157 -0
- package/dist/chains/evm/common/constant/abi/erc-20-abi.js.map +1 -0
- package/dist/chains/evm/common/constant/abi/wormhole-data-adapter-abi.d.ts +821 -0
- package/dist/chains/evm/common/constant/abi/wormhole-data-adapter-abi.js +645 -0
- package/dist/chains/evm/common/constant/abi/wormhole-data-adapter-abi.js.map +1 -0
- package/dist/chains/evm/common/constant/abi/wormhole-relayer-abi.d.ts +783 -0
- package/dist/chains/evm/common/constant/abi/wormhole-relayer-abi.js +501 -0
- package/dist/chains/evm/common/constant/abi/wormhole-relayer-abi.js.map +1 -0
- package/dist/chains/evm/common/constant/chain.d.ts +128 -0
- package/dist/chains/evm/common/constant/chain.js +62 -0
- package/dist/chains/evm/common/constant/chain.js.map +1 -0
- package/dist/chains/evm/common/constant/contract.d.ts +9 -0
- package/dist/chains/evm/common/constant/contract.js +13 -0
- package/dist/chains/evm/common/constant/contract.js.map +1 -0
- package/dist/chains/evm/common/constant/tokens.d.ts +6 -0
- package/dist/chains/evm/common/constant/tokens.js +21 -0
- package/dist/chains/evm/common/constant/tokens.js.map +1 -0
- package/dist/chains/evm/common/types/chain.d.ts +9 -0
- package/dist/chains/evm/common/types/chain.js +2 -0
- package/dist/chains/evm/common/types/chain.js.map +1 -0
- package/dist/chains/evm/common/types/contract.d.ts +8 -0
- package/dist/chains/evm/common/types/contract.js +2 -0
- package/dist/chains/evm/common/types/contract.js.map +1 -0
- package/dist/chains/evm/common/types/gmp.d.ts +37 -0
- package/dist/chains/evm/common/types/gmp.js +2 -0
- package/dist/chains/evm/common/types/gmp.js.map +1 -0
- package/dist/chains/evm/common/types/module.d.ts +90 -0
- package/dist/chains/evm/common/types/module.js +2 -0
- package/dist/chains/evm/common/types/module.js.map +1 -0
- package/dist/chains/evm/common/types/token.d.ts +28 -0
- package/dist/chains/evm/common/types/token.js +2 -0
- package/dist/chains/evm/common/types/token.js.map +1 -0
- package/dist/chains/evm/common/utils/chain.d.ts +7 -0
- package/dist/chains/evm/common/utils/chain.js +24 -0
- package/dist/chains/evm/common/utils/chain.js.map +1 -0
- package/dist/chains/evm/common/utils/contract.d.ts +7387 -0
- package/dist/chains/evm/common/utils/contract.js +67 -0
- package/dist/chains/evm/common/utils/contract.js.map +1 -0
- package/dist/chains/evm/common/utils/gmp.d.ts +7 -0
- package/dist/chains/evm/common/utils/gmp.js +32 -0
- package/dist/chains/evm/common/utils/gmp.js.map +1 -0
- package/dist/chains/evm/common/utils/message.d.ts +21 -0
- package/dist/chains/evm/common/utils/message.js +426 -0
- package/dist/chains/evm/common/utils/message.js.map +1 -0
- package/dist/chains/evm/common/utils/provider.d.ts +5 -0
- package/dist/chains/evm/common/utils/provider.js +24 -0
- package/dist/chains/evm/common/utils/provider.js.map +1 -0
- package/dist/chains/evm/common/utils/tokens.d.ts +11 -0
- package/dist/chains/evm/common/utils/tokens.js +58 -0
- package/dist/chains/evm/common/utils/tokens.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/account-manager-abi.d.ts +945 -0
- package/dist/chains/evm/hub/constants/abi/account-manager-abi.js +709 -0
- package/dist/chains/evm/hub/constants/abi/account-manager-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/bridge-router-hub-abi.d.ts +1062 -0
- package/dist/chains/evm/hub/constants/abi/bridge-router-hub-abi.js +816 -0
- package/dist/chains/evm/hub/constants/abi/bridge-router-hub-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/hub-abi.d.ts +344 -0
- package/dist/chains/evm/hub/constants/abi/hub-abi.js +229 -0
- package/dist/chains/evm/hub/constants/abi/hub-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/hub-pool-abi.d.ts +1999 -0
- package/dist/chains/evm/hub/constants/abi/hub-pool-abi.js +1558 -0
- package/dist/chains/evm/hub/constants/abi/hub-pool-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/hub-rewards-v1-abi.d.ts +850 -0
- package/dist/chains/evm/hub/constants/abi/hub-rewards-v1-abi.js +649 -0
- package/dist/chains/evm/hub/constants/abi/hub-rewards-v1-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/hub-rewards-v2-abi.d.ts +1213 -0
- package/dist/chains/evm/hub/constants/abi/hub-rewards-v2-abi.js +890 -0
- package/dist/chains/evm/hub/constants/abi/hub-rewards-v2-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/loan-manager-abi.d.ts +1573 -0
- package/dist/chains/evm/hub/constants/abi/loan-manager-abi.js +1055 -0
- package/dist/chains/evm/hub/constants/abi/loan-manager-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/node-manager-abi.d.ts +269 -0
- package/dist/chains/evm/hub/constants/abi/node-manager-abi.js +228 -0
- package/dist/chains/evm/hub/constants/abi/node-manager-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/abi/oracle-manager-abi.d.ts +495 -0
- package/dist/chains/evm/hub/constants/abi/oracle-manager-abi.js +391 -0
- package/dist/chains/evm/hub/constants/abi/oracle-manager-abi.js.map +1 -0
- package/dist/chains/evm/hub/constants/chain.d.ts +3 -0
- package/dist/chains/evm/hub/constants/chain.js +242 -0
- package/dist/chains/evm/hub/constants/chain.js.map +1 -0
- package/dist/chains/evm/hub/modules/index.d.ts +5 -0
- package/dist/chains/evm/hub/modules/index.js +6 -0
- package/dist/chains/evm/hub/modules/index.js.map +1 -0
- package/dist/chains/evm/hub/modules/ts-hub-account.d.ts +8 -0
- package/dist/chains/evm/hub/modules/ts-hub-account.js +75 -0
- package/dist/chains/evm/hub/modules/ts-hub-account.js.map +1 -0
- package/dist/chains/evm/hub/modules/ts-hub-gmp.d.ts +18 -0
- package/dist/chains/evm/hub/modules/ts-hub-gmp.js +98 -0
- package/dist/chains/evm/hub/modules/ts-hub-gmp.js.map +1 -0
- package/dist/chains/evm/hub/modules/ts-hub-loan.d.ts +27 -0
- package/dist/chains/evm/hub/modules/ts-hub-loan.js +484 -0
- package/dist/chains/evm/hub/modules/ts-hub-loan.js.map +1 -0
- package/dist/chains/evm/hub/modules/ts-hub-oracle.d.ts +8 -0
- package/dist/chains/evm/hub/modules/ts-hub-oracle.js +58 -0
- package/dist/chains/evm/hub/modules/ts-hub-oracle.js.map +1 -0
- package/dist/chains/evm/hub/modules/ts-hub-pool.d.ts +5 -0
- package/dist/chains/evm/hub/modules/ts-hub-pool.js +138 -0
- package/dist/chains/evm/hub/modules/ts-hub-pool.js.map +1 -0
- package/dist/chains/evm/hub/types/account.d.ts +23 -0
- package/dist/chains/evm/hub/types/account.js +2 -0
- package/dist/chains/evm/hub/types/account.js.map +1 -0
- package/dist/chains/evm/hub/types/chain.d.ts +20 -0
- package/dist/chains/evm/hub/types/chain.js +2 -0
- package/dist/chains/evm/hub/types/chain.js.map +1 -0
- package/dist/chains/evm/hub/types/loan.d.ts +148 -0
- package/dist/chains/evm/hub/types/loan.js +9 -0
- package/dist/chains/evm/hub/types/loan.js.map +1 -0
- package/dist/chains/evm/hub/types/oracle.d.ts +19 -0
- package/dist/chains/evm/hub/types/oracle.js +2 -0
- package/dist/chains/evm/hub/types/oracle.js.map +1 -0
- package/dist/chains/evm/hub/types/pool.d.ts +66 -0
- package/dist/chains/evm/hub/types/pool.js +2 -0
- package/dist/chains/evm/hub/types/pool.js.map +1 -0
- package/dist/chains/evm/hub/types/token.d.ts +9 -0
- package/dist/chains/evm/hub/types/token.js +2 -0
- package/dist/chains/evm/hub/types/token.js.map +1 -0
- package/dist/chains/evm/hub/utils/chain.d.ts +15 -0
- package/dist/chains/evm/hub/utils/chain.js +37 -0
- package/dist/chains/evm/hub/utils/chain.js.map +1 -0
- package/dist/chains/evm/hub/utils/contract.d.ts +26 -0
- package/dist/chains/evm/hub/utils/contract.js +76 -0
- package/dist/chains/evm/hub/utils/contract.js.map +1 -0
- package/dist/chains/evm/hub/utils/events.d.ts +23 -0
- package/dist/chains/evm/hub/utils/events.js +100 -0
- package/dist/chains/evm/hub/utils/events.js.map +1 -0
- package/dist/chains/evm/hub/utils/loan.d.ts +4 -0
- package/dist/chains/evm/hub/utils/loan.js +37 -0
- package/dist/chains/evm/hub/utils/loan.js.map +1 -0
- package/dist/chains/evm/spoke/constants/abi/bridge-router-spoke-abi.d.ts +1044 -0
- package/dist/chains/evm/spoke/constants/abi/bridge-router-spoke-abi.js +806 -0
- package/dist/chains/evm/spoke/constants/abi/bridge-router-spoke-abi.js.map +1 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-common-abi.d.ts +1152 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-common-abi.js +735 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-common-abi.js.map +1 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-rewards-v2-common-abi.d.ts +697 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-rewards-v2-common-abi.js +501 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-rewards-v2-common-abi.js.map +1 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-token-abi.d.ts +986 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-token-abi.js +705 -0
- package/dist/chains/evm/spoke/constants/abi/spoke-token-abi.js.map +1 -0
- package/dist/chains/evm/spoke/modules/index.d.ts +3 -0
- package/dist/chains/evm/spoke/modules/index.js +4 -0
- package/dist/chains/evm/spoke/modules/index.js.map +1 -0
- package/dist/chains/evm/spoke/modules/ts-evm-account.d.ts +18 -0
- package/dist/chains/evm/spoke/modules/ts-evm-account.js +141 -0
- package/dist/chains/evm/spoke/modules/ts-evm-account.js.map +1 -0
- package/dist/chains/evm/spoke/modules/ts-evm-gmp.d.ts +20 -0
- package/dist/chains/evm/spoke/modules/ts-evm-gmp.js +163 -0
- package/dist/chains/evm/spoke/modules/ts-evm-gmp.js.map +1 -0
- package/dist/chains/evm/spoke/modules/ts-evm-loan.d.ts +38 -0
- package/dist/chains/evm/spoke/modules/ts-evm-loan.js +461 -0
- package/dist/chains/evm/spoke/modules/ts-evm-loan.js.map +1 -0
- package/dist/chains/evm/spoke/types/pool.d.ts +7 -0
- package/dist/chains/evm/spoke/types/pool.js +2 -0
- package/dist/chains/evm/spoke/types/pool.js.map +1 -0
- package/dist/chains/evm/spoke/utils/contract.d.ts +18 -0
- package/dist/chains/evm/spoke/utils/contract.js +46 -0
- package/dist/chains/evm/spoke/utils/contract.js.map +1 -0
- package/dist/common/constants/adapter.d.ts +2 -0
- package/dist/common/constants/adapter.js +6 -0
- package/dist/common/constants/adapter.js.map +1 -0
- package/dist/common/constants/byte.d.ts +6 -0
- package/dist/common/constants/byte.js +7 -0
- package/dist/common/constants/byte.js.map +1 -0
- package/dist/common/constants/chain.d.ts +10 -0
- package/dist/common/constants/chain.js +224 -0
- package/dist/common/constants/chain.js.map +1 -0
- package/dist/common/constants/gmp.d.ts +3 -0
- package/dist/common/constants/gmp.js +10 -0
- package/dist/common/constants/gmp.js.map +1 -0
- package/dist/common/constants/lending.d.ts +2 -0
- package/dist/common/constants/lending.js +4 -0
- package/dist/common/constants/lending.js.map +1 -0
- package/dist/common/constants/message.d.ts +9 -0
- package/dist/common/constants/message.js +23 -0
- package/dist/common/constants/message.js.map +1 -0
- package/dist/common/constants/pool.d.ts +14 -0
- package/dist/common/constants/pool.js +24 -0
- package/dist/common/constants/pool.js.map +1 -0
- package/dist/common/types/adapter.d.ts +30 -0
- package/dist/common/types/adapter.js +7 -0
- package/dist/common/types/adapter.js.map +1 -0
- package/dist/common/types/address.d.ts +9 -0
- package/dist/common/types/address.js +2 -0
- package/dist/common/types/address.js.map +1 -0
- package/dist/common/types/brand.d.ts +6 -0
- package/dist/common/types/brand.js +2 -0
- package/dist/common/types/brand.js.map +1 -0
- package/dist/common/types/chain.d.ts +29 -0
- package/dist/common/types/chain.js +9 -0
- package/dist/common/types/chain.js.map +1 -0
- package/dist/common/types/core.d.ts +28 -0
- package/dist/common/types/core.js +2 -0
- package/dist/common/types/core.js.map +1 -0
- package/dist/common/types/gmp.d.ts +15 -0
- package/dist/common/types/gmp.js +6 -0
- package/dist/common/types/gmp.js.map +1 -0
- package/dist/common/types/lending.d.ts +20 -0
- package/dist/common/types/lending.js +13 -0
- package/dist/common/types/lending.js.map +1 -0
- package/dist/common/types/message.d.ts +280 -0
- package/dist/common/types/message.js +32 -0
- package/dist/common/types/message.js.map +1 -0
- package/dist/common/types/module.d.ts +20 -0
- package/dist/common/types/module.js +2 -0
- package/dist/common/types/module.js.map +1 -0
- package/dist/common/types/token.d.ts +49 -0
- package/dist/common/types/token.js +24 -0
- package/dist/common/types/token.js.map +1 -0
- package/dist/common/utils/adapter.d.ts +17 -0
- package/dist/common/utils/adapter.js +98 -0
- package/dist/common/utils/adapter.js.map +1 -0
- package/dist/common/utils/address.d.ts +6 -0
- package/dist/common/utils/address.js +32 -0
- package/dist/common/utils/address.js.map +1 -0
- package/dist/common/utils/bytes.d.ts +6 -0
- package/dist/common/utils/bytes.js +25 -0
- package/dist/common/utils/bytes.js.map +1 -0
- package/dist/common/utils/chain.d.ts +20 -0
- package/dist/common/utils/chain.js +79 -0
- package/dist/common/utils/chain.js.map +1 -0
- package/dist/common/utils/formulae.d.ts +19 -0
- package/dist/common/utils/formulae.js +118 -0
- package/dist/common/utils/formulae.js.map +1 -0
- package/dist/common/utils/gmp.d.ts +3 -0
- package/dist/common/utils/gmp.js +5 -0
- package/dist/common/utils/gmp.js.map +1 -0
- package/dist/common/utils/lending.d.ts +7 -0
- package/dist/common/utils/lending.js +16 -0
- package/dist/common/utils/lending.js.map +1 -0
- package/dist/common/utils/math-lib.d.ts +10 -0
- package/dist/common/utils/math-lib.js +41 -0
- package/dist/common/utils/math-lib.js.map +1 -0
- package/dist/common/utils/messages.d.ts +16 -0
- package/dist/common/utils/messages.js +124 -0
- package/dist/common/utils/messages.js.map +1 -0
- package/dist/common/utils/token.d.ts +3 -0
- package/dist/common/utils/token.js +8 -0
- package/dist/common/utils/token.js.map +1 -0
- package/dist/common/utils/transaction.d.ts +4 -0
- package/dist/common/utils/transaction.js +18 -0
- package/dist/common/utils/transaction.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -0
- package/dist/lifeline/core/ts-core.d.ts +24 -0
- package/dist/lifeline/core/ts-core.js +101 -0
- package/dist/lifeline/core/ts-core.js.map +1 -0
- package/dist/lifeline/modules/index.d.ts +5 -0
- package/dist/lifeline/modules/index.js +6 -0
- package/dist/lifeline/modules/index.js.map +1 -0
- package/dist/lifeline/modules/ts-account.d.ts +23 -0
- package/dist/lifeline/modules/ts-account.js +205 -0
- package/dist/lifeline/modules/ts-account.js.map +1 -0
- package/dist/lifeline/modules/ts-gmp.d.ts +3 -0
- package/dist/lifeline/modules/ts-gmp.js +4 -0
- package/dist/lifeline/modules/ts-gmp.js.map +1 -0
- package/dist/lifeline/modules/ts-loan.d.ts +48 -0
- package/dist/lifeline/modules/ts-loan.js +580 -0
- package/dist/lifeline/modules/ts-loan.js.map +1 -0
- package/dist/lifeline/modules/ts-oracle.d.ts +8 -0
- package/dist/lifeline/modules/ts-oracle.js +27 -0
- package/dist/lifeline/modules/ts-oracle.js.map +1 -0
- package/dist/lifeline/modules/ts-pool.d.ts +5 -0
- package/dist/lifeline/modules/ts-pool.js +8 -0
- package/dist/lifeline/modules/ts-pool.js.map +1 -0
- package/dist/types/generics.d.ts +1 -0
- package/dist/types/generics.js +2 -0
- package/dist/types/generics.js.map +1 -0
- package/dist/utils/address.d.ts +1 -0
- package/dist/utils/address.js +2 -0
- package/dist/utils/address.js.map +1 -0
- package/dist/utils/array.d.ts +3 -0
- package/dist/utils/array.js +7 -0
- package/dist/utils/array.js.map +1 -0
- package/dist/utils/exhaustive-check.d.ts +1 -0
- package/dist/utils/exhaustive-check.js +4 -0
- package/dist/utils/exhaustive-check.js.map +1 -0
- package/dist/utils/random.d.ts +1 -0
- package/dist/utils/random.js +4 -0
- package/dist/utils/random.js.map +1 -0
- package/package.json +56 -0
- package/src/chains/evm/common/constant/abi/arbitrum-node-interface-abi.ts +17 -0
- package/src/chains/evm/common/constant/abi/bridge-router-abi.ts +793 -0
- package/src/chains/evm/common/constant/abi/ccip-data-adapter-abi.ts +621 -0
- package/src/chains/evm/common/constant/abi/erc-20-abi.ts +156 -0
- package/src/chains/evm/common/constant/abi/wormhole-data-adapter-abi.ts +644 -0
- package/src/chains/evm/common/constant/abi/wormhole-relayer-abi.ts +500 -0
- package/src/chains/evm/common/constant/chain.ts +88 -0
- package/src/chains/evm/common/constant/contract.ts +15 -0
- package/src/chains/evm/common/constant/tokens.ts +33 -0
- package/src/chains/evm/common/types/chain.ts +26 -0
- package/src/chains/evm/common/types/contract.ts +17 -0
- package/src/chains/evm/common/types/gmp.ts +43 -0
- package/src/chains/evm/common/types/module.ts +115 -0
- package/src/chains/evm/common/types/token.ts +35 -0
- package/src/chains/evm/common/utils/chain.ts +33 -0
- package/src/chains/evm/common/utils/contract.ts +120 -0
- package/src/chains/evm/common/utils/gmp.ts +54 -0
- package/src/chains/evm/common/utils/message.ts +648 -0
- package/src/chains/evm/common/utils/provider.ts +38 -0
- package/src/chains/evm/common/utils/tokens.ts +102 -0
- package/src/chains/evm/hub/constants/abi/account-manager-abi.ts +708 -0
- package/src/chains/evm/hub/constants/abi/bridge-router-hub-abi.ts +815 -0
- package/src/chains/evm/hub/constants/abi/hub-abi.ts +228 -0
- package/src/chains/evm/hub/constants/abi/hub-pool-abi.ts +1557 -0
- package/src/chains/evm/hub/constants/abi/hub-rewards-v1-abi.ts +648 -0
- package/src/chains/evm/hub/constants/abi/hub-rewards-v2-abi.ts +889 -0
- package/src/chains/evm/hub/constants/abi/loan-manager-abi.ts +1054 -0
- package/src/chains/evm/hub/constants/abi/node-manager-abi.ts +227 -0
- package/src/chains/evm/hub/constants/abi/oracle-manager-abi.ts +390 -0
- package/src/chains/evm/hub/constants/chain.ts +305 -0
- package/src/chains/evm/hub/modules/index.ts +5 -0
- package/src/chains/evm/hub/modules/ts-hub-account.ts +117 -0
- package/src/chains/evm/hub/modules/ts-hub-gmp.ts +231 -0
- package/src/chains/evm/hub/modules/ts-hub-loan.ts +915 -0
- package/src/chains/evm/hub/modules/ts-hub-oracle.ts +131 -0
- package/src/chains/evm/hub/modules/ts-hub-pool.ts +241 -0
- package/src/chains/evm/hub/types/account.ts +30 -0
- package/src/chains/evm/hub/types/chain.ts +22 -0
- package/src/chains/evm/hub/types/loan.ts +188 -0
- package/src/chains/evm/hub/types/oracle.ts +25 -0
- package/src/chains/evm/hub/types/pool.ts +75 -0
- package/src/chains/evm/hub/types/token.ts +10 -0
- package/src/chains/evm/hub/utils/chain.ts +78 -0
- package/src/chains/evm/hub/utils/contract.ts +178 -0
- package/src/chains/evm/hub/utils/events.ts +160 -0
- package/src/chains/evm/hub/utils/loan.ts +72 -0
- package/src/chains/evm/spoke/constants/abi/bridge-router-spoke-abi.ts +805 -0
- package/src/chains/evm/spoke/constants/abi/spoke-common-abi.ts +734 -0
- package/src/chains/evm/spoke/constants/abi/spoke-rewards-v2-common-abi.ts +500 -0
- package/src/chains/evm/spoke/constants/abi/spoke-token-abi.ts +704 -0
- package/src/chains/evm/spoke/modules/index.ts +3 -0
- package/src/chains/evm/spoke/modules/ts-evm-account.ts +341 -0
- package/src/chains/evm/spoke/modules/ts-evm-gmp.ts +353 -0
- package/src/chains/evm/spoke/modules/ts-evm-loan.ts +1032 -0
- package/src/chains/evm/spoke/types/pool.ts +7 -0
- package/src/chains/evm/spoke/utils/contract.ts +123 -0
- package/src/common/constants/adapter.ts +6 -0
- package/src/common/constants/byte.ts +7 -0
- package/src/common/constants/chain.ts +319 -0
- package/src/common/constants/gmp.ts +19 -0
- package/src/common/constants/lending.ts +9 -0
- package/src/common/constants/message.ts +25 -0
- package/src/common/constants/pool.ts +30 -0
- package/src/common/types/adapter.ts +44 -0
- package/src/common/types/address.ts +11 -0
- package/src/common/types/brand.ts +3 -0
- package/src/common/types/chain.ts +42 -0
- package/src/common/types/core.ts +31 -0
- package/src/common/types/gmp.ts +19 -0
- package/src/common/types/lending.ts +26 -0
- package/src/common/types/message.ts +401 -0
- package/src/common/types/module.ts +46 -0
- package/src/common/types/token.ts +72 -0
- package/src/common/utils/adapter.ts +197 -0
- package/src/common/utils/address.ts +50 -0
- package/src/common/utils/bytes.ts +36 -0
- package/src/common/utils/chain.ts +163 -0
- package/src/common/utils/formulae.ts +270 -0
- package/src/common/utils/gmp.ts +8 -0
- package/src/common/utils/lending.ts +31 -0
- package/src/common/utils/math-lib.ts +50 -0
- package/src/common/utils/messages.ts +283 -0
- package/src/common/utils/token.ts +13 -0
- package/src/common/utils/transaction.ts +27 -0
- package/src/index.ts +73 -0
- package/src/lifeline/core/ts-core.ts +136 -0
- package/src/lifeline/modules/index.ts +5 -0
- package/src/lifeline/modules/ts-account.ts +420 -0
- package/src/lifeline/modules/ts-gmp.ts +5 -0
- package/src/lifeline/modules/ts-loan.ts +1268 -0
- package/src/lifeline/modules/ts-oracle.ts +68 -0
- package/src/lifeline/modules/ts-pool.ts +19 -0
- package/src/types/generics.ts +1 -0
- package/src/utils/address.ts +0 -0
- package/src/utils/array.ts +11 -0
- package/src/utils/exhaustive-check.ts +3 -0
- package/src/utils/random.ts +3 -0
|
@@ -0,0 +1,1999 @@
|
|
|
1
|
+
export declare const HubPoolAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "admin";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "hub";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "loanController";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "tokenDecimals";
|
|
17
|
+
readonly type: "uint8";
|
|
18
|
+
readonly internalType: "uint8";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "tsTokenName";
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly internalType: "string";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "tsTokenSymbol";
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
readonly internalType: "string";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "poolId";
|
|
29
|
+
readonly type: "uint8";
|
|
30
|
+
readonly internalType: "uint8";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "pooldata";
|
|
33
|
+
readonly type: "tuple";
|
|
34
|
+
readonly internalType: "struct HubAssetPoolState.PoolData";
|
|
35
|
+
readonly components: readonly [{
|
|
36
|
+
readonly name: "lastUpdateTimestamp";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "feeData";
|
|
41
|
+
readonly type: "tuple";
|
|
42
|
+
readonly internalType: "struct HubAssetPoolState.FeeData";
|
|
43
|
+
readonly components: readonly [{
|
|
44
|
+
readonly name: "flashLoanFee";
|
|
45
|
+
readonly type: "uint32";
|
|
46
|
+
readonly internalType: "uint32";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "retentionRate";
|
|
49
|
+
readonly type: "uint32";
|
|
50
|
+
readonly internalType: "uint32";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "tsTokenFeeRecipient";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "tokenFeeClaimer";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
readonly internalType: "address";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "totalRetainedAmount";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
readonly internalType: "uint256";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "tokenFeeRecipient";
|
|
65
|
+
readonly type: "bytes32";
|
|
66
|
+
readonly internalType: "bytes32";
|
|
67
|
+
}];
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "depositData";
|
|
70
|
+
readonly type: "tuple";
|
|
71
|
+
readonly internalType: "struct HubAssetPoolState.DepositData";
|
|
72
|
+
readonly components: readonly [{
|
|
73
|
+
readonly name: "optimalUtilisationRatio";
|
|
74
|
+
readonly type: "uint16";
|
|
75
|
+
readonly internalType: "uint16";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "totalAmount";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "interestRate";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "interestIndex";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
readonly internalType: "uint256";
|
|
88
|
+
}];
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "variableBorrowData";
|
|
91
|
+
readonly type: "tuple";
|
|
92
|
+
readonly internalType: "struct HubAssetPoolState.VariableBorrowData";
|
|
93
|
+
readonly components: readonly [{
|
|
94
|
+
readonly name: "vr0";
|
|
95
|
+
readonly type: "uint32";
|
|
96
|
+
readonly internalType: "uint32";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "vr1";
|
|
99
|
+
readonly type: "uint32";
|
|
100
|
+
readonly internalType: "uint32";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "vr2";
|
|
103
|
+
readonly type: "uint32";
|
|
104
|
+
readonly internalType: "uint32";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "totalAmount";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
readonly internalType: "uint256";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "interestRate";
|
|
111
|
+
readonly type: "uint256";
|
|
112
|
+
readonly internalType: "uint256";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "interestIndex";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
readonly internalType: "uint256";
|
|
117
|
+
}];
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "stableBorrowData";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly internalType: "struct HubAssetPoolState.StableBorrowData";
|
|
122
|
+
readonly components: readonly [{
|
|
123
|
+
readonly name: "sr0";
|
|
124
|
+
readonly type: "uint32";
|
|
125
|
+
readonly internalType: "uint32";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "sr1";
|
|
128
|
+
readonly type: "uint32";
|
|
129
|
+
readonly internalType: "uint32";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "sr2";
|
|
132
|
+
readonly type: "uint32";
|
|
133
|
+
readonly internalType: "uint32";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "sr3";
|
|
136
|
+
readonly type: "uint32";
|
|
137
|
+
readonly internalType: "uint32";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "optimalStableToTotalDebtRatio";
|
|
140
|
+
readonly type: "uint16";
|
|
141
|
+
readonly internalType: "uint16";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "increaseBorrowBalanceUtilisationRatio";
|
|
144
|
+
readonly type: "uint16";
|
|
145
|
+
readonly internalType: "uint16";
|
|
146
|
+
}, {
|
|
147
|
+
readonly name: "increaseBorrowBalanceDepositInterestRate";
|
|
148
|
+
readonly type: "uint16";
|
|
149
|
+
readonly internalType: "uint16";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "decreaseBorrowBalanceDelta";
|
|
152
|
+
readonly type: "uint16";
|
|
153
|
+
readonly internalType: "uint16";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "totalAmount";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "interestRate";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
readonly internalType: "uint256";
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "averageInterestRate";
|
|
164
|
+
readonly type: "uint256";
|
|
165
|
+
readonly internalType: "uint256";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "deviation";
|
|
168
|
+
readonly type: "uint16";
|
|
169
|
+
readonly internalType: "uint16";
|
|
170
|
+
}];
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "capsData";
|
|
173
|
+
readonly type: "tuple";
|
|
174
|
+
readonly internalType: "struct HubAssetPoolState.CapsData";
|
|
175
|
+
readonly components: readonly [{
|
|
176
|
+
readonly name: "deposit";
|
|
177
|
+
readonly type: "uint64";
|
|
178
|
+
readonly internalType: "uint64";
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "borrow";
|
|
181
|
+
readonly type: "uint64";
|
|
182
|
+
readonly internalType: "uint64";
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "stableBorrowPercentage";
|
|
185
|
+
readonly type: "uint64";
|
|
186
|
+
readonly internalType: "uint64";
|
|
187
|
+
}];
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "configData";
|
|
190
|
+
readonly type: "tuple";
|
|
191
|
+
readonly internalType: "struct HubAssetPoolState.ConfigData";
|
|
192
|
+
readonly components: readonly [{
|
|
193
|
+
readonly name: "deprecated";
|
|
194
|
+
readonly type: "bool";
|
|
195
|
+
readonly internalType: "bool";
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "stableBorrowSupported";
|
|
198
|
+
readonly type: "bool";
|
|
199
|
+
readonly internalType: "bool";
|
|
200
|
+
}, {
|
|
201
|
+
readonly name: "canMintTsToken";
|
|
202
|
+
readonly type: "bool";
|
|
203
|
+
readonly internalType: "bool";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "flashLoanSupported";
|
|
206
|
+
readonly type: "bool";
|
|
207
|
+
readonly internalType: "bool";
|
|
208
|
+
}];
|
|
209
|
+
}];
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "priceFeedManager";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
readonly internalType: "contract IPriceFeedManager";
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "chainId";
|
|
216
|
+
readonly type: "uint16";
|
|
217
|
+
readonly internalType: "uint16";
|
|
218
|
+
}, {
|
|
219
|
+
readonly name: "spokeAddress";
|
|
220
|
+
readonly type: "bytes32";
|
|
221
|
+
readonly internalType: "bytes32";
|
|
222
|
+
}];
|
|
223
|
+
readonly stateMutability: "nonpayable";
|
|
224
|
+
}, {
|
|
225
|
+
readonly type: "function";
|
|
226
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
227
|
+
readonly inputs: readonly [];
|
|
228
|
+
readonly outputs: readonly [{
|
|
229
|
+
readonly name: "";
|
|
230
|
+
readonly type: "bytes32";
|
|
231
|
+
readonly internalType: "bytes32";
|
|
232
|
+
}];
|
|
233
|
+
readonly stateMutability: "view";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly name: "HUB_ROLE";
|
|
237
|
+
readonly inputs: readonly [];
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "bytes32";
|
|
241
|
+
readonly internalType: "bytes32";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "view";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly name: "LOAN_MANAGER_ROLE";
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
readonly outputs: readonly [{
|
|
249
|
+
readonly name: "";
|
|
250
|
+
readonly type: "bytes32";
|
|
251
|
+
readonly internalType: "bytes32";
|
|
252
|
+
}];
|
|
253
|
+
readonly stateMutability: "view";
|
|
254
|
+
}, {
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
readonly name: "ORACLE_ROLE";
|
|
257
|
+
readonly inputs: readonly [];
|
|
258
|
+
readonly outputs: readonly [{
|
|
259
|
+
readonly name: "";
|
|
260
|
+
readonly type: "bytes32";
|
|
261
|
+
readonly internalType: "bytes32";
|
|
262
|
+
}];
|
|
263
|
+
readonly stateMutability: "view";
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
readonly name: "PARAM_ROLE";
|
|
267
|
+
readonly inputs: readonly [];
|
|
268
|
+
readonly outputs: readonly [{
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly type: "bytes32";
|
|
271
|
+
readonly internalType: "bytes32";
|
|
272
|
+
}];
|
|
273
|
+
readonly stateMutability: "view";
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
readonly name: "acceptDefaultAdminTransfer";
|
|
277
|
+
readonly inputs: readonly [];
|
|
278
|
+
readonly outputs: readonly [];
|
|
279
|
+
readonly stateMutability: "nonpayable";
|
|
280
|
+
}, {
|
|
281
|
+
readonly type: "function";
|
|
282
|
+
readonly name: "allowance";
|
|
283
|
+
readonly inputs: readonly [{
|
|
284
|
+
readonly name: "owner";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
readonly internalType: "address";
|
|
287
|
+
}, {
|
|
288
|
+
readonly name: "spender";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
readonly internalType: "address";
|
|
291
|
+
}];
|
|
292
|
+
readonly outputs: readonly [{
|
|
293
|
+
readonly name: "";
|
|
294
|
+
readonly type: "uint256";
|
|
295
|
+
readonly internalType: "uint256";
|
|
296
|
+
}];
|
|
297
|
+
readonly stateMutability: "view";
|
|
298
|
+
}, {
|
|
299
|
+
readonly type: "function";
|
|
300
|
+
readonly name: "approve";
|
|
301
|
+
readonly inputs: readonly [{
|
|
302
|
+
readonly name: "spender";
|
|
303
|
+
readonly type: "address";
|
|
304
|
+
readonly internalType: "address";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "value";
|
|
307
|
+
readonly type: "uint256";
|
|
308
|
+
readonly internalType: "uint256";
|
|
309
|
+
}];
|
|
310
|
+
readonly outputs: readonly [{
|
|
311
|
+
readonly name: "";
|
|
312
|
+
readonly type: "bool";
|
|
313
|
+
readonly internalType: "bool";
|
|
314
|
+
}];
|
|
315
|
+
readonly stateMutability: "nonpayable";
|
|
316
|
+
}, {
|
|
317
|
+
readonly type: "function";
|
|
318
|
+
readonly name: "balanceOf";
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly name: "account";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
readonly internalType: "address";
|
|
323
|
+
}];
|
|
324
|
+
readonly outputs: readonly [{
|
|
325
|
+
readonly name: "";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
readonly internalType: "uint256";
|
|
328
|
+
}];
|
|
329
|
+
readonly stateMutability: "view";
|
|
330
|
+
}, {
|
|
331
|
+
readonly type: "function";
|
|
332
|
+
readonly name: "beginDefaultAdminTransfer";
|
|
333
|
+
readonly inputs: readonly [{
|
|
334
|
+
readonly name: "newAdmin";
|
|
335
|
+
readonly type: "address";
|
|
336
|
+
readonly internalType: "address";
|
|
337
|
+
}];
|
|
338
|
+
readonly outputs: readonly [];
|
|
339
|
+
readonly stateMutability: "nonpayable";
|
|
340
|
+
}, {
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
readonly name: "burnTsToken";
|
|
343
|
+
readonly inputs: readonly [{
|
|
344
|
+
readonly name: "sender";
|
|
345
|
+
readonly type: "address";
|
|
346
|
+
readonly internalType: "address";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "amount";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
readonly internalType: "uint256";
|
|
351
|
+
}];
|
|
352
|
+
readonly outputs: readonly [];
|
|
353
|
+
readonly stateMutability: "nonpayable";
|
|
354
|
+
}, {
|
|
355
|
+
readonly type: "function";
|
|
356
|
+
readonly name: "cancelDefaultAdminTransfer";
|
|
357
|
+
readonly inputs: readonly [];
|
|
358
|
+
readonly outputs: readonly [];
|
|
359
|
+
readonly stateMutability: "nonpayable";
|
|
360
|
+
}, {
|
|
361
|
+
readonly type: "function";
|
|
362
|
+
readonly name: "changeDefaultAdminDelay";
|
|
363
|
+
readonly inputs: readonly [{
|
|
364
|
+
readonly name: "newDelay";
|
|
365
|
+
readonly type: "uint48";
|
|
366
|
+
readonly internalType: "uint48";
|
|
367
|
+
}];
|
|
368
|
+
readonly outputs: readonly [];
|
|
369
|
+
readonly stateMutability: "nonpayable";
|
|
370
|
+
}, {
|
|
371
|
+
readonly type: "function";
|
|
372
|
+
readonly name: "clearTokenFees";
|
|
373
|
+
readonly inputs: readonly [];
|
|
374
|
+
readonly outputs: readonly [{
|
|
375
|
+
readonly name: "";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
readonly internalType: "uint256";
|
|
378
|
+
}];
|
|
379
|
+
readonly stateMutability: "nonpayable";
|
|
380
|
+
}, {
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
readonly name: "decimals";
|
|
383
|
+
readonly inputs: readonly [];
|
|
384
|
+
readonly outputs: readonly [{
|
|
385
|
+
readonly name: "";
|
|
386
|
+
readonly type: "uint8";
|
|
387
|
+
readonly internalType: "uint8";
|
|
388
|
+
}];
|
|
389
|
+
readonly stateMutability: "view";
|
|
390
|
+
}, {
|
|
391
|
+
readonly type: "function";
|
|
392
|
+
readonly name: "defaultAdmin";
|
|
393
|
+
readonly inputs: readonly [];
|
|
394
|
+
readonly outputs: readonly [{
|
|
395
|
+
readonly name: "";
|
|
396
|
+
readonly type: "address";
|
|
397
|
+
readonly internalType: "address";
|
|
398
|
+
}];
|
|
399
|
+
readonly stateMutability: "view";
|
|
400
|
+
}, {
|
|
401
|
+
readonly type: "function";
|
|
402
|
+
readonly name: "defaultAdminDelay";
|
|
403
|
+
readonly inputs: readonly [];
|
|
404
|
+
readonly outputs: readonly [{
|
|
405
|
+
readonly name: "";
|
|
406
|
+
readonly type: "uint48";
|
|
407
|
+
readonly internalType: "uint48";
|
|
408
|
+
}];
|
|
409
|
+
readonly stateMutability: "view";
|
|
410
|
+
}, {
|
|
411
|
+
readonly type: "function";
|
|
412
|
+
readonly name: "defaultAdminDelayIncreaseWait";
|
|
413
|
+
readonly inputs: readonly [];
|
|
414
|
+
readonly outputs: readonly [{
|
|
415
|
+
readonly name: "";
|
|
416
|
+
readonly type: "uint48";
|
|
417
|
+
readonly internalType: "uint48";
|
|
418
|
+
}];
|
|
419
|
+
readonly stateMutability: "view";
|
|
420
|
+
}, {
|
|
421
|
+
readonly type: "function";
|
|
422
|
+
readonly name: "flashFee";
|
|
423
|
+
readonly inputs: readonly [{
|
|
424
|
+
readonly name: "token";
|
|
425
|
+
readonly type: "address";
|
|
426
|
+
readonly internalType: "address";
|
|
427
|
+
}, {
|
|
428
|
+
readonly name: "value";
|
|
429
|
+
readonly type: "uint256";
|
|
430
|
+
readonly internalType: "uint256";
|
|
431
|
+
}];
|
|
432
|
+
readonly outputs: readonly [{
|
|
433
|
+
readonly name: "";
|
|
434
|
+
readonly type: "uint256";
|
|
435
|
+
readonly internalType: "uint256";
|
|
436
|
+
}];
|
|
437
|
+
readonly stateMutability: "view";
|
|
438
|
+
}, {
|
|
439
|
+
readonly type: "function";
|
|
440
|
+
readonly name: "flashLoan";
|
|
441
|
+
readonly inputs: readonly [{
|
|
442
|
+
readonly name: "receiver";
|
|
443
|
+
readonly type: "address";
|
|
444
|
+
readonly internalType: "contract IERC3156FlashBorrower";
|
|
445
|
+
}, {
|
|
446
|
+
readonly name: "token";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
readonly internalType: "address";
|
|
449
|
+
}, {
|
|
450
|
+
readonly name: "value";
|
|
451
|
+
readonly type: "uint256";
|
|
452
|
+
readonly internalType: "uint256";
|
|
453
|
+
}, {
|
|
454
|
+
readonly name: "data";
|
|
455
|
+
readonly type: "bytes";
|
|
456
|
+
readonly internalType: "bytes";
|
|
457
|
+
}];
|
|
458
|
+
readonly outputs: readonly [{
|
|
459
|
+
readonly name: "";
|
|
460
|
+
readonly type: "bool";
|
|
461
|
+
readonly internalType: "bool";
|
|
462
|
+
}];
|
|
463
|
+
readonly stateMutability: "nonpayable";
|
|
464
|
+
}, {
|
|
465
|
+
readonly type: "function";
|
|
466
|
+
readonly name: "getCapsData";
|
|
467
|
+
readonly inputs: readonly [];
|
|
468
|
+
readonly outputs: readonly [{
|
|
469
|
+
readonly name: "";
|
|
470
|
+
readonly type: "tuple";
|
|
471
|
+
readonly internalType: "struct HubAssetPoolState.CapsData";
|
|
472
|
+
readonly components: readonly [{
|
|
473
|
+
readonly name: "deposit";
|
|
474
|
+
readonly type: "uint64";
|
|
475
|
+
readonly internalType: "uint64";
|
|
476
|
+
}, {
|
|
477
|
+
readonly name: "borrow";
|
|
478
|
+
readonly type: "uint64";
|
|
479
|
+
readonly internalType: "uint64";
|
|
480
|
+
}, {
|
|
481
|
+
readonly name: "stableBorrowPercentage";
|
|
482
|
+
readonly type: "uint64";
|
|
483
|
+
readonly internalType: "uint64";
|
|
484
|
+
}];
|
|
485
|
+
}];
|
|
486
|
+
readonly stateMutability: "view";
|
|
487
|
+
}, {
|
|
488
|
+
readonly type: "function";
|
|
489
|
+
readonly name: "getChainSpoke";
|
|
490
|
+
readonly inputs: readonly [{
|
|
491
|
+
readonly name: "chainId";
|
|
492
|
+
readonly type: "uint16";
|
|
493
|
+
readonly internalType: "uint16";
|
|
494
|
+
}];
|
|
495
|
+
readonly outputs: readonly [{
|
|
496
|
+
readonly name: "";
|
|
497
|
+
readonly type: "bytes32";
|
|
498
|
+
readonly internalType: "bytes32";
|
|
499
|
+
}];
|
|
500
|
+
readonly stateMutability: "view";
|
|
501
|
+
}, {
|
|
502
|
+
readonly type: "function";
|
|
503
|
+
readonly name: "getConfigData";
|
|
504
|
+
readonly inputs: readonly [];
|
|
505
|
+
readonly outputs: readonly [{
|
|
506
|
+
readonly name: "";
|
|
507
|
+
readonly type: "tuple";
|
|
508
|
+
readonly internalType: "struct HubAssetPoolState.ConfigData";
|
|
509
|
+
readonly components: readonly [{
|
|
510
|
+
readonly name: "deprecated";
|
|
511
|
+
readonly type: "bool";
|
|
512
|
+
readonly internalType: "bool";
|
|
513
|
+
}, {
|
|
514
|
+
readonly name: "stableBorrowSupported";
|
|
515
|
+
readonly type: "bool";
|
|
516
|
+
readonly internalType: "bool";
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "canMintTsToken";
|
|
519
|
+
readonly type: "bool";
|
|
520
|
+
readonly internalType: "bool";
|
|
521
|
+
}, {
|
|
522
|
+
readonly name: "flashLoanSupported";
|
|
523
|
+
readonly type: "bool";
|
|
524
|
+
readonly internalType: "bool";
|
|
525
|
+
}];
|
|
526
|
+
}];
|
|
527
|
+
readonly stateMutability: "view";
|
|
528
|
+
}, {
|
|
529
|
+
readonly type: "function";
|
|
530
|
+
readonly name: "getDepositData";
|
|
531
|
+
readonly inputs: readonly [];
|
|
532
|
+
readonly outputs: readonly [{
|
|
533
|
+
readonly name: "";
|
|
534
|
+
readonly type: "tuple";
|
|
535
|
+
readonly internalType: "struct HubAssetPoolState.DepositData";
|
|
536
|
+
readonly components: readonly [{
|
|
537
|
+
readonly name: "optimalUtilisationRatio";
|
|
538
|
+
readonly type: "uint16";
|
|
539
|
+
readonly internalType: "uint16";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "totalAmount";
|
|
542
|
+
readonly type: "uint256";
|
|
543
|
+
readonly internalType: "uint256";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "interestRate";
|
|
546
|
+
readonly type: "uint256";
|
|
547
|
+
readonly internalType: "uint256";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "interestIndex";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
readonly internalType: "uint256";
|
|
552
|
+
}];
|
|
553
|
+
}];
|
|
554
|
+
readonly stateMutability: "view";
|
|
555
|
+
}, {
|
|
556
|
+
readonly type: "function";
|
|
557
|
+
readonly name: "getFeeData";
|
|
558
|
+
readonly inputs: readonly [];
|
|
559
|
+
readonly outputs: readonly [{
|
|
560
|
+
readonly name: "";
|
|
561
|
+
readonly type: "tuple";
|
|
562
|
+
readonly internalType: "struct HubAssetPoolState.FeeData";
|
|
563
|
+
readonly components: readonly [{
|
|
564
|
+
readonly name: "flashLoanFee";
|
|
565
|
+
readonly type: "uint32";
|
|
566
|
+
readonly internalType: "uint32";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "retentionRate";
|
|
569
|
+
readonly type: "uint32";
|
|
570
|
+
readonly internalType: "uint32";
|
|
571
|
+
}, {
|
|
572
|
+
readonly name: "tsTokenFeeRecipient";
|
|
573
|
+
readonly type: "address";
|
|
574
|
+
readonly internalType: "address";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "tokenFeeClaimer";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
readonly internalType: "address";
|
|
579
|
+
}, {
|
|
580
|
+
readonly name: "totalRetainedAmount";
|
|
581
|
+
readonly type: "uint256";
|
|
582
|
+
readonly internalType: "uint256";
|
|
583
|
+
}, {
|
|
584
|
+
readonly name: "tokenFeeRecipient";
|
|
585
|
+
readonly type: "bytes32";
|
|
586
|
+
readonly internalType: "bytes32";
|
|
587
|
+
}];
|
|
588
|
+
}];
|
|
589
|
+
readonly stateMutability: "view";
|
|
590
|
+
}, {
|
|
591
|
+
readonly type: "function";
|
|
592
|
+
readonly name: "getLastUpdateTimestamp";
|
|
593
|
+
readonly inputs: readonly [];
|
|
594
|
+
readonly outputs: readonly [{
|
|
595
|
+
readonly name: "";
|
|
596
|
+
readonly type: "uint256";
|
|
597
|
+
readonly internalType: "uint256";
|
|
598
|
+
}];
|
|
599
|
+
readonly stateMutability: "view";
|
|
600
|
+
}, {
|
|
601
|
+
readonly type: "function";
|
|
602
|
+
readonly name: "getPoolId";
|
|
603
|
+
readonly inputs: readonly [];
|
|
604
|
+
readonly outputs: readonly [{
|
|
605
|
+
readonly name: "";
|
|
606
|
+
readonly type: "uint8";
|
|
607
|
+
readonly internalType: "uint8";
|
|
608
|
+
}];
|
|
609
|
+
readonly stateMutability: "view";
|
|
610
|
+
}, {
|
|
611
|
+
readonly type: "function";
|
|
612
|
+
readonly name: "getPriceFeedManager";
|
|
613
|
+
readonly inputs: readonly [];
|
|
614
|
+
readonly outputs: readonly [{
|
|
615
|
+
readonly name: "";
|
|
616
|
+
readonly type: "address";
|
|
617
|
+
readonly internalType: "address";
|
|
618
|
+
}];
|
|
619
|
+
readonly stateMutability: "view";
|
|
620
|
+
}, {
|
|
621
|
+
readonly type: "function";
|
|
622
|
+
readonly name: "getRefreshedDepositIndex";
|
|
623
|
+
readonly inputs: readonly [];
|
|
624
|
+
readonly outputs: readonly [{
|
|
625
|
+
readonly name: "";
|
|
626
|
+
readonly type: "uint256";
|
|
627
|
+
readonly internalType: "uint256";
|
|
628
|
+
}];
|
|
629
|
+
readonly stateMutability: "view";
|
|
630
|
+
}, {
|
|
631
|
+
readonly type: "function";
|
|
632
|
+
readonly name: "getRoleAdmin";
|
|
633
|
+
readonly inputs: readonly [{
|
|
634
|
+
readonly name: "role";
|
|
635
|
+
readonly type: "bytes32";
|
|
636
|
+
readonly internalType: "bytes32";
|
|
637
|
+
}];
|
|
638
|
+
readonly outputs: readonly [{
|
|
639
|
+
readonly name: "";
|
|
640
|
+
readonly type: "bytes32";
|
|
641
|
+
readonly internalType: "bytes32";
|
|
642
|
+
}];
|
|
643
|
+
readonly stateMutability: "view";
|
|
644
|
+
}, {
|
|
645
|
+
readonly type: "function";
|
|
646
|
+
readonly name: "getSendTokenMessage";
|
|
647
|
+
readonly inputs: readonly [{
|
|
648
|
+
readonly name: "messageDispatcher";
|
|
649
|
+
readonly type: "address";
|
|
650
|
+
readonly internalType: "contract IMessageDispatcher";
|
|
651
|
+
}, {
|
|
652
|
+
readonly name: "adapterId";
|
|
653
|
+
readonly type: "uint16";
|
|
654
|
+
readonly internalType: "uint16";
|
|
655
|
+
}, {
|
|
656
|
+
readonly name: "gasLimit";
|
|
657
|
+
readonly type: "uint256";
|
|
658
|
+
readonly internalType: "uint256";
|
|
659
|
+
}, {
|
|
660
|
+
readonly name: "accountId";
|
|
661
|
+
readonly type: "bytes32";
|
|
662
|
+
readonly internalType: "bytes32";
|
|
663
|
+
}, {
|
|
664
|
+
readonly name: "chainId";
|
|
665
|
+
readonly type: "uint16";
|
|
666
|
+
readonly internalType: "uint16";
|
|
667
|
+
}, {
|
|
668
|
+
readonly name: "amount";
|
|
669
|
+
readonly type: "uint256";
|
|
670
|
+
readonly internalType: "uint256";
|
|
671
|
+
}, {
|
|
672
|
+
readonly name: "recipient";
|
|
673
|
+
readonly type: "bytes32";
|
|
674
|
+
readonly internalType: "bytes32";
|
|
675
|
+
}];
|
|
676
|
+
readonly outputs: readonly [{
|
|
677
|
+
readonly name: "";
|
|
678
|
+
readonly type: "tuple";
|
|
679
|
+
readonly internalType: "struct Messages.MessageToSend";
|
|
680
|
+
readonly components: readonly [{
|
|
681
|
+
readonly name: "params";
|
|
682
|
+
readonly type: "tuple";
|
|
683
|
+
readonly internalType: "struct Messages.MessageParams";
|
|
684
|
+
readonly components: readonly [{
|
|
685
|
+
readonly name: "adapterId";
|
|
686
|
+
readonly type: "uint16";
|
|
687
|
+
readonly internalType: "uint16";
|
|
688
|
+
}, {
|
|
689
|
+
readonly name: "returnAdapterId";
|
|
690
|
+
readonly type: "uint16";
|
|
691
|
+
readonly internalType: "uint16";
|
|
692
|
+
}, {
|
|
693
|
+
readonly name: "receiverValue";
|
|
694
|
+
readonly type: "uint256";
|
|
695
|
+
readonly internalType: "uint256";
|
|
696
|
+
}, {
|
|
697
|
+
readonly name: "gasLimit";
|
|
698
|
+
readonly type: "uint256";
|
|
699
|
+
readonly internalType: "uint256";
|
|
700
|
+
}, {
|
|
701
|
+
readonly name: "returnGasLimit";
|
|
702
|
+
readonly type: "uint256";
|
|
703
|
+
readonly internalType: "uint256";
|
|
704
|
+
}];
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "sender";
|
|
707
|
+
readonly type: "bytes32";
|
|
708
|
+
readonly internalType: "bytes32";
|
|
709
|
+
}, {
|
|
710
|
+
readonly name: "destinationChainId";
|
|
711
|
+
readonly type: "uint16";
|
|
712
|
+
readonly internalType: "uint16";
|
|
713
|
+
}, {
|
|
714
|
+
readonly name: "handler";
|
|
715
|
+
readonly type: "bytes32";
|
|
716
|
+
readonly internalType: "bytes32";
|
|
717
|
+
}, {
|
|
718
|
+
readonly name: "payload";
|
|
719
|
+
readonly type: "bytes";
|
|
720
|
+
readonly internalType: "bytes";
|
|
721
|
+
}, {
|
|
722
|
+
readonly name: "finalityLevel";
|
|
723
|
+
readonly type: "uint64";
|
|
724
|
+
readonly internalType: "uint64";
|
|
725
|
+
}, {
|
|
726
|
+
readonly name: "extraArgs";
|
|
727
|
+
readonly type: "bytes";
|
|
728
|
+
readonly internalType: "bytes";
|
|
729
|
+
}];
|
|
730
|
+
}];
|
|
731
|
+
readonly stateMutability: "nonpayable";
|
|
732
|
+
}, {
|
|
733
|
+
readonly type: "function";
|
|
734
|
+
readonly name: "getStableBorrowData";
|
|
735
|
+
readonly inputs: readonly [];
|
|
736
|
+
readonly outputs: readonly [{
|
|
737
|
+
readonly name: "";
|
|
738
|
+
readonly type: "tuple";
|
|
739
|
+
readonly internalType: "struct HubAssetPoolState.StableBorrowData";
|
|
740
|
+
readonly components: readonly [{
|
|
741
|
+
readonly name: "sr0";
|
|
742
|
+
readonly type: "uint32";
|
|
743
|
+
readonly internalType: "uint32";
|
|
744
|
+
}, {
|
|
745
|
+
readonly name: "sr1";
|
|
746
|
+
readonly type: "uint32";
|
|
747
|
+
readonly internalType: "uint32";
|
|
748
|
+
}, {
|
|
749
|
+
readonly name: "sr2";
|
|
750
|
+
readonly type: "uint32";
|
|
751
|
+
readonly internalType: "uint32";
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "sr3";
|
|
754
|
+
readonly type: "uint32";
|
|
755
|
+
readonly internalType: "uint32";
|
|
756
|
+
}, {
|
|
757
|
+
readonly name: "optimalStableToTotalDebtRatio";
|
|
758
|
+
readonly type: "uint16";
|
|
759
|
+
readonly internalType: "uint16";
|
|
760
|
+
}, {
|
|
761
|
+
readonly name: "increaseBorrowBalanceUtilisationRatio";
|
|
762
|
+
readonly type: "uint16";
|
|
763
|
+
readonly internalType: "uint16";
|
|
764
|
+
}, {
|
|
765
|
+
readonly name: "increaseBorrowBalanceDepositInterestRate";
|
|
766
|
+
readonly type: "uint16";
|
|
767
|
+
readonly internalType: "uint16";
|
|
768
|
+
}, {
|
|
769
|
+
readonly name: "decreaseBorrowBalanceDelta";
|
|
770
|
+
readonly type: "uint16";
|
|
771
|
+
readonly internalType: "uint16";
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "totalAmount";
|
|
774
|
+
readonly type: "uint256";
|
|
775
|
+
readonly internalType: "uint256";
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "interestRate";
|
|
778
|
+
readonly type: "uint256";
|
|
779
|
+
readonly internalType: "uint256";
|
|
780
|
+
}, {
|
|
781
|
+
readonly name: "averageInterestRate";
|
|
782
|
+
readonly type: "uint256";
|
|
783
|
+
readonly internalType: "uint256";
|
|
784
|
+
}, {
|
|
785
|
+
readonly name: "deviation";
|
|
786
|
+
readonly type: "uint16";
|
|
787
|
+
readonly internalType: "uint16";
|
|
788
|
+
}];
|
|
789
|
+
}];
|
|
790
|
+
readonly stateMutability: "view";
|
|
791
|
+
}, {
|
|
792
|
+
readonly type: "function";
|
|
793
|
+
readonly name: "getTokenFeeClaimer";
|
|
794
|
+
readonly inputs: readonly [];
|
|
795
|
+
readonly outputs: readonly [{
|
|
796
|
+
readonly name: "";
|
|
797
|
+
readonly type: "address";
|
|
798
|
+
readonly internalType: "address";
|
|
799
|
+
}];
|
|
800
|
+
readonly stateMutability: "view";
|
|
801
|
+
}, {
|
|
802
|
+
readonly type: "function";
|
|
803
|
+
readonly name: "getTokenFeeHolder";
|
|
804
|
+
readonly inputs: readonly [];
|
|
805
|
+
readonly outputs: readonly [{
|
|
806
|
+
readonly name: "";
|
|
807
|
+
readonly type: "bytes32";
|
|
808
|
+
readonly internalType: "bytes32";
|
|
809
|
+
}];
|
|
810
|
+
readonly stateMutability: "view";
|
|
811
|
+
}, {
|
|
812
|
+
readonly type: "function";
|
|
813
|
+
readonly name: "getUpdatedVariableBorrowInterestIndex";
|
|
814
|
+
readonly inputs: readonly [];
|
|
815
|
+
readonly outputs: readonly [{
|
|
816
|
+
readonly name: "";
|
|
817
|
+
readonly type: "uint256";
|
|
818
|
+
readonly internalType: "uint256";
|
|
819
|
+
}];
|
|
820
|
+
readonly stateMutability: "view";
|
|
821
|
+
}, {
|
|
822
|
+
readonly type: "function";
|
|
823
|
+
readonly name: "getVariableBorrowData";
|
|
824
|
+
readonly inputs: readonly [];
|
|
825
|
+
readonly outputs: readonly [{
|
|
826
|
+
readonly name: "";
|
|
827
|
+
readonly type: "tuple";
|
|
828
|
+
readonly internalType: "struct HubAssetPoolState.VariableBorrowData";
|
|
829
|
+
readonly components: readonly [{
|
|
830
|
+
readonly name: "vr0";
|
|
831
|
+
readonly type: "uint32";
|
|
832
|
+
readonly internalType: "uint32";
|
|
833
|
+
}, {
|
|
834
|
+
readonly name: "vr1";
|
|
835
|
+
readonly type: "uint32";
|
|
836
|
+
readonly internalType: "uint32";
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "vr2";
|
|
839
|
+
readonly type: "uint32";
|
|
840
|
+
readonly internalType: "uint32";
|
|
841
|
+
}, {
|
|
842
|
+
readonly name: "totalAmount";
|
|
843
|
+
readonly type: "uint256";
|
|
844
|
+
readonly internalType: "uint256";
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "interestRate";
|
|
847
|
+
readonly type: "uint256";
|
|
848
|
+
readonly internalType: "uint256";
|
|
849
|
+
}, {
|
|
850
|
+
readonly name: "interestIndex";
|
|
851
|
+
readonly type: "uint256";
|
|
852
|
+
readonly internalType: "uint256";
|
|
853
|
+
}];
|
|
854
|
+
}];
|
|
855
|
+
readonly stateMutability: "view";
|
|
856
|
+
}, {
|
|
857
|
+
readonly type: "function";
|
|
858
|
+
readonly name: "grantRole";
|
|
859
|
+
readonly inputs: readonly [{
|
|
860
|
+
readonly name: "role";
|
|
861
|
+
readonly type: "bytes32";
|
|
862
|
+
readonly internalType: "bytes32";
|
|
863
|
+
}, {
|
|
864
|
+
readonly name: "account";
|
|
865
|
+
readonly type: "address";
|
|
866
|
+
readonly internalType: "address";
|
|
867
|
+
}];
|
|
868
|
+
readonly outputs: readonly [];
|
|
869
|
+
readonly stateMutability: "nonpayable";
|
|
870
|
+
}, {
|
|
871
|
+
readonly type: "function";
|
|
872
|
+
readonly name: "hasRole";
|
|
873
|
+
readonly inputs: readonly [{
|
|
874
|
+
readonly name: "role";
|
|
875
|
+
readonly type: "bytes32";
|
|
876
|
+
readonly internalType: "bytes32";
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "account";
|
|
879
|
+
readonly type: "address";
|
|
880
|
+
readonly internalType: "address";
|
|
881
|
+
}];
|
|
882
|
+
readonly outputs: readonly [{
|
|
883
|
+
readonly name: "";
|
|
884
|
+
readonly type: "bool";
|
|
885
|
+
readonly internalType: "bool";
|
|
886
|
+
}];
|
|
887
|
+
readonly stateMutability: "view";
|
|
888
|
+
}, {
|
|
889
|
+
readonly type: "function";
|
|
890
|
+
readonly name: "maxFlashLoan";
|
|
891
|
+
readonly inputs: readonly [{
|
|
892
|
+
readonly name: "token";
|
|
893
|
+
readonly type: "address";
|
|
894
|
+
readonly internalType: "address";
|
|
895
|
+
}];
|
|
896
|
+
readonly outputs: readonly [{
|
|
897
|
+
readonly name: "";
|
|
898
|
+
readonly type: "uint256";
|
|
899
|
+
readonly internalType: "uint256";
|
|
900
|
+
}];
|
|
901
|
+
readonly stateMutability: "view";
|
|
902
|
+
}, {
|
|
903
|
+
readonly type: "function";
|
|
904
|
+
readonly name: "mintTsToken";
|
|
905
|
+
readonly inputs: readonly [{
|
|
906
|
+
readonly name: "recipient";
|
|
907
|
+
readonly type: "address";
|
|
908
|
+
readonly internalType: "address";
|
|
909
|
+
}, {
|
|
910
|
+
readonly name: "amount";
|
|
911
|
+
readonly type: "uint256";
|
|
912
|
+
readonly internalType: "uint256";
|
|
913
|
+
}];
|
|
914
|
+
readonly outputs: readonly [];
|
|
915
|
+
readonly stateMutability: "nonpayable";
|
|
916
|
+
}, {
|
|
917
|
+
readonly type: "function";
|
|
918
|
+
readonly name: "mintTsTokenForFeeRecipient";
|
|
919
|
+
readonly inputs: readonly [{
|
|
920
|
+
readonly name: "amount";
|
|
921
|
+
readonly type: "uint256";
|
|
922
|
+
readonly internalType: "uint256";
|
|
923
|
+
}];
|
|
924
|
+
readonly outputs: readonly [];
|
|
925
|
+
readonly stateMutability: "nonpayable";
|
|
926
|
+
}, {
|
|
927
|
+
readonly type: "function";
|
|
928
|
+
readonly name: "name";
|
|
929
|
+
readonly inputs: readonly [];
|
|
930
|
+
readonly outputs: readonly [{
|
|
931
|
+
readonly name: "";
|
|
932
|
+
readonly type: "string";
|
|
933
|
+
readonly internalType: "string";
|
|
934
|
+
}];
|
|
935
|
+
readonly stateMutability: "view";
|
|
936
|
+
}, {
|
|
937
|
+
readonly type: "function";
|
|
938
|
+
readonly name: "owner";
|
|
939
|
+
readonly inputs: readonly [];
|
|
940
|
+
readonly outputs: readonly [{
|
|
941
|
+
readonly name: "";
|
|
942
|
+
readonly type: "address";
|
|
943
|
+
readonly internalType: "address";
|
|
944
|
+
}];
|
|
945
|
+
readonly stateMutability: "view";
|
|
946
|
+
}, {
|
|
947
|
+
readonly type: "function";
|
|
948
|
+
readonly name: "pendingDefaultAdmin";
|
|
949
|
+
readonly inputs: readonly [];
|
|
950
|
+
readonly outputs: readonly [{
|
|
951
|
+
readonly name: "newAdmin";
|
|
952
|
+
readonly type: "address";
|
|
953
|
+
readonly internalType: "address";
|
|
954
|
+
}, {
|
|
955
|
+
readonly name: "schedule";
|
|
956
|
+
readonly type: "uint48";
|
|
957
|
+
readonly internalType: "uint48";
|
|
958
|
+
}];
|
|
959
|
+
readonly stateMutability: "view";
|
|
960
|
+
}, {
|
|
961
|
+
readonly type: "function";
|
|
962
|
+
readonly name: "pendingDefaultAdminDelay";
|
|
963
|
+
readonly inputs: readonly [];
|
|
964
|
+
readonly outputs: readonly [{
|
|
965
|
+
readonly name: "newDelay";
|
|
966
|
+
readonly type: "uint48";
|
|
967
|
+
readonly internalType: "uint48";
|
|
968
|
+
}, {
|
|
969
|
+
readonly name: "schedule";
|
|
970
|
+
readonly type: "uint48";
|
|
971
|
+
readonly internalType: "uint48";
|
|
972
|
+
}];
|
|
973
|
+
readonly stateMutability: "view";
|
|
974
|
+
}, {
|
|
975
|
+
readonly type: "function";
|
|
976
|
+
readonly name: "poolId";
|
|
977
|
+
readonly inputs: readonly [];
|
|
978
|
+
readonly outputs: readonly [{
|
|
979
|
+
readonly name: "";
|
|
980
|
+
readonly type: "uint8";
|
|
981
|
+
readonly internalType: "uint8";
|
|
982
|
+
}];
|
|
983
|
+
readonly stateMutability: "view";
|
|
984
|
+
}, {
|
|
985
|
+
readonly type: "function";
|
|
986
|
+
readonly name: "preparePoolForBorrow";
|
|
987
|
+
readonly inputs: readonly [{
|
|
988
|
+
readonly name: "amount";
|
|
989
|
+
readonly type: "uint256";
|
|
990
|
+
readonly internalType: "uint256";
|
|
991
|
+
}, {
|
|
992
|
+
readonly name: "maxStableRate";
|
|
993
|
+
readonly type: "uint256";
|
|
994
|
+
readonly internalType: "uint256";
|
|
995
|
+
}];
|
|
996
|
+
readonly outputs: readonly [{
|
|
997
|
+
readonly name: "borrowPoolParams";
|
|
998
|
+
readonly type: "tuple";
|
|
999
|
+
readonly internalType: "struct DataTypes.BorrowPoolParams";
|
|
1000
|
+
readonly components: readonly [{
|
|
1001
|
+
readonly name: "variableInterestIndex";
|
|
1002
|
+
readonly type: "uint256";
|
|
1003
|
+
readonly internalType: "uint256";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly name: "stableInterestRate";
|
|
1006
|
+
readonly type: "uint256";
|
|
1007
|
+
readonly internalType: "uint256";
|
|
1008
|
+
}];
|
|
1009
|
+
}];
|
|
1010
|
+
readonly stateMutability: "nonpayable";
|
|
1011
|
+
}, {
|
|
1012
|
+
readonly type: "function";
|
|
1013
|
+
readonly name: "preparePoolForChangeBorrowMode";
|
|
1014
|
+
readonly inputs: readonly [{
|
|
1015
|
+
readonly name: "amount";
|
|
1016
|
+
readonly type: "uint256";
|
|
1017
|
+
readonly internalType: "uint256";
|
|
1018
|
+
}, {
|
|
1019
|
+
readonly name: "maxStableRate";
|
|
1020
|
+
readonly type: "uint256";
|
|
1021
|
+
readonly internalType: "uint256";
|
|
1022
|
+
}];
|
|
1023
|
+
readonly outputs: readonly [{
|
|
1024
|
+
readonly name: "borrowPoolParams";
|
|
1025
|
+
readonly type: "tuple";
|
|
1026
|
+
readonly internalType: "struct DataTypes.BorrowPoolParams";
|
|
1027
|
+
readonly components: readonly [{
|
|
1028
|
+
readonly name: "variableInterestIndex";
|
|
1029
|
+
readonly type: "uint256";
|
|
1030
|
+
readonly internalType: "uint256";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly name: "stableInterestRate";
|
|
1033
|
+
readonly type: "uint256";
|
|
1034
|
+
readonly internalType: "uint256";
|
|
1035
|
+
}];
|
|
1036
|
+
}];
|
|
1037
|
+
readonly stateMutability: "nonpayable";
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly type: "function";
|
|
1040
|
+
readonly name: "preparePoolForDecreaseBorrowBalance";
|
|
1041
|
+
readonly inputs: readonly [];
|
|
1042
|
+
readonly outputs: readonly [{
|
|
1043
|
+
readonly name: "decreaseBorrowBalancePoolParams";
|
|
1044
|
+
readonly type: "tuple";
|
|
1045
|
+
readonly internalType: "struct DataTypes.DecreaseBorrowBalancePoolParams";
|
|
1046
|
+
readonly components: readonly [{
|
|
1047
|
+
readonly name: "variableInterestIndex";
|
|
1048
|
+
readonly type: "uint256";
|
|
1049
|
+
readonly internalType: "uint256";
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly name: "stableInterestRate";
|
|
1052
|
+
readonly type: "uint256";
|
|
1053
|
+
readonly internalType: "uint256";
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly name: "threshold";
|
|
1056
|
+
readonly type: "uint256";
|
|
1057
|
+
readonly internalType: "uint256";
|
|
1058
|
+
}];
|
|
1059
|
+
}];
|
|
1060
|
+
readonly stateMutability: "nonpayable";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly type: "function";
|
|
1063
|
+
readonly name: "preparePoolForIncreaseBorrowBalance";
|
|
1064
|
+
readonly inputs: readonly [];
|
|
1065
|
+
readonly outputs: readonly [{
|
|
1066
|
+
readonly name: "borrowPoolParams";
|
|
1067
|
+
readonly type: "tuple";
|
|
1068
|
+
readonly internalType: "struct DataTypes.BorrowPoolParams";
|
|
1069
|
+
readonly components: readonly [{
|
|
1070
|
+
readonly name: "variableInterestIndex";
|
|
1071
|
+
readonly type: "uint256";
|
|
1072
|
+
readonly internalType: "uint256";
|
|
1073
|
+
}, {
|
|
1074
|
+
readonly name: "stableInterestRate";
|
|
1075
|
+
readonly type: "uint256";
|
|
1076
|
+
readonly internalType: "uint256";
|
|
1077
|
+
}];
|
|
1078
|
+
}];
|
|
1079
|
+
readonly stateMutability: "nonpayable";
|
|
1080
|
+
}, {
|
|
1081
|
+
readonly type: "function";
|
|
1082
|
+
readonly name: "preparePoolForRepay";
|
|
1083
|
+
readonly inputs: readonly [];
|
|
1084
|
+
readonly outputs: readonly [{
|
|
1085
|
+
readonly name: "";
|
|
1086
|
+
readonly type: "tuple";
|
|
1087
|
+
readonly internalType: "struct DataTypes.BorrowPoolParams";
|
|
1088
|
+
readonly components: readonly [{
|
|
1089
|
+
readonly name: "variableInterestIndex";
|
|
1090
|
+
readonly type: "uint256";
|
|
1091
|
+
readonly internalType: "uint256";
|
|
1092
|
+
}, {
|
|
1093
|
+
readonly name: "stableInterestRate";
|
|
1094
|
+
readonly type: "uint256";
|
|
1095
|
+
readonly internalType: "uint256";
|
|
1096
|
+
}];
|
|
1097
|
+
}];
|
|
1098
|
+
readonly stateMutability: "nonpayable";
|
|
1099
|
+
}, {
|
|
1100
|
+
readonly type: "function";
|
|
1101
|
+
readonly name: "preparePoolForWithdraw";
|
|
1102
|
+
readonly inputs: readonly [{
|
|
1103
|
+
readonly name: "amount";
|
|
1104
|
+
readonly type: "uint256";
|
|
1105
|
+
readonly internalType: "uint256";
|
|
1106
|
+
}, {
|
|
1107
|
+
readonly name: "isFAmount";
|
|
1108
|
+
readonly type: "bool";
|
|
1109
|
+
readonly internalType: "bool";
|
|
1110
|
+
}];
|
|
1111
|
+
readonly outputs: readonly [{
|
|
1112
|
+
readonly name: "withdrawPoolParams";
|
|
1113
|
+
readonly type: "tuple";
|
|
1114
|
+
readonly internalType: "struct DataTypes.WithdrawPoolParams";
|
|
1115
|
+
readonly components: readonly [{
|
|
1116
|
+
readonly name: "underlingAmount";
|
|
1117
|
+
readonly type: "uint256";
|
|
1118
|
+
readonly internalType: "uint256";
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly name: "fAmount";
|
|
1121
|
+
readonly type: "uint256";
|
|
1122
|
+
readonly internalType: "uint256";
|
|
1123
|
+
}];
|
|
1124
|
+
}];
|
|
1125
|
+
readonly stateMutability: "nonpayable";
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly type: "function";
|
|
1128
|
+
readonly name: "preparePoolForWithdrawTsToken";
|
|
1129
|
+
readonly inputs: readonly [];
|
|
1130
|
+
readonly outputs: readonly [];
|
|
1131
|
+
readonly stateMutability: "nonpayable";
|
|
1132
|
+
}, {
|
|
1133
|
+
readonly type: "function";
|
|
1134
|
+
readonly name: "renounceRole";
|
|
1135
|
+
readonly inputs: readonly [{
|
|
1136
|
+
readonly name: "role";
|
|
1137
|
+
readonly type: "bytes32";
|
|
1138
|
+
readonly internalType: "bytes32";
|
|
1139
|
+
}, {
|
|
1140
|
+
readonly name: "account";
|
|
1141
|
+
readonly type: "address";
|
|
1142
|
+
readonly internalType: "address";
|
|
1143
|
+
}];
|
|
1144
|
+
readonly outputs: readonly [];
|
|
1145
|
+
readonly stateMutability: "nonpayable";
|
|
1146
|
+
}, {
|
|
1147
|
+
readonly type: "function";
|
|
1148
|
+
readonly name: "revokeRole";
|
|
1149
|
+
readonly inputs: readonly [{
|
|
1150
|
+
readonly name: "role";
|
|
1151
|
+
readonly type: "bytes32";
|
|
1152
|
+
readonly internalType: "bytes32";
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly name: "account";
|
|
1155
|
+
readonly type: "address";
|
|
1156
|
+
readonly internalType: "address";
|
|
1157
|
+
}];
|
|
1158
|
+
readonly outputs: readonly [];
|
|
1159
|
+
readonly stateMutability: "nonpayable";
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly type: "function";
|
|
1162
|
+
readonly name: "rollbackDefaultAdminDelay";
|
|
1163
|
+
readonly inputs: readonly [];
|
|
1164
|
+
readonly outputs: readonly [];
|
|
1165
|
+
readonly stateMutability: "nonpayable";
|
|
1166
|
+
}, {
|
|
1167
|
+
readonly type: "function";
|
|
1168
|
+
readonly name: "supportsInterface";
|
|
1169
|
+
readonly inputs: readonly [{
|
|
1170
|
+
readonly name: "interfaceId";
|
|
1171
|
+
readonly type: "bytes4";
|
|
1172
|
+
readonly internalType: "bytes4";
|
|
1173
|
+
}];
|
|
1174
|
+
readonly outputs: readonly [{
|
|
1175
|
+
readonly name: "";
|
|
1176
|
+
readonly type: "bool";
|
|
1177
|
+
readonly internalType: "bool";
|
|
1178
|
+
}];
|
|
1179
|
+
readonly stateMutability: "view";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly type: "function";
|
|
1182
|
+
readonly name: "symbol";
|
|
1183
|
+
readonly inputs: readonly [];
|
|
1184
|
+
readonly outputs: readonly [{
|
|
1185
|
+
readonly name: "";
|
|
1186
|
+
readonly type: "string";
|
|
1187
|
+
readonly internalType: "string";
|
|
1188
|
+
}];
|
|
1189
|
+
readonly stateMutability: "view";
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly type: "function";
|
|
1192
|
+
readonly name: "totalSupply";
|
|
1193
|
+
readonly inputs: readonly [];
|
|
1194
|
+
readonly outputs: readonly [{
|
|
1195
|
+
readonly name: "";
|
|
1196
|
+
readonly type: "uint256";
|
|
1197
|
+
readonly internalType: "uint256";
|
|
1198
|
+
}];
|
|
1199
|
+
readonly stateMutability: "view";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly type: "function";
|
|
1202
|
+
readonly name: "transfer";
|
|
1203
|
+
readonly inputs: readonly [{
|
|
1204
|
+
readonly name: "to";
|
|
1205
|
+
readonly type: "address";
|
|
1206
|
+
readonly internalType: "address";
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly name: "value";
|
|
1209
|
+
readonly type: "uint256";
|
|
1210
|
+
readonly internalType: "uint256";
|
|
1211
|
+
}];
|
|
1212
|
+
readonly outputs: readonly [{
|
|
1213
|
+
readonly name: "";
|
|
1214
|
+
readonly type: "bool";
|
|
1215
|
+
readonly internalType: "bool";
|
|
1216
|
+
}];
|
|
1217
|
+
readonly stateMutability: "nonpayable";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly type: "function";
|
|
1220
|
+
readonly name: "transferFrom";
|
|
1221
|
+
readonly inputs: readonly [{
|
|
1222
|
+
readonly name: "from";
|
|
1223
|
+
readonly type: "address";
|
|
1224
|
+
readonly internalType: "address";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly name: "to";
|
|
1227
|
+
readonly type: "address";
|
|
1228
|
+
readonly internalType: "address";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly name: "value";
|
|
1231
|
+
readonly type: "uint256";
|
|
1232
|
+
readonly internalType: "uint256";
|
|
1233
|
+
}];
|
|
1234
|
+
readonly outputs: readonly [{
|
|
1235
|
+
readonly name: "";
|
|
1236
|
+
readonly type: "bool";
|
|
1237
|
+
readonly internalType: "bool";
|
|
1238
|
+
}];
|
|
1239
|
+
readonly stateMutability: "nonpayable";
|
|
1240
|
+
}, {
|
|
1241
|
+
readonly type: "function";
|
|
1242
|
+
readonly name: "updateCapsData";
|
|
1243
|
+
readonly inputs: readonly [{
|
|
1244
|
+
readonly name: "capsData";
|
|
1245
|
+
readonly type: "tuple";
|
|
1246
|
+
readonly internalType: "struct HubAssetPoolState.CapsData";
|
|
1247
|
+
readonly components: readonly [{
|
|
1248
|
+
readonly name: "deposit";
|
|
1249
|
+
readonly type: "uint64";
|
|
1250
|
+
readonly internalType: "uint64";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly name: "borrow";
|
|
1253
|
+
readonly type: "uint64";
|
|
1254
|
+
readonly internalType: "uint64";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly name: "stableBorrowPercentage";
|
|
1257
|
+
readonly type: "uint64";
|
|
1258
|
+
readonly internalType: "uint64";
|
|
1259
|
+
}];
|
|
1260
|
+
}];
|
|
1261
|
+
readonly outputs: readonly [];
|
|
1262
|
+
readonly stateMutability: "nonpayable";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly type: "function";
|
|
1265
|
+
readonly name: "updateConfigData";
|
|
1266
|
+
readonly inputs: readonly [{
|
|
1267
|
+
readonly name: "configData";
|
|
1268
|
+
readonly type: "tuple";
|
|
1269
|
+
readonly internalType: "struct HubAssetPoolState.ConfigData";
|
|
1270
|
+
readonly components: readonly [{
|
|
1271
|
+
readonly name: "deprecated";
|
|
1272
|
+
readonly type: "bool";
|
|
1273
|
+
readonly internalType: "bool";
|
|
1274
|
+
}, {
|
|
1275
|
+
readonly name: "stableBorrowSupported";
|
|
1276
|
+
readonly type: "bool";
|
|
1277
|
+
readonly internalType: "bool";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly name: "canMintTsToken";
|
|
1280
|
+
readonly type: "bool";
|
|
1281
|
+
readonly internalType: "bool";
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly name: "flashLoanSupported";
|
|
1284
|
+
readonly type: "bool";
|
|
1285
|
+
readonly internalType: "bool";
|
|
1286
|
+
}];
|
|
1287
|
+
}];
|
|
1288
|
+
readonly outputs: readonly [];
|
|
1289
|
+
readonly stateMutability: "nonpayable";
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly type: "function";
|
|
1292
|
+
readonly name: "updateDepositData";
|
|
1293
|
+
readonly inputs: readonly [{
|
|
1294
|
+
readonly name: "optimalUtilisationRatio";
|
|
1295
|
+
readonly type: "uint16";
|
|
1296
|
+
readonly internalType: "uint16";
|
|
1297
|
+
}];
|
|
1298
|
+
readonly outputs: readonly [];
|
|
1299
|
+
readonly stateMutability: "nonpayable";
|
|
1300
|
+
}, {
|
|
1301
|
+
readonly type: "function";
|
|
1302
|
+
readonly name: "updateFeeData";
|
|
1303
|
+
readonly inputs: readonly [{
|
|
1304
|
+
readonly name: "flashLoanFee";
|
|
1305
|
+
readonly type: "uint32";
|
|
1306
|
+
readonly internalType: "uint32";
|
|
1307
|
+
}, {
|
|
1308
|
+
readonly name: "retentionRate";
|
|
1309
|
+
readonly type: "uint32";
|
|
1310
|
+
readonly internalType: "uint32";
|
|
1311
|
+
}, {
|
|
1312
|
+
readonly name: "tsTokenFeeRecipient";
|
|
1313
|
+
readonly type: "address";
|
|
1314
|
+
readonly internalType: "address";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly name: "tokenFeeClaimer";
|
|
1317
|
+
readonly type: "address";
|
|
1318
|
+
readonly internalType: "address";
|
|
1319
|
+
}, {
|
|
1320
|
+
readonly name: "tokenFeeRecipient";
|
|
1321
|
+
readonly type: "bytes32";
|
|
1322
|
+
readonly internalType: "bytes32";
|
|
1323
|
+
}];
|
|
1324
|
+
readonly outputs: readonly [];
|
|
1325
|
+
readonly stateMutability: "nonpayable";
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly type: "function";
|
|
1328
|
+
readonly name: "updateInterestIndexes";
|
|
1329
|
+
readonly inputs: readonly [];
|
|
1330
|
+
readonly outputs: readonly [];
|
|
1331
|
+
readonly stateMutability: "nonpayable";
|
|
1332
|
+
}, {
|
|
1333
|
+
readonly type: "function";
|
|
1334
|
+
readonly name: "updatePoolWithBorrow";
|
|
1335
|
+
readonly inputs: readonly [{
|
|
1336
|
+
readonly name: "oldBorrowAmount";
|
|
1337
|
+
readonly type: "uint256";
|
|
1338
|
+
readonly internalType: "uint256";
|
|
1339
|
+
}, {
|
|
1340
|
+
readonly name: "additionalBorrowAmount";
|
|
1341
|
+
readonly type: "uint256";
|
|
1342
|
+
readonly internalType: "uint256";
|
|
1343
|
+
}, {
|
|
1344
|
+
readonly name: "oldBorrowStableRate";
|
|
1345
|
+
readonly type: "uint256";
|
|
1346
|
+
readonly internalType: "uint256";
|
|
1347
|
+
}, {
|
|
1348
|
+
readonly name: "newBorrowStableRate";
|
|
1349
|
+
readonly type: "uint256";
|
|
1350
|
+
readonly internalType: "uint256";
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly name: "isStable";
|
|
1353
|
+
readonly type: "bool";
|
|
1354
|
+
readonly internalType: "bool";
|
|
1355
|
+
}];
|
|
1356
|
+
readonly outputs: readonly [];
|
|
1357
|
+
readonly stateMutability: "nonpayable";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly type: "function";
|
|
1360
|
+
readonly name: "updatePoolWithChangeBorrowMode";
|
|
1361
|
+
readonly inputs: readonly [{
|
|
1362
|
+
readonly name: "loanBorrowAmount";
|
|
1363
|
+
readonly type: "uint256";
|
|
1364
|
+
readonly internalType: "uint256";
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly name: "switchingToStable";
|
|
1367
|
+
readonly type: "bool";
|
|
1368
|
+
readonly internalType: "bool";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly name: "oldLoanBorrowStableRate";
|
|
1371
|
+
readonly type: "uint256";
|
|
1372
|
+
readonly internalType: "uint256";
|
|
1373
|
+
}];
|
|
1374
|
+
readonly outputs: readonly [];
|
|
1375
|
+
readonly stateMutability: "nonpayable";
|
|
1376
|
+
}, {
|
|
1377
|
+
readonly type: "function";
|
|
1378
|
+
readonly name: "updatePoolWithDeposit";
|
|
1379
|
+
readonly inputs: readonly [{
|
|
1380
|
+
readonly name: "amount";
|
|
1381
|
+
readonly type: "uint256";
|
|
1382
|
+
readonly internalType: "uint256";
|
|
1383
|
+
}];
|
|
1384
|
+
readonly outputs: readonly [{
|
|
1385
|
+
readonly name: "";
|
|
1386
|
+
readonly type: "tuple";
|
|
1387
|
+
readonly internalType: "struct DataTypes.DepositPoolParams";
|
|
1388
|
+
readonly components: readonly [{
|
|
1389
|
+
readonly name: "fAmount";
|
|
1390
|
+
readonly type: "uint256";
|
|
1391
|
+
readonly internalType: "uint256";
|
|
1392
|
+
}, {
|
|
1393
|
+
readonly name: "depositInterestIndex";
|
|
1394
|
+
readonly type: "uint256";
|
|
1395
|
+
readonly internalType: "uint256";
|
|
1396
|
+
}, {
|
|
1397
|
+
readonly name: "priceFeed";
|
|
1398
|
+
readonly type: "tuple";
|
|
1399
|
+
readonly internalType: "struct DataTypes.PriceFeed";
|
|
1400
|
+
readonly components: readonly [{
|
|
1401
|
+
readonly name: "price";
|
|
1402
|
+
readonly type: "uint256";
|
|
1403
|
+
readonly internalType: "uint256";
|
|
1404
|
+
}, {
|
|
1405
|
+
readonly name: "decimals";
|
|
1406
|
+
readonly type: "uint8";
|
|
1407
|
+
readonly internalType: "uint8";
|
|
1408
|
+
}];
|
|
1409
|
+
}];
|
|
1410
|
+
}];
|
|
1411
|
+
readonly stateMutability: "nonpayable";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly type: "function";
|
|
1414
|
+
readonly name: "updatePoolWithLiquidation";
|
|
1415
|
+
readonly inputs: readonly [{
|
|
1416
|
+
readonly name: "repaidBorrowAmount";
|
|
1417
|
+
readonly type: "uint256";
|
|
1418
|
+
readonly internalType: "uint256";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly name: "violatorLoanStableRate";
|
|
1421
|
+
readonly type: "uint256";
|
|
1422
|
+
readonly internalType: "uint256";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly name: "liquidatorOldBorrowAmount";
|
|
1425
|
+
readonly type: "uint256";
|
|
1426
|
+
readonly internalType: "uint256";
|
|
1427
|
+
}, {
|
|
1428
|
+
readonly name: "liquidatorOldLoanStableRate";
|
|
1429
|
+
readonly type: "uint256";
|
|
1430
|
+
readonly internalType: "uint256";
|
|
1431
|
+
}, {
|
|
1432
|
+
readonly name: "liquidatorNewLoanStableRate";
|
|
1433
|
+
readonly type: "uint256";
|
|
1434
|
+
readonly internalType: "uint256";
|
|
1435
|
+
}];
|
|
1436
|
+
readonly outputs: readonly [];
|
|
1437
|
+
readonly stateMutability: "nonpayable";
|
|
1438
|
+
}, {
|
|
1439
|
+
readonly type: "function";
|
|
1440
|
+
readonly name: "updatePoolWithRebalance";
|
|
1441
|
+
readonly inputs: readonly [{
|
|
1442
|
+
readonly name: "amount";
|
|
1443
|
+
readonly type: "uint256";
|
|
1444
|
+
readonly internalType: "uint256";
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly name: "oldLoanStableInterestRate";
|
|
1447
|
+
readonly type: "uint256";
|
|
1448
|
+
readonly internalType: "uint256";
|
|
1449
|
+
}];
|
|
1450
|
+
readonly outputs: readonly [];
|
|
1451
|
+
readonly stateMutability: "nonpayable";
|
|
1452
|
+
}, {
|
|
1453
|
+
readonly type: "function";
|
|
1454
|
+
readonly name: "updatePoolWithRepay";
|
|
1455
|
+
readonly inputs: readonly [{
|
|
1456
|
+
readonly name: "principalPaid";
|
|
1457
|
+
readonly type: "uint256";
|
|
1458
|
+
readonly internalType: "uint256";
|
|
1459
|
+
}, {
|
|
1460
|
+
readonly name: "interestPaid";
|
|
1461
|
+
readonly type: "uint256";
|
|
1462
|
+
readonly internalType: "uint256";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly name: "loanStableRate";
|
|
1465
|
+
readonly type: "uint256";
|
|
1466
|
+
readonly internalType: "uint256";
|
|
1467
|
+
}, {
|
|
1468
|
+
readonly name: "excessAmount";
|
|
1469
|
+
readonly type: "uint256";
|
|
1470
|
+
readonly internalType: "uint256";
|
|
1471
|
+
}];
|
|
1472
|
+
readonly outputs: readonly [];
|
|
1473
|
+
readonly stateMutability: "nonpayable";
|
|
1474
|
+
}, {
|
|
1475
|
+
readonly type: "function";
|
|
1476
|
+
readonly name: "updatePoolWithRepayWithCollateral";
|
|
1477
|
+
readonly inputs: readonly [{
|
|
1478
|
+
readonly name: "principalPaid";
|
|
1479
|
+
readonly type: "uint256";
|
|
1480
|
+
readonly internalType: "uint256";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly name: "interestPaid";
|
|
1483
|
+
readonly type: "uint256";
|
|
1484
|
+
readonly internalType: "uint256";
|
|
1485
|
+
}, {
|
|
1486
|
+
readonly name: "loanStableRate";
|
|
1487
|
+
readonly type: "uint256";
|
|
1488
|
+
readonly internalType: "uint256";
|
|
1489
|
+
}];
|
|
1490
|
+
readonly outputs: readonly [{
|
|
1491
|
+
readonly name: "";
|
|
1492
|
+
readonly type: "tuple";
|
|
1493
|
+
readonly internalType: "struct DataTypes.RepayWithCollateralPoolParams";
|
|
1494
|
+
readonly components: readonly [{
|
|
1495
|
+
readonly name: "fAmount";
|
|
1496
|
+
readonly type: "uint256";
|
|
1497
|
+
readonly internalType: "uint256";
|
|
1498
|
+
}];
|
|
1499
|
+
}];
|
|
1500
|
+
readonly stateMutability: "nonpayable";
|
|
1501
|
+
}, {
|
|
1502
|
+
readonly type: "function";
|
|
1503
|
+
readonly name: "updatePoolWithWithdraw";
|
|
1504
|
+
readonly inputs: readonly [{
|
|
1505
|
+
readonly name: "underlyingAmount";
|
|
1506
|
+
readonly type: "uint256";
|
|
1507
|
+
readonly internalType: "uint256";
|
|
1508
|
+
}];
|
|
1509
|
+
readonly outputs: readonly [];
|
|
1510
|
+
readonly stateMutability: "nonpayable";
|
|
1511
|
+
}, {
|
|
1512
|
+
readonly type: "function";
|
|
1513
|
+
readonly name: "updatePriceFeedManager";
|
|
1514
|
+
readonly inputs: readonly [{
|
|
1515
|
+
readonly name: "newPriceFeedManager";
|
|
1516
|
+
readonly type: "address";
|
|
1517
|
+
readonly internalType: "contract IPriceFeedManager";
|
|
1518
|
+
}];
|
|
1519
|
+
readonly outputs: readonly [];
|
|
1520
|
+
readonly stateMutability: "nonpayable";
|
|
1521
|
+
}, {
|
|
1522
|
+
readonly type: "function";
|
|
1523
|
+
readonly name: "updateStableBorrowData";
|
|
1524
|
+
readonly inputs: readonly [{
|
|
1525
|
+
readonly name: "sr0";
|
|
1526
|
+
readonly type: "uint32";
|
|
1527
|
+
readonly internalType: "uint32";
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly name: "sr1";
|
|
1530
|
+
readonly type: "uint32";
|
|
1531
|
+
readonly internalType: "uint32";
|
|
1532
|
+
}, {
|
|
1533
|
+
readonly name: "sr2";
|
|
1534
|
+
readonly type: "uint32";
|
|
1535
|
+
readonly internalType: "uint32";
|
|
1536
|
+
}, {
|
|
1537
|
+
readonly name: "sr3";
|
|
1538
|
+
readonly type: "uint32";
|
|
1539
|
+
readonly internalType: "uint32";
|
|
1540
|
+
}, {
|
|
1541
|
+
readonly name: "optimalStableToTotalDebtRatio";
|
|
1542
|
+
readonly type: "uint16";
|
|
1543
|
+
readonly internalType: "uint16";
|
|
1544
|
+
}, {
|
|
1545
|
+
readonly name: "increaseBorrowBalanceUtilisationRatio";
|
|
1546
|
+
readonly type: "uint16";
|
|
1547
|
+
readonly internalType: "uint16";
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly name: "increaseBorrowBalanceDepositInterestRate";
|
|
1550
|
+
readonly type: "uint16";
|
|
1551
|
+
readonly internalType: "uint16";
|
|
1552
|
+
}, {
|
|
1553
|
+
readonly name: "decreaseBorrowBalanceDelta";
|
|
1554
|
+
readonly type: "uint16";
|
|
1555
|
+
readonly internalType: "uint16";
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly name: "deviation";
|
|
1558
|
+
readonly type: "uint16";
|
|
1559
|
+
readonly internalType: "uint16";
|
|
1560
|
+
}];
|
|
1561
|
+
readonly outputs: readonly [];
|
|
1562
|
+
readonly stateMutability: "nonpayable";
|
|
1563
|
+
}, {
|
|
1564
|
+
readonly type: "function";
|
|
1565
|
+
readonly name: "updateVariableBorrowData";
|
|
1566
|
+
readonly inputs: readonly [{
|
|
1567
|
+
readonly name: "vr0";
|
|
1568
|
+
readonly type: "uint32";
|
|
1569
|
+
readonly internalType: "uint32";
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly name: "vr1";
|
|
1572
|
+
readonly type: "uint32";
|
|
1573
|
+
readonly internalType: "uint32";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly name: "vr2";
|
|
1576
|
+
readonly type: "uint32";
|
|
1577
|
+
readonly internalType: "uint32";
|
|
1578
|
+
}];
|
|
1579
|
+
readonly outputs: readonly [];
|
|
1580
|
+
readonly stateMutability: "nonpayable";
|
|
1581
|
+
}, {
|
|
1582
|
+
readonly type: "function";
|
|
1583
|
+
readonly name: "verifyReceiveToken";
|
|
1584
|
+
readonly inputs: readonly [{
|
|
1585
|
+
readonly name: "chainId";
|
|
1586
|
+
readonly type: "uint16";
|
|
1587
|
+
readonly internalType: "uint16";
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly name: "source";
|
|
1590
|
+
readonly type: "bytes32";
|
|
1591
|
+
readonly internalType: "bytes32";
|
|
1592
|
+
}];
|
|
1593
|
+
readonly outputs: readonly [];
|
|
1594
|
+
readonly stateMutability: "view";
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly type: "event";
|
|
1597
|
+
readonly name: "Approval";
|
|
1598
|
+
readonly inputs: readonly [{
|
|
1599
|
+
readonly name: "owner";
|
|
1600
|
+
readonly type: "address";
|
|
1601
|
+
readonly indexed: true;
|
|
1602
|
+
readonly internalType: "address";
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly name: "spender";
|
|
1605
|
+
readonly type: "address";
|
|
1606
|
+
readonly indexed: true;
|
|
1607
|
+
readonly internalType: "address";
|
|
1608
|
+
}, {
|
|
1609
|
+
readonly name: "value";
|
|
1610
|
+
readonly type: "uint256";
|
|
1611
|
+
readonly indexed: false;
|
|
1612
|
+
readonly internalType: "uint256";
|
|
1613
|
+
}];
|
|
1614
|
+
readonly anonymous: false;
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly type: "event";
|
|
1617
|
+
readonly name: "DefaultAdminDelayChangeCanceled";
|
|
1618
|
+
readonly inputs: readonly [];
|
|
1619
|
+
readonly anonymous: false;
|
|
1620
|
+
}, {
|
|
1621
|
+
readonly type: "event";
|
|
1622
|
+
readonly name: "DefaultAdminDelayChangeScheduled";
|
|
1623
|
+
readonly inputs: readonly [{
|
|
1624
|
+
readonly name: "newDelay";
|
|
1625
|
+
readonly type: "uint48";
|
|
1626
|
+
readonly indexed: false;
|
|
1627
|
+
readonly internalType: "uint48";
|
|
1628
|
+
}, {
|
|
1629
|
+
readonly name: "effectSchedule";
|
|
1630
|
+
readonly type: "uint48";
|
|
1631
|
+
readonly indexed: false;
|
|
1632
|
+
readonly internalType: "uint48";
|
|
1633
|
+
}];
|
|
1634
|
+
readonly anonymous: false;
|
|
1635
|
+
}, {
|
|
1636
|
+
readonly type: "event";
|
|
1637
|
+
readonly name: "DefaultAdminTransferCanceled";
|
|
1638
|
+
readonly inputs: readonly [];
|
|
1639
|
+
readonly anonymous: false;
|
|
1640
|
+
}, {
|
|
1641
|
+
readonly type: "event";
|
|
1642
|
+
readonly name: "DefaultAdminTransferScheduled";
|
|
1643
|
+
readonly inputs: readonly [{
|
|
1644
|
+
readonly name: "newAdmin";
|
|
1645
|
+
readonly type: "address";
|
|
1646
|
+
readonly indexed: true;
|
|
1647
|
+
readonly internalType: "address";
|
|
1648
|
+
}, {
|
|
1649
|
+
readonly name: "acceptSchedule";
|
|
1650
|
+
readonly type: "uint48";
|
|
1651
|
+
readonly indexed: false;
|
|
1652
|
+
readonly internalType: "uint48";
|
|
1653
|
+
}];
|
|
1654
|
+
readonly anonymous: false;
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly type: "event";
|
|
1657
|
+
readonly name: "InterestIndexesUpdated";
|
|
1658
|
+
readonly inputs: readonly [{
|
|
1659
|
+
readonly name: "variableBorrowInterestIndex";
|
|
1660
|
+
readonly type: "uint256";
|
|
1661
|
+
readonly indexed: false;
|
|
1662
|
+
readonly internalType: "uint256";
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly name: "depositInterestIndex";
|
|
1665
|
+
readonly type: "uint256";
|
|
1666
|
+
readonly indexed: false;
|
|
1667
|
+
readonly internalType: "uint256";
|
|
1668
|
+
}, {
|
|
1669
|
+
readonly name: "lastUpdateTimestamp";
|
|
1670
|
+
readonly type: "uint256";
|
|
1671
|
+
readonly indexed: false;
|
|
1672
|
+
readonly internalType: "uint256";
|
|
1673
|
+
}];
|
|
1674
|
+
readonly anonymous: false;
|
|
1675
|
+
}, {
|
|
1676
|
+
readonly type: "event";
|
|
1677
|
+
readonly name: "InterestRatesUpdated";
|
|
1678
|
+
readonly inputs: readonly [{
|
|
1679
|
+
readonly name: "variableBorrowInterestRate";
|
|
1680
|
+
readonly type: "uint256";
|
|
1681
|
+
readonly indexed: false;
|
|
1682
|
+
readonly internalType: "uint256";
|
|
1683
|
+
}, {
|
|
1684
|
+
readonly name: "stableBorrowInterestRate";
|
|
1685
|
+
readonly type: "uint256";
|
|
1686
|
+
readonly indexed: false;
|
|
1687
|
+
readonly internalType: "uint256";
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly name: "depositInterestRate";
|
|
1690
|
+
readonly type: "uint256";
|
|
1691
|
+
readonly indexed: false;
|
|
1692
|
+
readonly internalType: "uint256";
|
|
1693
|
+
}];
|
|
1694
|
+
readonly anonymous: false;
|
|
1695
|
+
}, {
|
|
1696
|
+
readonly type: "event";
|
|
1697
|
+
readonly name: "RoleAdminChanged";
|
|
1698
|
+
readonly inputs: readonly [{
|
|
1699
|
+
readonly name: "role";
|
|
1700
|
+
readonly type: "bytes32";
|
|
1701
|
+
readonly indexed: true;
|
|
1702
|
+
readonly internalType: "bytes32";
|
|
1703
|
+
}, {
|
|
1704
|
+
readonly name: "previousAdminRole";
|
|
1705
|
+
readonly type: "bytes32";
|
|
1706
|
+
readonly indexed: true;
|
|
1707
|
+
readonly internalType: "bytes32";
|
|
1708
|
+
}, {
|
|
1709
|
+
readonly name: "newAdminRole";
|
|
1710
|
+
readonly type: "bytes32";
|
|
1711
|
+
readonly indexed: true;
|
|
1712
|
+
readonly internalType: "bytes32";
|
|
1713
|
+
}];
|
|
1714
|
+
readonly anonymous: false;
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly type: "event";
|
|
1717
|
+
readonly name: "RoleGranted";
|
|
1718
|
+
readonly inputs: readonly [{
|
|
1719
|
+
readonly name: "role";
|
|
1720
|
+
readonly type: "bytes32";
|
|
1721
|
+
readonly indexed: true;
|
|
1722
|
+
readonly internalType: "bytes32";
|
|
1723
|
+
}, {
|
|
1724
|
+
readonly name: "account";
|
|
1725
|
+
readonly type: "address";
|
|
1726
|
+
readonly indexed: true;
|
|
1727
|
+
readonly internalType: "address";
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly name: "sender";
|
|
1730
|
+
readonly type: "address";
|
|
1731
|
+
readonly indexed: true;
|
|
1732
|
+
readonly internalType: "address";
|
|
1733
|
+
}];
|
|
1734
|
+
readonly anonymous: false;
|
|
1735
|
+
}, {
|
|
1736
|
+
readonly type: "event";
|
|
1737
|
+
readonly name: "RoleRevoked";
|
|
1738
|
+
readonly inputs: readonly [{
|
|
1739
|
+
readonly name: "role";
|
|
1740
|
+
readonly type: "bytes32";
|
|
1741
|
+
readonly indexed: true;
|
|
1742
|
+
readonly internalType: "bytes32";
|
|
1743
|
+
}, {
|
|
1744
|
+
readonly name: "account";
|
|
1745
|
+
readonly type: "address";
|
|
1746
|
+
readonly indexed: true;
|
|
1747
|
+
readonly internalType: "address";
|
|
1748
|
+
}, {
|
|
1749
|
+
readonly name: "sender";
|
|
1750
|
+
readonly type: "address";
|
|
1751
|
+
readonly indexed: true;
|
|
1752
|
+
readonly internalType: "address";
|
|
1753
|
+
}];
|
|
1754
|
+
readonly anonymous: false;
|
|
1755
|
+
}, {
|
|
1756
|
+
readonly type: "event";
|
|
1757
|
+
readonly name: "Transfer";
|
|
1758
|
+
readonly inputs: readonly [{
|
|
1759
|
+
readonly name: "from";
|
|
1760
|
+
readonly type: "address";
|
|
1761
|
+
readonly indexed: true;
|
|
1762
|
+
readonly internalType: "address";
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly name: "to";
|
|
1765
|
+
readonly type: "address";
|
|
1766
|
+
readonly indexed: true;
|
|
1767
|
+
readonly internalType: "address";
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly name: "value";
|
|
1770
|
+
readonly type: "uint256";
|
|
1771
|
+
readonly indexed: false;
|
|
1772
|
+
readonly internalType: "uint256";
|
|
1773
|
+
}];
|
|
1774
|
+
readonly anonymous: false;
|
|
1775
|
+
}, {
|
|
1776
|
+
readonly type: "error";
|
|
1777
|
+
readonly name: "AccessControlBadConfirmation";
|
|
1778
|
+
readonly inputs: readonly [];
|
|
1779
|
+
}, {
|
|
1780
|
+
readonly type: "error";
|
|
1781
|
+
readonly name: "AccessControlEnforcedDefaultAdminDelay";
|
|
1782
|
+
readonly inputs: readonly [{
|
|
1783
|
+
readonly name: "schedule";
|
|
1784
|
+
readonly type: "uint48";
|
|
1785
|
+
readonly internalType: "uint48";
|
|
1786
|
+
}];
|
|
1787
|
+
}, {
|
|
1788
|
+
readonly type: "error";
|
|
1789
|
+
readonly name: "AccessControlEnforcedDefaultAdminRules";
|
|
1790
|
+
readonly inputs: readonly [];
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly type: "error";
|
|
1793
|
+
readonly name: "AccessControlInvalidDefaultAdmin";
|
|
1794
|
+
readonly inputs: readonly [{
|
|
1795
|
+
readonly name: "defaultAdmin";
|
|
1796
|
+
readonly type: "address";
|
|
1797
|
+
readonly internalType: "address";
|
|
1798
|
+
}];
|
|
1799
|
+
}, {
|
|
1800
|
+
readonly type: "error";
|
|
1801
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
1802
|
+
readonly inputs: readonly [{
|
|
1803
|
+
readonly name: "account";
|
|
1804
|
+
readonly type: "address";
|
|
1805
|
+
readonly internalType: "address";
|
|
1806
|
+
}, {
|
|
1807
|
+
readonly name: "neededRole";
|
|
1808
|
+
readonly type: "bytes32";
|
|
1809
|
+
readonly internalType: "bytes32";
|
|
1810
|
+
}];
|
|
1811
|
+
}, {
|
|
1812
|
+
readonly type: "error";
|
|
1813
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
1814
|
+
readonly inputs: readonly [{
|
|
1815
|
+
readonly name: "spender";
|
|
1816
|
+
readonly type: "address";
|
|
1817
|
+
readonly internalType: "address";
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly name: "allowance";
|
|
1820
|
+
readonly type: "uint256";
|
|
1821
|
+
readonly internalType: "uint256";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly name: "needed";
|
|
1824
|
+
readonly type: "uint256";
|
|
1825
|
+
readonly internalType: "uint256";
|
|
1826
|
+
}];
|
|
1827
|
+
}, {
|
|
1828
|
+
readonly type: "error";
|
|
1829
|
+
readonly name: "ERC20InsufficientBalance";
|
|
1830
|
+
readonly inputs: readonly [{
|
|
1831
|
+
readonly name: "sender";
|
|
1832
|
+
readonly type: "address";
|
|
1833
|
+
readonly internalType: "address";
|
|
1834
|
+
}, {
|
|
1835
|
+
readonly name: "balance";
|
|
1836
|
+
readonly type: "uint256";
|
|
1837
|
+
readonly internalType: "uint256";
|
|
1838
|
+
}, {
|
|
1839
|
+
readonly name: "needed";
|
|
1840
|
+
readonly type: "uint256";
|
|
1841
|
+
readonly internalType: "uint256";
|
|
1842
|
+
}];
|
|
1843
|
+
}, {
|
|
1844
|
+
readonly type: "error";
|
|
1845
|
+
readonly name: "ERC20InvalidApprover";
|
|
1846
|
+
readonly inputs: readonly [{
|
|
1847
|
+
readonly name: "approver";
|
|
1848
|
+
readonly type: "address";
|
|
1849
|
+
readonly internalType: "address";
|
|
1850
|
+
}];
|
|
1851
|
+
}, {
|
|
1852
|
+
readonly type: "error";
|
|
1853
|
+
readonly name: "ERC20InvalidReceiver";
|
|
1854
|
+
readonly inputs: readonly [{
|
|
1855
|
+
readonly name: "receiver";
|
|
1856
|
+
readonly type: "address";
|
|
1857
|
+
readonly internalType: "address";
|
|
1858
|
+
}];
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly type: "error";
|
|
1861
|
+
readonly name: "ERC20InvalidSender";
|
|
1862
|
+
readonly inputs: readonly [{
|
|
1863
|
+
readonly name: "sender";
|
|
1864
|
+
readonly type: "address";
|
|
1865
|
+
readonly internalType: "address";
|
|
1866
|
+
}];
|
|
1867
|
+
}, {
|
|
1868
|
+
readonly type: "error";
|
|
1869
|
+
readonly name: "ERC20InvalidSpender";
|
|
1870
|
+
readonly inputs: readonly [{
|
|
1871
|
+
readonly name: "spender";
|
|
1872
|
+
readonly type: "address";
|
|
1873
|
+
readonly internalType: "address";
|
|
1874
|
+
}];
|
|
1875
|
+
}, {
|
|
1876
|
+
readonly type: "error";
|
|
1877
|
+
readonly name: "ERC3156ExceededMaxLoan";
|
|
1878
|
+
readonly inputs: readonly [{
|
|
1879
|
+
readonly name: "maxLoan";
|
|
1880
|
+
readonly type: "uint256";
|
|
1881
|
+
readonly internalType: "uint256";
|
|
1882
|
+
}];
|
|
1883
|
+
}, {
|
|
1884
|
+
readonly type: "error";
|
|
1885
|
+
readonly name: "ERC3156InvalidReceiver";
|
|
1886
|
+
readonly inputs: readonly [{
|
|
1887
|
+
readonly name: "receiver";
|
|
1888
|
+
readonly type: "address";
|
|
1889
|
+
readonly internalType: "address";
|
|
1890
|
+
}];
|
|
1891
|
+
}, {
|
|
1892
|
+
readonly type: "error";
|
|
1893
|
+
readonly name: "ERC3156UnsupportedToken";
|
|
1894
|
+
readonly inputs: readonly [{
|
|
1895
|
+
readonly name: "token";
|
|
1896
|
+
readonly type: "address";
|
|
1897
|
+
readonly internalType: "address";
|
|
1898
|
+
}];
|
|
1899
|
+
}, {
|
|
1900
|
+
readonly type: "error";
|
|
1901
|
+
readonly name: "ExistingChainSpoke";
|
|
1902
|
+
readonly inputs: readonly [{
|
|
1903
|
+
readonly name: "chainId";
|
|
1904
|
+
readonly type: "uint16";
|
|
1905
|
+
readonly internalType: "uint16";
|
|
1906
|
+
}];
|
|
1907
|
+
}, {
|
|
1908
|
+
readonly type: "error";
|
|
1909
|
+
readonly name: "FlashLoanFeeTooHigh";
|
|
1910
|
+
readonly inputs: readonly [];
|
|
1911
|
+
}, {
|
|
1912
|
+
readonly type: "error";
|
|
1913
|
+
readonly name: "IncreaseBorrowBalanceDepositInterestRateTooHigh";
|
|
1914
|
+
readonly inputs: readonly [];
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly type: "error";
|
|
1917
|
+
readonly name: "IncreaseBorrowBalanceUtilisationRatioTooHigh";
|
|
1918
|
+
readonly inputs: readonly [];
|
|
1919
|
+
}, {
|
|
1920
|
+
readonly type: "error";
|
|
1921
|
+
readonly name: "MathOverflowedMulDiv";
|
|
1922
|
+
readonly inputs: readonly [];
|
|
1923
|
+
}, {
|
|
1924
|
+
readonly type: "error";
|
|
1925
|
+
readonly name: "MaxStableInterestRateTooHigh";
|
|
1926
|
+
readonly inputs: readonly [];
|
|
1927
|
+
}, {
|
|
1928
|
+
readonly type: "error";
|
|
1929
|
+
readonly name: "MaxVariableInterestRateTooHigh";
|
|
1930
|
+
readonly inputs: readonly [];
|
|
1931
|
+
}, {
|
|
1932
|
+
readonly type: "error";
|
|
1933
|
+
readonly name: "NoChainSpoke";
|
|
1934
|
+
readonly inputs: readonly [{
|
|
1935
|
+
readonly name: "chainId";
|
|
1936
|
+
readonly type: "uint16";
|
|
1937
|
+
readonly internalType: "uint16";
|
|
1938
|
+
}];
|
|
1939
|
+
}, {
|
|
1940
|
+
readonly type: "error";
|
|
1941
|
+
readonly name: "OptimalStableToTotalDebtRatioTooHigh";
|
|
1942
|
+
readonly inputs: readonly [];
|
|
1943
|
+
}, {
|
|
1944
|
+
readonly type: "error";
|
|
1945
|
+
readonly name: "OptimalUtilisationRatioTooHigh";
|
|
1946
|
+
readonly inputs: readonly [];
|
|
1947
|
+
}, {
|
|
1948
|
+
readonly type: "error";
|
|
1949
|
+
readonly name: "OptimalUtilisationRatioTooLow";
|
|
1950
|
+
readonly inputs: readonly [];
|
|
1951
|
+
}, {
|
|
1952
|
+
readonly type: "error";
|
|
1953
|
+
readonly name: "RatioExceedsOne";
|
|
1954
|
+
readonly inputs: readonly [];
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly type: "error";
|
|
1957
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
1958
|
+
readonly inputs: readonly [];
|
|
1959
|
+
}, {
|
|
1960
|
+
readonly type: "error";
|
|
1961
|
+
readonly name: "RetentionRateTooHigh";
|
|
1962
|
+
readonly inputs: readonly [];
|
|
1963
|
+
}, {
|
|
1964
|
+
readonly type: "error";
|
|
1965
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
1966
|
+
readonly inputs: readonly [{
|
|
1967
|
+
readonly name: "bits";
|
|
1968
|
+
readonly type: "uint8";
|
|
1969
|
+
readonly internalType: "uint8";
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly name: "value";
|
|
1972
|
+
readonly type: "uint256";
|
|
1973
|
+
readonly internalType: "uint256";
|
|
1974
|
+
}];
|
|
1975
|
+
}, {
|
|
1976
|
+
readonly type: "error";
|
|
1977
|
+
readonly name: "StableBorrowPercentageTooHigh";
|
|
1978
|
+
readonly inputs: readonly [];
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly type: "error";
|
|
1981
|
+
readonly name: "StableRateJump";
|
|
1982
|
+
readonly inputs: readonly [];
|
|
1983
|
+
}, {
|
|
1984
|
+
readonly type: "error";
|
|
1985
|
+
readonly name: "UnmatchedChainSpoke";
|
|
1986
|
+
readonly inputs: readonly [{
|
|
1987
|
+
readonly name: "chainId";
|
|
1988
|
+
readonly type: "uint16";
|
|
1989
|
+
readonly internalType: "uint16";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly name: "expected";
|
|
1992
|
+
readonly type: "bytes32";
|
|
1993
|
+
readonly internalType: "bytes32";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly name: "actual";
|
|
1996
|
+
readonly type: "bytes32";
|
|
1997
|
+
readonly internalType: "bytes32";
|
|
1998
|
+
}];
|
|
1999
|
+
}];
|