@pendle/core-v2 6.6.1 → 6.7.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/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -88
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -122
- package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.json +99 -0
- package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +1388 -0
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +46 -14
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.json +46 -14
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +1541 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +1570 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.json +57 -35
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +57 -35
- 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/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 +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.json +1026 -0
- package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.json +11 -0
- 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/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.json +0 -67
- package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +0 -120
- package/build/artifacts/contracts/interfaces/IPOFTPTSwapper.sol/IPOFTPTSwapper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPSwapHelper.sol/IPSwapHelper.json → IPOFTPTSwapper.sol/IPOFTPTSwapper.json} +2 -2
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- 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/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- 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/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- 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/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- 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/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- 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/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/LiquidityMining/PendleMerkleDistributor.sol +1 -28
- package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +1 -36
- package/contracts/cross-chain/{PendleSwapHelper.sol → OFTPTSwapper.sol} +4 -3
- package/contracts/cross-chain/factory/PendleBridgePTFactory.sol +495 -0
- package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +5 -4
- package/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol +14 -6
- package/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol +11 -0
- package/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol +52 -0
- package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol +33 -24
- package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +4 -13
- package/contracts/interfaces/IPBridgePTFactory.sol +129 -0
- package/contracts/interfaces/IPBridgedPrincipalToken.sol +4 -2
- package/contracts/interfaces/IPMerkleDistributor.sol +0 -7
- package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +0 -10
- package/contracts/interfaces/{IPSwapHelper.sol → IPOFTPTSwapper.sol} +1 -1
- package/contracts/limit/LimitRouterBase.sol +1 -1
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
- package/deployments/1-core.json +2 -1
- package/deployments/130-core.json +2 -1
- package/deployments/143-core.json +38 -1
- package/deployments/143-offchain-helper.json +11 -0
- package/deployments/42161-core.json +2 -1
- package/deployments/4217-core.json +3 -1
- package/deployments/43114-core.json +3 -1
- package/deployments/56-core.json +2 -1
- package/deployments/57073-core.json +4 -1
- package/deployments/747474-core.json +4 -1
- package/deployments/8453-core.json +2 -1
- package/deployments/9745-core.json +2 -1
- package/deployments/999-core.json +2 -1
- package/package.json +12 -9
- package/typechain-types/DVNOptions.ts +57 -0
- package/typechain-types/ExecutorOptions.ts +57 -0
- package/typechain-types/IPBridgePTFactory.ts +936 -0
- package/typechain-types/IPMerkleDistributor.ts +0 -90
- package/typechain-types/IPMultiTokenMerkleDistributor.ts +0 -158
- package/typechain-types/IPOFTPTSwapper.ts +161 -0
- package/typechain-types/OAppPreCrimeSimulatorUpgradeable.ts +410 -0
- package/typechain-types/OFTAdapterAltImpl.ts +50 -19
- package/typechain-types/OFTAdapterImpl.ts +50 -19
- package/typechain-types/OFTAdapterUpgradeable.ts +1337 -0
- package/typechain-types/OFTCoreUpgradeable.ts +1337 -0
- package/typechain-types/OFTPTSwapper.ts +161 -0
- package/typechain-types/OFTUpgradeable.ts +1681 -0
- package/typechain-types/OptionsBuilder.ts +57 -0
- package/typechain-types/PendleBridgePTFactory.ts +1311 -0
- package/typechain-types/PendleBridgedPrincipalToken.ts +67 -20
- package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +67 -20
- package/typechain-types/PendleMerkleDistributor.ts +0 -106
- package/typechain-types/PendleMultiTokenMerkleDistributor.ts +0 -158
- package/typechain-types/PendleOFT.ts +1675 -0
- package/typechain-types/PendleOFTAlt.ts +1694 -0
- package/typechain-types/factories/DVNOptions__factory.ts +77 -0
- package/typechain-types/factories/ExecutorOptions__factory.ts +84 -0
- package/typechain-types/factories/IOFT__factory.ts +11 -0
- package/typechain-types/factories/IPBridgePTFactory__factory.ts +1041 -0
- package/typechain-types/factories/IPBridgedPrincipalToken__factory.ts +11 -0
- package/typechain-types/factories/IPMerkleDistributor__factory.ts +0 -67
- package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +0 -120
- package/typechain-types/factories/IPOFTPTSwapper__factory.ts +114 -0
- package/typechain-types/factories/OAppPreCrimeSimulatorUpgradeable__factory.ts +311 -0
- package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +49 -25
- package/typechain-types/factories/OFTAdapterImpl__factory.ts +49 -25
- package/typechain-types/factories/OFTAdapterUpgradeable__factory.ts +1287 -0
- package/typechain-types/factories/OFTAdapter__factory.ts +11 -0
- package/typechain-types/factories/OFTCoreUpgradeable__factory.ts +1283 -0
- package/typechain-types/factories/OFTCore__factory.ts +11 -0
- package/typechain-types/factories/OFTPTSwapper__factory.ts +149 -0
- package/typechain-types/factories/OFTUpgradeable__factory.ts +1553 -0
- package/typechain-types/factories/OFT__factory.ts +11 -0
- package/typechain-types/factories/OptionsBuilder__factory.ts +91 -0
- package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1481 -0
- package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +60 -58
- package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +60 -58
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -87
- package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -121
- package/typechain-types/factories/PendleOFTAlt__factory.ts +1628 -0
- package/typechain-types/factories/PendleOFT__factory.ts +1599 -0
- package/typechain-types/factories/PendlePTOFTAdapterFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +107 -53
- package/typechain-types/index.ts +26 -12
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +0 -99
- package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.json +0 -280
- package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +0 -4
- package/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol +0 -38
|
@@ -10,6 +10,17 @@ import type {
|
|
|
10
10
|
} from "../IPBridgedPrincipalToken";
|
|
11
11
|
|
|
12
12
|
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "uint256",
|
|
17
|
+
name: "amountSD",
|
|
18
|
+
type: "uint256",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
name: "AmountSDOverflowed",
|
|
22
|
+
type: "error",
|
|
23
|
+
},
|
|
13
24
|
{
|
|
14
25
|
inputs: [],
|
|
15
26
|
name: "InvalidDelegate",
|
|
@@ -53,25 +53,6 @@ const _abi = [
|
|
|
53
53
|
name: "SetMerkleRoot",
|
|
54
54
|
type: "event",
|
|
55
55
|
},
|
|
56
|
-
{
|
|
57
|
-
anonymous: false,
|
|
58
|
-
inputs: [
|
|
59
|
-
{
|
|
60
|
-
indexed: true,
|
|
61
|
-
internalType: "address",
|
|
62
|
-
name: "user",
|
|
63
|
-
type: "address",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
indexed: false,
|
|
67
|
-
internalType: "uint256",
|
|
68
|
-
name: "amountClaimable",
|
|
69
|
-
type: "uint256",
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
name: "Verified",
|
|
73
|
-
type: "event",
|
|
74
|
-
},
|
|
75
56
|
{
|
|
76
57
|
inputs: [
|
|
77
58
|
{
|
|
@@ -101,54 +82,6 @@ const _abi = [
|
|
|
101
82
|
stateMutability: "nonpayable",
|
|
102
83
|
type: "function",
|
|
103
84
|
},
|
|
104
|
-
{
|
|
105
|
-
inputs: [
|
|
106
|
-
{
|
|
107
|
-
internalType: "address",
|
|
108
|
-
name: "receiver",
|
|
109
|
-
type: "address",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
name: "claimVerified",
|
|
113
|
-
outputs: [
|
|
114
|
-
{
|
|
115
|
-
internalType: "uint256",
|
|
116
|
-
name: "amountOut",
|
|
117
|
-
type: "uint256",
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
stateMutability: "nonpayable",
|
|
121
|
-
type: "function",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
inputs: [
|
|
125
|
-
{
|
|
126
|
-
internalType: "address",
|
|
127
|
-
name: "user",
|
|
128
|
-
type: "address",
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
internalType: "uint256",
|
|
132
|
-
name: "totalAccrued",
|
|
133
|
-
type: "uint256",
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
internalType: "bytes32[]",
|
|
137
|
-
name: "proof",
|
|
138
|
-
type: "bytes32[]",
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
name: "verify",
|
|
142
|
-
outputs: [
|
|
143
|
-
{
|
|
144
|
-
internalType: "uint256",
|
|
145
|
-
name: "amountVerified",
|
|
146
|
-
type: "uint256",
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
stateMutability: "nonpayable",
|
|
150
|
-
type: "function",
|
|
151
|
-
},
|
|
152
85
|
];
|
|
153
86
|
|
|
154
87
|
export class IPMerkleDistributor__factory {
|
|
@@ -46,19 +46,6 @@ const _abi = [
|
|
|
46
46
|
name: "Claimed",
|
|
47
47
|
type: "event",
|
|
48
48
|
},
|
|
49
|
-
{
|
|
50
|
-
anonymous: false,
|
|
51
|
-
inputs: [
|
|
52
|
-
{
|
|
53
|
-
indexed: false,
|
|
54
|
-
internalType: "address[]",
|
|
55
|
-
name: "defaultTokenList",
|
|
56
|
-
type: "address[]",
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
name: "SetDefaultTokenList",
|
|
60
|
-
type: "event",
|
|
61
|
-
},
|
|
62
49
|
{
|
|
63
50
|
anonymous: false,
|
|
64
51
|
inputs: [
|
|
@@ -72,31 +59,6 @@ const _abi = [
|
|
|
72
59
|
name: "SetMerkleRoot",
|
|
73
60
|
type: "event",
|
|
74
61
|
},
|
|
75
|
-
{
|
|
76
|
-
anonymous: false,
|
|
77
|
-
inputs: [
|
|
78
|
-
{
|
|
79
|
-
indexed: true,
|
|
80
|
-
internalType: "address",
|
|
81
|
-
name: "token",
|
|
82
|
-
type: "address",
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
indexed: true,
|
|
86
|
-
internalType: "address",
|
|
87
|
-
name: "user",
|
|
88
|
-
type: "address",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
indexed: false,
|
|
92
|
-
internalType: "uint256",
|
|
93
|
-
name: "amountClaimable",
|
|
94
|
-
type: "uint256",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
name: "Verified",
|
|
98
|
-
type: "event",
|
|
99
|
-
},
|
|
100
62
|
{
|
|
101
63
|
inputs: [
|
|
102
64
|
{
|
|
@@ -131,30 +93,6 @@ const _abi = [
|
|
|
131
93
|
stateMutability: "nonpayable",
|
|
132
94
|
type: "function",
|
|
133
95
|
},
|
|
134
|
-
{
|
|
135
|
-
inputs: [
|
|
136
|
-
{
|
|
137
|
-
internalType: "address",
|
|
138
|
-
name: "receiver",
|
|
139
|
-
type: "address",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
internalType: "address[]",
|
|
143
|
-
name: "tokens",
|
|
144
|
-
type: "address[]",
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
name: "claimVerified",
|
|
148
|
-
outputs: [
|
|
149
|
-
{
|
|
150
|
-
internalType: "uint256[]",
|
|
151
|
-
name: "amountOuts",
|
|
152
|
-
type: "uint256[]",
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
stateMutability: "nonpayable",
|
|
156
|
-
type: "function",
|
|
157
|
-
},
|
|
158
96
|
{
|
|
159
97
|
inputs: [
|
|
160
98
|
{
|
|
@@ -192,64 +130,6 @@ const _abi = [
|
|
|
192
130
|
stateMutability: "view",
|
|
193
131
|
type: "function",
|
|
194
132
|
},
|
|
195
|
-
{
|
|
196
|
-
inputs: [
|
|
197
|
-
{
|
|
198
|
-
internalType: "address",
|
|
199
|
-
name: "token",
|
|
200
|
-
type: "address",
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
internalType: "address",
|
|
204
|
-
name: "user",
|
|
205
|
-
type: "address",
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
name: "verified",
|
|
209
|
-
outputs: [
|
|
210
|
-
{
|
|
211
|
-
internalType: "uint256",
|
|
212
|
-
name: "",
|
|
213
|
-
type: "uint256",
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
stateMutability: "view",
|
|
217
|
-
type: "function",
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
inputs: [
|
|
221
|
-
{
|
|
222
|
-
internalType: "address",
|
|
223
|
-
name: "user",
|
|
224
|
-
type: "address",
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
internalType: "address[]",
|
|
228
|
-
name: "tokens",
|
|
229
|
-
type: "address[]",
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
internalType: "uint256[]",
|
|
233
|
-
name: "totalAccrueds",
|
|
234
|
-
type: "uint256[]",
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
internalType: "bytes32[][]",
|
|
238
|
-
name: "proofs",
|
|
239
|
-
type: "bytes32[][]",
|
|
240
|
-
},
|
|
241
|
-
],
|
|
242
|
-
name: "verify",
|
|
243
|
-
outputs: [
|
|
244
|
-
{
|
|
245
|
-
internalType: "uint256[]",
|
|
246
|
-
name: "amountClaimable",
|
|
247
|
-
type: "uint256[]",
|
|
248
|
-
},
|
|
249
|
-
],
|
|
250
|
-
stateMutability: "nonpayable",
|
|
251
|
-
type: "function",
|
|
252
|
-
},
|
|
253
133
|
];
|
|
254
134
|
|
|
255
135
|
export class IPMultiTokenMerkleDistributor__factory {
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IPOFTPTSwapper,
|
|
9
|
+
IPOFTPTSwapperInterface,
|
|
10
|
+
} from "../IPOFTPTSwapper";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "receiver",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "fixedPricePTAMM",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "PT",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint256",
|
|
32
|
+
name: "exactPtIn",
|
|
33
|
+
type: "uint256",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
components: [
|
|
37
|
+
{
|
|
38
|
+
internalType: "address",
|
|
39
|
+
name: "tokenOut",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
internalType: "uint256",
|
|
44
|
+
name: "minTokenOut",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
internalType: "address",
|
|
49
|
+
name: "tokenRedeemSy",
|
|
50
|
+
type: "address",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "address",
|
|
54
|
+
name: "pendleSwap",
|
|
55
|
+
type: "address",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
components: [
|
|
59
|
+
{
|
|
60
|
+
internalType: "enum SwapType",
|
|
61
|
+
name: "swapType",
|
|
62
|
+
type: "uint8",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "extRouter",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
internalType: "bytes",
|
|
71
|
+
name: "extCalldata",
|
|
72
|
+
type: "bytes",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "bool",
|
|
76
|
+
name: "needScale",
|
|
77
|
+
type: "bool",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
internalType: "struct SwapData",
|
|
81
|
+
name: "swapData",
|
|
82
|
+
type: "tuple",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
internalType: "struct TokenOutput",
|
|
86
|
+
name: "out",
|
|
87
|
+
type: "tuple",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
name: "swapWithFixedPricePTAMM",
|
|
91
|
+
outputs: [
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "netTokenOut",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
stateMutability: "nonpayable",
|
|
99
|
+
type: "function",
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
|
|
103
|
+
export class IPOFTPTSwapper__factory {
|
|
104
|
+
static readonly abi = _abi;
|
|
105
|
+
static createInterface(): IPOFTPTSwapperInterface {
|
|
106
|
+
return new utils.Interface(_abi) as IPOFTPTSwapperInterface;
|
|
107
|
+
}
|
|
108
|
+
static connect(
|
|
109
|
+
address: string,
|
|
110
|
+
signerOrProvider: Signer | Provider
|
|
111
|
+
): IPOFTPTSwapper {
|
|
112
|
+
return new Contract(address, _abi, signerOrProvider) as IPOFTPTSwapper;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
OAppPreCrimeSimulatorUpgradeable,
|
|
9
|
+
OAppPreCrimeSimulatorUpgradeableInterface,
|
|
10
|
+
} from "../OAppPreCrimeSimulatorUpgradeable";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "OnlySelf",
|
|
16
|
+
type: "error",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "bytes",
|
|
22
|
+
name: "result",
|
|
23
|
+
type: "bytes",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: "SimulationResult",
|
|
27
|
+
type: "error",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
anonymous: false,
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
indexed: false,
|
|
34
|
+
internalType: "uint8",
|
|
35
|
+
name: "version",
|
|
36
|
+
type: "uint8",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
name: "Initialized",
|
|
40
|
+
type: "event",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
anonymous: false,
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
indexed: true,
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "previousOwner",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
indexed: true,
|
|
53
|
+
internalType: "address",
|
|
54
|
+
name: "newOwner",
|
|
55
|
+
type: "address",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
name: "OwnershipTransferred",
|
|
59
|
+
type: "event",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
anonymous: false,
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
indexed: false,
|
|
66
|
+
internalType: "address",
|
|
67
|
+
name: "preCrimeAddress",
|
|
68
|
+
type: "address",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
name: "PreCrimeSet",
|
|
72
|
+
type: "event",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint32",
|
|
78
|
+
name: "_eid",
|
|
79
|
+
type: "uint32",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
internalType: "bytes32",
|
|
83
|
+
name: "_peer",
|
|
84
|
+
type: "bytes32",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "isPeer",
|
|
88
|
+
outputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: "bool",
|
|
91
|
+
name: "",
|
|
92
|
+
type: "bool",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
stateMutability: "view",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
components: [
|
|
102
|
+
{
|
|
103
|
+
components: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint32",
|
|
106
|
+
name: "srcEid",
|
|
107
|
+
type: "uint32",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
internalType: "bytes32",
|
|
111
|
+
name: "sender",
|
|
112
|
+
type: "bytes32",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
internalType: "uint64",
|
|
116
|
+
name: "nonce",
|
|
117
|
+
type: "uint64",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
internalType: "struct Origin",
|
|
121
|
+
name: "origin",
|
|
122
|
+
type: "tuple",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint32",
|
|
126
|
+
name: "dstEid",
|
|
127
|
+
type: "uint32",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
internalType: "address",
|
|
131
|
+
name: "receiver",
|
|
132
|
+
type: "address",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
internalType: "bytes32",
|
|
136
|
+
name: "guid",
|
|
137
|
+
type: "bytes32",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
internalType: "uint256",
|
|
141
|
+
name: "value",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
internalType: "address",
|
|
146
|
+
name: "executor",
|
|
147
|
+
type: "address",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
internalType: "bytes",
|
|
151
|
+
name: "message",
|
|
152
|
+
type: "bytes",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
internalType: "bytes",
|
|
156
|
+
name: "extraData",
|
|
157
|
+
type: "bytes",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
internalType: "struct InboundPacket[]",
|
|
161
|
+
name: "_packets",
|
|
162
|
+
type: "tuple[]",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
name: "lzReceiveAndRevert",
|
|
166
|
+
outputs: [],
|
|
167
|
+
stateMutability: "payable",
|
|
168
|
+
type: "function",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [
|
|
172
|
+
{
|
|
173
|
+
components: [
|
|
174
|
+
{
|
|
175
|
+
internalType: "uint32",
|
|
176
|
+
name: "srcEid",
|
|
177
|
+
type: "uint32",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
internalType: "bytes32",
|
|
181
|
+
name: "sender",
|
|
182
|
+
type: "bytes32",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint64",
|
|
186
|
+
name: "nonce",
|
|
187
|
+
type: "uint64",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
internalType: "struct Origin",
|
|
191
|
+
name: "_origin",
|
|
192
|
+
type: "tuple",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
internalType: "bytes32",
|
|
196
|
+
name: "_guid",
|
|
197
|
+
type: "bytes32",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "bytes",
|
|
201
|
+
name: "_message",
|
|
202
|
+
type: "bytes",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
internalType: "address",
|
|
206
|
+
name: "_executor",
|
|
207
|
+
type: "address",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
internalType: "bytes",
|
|
211
|
+
name: "_extraData",
|
|
212
|
+
type: "bytes",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
name: "lzReceiveSimulate",
|
|
216
|
+
outputs: [],
|
|
217
|
+
stateMutability: "payable",
|
|
218
|
+
type: "function",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
inputs: [],
|
|
222
|
+
name: "oApp",
|
|
223
|
+
outputs: [
|
|
224
|
+
{
|
|
225
|
+
internalType: "address",
|
|
226
|
+
name: "",
|
|
227
|
+
type: "address",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
stateMutability: "view",
|
|
231
|
+
type: "function",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
inputs: [],
|
|
235
|
+
name: "owner",
|
|
236
|
+
outputs: [
|
|
237
|
+
{
|
|
238
|
+
internalType: "address",
|
|
239
|
+
name: "",
|
|
240
|
+
type: "address",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
stateMutability: "view",
|
|
244
|
+
type: "function",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
inputs: [],
|
|
248
|
+
name: "preCrime",
|
|
249
|
+
outputs: [
|
|
250
|
+
{
|
|
251
|
+
internalType: "address",
|
|
252
|
+
name: "",
|
|
253
|
+
type: "address",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
stateMutability: "view",
|
|
257
|
+
type: "function",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
inputs: [],
|
|
261
|
+
name: "renounceOwnership",
|
|
262
|
+
outputs: [],
|
|
263
|
+
stateMutability: "nonpayable",
|
|
264
|
+
type: "function",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [
|
|
268
|
+
{
|
|
269
|
+
internalType: "address",
|
|
270
|
+
name: "_preCrime",
|
|
271
|
+
type: "address",
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
name: "setPreCrime",
|
|
275
|
+
outputs: [],
|
|
276
|
+
stateMutability: "nonpayable",
|
|
277
|
+
type: "function",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
inputs: [
|
|
281
|
+
{
|
|
282
|
+
internalType: "address",
|
|
283
|
+
name: "newOwner",
|
|
284
|
+
type: "address",
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
name: "transferOwnership",
|
|
288
|
+
outputs: [],
|
|
289
|
+
stateMutability: "nonpayable",
|
|
290
|
+
type: "function",
|
|
291
|
+
},
|
|
292
|
+
];
|
|
293
|
+
|
|
294
|
+
export class OAppPreCrimeSimulatorUpgradeable__factory {
|
|
295
|
+
static readonly abi = _abi;
|
|
296
|
+
static createInterface(): OAppPreCrimeSimulatorUpgradeableInterface {
|
|
297
|
+
return new utils.Interface(
|
|
298
|
+
_abi
|
|
299
|
+
) as OAppPreCrimeSimulatorUpgradeableInterface;
|
|
300
|
+
}
|
|
301
|
+
static connect(
|
|
302
|
+
address: string,
|
|
303
|
+
signerOrProvider: Signer | Provider
|
|
304
|
+
): OAppPreCrimeSimulatorUpgradeable {
|
|
305
|
+
return new Contract(
|
|
306
|
+
address,
|
|
307
|
+
_abi,
|
|
308
|
+
signerOrProvider
|
|
309
|
+
) as OAppPreCrimeSimulatorUpgradeable;
|
|
310
|
+
}
|
|
311
|
+
}
|