@pendle/core-v2 6.6.0 → 6.6.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/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +766 -0
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +99 -0
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +210 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +1294 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +1602 -0
- package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -88
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.json +85 -0
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol → IPFixedPricePTAMMV2.sol}/IPFixedPricePTAMMSwapCallback.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol/IPFixedPricePTAMM.json → IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.json} +285 -93
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +156 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionCrossChain.sol/IPActionCrossChain.json → IPSwapHelper.sol/IPSwapHelper.json} +2 -2
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +258 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +265 -3
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.json +156 -0
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +33 -2
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +171 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/contracts/cross-chain/FixedPricePTAMMV2.sol +162 -0
- package/contracts/{router/ActionCrossChain.sol → cross-chain/PendleSwapHelper.sol} +11 -7
- package/contracts/cross-chain/funder/BridgeFunder.sol +61 -0
- package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +55 -0
- package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +64 -0
- package/contracts/interfaces/IPAllActionTypeV3.sol +1 -0
- package/contracts/interfaces/IPAllActionV3.sol +1 -3
- package/contracts/interfaces/IPBridgeFunder.sol +17 -0
- package/contracts/interfaces/IPFixedPricePTAMMV2.sol +58 -0
- package/contracts/interfaces/IPLimitRouter.sol +22 -0
- package/contracts/interfaces/{IPActionCrossChain.sol → IPSwapHelper.sol} +1 -1
- package/contracts/limit/LimitRouterBase.sol +101 -47
- package/contracts/limit/PendleLimitRouter.sol +1 -1
- package/contracts/limit/helpers/MintSyHelper.sol +114 -0
- package/contracts/offchain-helpers/PendleFeeSetter.sol +19 -1
- package/contracts/offchain-helpers/PendleProxyAdmin.sol +11 -0
- package/contracts/router/base/ActionBase.sol +16 -2
- package/deployments/1-core.json +1 -0
- package/deployments/1-offchain-helper.json +1 -1
- package/deployments/10-core.json +1 -0
- package/deployments/10-offchain-helper.json +1 -1
- package/deployments/130-core.json +1 -0
- package/deployments/143-core.json +1 -0
- package/deployments/146-core.json +1 -0
- package/deployments/146-offchain-helper.json +1 -1
- package/deployments/42161-core.json +1 -0
- package/deployments/42161-offchain-helper.json +1 -1
- package/deployments/4217-core.json +14 -0
- package/deployments/43114-core.json +1 -0
- package/deployments/5000-core.json +1 -0
- package/deployments/5000-offchain-helper.json +1 -1
- package/deployments/56-core.json +1 -0
- package/deployments/56-offchain-helper.json +1 -1
- package/deployments/57073-core.json +1 -0
- package/deployments/747474-core.json +1 -0
- package/deployments/80094-core.json +1 -0
- package/deployments/80094-offchain-helper.json +1 -1
- package/deployments/8453-core.json +1 -0
- package/deployments/8453-offchain-helper.json +1 -1
- package/deployments/9745-core.json +1 -0
- package/deployments/9745-offchain-helper.json +1 -1
- package/deployments/999-core.json +1 -0
- package/deployments/999-offchain-helper.json +1 -1
- package/package.json +1 -1
- package/typechain-types/BridgeFunder.ts +344 -0
- package/typechain-types/FixedPricePTAMMV2.ts +1104 -0
- package/typechain-types/IPAllActionV3.ts +0 -54
- package/typechain-types/IPBridgeFunder.ts +165 -0
- package/typechain-types/IPFixedPricePTAMMV2.ts +864 -0
- package/typechain-types/IPLimitRouter.ts +104 -0
- package/typechain-types/IPSwapHelper.ts +161 -0
- package/typechain-types/LimitRouterBase.ts +233 -5
- package/typechain-types/MintSyHelper.ts +230 -0
- package/typechain-types/OFTAdapterAltImpl.ts +1350 -0
- package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +1708 -0
- package/typechain-types/PendleFeeSetter.ts +53 -0
- package/typechain-types/PendleLimitRouter.ts +233 -5
- package/typechain-types/PendleProxyAdmin.ts +341 -0
- package/typechain-types/PendleSwapHelper.ts +161 -0
- package/typechain-types/ProxyAdmin.ts +341 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/BridgeFunder__factory.ts +265 -0
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +824 -0
- package/typechain-types/factories/IPAllActionV3__factory.ts +0 -88
- package/typechain-types/factories/IPBridgeFunder__factory.ts +100 -0
- package/typechain-types/factories/IPFixedPricePTAMMV2__factory.ts +621 -0
- package/typechain-types/factories/IPLimitRouter__factory.ts +156 -0
- package/typechain-types/factories/IPSwapHelper__factory.ts +111 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/LimitRouterBase__factory.ts +258 -1
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/MintSyHelper__factory.ts +168 -0
- package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1363 -0
- package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1702 -0
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeSetter__factory.ts +36 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +268 -3
- package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleProxyAdmin__factory.ts +229 -0
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapHelper__factory.ts +152 -0
- package/typechain-types/factories/ProxyAdmin__factory.ts +210 -0
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +108 -0
- package/typechain-types/index.ts +22 -0
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +0 -667
- package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +0 -99
- package/contracts/cross-chain/FixedPricePTAMM.sol +0 -200
- package/contracts/interfaces/IPFixedPricePTAMM.sol +0 -69
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "PendleSwapHelper",
|
|
4
|
+
"sourceName": "contracts/cross-chain/PendleSwapHelper.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "receiver",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "fixedPricePTAMM",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "PT",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "exactPtIn",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"components": [
|
|
30
|
+
{
|
|
31
|
+
"internalType": "address",
|
|
32
|
+
"name": "tokenOut",
|
|
33
|
+
"type": "address"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"internalType": "uint256",
|
|
37
|
+
"name": "minTokenOut",
|
|
38
|
+
"type": "uint256"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"internalType": "address",
|
|
42
|
+
"name": "tokenRedeemSy",
|
|
43
|
+
"type": "address"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "address",
|
|
47
|
+
"name": "pendleSwap",
|
|
48
|
+
"type": "address"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"components": [
|
|
52
|
+
{
|
|
53
|
+
"internalType": "enum SwapType",
|
|
54
|
+
"name": "swapType",
|
|
55
|
+
"type": "uint8"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "extRouter",
|
|
60
|
+
"type": "address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "bytes",
|
|
64
|
+
"name": "extCalldata",
|
|
65
|
+
"type": "bytes"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "bool",
|
|
69
|
+
"name": "needScale",
|
|
70
|
+
"type": "bool"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"internalType": "struct SwapData",
|
|
74
|
+
"name": "swapData",
|
|
75
|
+
"type": "tuple"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"internalType": "struct TokenOutput",
|
|
79
|
+
"name": "out",
|
|
80
|
+
"type": "tuple"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"name": "swapWithFixedPricePTAMM",
|
|
84
|
+
"outputs": [
|
|
85
|
+
{
|
|
86
|
+
"internalType": "uint256",
|
|
87
|
+
"name": "netTokenOut",
|
|
88
|
+
"type": "uint256"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"stateMutability": "nonpayable",
|
|
92
|
+
"type": "function"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"bytecode": "0x6080604052348015600e575f5ffd5b50610c4f8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063a58f46c61461002d575b5f5ffd5b61004061003b366004610958565b610052565b60405190815260200160405180910390f35b5f846001600160a01b031663c1d8d1d96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561008f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100b391906109d7565b6001600160a01b03166100cc60608401604085016109f2565b6001600160a01b0316146101275760405162461bcd60e51b815260206004820181905260248201527f5377617048656c7065723a20494e56414c49445f544f4b454e5f52454445454d60448201526064015b60405180910390fd5b610133843387866101e8565b5f856001600160a01b0316631530a17061014d8986610209565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908816602482015260448101879052608060648201525f608482015260a4016020604051808303815f875af11580156101ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101d09190610a0d565b90506101dd878285610285565b979650505050505050565b8015610203576102036001600160a01b03851684848461042e565b50505050565b5f806102186080840184610a24565b610226906020810190610a55565b90505f81600a81111561023b5761023b610a6e565b03610249578391505061027f565b600381600a81111561025d5761025d610a6e565b0361026b573091505061027f565b61027b60808401606085016109f2565b9150505b92915050565b5f806102946080840184610a24565b6102a2906020810190610a55565b90505f81600a8111156102b7576102b7610a6e565b036102c4578391506103d2565b600381600a8111156102d8576102d8610a6e565b03610322578391506103066102f360608501604086016109f2565b61030060208601866109f2565b84610499565b61031d61031660208501856109f2565b8684610557565b6103d2565b61033260808401606085016109f2565b6001600160a01b0316632bdb823c61035060608601604087016109f2565b8661035e6080880188610a24565b6040518463ffffffff1660e01b815260040161037c93929190610ac2565b5f604051808303815f87803b158015610393575f5ffd5b505af11580156103a5573d5f5f3e3d5ffd5b506103c092506103bb91505060208501856109f2565b610629565b91506103d261031660208501856109f2565b82602001358210156104265760405162461bcd60e51b815260206004820181905260248201527f536c6970706167653a20494e53554646494349454e545f544f4b454e5f4f5554604482015260640161011e565b509392505050565b6040516001600160a01b03808516602483015283166044820152606481018290526102039085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610634565b6001600160a01b0383166104fc57816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004015f604051808303818588803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b5050505050505050565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03841690632e1a7d4d906024015f604051808303815f87803b15801561053b575f5ffd5b505af115801561054d573d5f5f3e3d5ffd5b505050505b505050565b80158061056c57506001600160a01b03821630145b1561057657505050565b6001600160a01b038316610615575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f81146105cd576040519150601f19603f3d011682016040523d82523d5f602084013e6105d2565b606091505b50509050806102035760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b604482015260640161011e565b6105526001600160a01b0384168383610707565b5f61027f3083610737565b5f610688826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107c79092919063ffffffff16565b905080515f14806106a85750808060200190518101906106a89190610b99565b6105525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161011e565b6040516001600160a01b03831660248201526044810182905261055290849063a9059cbb60e01b90606401610462565b5f6001600160a01b038216156107b4576040516370a0823160e01b81526001600160a01b0384811660048301528316906370a0823190602401602060405180830381865afa15801561078b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107af9190610a0d565b6107c0565b826001600160a01b0316315b9392505050565b60606107d584845f856107dd565b949350505050565b60608247101561083e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161011e565b5f5f866001600160a01b031685876040516108599190610bd6565b5f6040518083038185875af1925050503d805f8114610893576040519150601f19603f3d011682016040523d82523d5f602084013e610898565b606091505b50915091506101dd87838387606083156109125782515f0361090b576001600160a01b0385163b61090b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161011e565b50816107d5565b6107d583838151156109275781518083602001fd5b8060405162461bcd60e51b815260040161011e9190610be7565b6001600160a01b0381168114610955575f5ffd5b50565b5f5f5f5f5f60a0868803121561096c575f5ffd5b853561097781610941565b9450602086013561098781610941565b9350604086013561099781610941565b92506060860135915060808601356001600160401b038111156109b8575f5ffd5b860160a081890312156109c9575f5ffd5b809150509295509295909350565b5f602082840312156109e7575f5ffd5b81516107c081610941565b5f60208284031215610a02575f5ffd5b81356107c081610941565b5f60208284031215610a1d575f5ffd5b5051919050565b5f8235607e19833603018112610a38575f5ffd5b9190910192915050565b8035600b8110610a50575f5ffd5b919050565b5f60208284031215610a65575f5ffd5b6107c082610a42565b634e487b7160e01b5f52602160045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b8015158114610955575f5ffd5b8035610a5081610aaa565b6001600160a01b038416815260208101839052606060408201525f610ae683610a42565b600b8110610b0257634e487b7160e01b5f52602160045260245ffd5b60608301526020830135610b1581610941565b6001600160a01b03166080830152604083013536849003601e19018112610b3a575f5ffd5b83016020810190356001600160401b03811115610b55575f5ffd5b803603821315610b63575f5ffd5b608060a0850152610b7860e085018284610a82565b915050610b8760608501610ab7565b80151560c08501525095945050505050565b5f60208284031215610ba9575f5ffd5b81516107c081610aaa565b5f5b83811015610bce578181015183820152602001610bb6565b50505f910152565b5f8251610a38818460208701610bb4565b602081525f8251806020840152610c05816040850160208701610bb4565b601f01601f1916919091016040019291505056fea2646970667358221220acb88ecba7b740b74a066100e8b4e473cd5858b5ec8335fafa8f9314cd81c1e764736f6c634300081e0033",
|
|
96
|
+
"deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063a58f46c61461002d575b5f5ffd5b61004061003b366004610958565b610052565b60405190815260200160405180910390f35b5f846001600160a01b031663c1d8d1d96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561008f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100b391906109d7565b6001600160a01b03166100cc60608401604085016109f2565b6001600160a01b0316146101275760405162461bcd60e51b815260206004820181905260248201527f5377617048656c7065723a20494e56414c49445f544f4b454e5f52454445454d60448201526064015b60405180910390fd5b610133843387866101e8565b5f856001600160a01b0316631530a17061014d8986610209565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908816602482015260448101879052608060648201525f608482015260a4016020604051808303815f875af11580156101ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101d09190610a0d565b90506101dd878285610285565b979650505050505050565b8015610203576102036001600160a01b03851684848461042e565b50505050565b5f806102186080840184610a24565b610226906020810190610a55565b90505f81600a81111561023b5761023b610a6e565b03610249578391505061027f565b600381600a81111561025d5761025d610a6e565b0361026b573091505061027f565b61027b60808401606085016109f2565b9150505b92915050565b5f806102946080840184610a24565b6102a2906020810190610a55565b90505f81600a8111156102b7576102b7610a6e565b036102c4578391506103d2565b600381600a8111156102d8576102d8610a6e565b03610322578391506103066102f360608501604086016109f2565b61030060208601866109f2565b84610499565b61031d61031660208501856109f2565b8684610557565b6103d2565b61033260808401606085016109f2565b6001600160a01b0316632bdb823c61035060608601604087016109f2565b8661035e6080880188610a24565b6040518463ffffffff1660e01b815260040161037c93929190610ac2565b5f604051808303815f87803b158015610393575f5ffd5b505af11580156103a5573d5f5f3e3d5ffd5b506103c092506103bb91505060208501856109f2565b610629565b91506103d261031660208501856109f2565b82602001358210156104265760405162461bcd60e51b815260206004820181905260248201527f536c6970706167653a20494e53554646494349454e545f544f4b454e5f4f5554604482015260640161011e565b509392505050565b6040516001600160a01b03808516602483015283166044820152606481018290526102039085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610634565b6001600160a01b0383166104fc57816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004015f604051808303818588803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b5050505050505050565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03841690632e1a7d4d906024015f604051808303815f87803b15801561053b575f5ffd5b505af115801561054d573d5f5f3e3d5ffd5b505050505b505050565b80158061056c57506001600160a01b03821630145b1561057657505050565b6001600160a01b038316610615575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f81146105cd576040519150601f19603f3d011682016040523d82523d5f602084013e6105d2565b606091505b50509050806102035760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b604482015260640161011e565b6105526001600160a01b0384168383610707565b5f61027f3083610737565b5f610688826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107c79092919063ffffffff16565b905080515f14806106a85750808060200190518101906106a89190610b99565b6105525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161011e565b6040516001600160a01b03831660248201526044810182905261055290849063a9059cbb60e01b90606401610462565b5f6001600160a01b038216156107b4576040516370a0823160e01b81526001600160a01b0384811660048301528316906370a0823190602401602060405180830381865afa15801561078b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107af9190610a0d565b6107c0565b826001600160a01b0316315b9392505050565b60606107d584845f856107dd565b949350505050565b60608247101561083e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161011e565b5f5f866001600160a01b031685876040516108599190610bd6565b5f6040518083038185875af1925050503d805f8114610893576040519150601f19603f3d011682016040523d82523d5f602084013e610898565b606091505b50915091506101dd87838387606083156109125782515f0361090b576001600160a01b0385163b61090b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161011e565b50816107d5565b6107d583838151156109275781518083602001fd5b8060405162461bcd60e51b815260040161011e9190610be7565b6001600160a01b0381168114610955575f5ffd5b50565b5f5f5f5f5f60a0868803121561096c575f5ffd5b853561097781610941565b9450602086013561098781610941565b9350604086013561099781610941565b92506060860135915060808601356001600160401b038111156109b8575f5ffd5b860160a081890312156109c9575f5ffd5b809150509295509295909350565b5f602082840312156109e7575f5ffd5b81516107c081610941565b5f60208284031215610a02575f5ffd5b81356107c081610941565b5f60208284031215610a1d575f5ffd5b5051919050565b5f8235607e19833603018112610a38575f5ffd5b9190910192915050565b8035600b8110610a50575f5ffd5b919050565b5f60208284031215610a65575f5ffd5b6107c082610a42565b634e487b7160e01b5f52602160045260245ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b8015158114610955575f5ffd5b8035610a5081610aaa565b6001600160a01b038416815260208101839052606060408201525f610ae683610a42565b600b8110610b0257634e487b7160e01b5f52602160045260245ffd5b60608301526020830135610b1581610941565b6001600160a01b03166080830152604083013536849003601e19018112610b3a575f5ffd5b83016020810190356001600160401b03811115610b55575f5ffd5b803603821315610b63575f5ffd5b608060a0850152610b7860e085018284610a82565b915050610b8760608501610ab7565b80151560c08501525095945050505050565b5f60208284031215610ba9575f5ffd5b81516107c081610aaa565b5f5b83811015610bce578181015183820152602001610bb6565b50505f910152565b5f8251610a38818460208701610bb4565b602081525f8251806020840152610c05816040850160208701610bb4565b601f01601f1916919091016040019291505056fea2646970667358221220acb88ecba7b740b74a066100e8b4e473cd5858b5ec8335fafa8f9314cd81c1e764736f6c634300081e0033",
|
|
97
|
+
"linkReferences": {},
|
|
98
|
+
"deployedLinkReferences": {}
|
|
99
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "BridgeFunder",
|
|
4
|
+
"sourceName": "contracts/cross-chain/funder/BridgeFunder.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "depositBoxFactory_",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stateMutability": "nonpayable",
|
|
15
|
+
"type": "constructor"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"anonymous": false,
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"indexed": false,
|
|
22
|
+
"internalType": "uint8",
|
|
23
|
+
"name": "version",
|
|
24
|
+
"type": "uint8"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"name": "Initialized",
|
|
28
|
+
"type": "event"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"anonymous": false,
|
|
32
|
+
"inputs": [
|
|
33
|
+
{
|
|
34
|
+
"indexed": true,
|
|
35
|
+
"internalType": "address",
|
|
36
|
+
"name": "previousOwner",
|
|
37
|
+
"type": "address"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"indexed": true,
|
|
41
|
+
"internalType": "address",
|
|
42
|
+
"name": "newOwner",
|
|
43
|
+
"type": "address"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"name": "OwnershipTransferred",
|
|
47
|
+
"type": "event"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [],
|
|
51
|
+
"name": "DEPOSIT_BOX_FACTORY",
|
|
52
|
+
"outputs": [
|
|
53
|
+
{
|
|
54
|
+
"internalType": "contract IPDepositBoxFactory",
|
|
55
|
+
"name": "",
|
|
56
|
+
"type": "address"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"stateMutability": "view",
|
|
60
|
+
"type": "function"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"components": [
|
|
66
|
+
{
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"name": "bridgeToken",
|
|
69
|
+
"type": "address"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"internalType": "uint256",
|
|
73
|
+
"name": "bridgeAmount",
|
|
74
|
+
"type": "uint256"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"internalType": "address",
|
|
78
|
+
"name": "feeToken",
|
|
79
|
+
"type": "address"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"internalType": "uint256",
|
|
83
|
+
"name": "feeAmount",
|
|
84
|
+
"type": "uint256"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"internalType": "address",
|
|
88
|
+
"name": "bridgeExtRouter",
|
|
89
|
+
"type": "address"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"internalType": "bytes",
|
|
93
|
+
"name": "bridgeCalldata",
|
|
94
|
+
"type": "bytes"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"internalType": "struct BridgeData",
|
|
98
|
+
"name": "$",
|
|
99
|
+
"type": "tuple"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"name": "bridge",
|
|
103
|
+
"outputs": [
|
|
104
|
+
{
|
|
105
|
+
"internalType": "bytes",
|
|
106
|
+
"name": "result",
|
|
107
|
+
"type": "bytes"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"stateMutability": "nonpayable",
|
|
111
|
+
"type": "function"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"inputs": [],
|
|
115
|
+
"name": "claimOwnership",
|
|
116
|
+
"outputs": [],
|
|
117
|
+
"stateMutability": "nonpayable",
|
|
118
|
+
"type": "function"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"inputs": [
|
|
122
|
+
{
|
|
123
|
+
"internalType": "address",
|
|
124
|
+
"name": "_owner",
|
|
125
|
+
"type": "address"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"name": "initialize",
|
|
129
|
+
"outputs": [],
|
|
130
|
+
"stateMutability": "nonpayable",
|
|
131
|
+
"type": "function"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"inputs": [],
|
|
135
|
+
"name": "owner",
|
|
136
|
+
"outputs": [
|
|
137
|
+
{
|
|
138
|
+
"internalType": "address",
|
|
139
|
+
"name": "",
|
|
140
|
+
"type": "address"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"stateMutability": "view",
|
|
144
|
+
"type": "function"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"inputs": [],
|
|
148
|
+
"name": "pendingOwner",
|
|
149
|
+
"outputs": [
|
|
150
|
+
{
|
|
151
|
+
"internalType": "address",
|
|
152
|
+
"name": "",
|
|
153
|
+
"type": "address"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"stateMutability": "view",
|
|
157
|
+
"type": "function"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"inputs": [
|
|
161
|
+
{
|
|
162
|
+
"internalType": "address",
|
|
163
|
+
"name": "newOwner",
|
|
164
|
+
"type": "address"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"internalType": "bool",
|
|
168
|
+
"name": "direct",
|
|
169
|
+
"type": "bool"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"internalType": "bool",
|
|
173
|
+
"name": "renounce",
|
|
174
|
+
"type": "bool"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"name": "transferOwnership",
|
|
178
|
+
"outputs": [],
|
|
179
|
+
"stateMutability": "nonpayable",
|
|
180
|
+
"type": "function"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"inputs": [
|
|
184
|
+
{
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "receiver",
|
|
187
|
+
"type": "address"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"internalType": "address",
|
|
191
|
+
"name": "token",
|
|
192
|
+
"type": "address"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"internalType": "uint256",
|
|
196
|
+
"name": "amount",
|
|
197
|
+
"type": "uint256"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"name": "withdraw",
|
|
201
|
+
"outputs": [],
|
|
202
|
+
"stateMutability": "nonpayable",
|
|
203
|
+
"type": "function"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"bytecode": "0x60a060405234801561000f575f5ffd5b506040516112f53803806112f583398101604081905261002e91610113565b610036610047565b6001600160a01b0316608052610140565b600154600160a81b900460ff16156100b55760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b600154600160a01b900460ff90811614610111576001805460ff60a01b191660ff60a01b17905560405160ff81527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b5f60208284031215610123575f5ffd5b81516001600160a01b0381168114610139575f5ffd5b9392505050565b60805161119761015e5f395f818160c5015261034501526111975ff3fe608060405234801561000f575f5ffd5b5060043610610076575f3560e01c8063078dfbe71461007a5780633cd7ddba1461008f5780634e71e0c8146100b857806387be6d9a146100c05780638da5cb5b146100ff578063c4d66de814610111578063d9caed1214610124578063e30c397814610137575b5f5ffd5b61008d610088366004610dce565b61014a565b005b6100a261009d366004610edb565b61024b565b6040516100af9190610fdf565b60405180910390f35b61008d61054c565b6100e77f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100af565b5f546100e7906001600160a01b031681565b61008d61011f366004610ff1565b6105f4565b61008d61013236600461100c565b610725565b6001546100e7906001600160a01b031681565b5f546001600160a01b0316331461017c5760405162461bcd60e51b81526004016101739061104a565b60405180910390fd5b811561022a576001600160a01b0383161515806101965750805b6101da5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610173565b5f80546040516001600160a01b03808716939216915f5160206111425f395f51905f5291a35f80546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b60605f3390505f816001600160a01b031663117803e36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561028e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102b2919061107f565b90505f826001600160a01b031663a817c1136040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102f1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610315919061109a565b604051633c8ba77560e21b81526001600160a01b03848116600483015263ffffffff831660248301529192505f917f0000000000000000000000000000000000000000000000000000000000000000169063f22e9dd490604401606060405180830381865afa15801561038a573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ae91906110bd565b50509050836001600160a01b0316816001600160a01b0316146104235760405162461bcd60e51b815260206004820152602760248201527f42726964676546756e6465723a2063616c6c6572206973206e6f74206465706f6044820152660e6d2e840c4def60cb1b6064820152608401610173565b85604001516001600160a01b0316865f01516001600160a01b031614158015610455575085516001600160a01b031615155b801561046d575060408601516001600160a01b031615155b6104b95760405162461bcd60e51b815260206004820152601f60248201527f42726964676546756e6465723a20756e737570706f7274656420746f6b656e006044820152606401610173565b6104cb865f0151338860200151610759565b6104e1865f0151876080015188602001516107c0565b6104f88660400151876080015188606001516107c0565b61051c8660a0015187608001516001600160a01b03166107d490919063ffffffff16565b9450610530865f015187608001515f6107c0565b610543866040015187608001515f6107c0565b50505050919050565b6001546001600160a01b03163381146105a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610173565b5f80546040516001600160a01b03808516939216915f5160206111425f395f51905f5291a35f80546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b600154600160a81b900460ff161580801561061a575060018054600160a01b900460ff16105b8061064157506106293061081e565b158015610641575060018054600160a01b900460ff16145b6106a45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610173565b6001805460ff60a01b1916600160a01b17905580156106d1576001805460ff60a81b1916600160a81b1790555b6106da8261082d565b8015610721576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b5f546001600160a01b0316331461074e5760405162461bcd60e51b81526004016101739061104a565b6102468284836108bb565b6001600160a01b0383166107a5578034146102465760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b6044820152606401610173565b8015610246576102466001600160a01b038416833084610993565b6102466001600160a01b03841683836109fe565b606061081783835f6040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610a95565b9392505050565b6001600160a01b03163b151590565b600154600160a81b900460ff1661089a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610173565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b8015806108d057506001600160a01b03821630145b156108da57505050565b6001600160a01b03831661097f575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610931576040519150601f19603f3d011682016040523d82523d5f602084013e610936565b606091505b50509050806109795760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610173565b50505050565b6102466001600160a01b0384168383610b6e565b6040516001600160a01b03808516602483015283166044820152606481018290526109799085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b8d565b5f63095ea7b360e01b8383604051602401610a1a9291906110f2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610a588482610c60565b610979576040516001600160a01b03841660248201525f6044820152610a8b90859063095ea7b360e01b906064016109c7565b6109798482610b8d565b606082471015610af65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610173565b5f5f866001600160a01b03168587604051610b11919061110b565b5f6040518083038185875af1925050503d805f8114610b4b576040519150601f19603f3d011682016040523d82523d5f602084013e610b50565b606091505b5091509150610b6187838387610cfc565b925050505b949350505050565b6102468363a9059cbb60e01b84846040516024016109c79291906110f2565b5f610be1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d729092919063ffffffff16565b905080515f1480610c01575080806020019051810190610c019190611126565b6102465760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610173565b5f5f5f846001600160a01b031684604051610c7b919061110b565b5f604051808303815f865af19150503d805f8114610cb4576040519150601f19603f3d011682016040523d82523d5f602084013e610cb9565b606091505b5091509150818015610ce3575080511580610ce3575080806020019051810190610ce39190611126565b8015610cf35750610cf38561081e565b95945050505050565b60608315610d685782515f03610d6157610d158561081e565b610d615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610173565b5081610b66565b610b668383610d80565b6060610b6684845f85610a95565b815115610d905781518083602001fd5b8060405162461bcd60e51b81526004016101739190610fdf565b6001600160a01b0381168114610dbe575f5ffd5b50565b8015158114610dbe575f5ffd5b5f5f5f60608486031215610de0575f5ffd5b8335610deb81610daa565b92506020840135610dfb81610dc1565b91506040840135610e0b81610dc1565b809150509250925092565b634e487b7160e01b5f52604160045260245ffd5b60405160c081016001600160401b0381118282101715610e4c57610e4c610e16565b60405290565b5f82601f830112610e61575f5ffd5b81356001600160401b03811115610e7a57610e7a610e16565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610ea857610ea8610e16565b604052818152838201602001851015610ebf575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215610eeb575f5ffd5b81356001600160401b03811115610f00575f5ffd5b820160c08185031215610f11575f5ffd5b610f19610e2a565b8135610f2481610daa565b8152602082810135908201526040820135610f3e81610daa565b6040820152606082810135908201526080820135610f5b81610daa565b608082015260a08201356001600160401b03811115610f78575f5ffd5b610f8486828501610e52565b60a083015250949350505050565b5f5b83811015610fac578181015183820152602001610f94565b50505f910152565b5f8151808452610fcb816020860160208601610f92565b601f01601f19169290920160200192915050565b602081525f6108176020830184610fb4565b5f60208284031215611001575f5ffd5b813561081781610daa565b5f5f5f6060848603121561101e575f5ffd5b833561102981610daa565b9250602084013561103981610daa565b929592945050506040919091013590565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f6020828403121561108f575f5ffd5b815161081781610daa565b5f602082840312156110aa575f5ffd5b815163ffffffff81168114610817575f5ffd5b5f5f5f606084860312156110cf575f5ffd5b83516110da81610daa565b602085015160408601519194509250610e0b81610dc1565b6001600160a01b03929092168252602082015260400190565b5f825161111c818460208701610f92565b9190910192915050565b5f60208284031215611136575f5ffd5b815161081781610dc156fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220d146599d14cb39864c0c0dc0615c5a57720d6376897bf985698d7dfbe5094c4164736f6c634300081e0033",
|
|
207
|
+
"deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610076575f3560e01c8063078dfbe71461007a5780633cd7ddba1461008f5780634e71e0c8146100b857806387be6d9a146100c05780638da5cb5b146100ff578063c4d66de814610111578063d9caed1214610124578063e30c397814610137575b5f5ffd5b61008d610088366004610dce565b61014a565b005b6100a261009d366004610edb565b61024b565b6040516100af9190610fdf565b60405180910390f35b61008d61054c565b6100e77f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100af565b5f546100e7906001600160a01b031681565b61008d61011f366004610ff1565b6105f4565b61008d61013236600461100c565b610725565b6001546100e7906001600160a01b031681565b5f546001600160a01b0316331461017c5760405162461bcd60e51b81526004016101739061104a565b60405180910390fd5b811561022a576001600160a01b0383161515806101965750805b6101da5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610173565b5f80546040516001600160a01b03808716939216915f5160206111425f395f51905f5291a35f80546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b60605f3390505f816001600160a01b031663117803e36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561028e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102b2919061107f565b90505f826001600160a01b031663a817c1136040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102f1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610315919061109a565b604051633c8ba77560e21b81526001600160a01b03848116600483015263ffffffff831660248301529192505f917f0000000000000000000000000000000000000000000000000000000000000000169063f22e9dd490604401606060405180830381865afa15801561038a573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ae91906110bd565b50509050836001600160a01b0316816001600160a01b0316146104235760405162461bcd60e51b815260206004820152602760248201527f42726964676546756e6465723a2063616c6c6572206973206e6f74206465706f6044820152660e6d2e840c4def60cb1b6064820152608401610173565b85604001516001600160a01b0316865f01516001600160a01b031614158015610455575085516001600160a01b031615155b801561046d575060408601516001600160a01b031615155b6104b95760405162461bcd60e51b815260206004820152601f60248201527f42726964676546756e6465723a20756e737570706f7274656420746f6b656e006044820152606401610173565b6104cb865f0151338860200151610759565b6104e1865f0151876080015188602001516107c0565b6104f88660400151876080015188606001516107c0565b61051c8660a0015187608001516001600160a01b03166107d490919063ffffffff16565b9450610530865f015187608001515f6107c0565b610543866040015187608001515f6107c0565b50505050919050565b6001546001600160a01b03163381146105a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610173565b5f80546040516001600160a01b03808516939216915f5160206111425f395f51905f5291a35f80546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b600154600160a81b900460ff161580801561061a575060018054600160a01b900460ff16105b8061064157506106293061081e565b158015610641575060018054600160a01b900460ff16145b6106a45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610173565b6001805460ff60a01b1916600160a01b17905580156106d1576001805460ff60a81b1916600160a81b1790555b6106da8261082d565b8015610721576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b5f546001600160a01b0316331461074e5760405162461bcd60e51b81526004016101739061104a565b6102468284836108bb565b6001600160a01b0383166107a5578034146102465760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b6044820152606401610173565b8015610246576102466001600160a01b038416833084610993565b6102466001600160a01b03841683836109fe565b606061081783835f6040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610a95565b9392505050565b6001600160a01b03163b151590565b600154600160a81b900460ff1661089a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610173565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b8015806108d057506001600160a01b03821630145b156108da57505050565b6001600160a01b03831661097f575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610931576040519150601f19603f3d011682016040523d82523d5f602084013e610936565b606091505b50509050806109795760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610173565b50505050565b6102466001600160a01b0384168383610b6e565b6040516001600160a01b03808516602483015283166044820152606481018290526109799085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b8d565b5f63095ea7b360e01b8383604051602401610a1a9291906110f2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610a588482610c60565b610979576040516001600160a01b03841660248201525f6044820152610a8b90859063095ea7b360e01b906064016109c7565b6109798482610b8d565b606082471015610af65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610173565b5f5f866001600160a01b03168587604051610b11919061110b565b5f6040518083038185875af1925050503d805f8114610b4b576040519150601f19603f3d011682016040523d82523d5f602084013e610b50565b606091505b5091509150610b6187838387610cfc565b925050505b949350505050565b6102468363a9059cbb60e01b84846040516024016109c79291906110f2565b5f610be1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d729092919063ffffffff16565b905080515f1480610c01575080806020019051810190610c019190611126565b6102465760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610173565b5f5f5f846001600160a01b031684604051610c7b919061110b565b5f604051808303815f865af19150503d805f8114610cb4576040519150601f19603f3d011682016040523d82523d5f602084013e610cb9565b606091505b5091509150818015610ce3575080511580610ce3575080806020019051810190610ce39190611126565b8015610cf35750610cf38561081e565b95945050505050565b60608315610d685782515f03610d6157610d158561081e565b610d615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610173565b5081610b66565b610b668383610d80565b6060610b6684845f85610a95565b815115610d905781518083602001fd5b8060405162461bcd60e51b81526004016101739190610fdf565b6001600160a01b0381168114610dbe575f5ffd5b50565b8015158114610dbe575f5ffd5b5f5f5f60608486031215610de0575f5ffd5b8335610deb81610daa565b92506020840135610dfb81610dc1565b91506040840135610e0b81610dc1565b809150509250925092565b634e487b7160e01b5f52604160045260245ffd5b60405160c081016001600160401b0381118282101715610e4c57610e4c610e16565b60405290565b5f82601f830112610e61575f5ffd5b81356001600160401b03811115610e7a57610e7a610e16565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610ea857610ea8610e16565b604052818152838201602001851015610ebf575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215610eeb575f5ffd5b81356001600160401b03811115610f00575f5ffd5b820160c08185031215610f11575f5ffd5b610f19610e2a565b8135610f2481610daa565b8152602082810135908201526040820135610f3e81610daa565b6040820152606082810135908201526080820135610f5b81610daa565b608082015260a08201356001600160401b03811115610f78575f5ffd5b610f8486828501610e52565b60a083015250949350505050565b5f5b83811015610fac578181015183820152602001610f94565b50505f910152565b5f8151808452610fcb816020860160208601610f92565b601f01601f19169290920160200192915050565b602081525f6108176020830184610fb4565b5f60208284031215611001575f5ffd5b813561081781610daa565b5f5f5f6060848603121561101e575f5ffd5b833561102981610daa565b9250602084013561103981610daa565b929592945050506040919091013590565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f6020828403121561108f575f5ffd5b815161081781610daa565b5f602082840312156110aa575f5ffd5b815163ffffffff81168114610817575f5ffd5b5f5f5f606084860312156110cf575f5ffd5b83516110da81610daa565b602085015160408601519194509250610e0b81610dc1565b6001600160a01b03929092168252602082015260400190565b5f825161111c818460208701610f92565b9190910192915050565b5f60208284031215611136575f5ffd5b815161081781610dc156fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220d146599d14cb39864c0c0dc0615c5a57720d6376897bf985698d7dfbe5094c4164736f6c634300081e0033",
|
|
208
|
+
"linkReferences": {},
|
|
209
|
+
"deployedLinkReferences": {}
|
|
210
|
+
}
|