@pendle/core-v2 6.4.2-swaphubtest → 6.4.2-swaphubtest2
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 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +170 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +124 -0
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +200 -433
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +199 -423
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +161 -398
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.json +108 -0
- 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/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
- 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/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
- 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/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/ActionCrossChain.sol/ActionCrossChain.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.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/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/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/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/core/libraries/TokenHelper.sol +5 -1
- package/contracts/cross-chain/deposit-box/DepositBoxFactory.sol +44 -0
- package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +14 -102
- package/contracts/cross-chain/swap-hub/SwapHubBase.sol +73 -150
- package/contracts/interfaces/IPCrossChainSwapHub.sol +35 -66
- package/contracts/interfaces/IPDepositBoxFactory.sol +19 -0
- package/deployments/130-core.json +2 -1
- package/deployments/9745-core.json +3 -2
- package/package.json +1 -1
- package/typechain-types/DepositBoxFactory.ts +226 -0
- package/typechain-types/IPCrossChainSwapHub.ts +192 -383
- package/typechain-types/IPDepositBoxFactory.ts +226 -0
- package/typechain-types/PendleCrossChainSwapHub.ts +217 -390
- package/typechain-types/SwapHubBase.ts +216 -389
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCrossChain__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/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/DepositBoxFactory__factory.ts +189 -0
- package/typechain-types/factories/DepositBox__factory.ts +1 -1
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
- package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +161 -398
- package/typechain-types/factories/IPDepositBoxFactory__factory.ts +123 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +203 -440
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV6__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/factories/SwapHubBase__factory.ts +199 -423
- package/typechain-types/hardhat.d.ts +27 -9
- package/typechain-types/index.ts +6 -2
- package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.json +0 -170
- /package/contracts/cross-chain/{swap-hub → deposit-box}/DepositBox.sol +0 -0
|
@@ -328,6 +328,14 @@ declare module "hardhat/types/runtime" {
|
|
|
328
328
|
name: "PendleYieldToken",
|
|
329
329
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
330
330
|
): Promise<Contracts.PendleYieldToken__factory>;
|
|
331
|
+
getContractFactory(
|
|
332
|
+
name: "DepositBox",
|
|
333
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
334
|
+
): Promise<Contracts.DepositBox__factory>;
|
|
335
|
+
getContractFactory(
|
|
336
|
+
name: "DepositBoxFactory",
|
|
337
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
338
|
+
): Promise<Contracts.DepositBoxFactory__factory>;
|
|
331
339
|
getContractFactory(
|
|
332
340
|
name: "PendlePTOFTAdapterFactory",
|
|
333
341
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -344,10 +352,6 @@ declare module "hardhat/types/runtime" {
|
|
|
344
352
|
name: "PendleBridgedPrincipalToken",
|
|
345
353
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
346
354
|
): Promise<Contracts.PendleBridgedPrincipalToken__factory>;
|
|
347
|
-
getContractFactory(
|
|
348
|
-
name: "DepositBox",
|
|
349
|
-
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
350
|
-
): Promise<Contracts.DepositBox__factory>;
|
|
351
355
|
getContractFactory(
|
|
352
356
|
name: "PendleCrossChainSwapHub",
|
|
353
357
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -508,6 +512,10 @@ declare module "hardhat/types/runtime" {
|
|
|
508
512
|
name: "IPDepositBox",
|
|
509
513
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
510
514
|
): Promise<Contracts.IPDepositBox__factory>;
|
|
515
|
+
getContractFactory(
|
|
516
|
+
name: "IPDepositBoxFactory",
|
|
517
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
518
|
+
): Promise<Contracts.IPDepositBoxFactory__factory>;
|
|
511
519
|
getContractFactory(
|
|
512
520
|
name: "IPExchangeRateOracle",
|
|
513
521
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -1472,6 +1480,16 @@ declare module "hardhat/types/runtime" {
|
|
|
1472
1480
|
address: string,
|
|
1473
1481
|
signer?: ethers.Signer
|
|
1474
1482
|
): Promise<Contracts.PendleYieldToken>;
|
|
1483
|
+
getContractAt(
|
|
1484
|
+
name: "DepositBox",
|
|
1485
|
+
address: string,
|
|
1486
|
+
signer?: ethers.Signer
|
|
1487
|
+
): Promise<Contracts.DepositBox>;
|
|
1488
|
+
getContractAt(
|
|
1489
|
+
name: "DepositBoxFactory",
|
|
1490
|
+
address: string,
|
|
1491
|
+
signer?: ethers.Signer
|
|
1492
|
+
): Promise<Contracts.DepositBoxFactory>;
|
|
1475
1493
|
getContractAt(
|
|
1476
1494
|
name: "PendlePTOFTAdapterFactory",
|
|
1477
1495
|
address: string,
|
|
@@ -1492,11 +1510,6 @@ declare module "hardhat/types/runtime" {
|
|
|
1492
1510
|
address: string,
|
|
1493
1511
|
signer?: ethers.Signer
|
|
1494
1512
|
): Promise<Contracts.PendleBridgedPrincipalToken>;
|
|
1495
|
-
getContractAt(
|
|
1496
|
-
name: "DepositBox",
|
|
1497
|
-
address: string,
|
|
1498
|
-
signer?: ethers.Signer
|
|
1499
|
-
): Promise<Contracts.DepositBox>;
|
|
1500
1513
|
getContractAt(
|
|
1501
1514
|
name: "PendleCrossChainSwapHub",
|
|
1502
1515
|
address: string,
|
|
@@ -1697,6 +1710,11 @@ declare module "hardhat/types/runtime" {
|
|
|
1697
1710
|
address: string,
|
|
1698
1711
|
signer?: ethers.Signer
|
|
1699
1712
|
): Promise<Contracts.IPDepositBox>;
|
|
1713
|
+
getContractAt(
|
|
1714
|
+
name: "IPDepositBoxFactory",
|
|
1715
|
+
address: string,
|
|
1716
|
+
signer?: ethers.Signer
|
|
1717
|
+
): Promise<Contracts.IPDepositBoxFactory>;
|
|
1700
1718
|
getContractAt(
|
|
1701
1719
|
name: "IPExchangeRateOracle",
|
|
1702
1720
|
address: string,
|
package/typechain-types/index.ts
CHANGED
|
@@ -78,11 +78,12 @@ export type { InterestManagerYT } from "./InterestManagerYT";
|
|
|
78
78
|
export type { PendlePrincipalToken } from "./PendlePrincipalToken";
|
|
79
79
|
export type { PendleYieldContractFactoryUpg } from "./PendleYieldContractFactoryUpg";
|
|
80
80
|
export type { PendleYieldToken } from "./PendleYieldToken";
|
|
81
|
+
export type { DepositBox } from "./DepositBox";
|
|
82
|
+
export type { DepositBoxFactory } from "./DepositBoxFactory";
|
|
81
83
|
export type { PendlePTOFTAdapterFactory } from "./PendlePTOFTAdapterFactory";
|
|
82
84
|
export type { FixedPricePTAMM } from "./FixedPricePTAMM";
|
|
83
85
|
export type { OFTAdapterImpl } from "./OFTAdapterImpl";
|
|
84
86
|
export type { PendleBridgedPrincipalToken } from "./PendleBridgedPrincipalToken";
|
|
85
|
-
export type { DepositBox } from "./DepositBox";
|
|
86
87
|
export type { PendleCrossChainSwapHub } from "./PendleCrossChainSwapHub";
|
|
87
88
|
export type { SwapHubBase } from "./SwapHubBase";
|
|
88
89
|
export type { PendleFeeDistributor } from "./PendleFeeDistributor";
|
|
@@ -122,6 +123,7 @@ export type { IPCommonPoolDeployHelperV2 } from "./IPCommonPoolDeployHelperV2";
|
|
|
122
123
|
export type { IPCommonSYFactory } from "./IPCommonSYFactory";
|
|
123
124
|
export type { IPCrossChainSwapHub } from "./IPCrossChainSwapHub";
|
|
124
125
|
export type { IPDepositBox } from "./IPDepositBox";
|
|
126
|
+
export type { IPDepositBoxFactory } from "./IPDepositBoxFactory";
|
|
125
127
|
export type { IPExchangeRateOracle } from "./IPExchangeRateOracle";
|
|
126
128
|
export type { IPExchangeRateOracleApp } from "./IPExchangeRateOracleApp";
|
|
127
129
|
export type { IPFeeDistributor } from "./IPFeeDistributor";
|
|
@@ -342,11 +344,12 @@ export { InterestManagerYT__factory } from "./factories/InterestManagerYT__facto
|
|
|
342
344
|
export { PendlePrincipalToken__factory } from "./factories/PendlePrincipalToken__factory";
|
|
343
345
|
export { PendleYieldContractFactoryUpg__factory } from "./factories/PendleYieldContractFactoryUpg__factory";
|
|
344
346
|
export { PendleYieldToken__factory } from "./factories/PendleYieldToken__factory";
|
|
347
|
+
export { DepositBox__factory } from "./factories/DepositBox__factory";
|
|
348
|
+
export { DepositBoxFactory__factory } from "./factories/DepositBoxFactory__factory";
|
|
345
349
|
export { PendlePTOFTAdapterFactory__factory } from "./factories/PendlePTOFTAdapterFactory__factory";
|
|
346
350
|
export { FixedPricePTAMM__factory } from "./factories/FixedPricePTAMM__factory";
|
|
347
351
|
export { OFTAdapterImpl__factory } from "./factories/OFTAdapterImpl__factory";
|
|
348
352
|
export { PendleBridgedPrincipalToken__factory } from "./factories/PendleBridgedPrincipalToken__factory";
|
|
349
|
-
export { DepositBox__factory } from "./factories/DepositBox__factory";
|
|
350
353
|
export { PendleCrossChainSwapHub__factory } from "./factories/PendleCrossChainSwapHub__factory";
|
|
351
354
|
export { SwapHubBase__factory } from "./factories/SwapHubBase__factory";
|
|
352
355
|
export { PendleFeeDistributor__factory } from "./factories/PendleFeeDistributor__factory";
|
|
@@ -386,6 +389,7 @@ export { IPCommonPoolDeployHelperV2__factory } from "./factories/IPCommonPoolDep
|
|
|
386
389
|
export { IPCommonSYFactory__factory } from "./factories/IPCommonSYFactory__factory";
|
|
387
390
|
export { IPCrossChainSwapHub__factory } from "./factories/IPCrossChainSwapHub__factory";
|
|
388
391
|
export { IPDepositBox__factory } from "./factories/IPDepositBox__factory";
|
|
392
|
+
export { IPDepositBoxFactory__factory } from "./factories/IPDepositBoxFactory__factory";
|
|
389
393
|
export { IPExchangeRateOracle__factory } from "./factories/IPExchangeRateOracle__factory";
|
|
390
394
|
export { IPExchangeRateOracleApp__factory } from "./factories/IPExchangeRateOracleApp__factory";
|
|
391
395
|
export { IPFeeDistributor__factory } from "./factories/IPFeeDistributor__factory";
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "DepositBox",
|
|
4
|
-
"sourceName": "contracts/cross-chain/swap-hub/DepositBox.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [
|
|
8
|
-
{
|
|
9
|
-
"internalType": "address",
|
|
10
|
-
"name": "manager_",
|
|
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
|
-
"inputs": [],
|
|
32
|
-
"name": "BOX_ID",
|
|
33
|
-
"outputs": [
|
|
34
|
-
{
|
|
35
|
-
"internalType": "uint32",
|
|
36
|
-
"name": "",
|
|
37
|
-
"type": "uint32"
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"stateMutability": "view",
|
|
41
|
-
"type": "function"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"inputs": [],
|
|
45
|
-
"name": "MANAGER",
|
|
46
|
-
"outputs": [
|
|
47
|
-
{
|
|
48
|
-
"internalType": "address",
|
|
49
|
-
"name": "",
|
|
50
|
-
"type": "address"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"stateMutability": "view",
|
|
54
|
-
"type": "function"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"inputs": [],
|
|
58
|
-
"name": "OWNER",
|
|
59
|
-
"outputs": [
|
|
60
|
-
{
|
|
61
|
-
"internalType": "address",
|
|
62
|
-
"name": "",
|
|
63
|
-
"type": "address"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"stateMutability": "view",
|
|
67
|
-
"type": "function"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"inputs": [
|
|
71
|
-
{
|
|
72
|
-
"components": [
|
|
73
|
-
{
|
|
74
|
-
"internalType": "address",
|
|
75
|
-
"name": "token",
|
|
76
|
-
"type": "address"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"internalType": "uint256",
|
|
80
|
-
"name": "amount",
|
|
81
|
-
"type": "uint256"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"internalType": "address",
|
|
85
|
-
"name": "approveTo",
|
|
86
|
-
"type": "address"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"internalType": "address",
|
|
90
|
-
"name": "callTo",
|
|
91
|
-
"type": "address"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"internalType": "bytes",
|
|
95
|
-
"name": "data",
|
|
96
|
-
"type": "bytes"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"internalType": "struct ApprovedCall",
|
|
100
|
-
"name": "call",
|
|
101
|
-
"type": "tuple"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"internalType": "address",
|
|
105
|
-
"name": "nativeRefund",
|
|
106
|
-
"type": "address"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"name": "approveAndCall",
|
|
110
|
-
"outputs": [
|
|
111
|
-
{
|
|
112
|
-
"internalType": "bytes",
|
|
113
|
-
"name": "result",
|
|
114
|
-
"type": "bytes"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"stateMutability": "payable",
|
|
118
|
-
"type": "function"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"inputs": [
|
|
122
|
-
{
|
|
123
|
-
"internalType": "address",
|
|
124
|
-
"name": "owner_",
|
|
125
|
-
"type": "address"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"internalType": "uint32",
|
|
129
|
-
"name": "boxId_",
|
|
130
|
-
"type": "uint32"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"name": "initialize",
|
|
134
|
-
"outputs": [],
|
|
135
|
-
"stateMutability": "nonpayable",
|
|
136
|
-
"type": "function"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"inputs": [
|
|
140
|
-
{
|
|
141
|
-
"internalType": "address",
|
|
142
|
-
"name": "to",
|
|
143
|
-
"type": "address"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"internalType": "address",
|
|
147
|
-
"name": "token",
|
|
148
|
-
"type": "address"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"internalType": "uint256",
|
|
152
|
-
"name": "amount",
|
|
153
|
-
"type": "uint256"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"name": "withdrawTo",
|
|
157
|
-
"outputs": [],
|
|
158
|
-
"stateMutability": "nonpayable",
|
|
159
|
-
"type": "function"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"stateMutability": "payable",
|
|
163
|
-
"type": "receive"
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"bytecode": "0x60a060405234801561000f575f5ffd5b50604051610ed1380380610ed183398101604081905261002e91610103565b610036610047565b6001600160a01b0316608052610130565b5f54610100900460ff16156100b25760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b5f5460ff90811614610101575f805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b5f60208284031215610113575f5ffd5b81516001600160a01b0381168114610129575f5ffd5b9392505050565b608051610d7c6101555f395f818160ad01528181610173015261028b0152610d7c5ff3fe608060405260043610610057575f3560e01c8063117803e3146100625780631b2df8501461009c57806328dc8307146100cf578063a817c113146100ef578063c3b35a7e14610126578063c5e4c9f914610147575f5ffd5b3661005e57005b5f5ffd5b34801561006d575f5ffd5b505f54610086906201000090046001600160a01b031681565b60405161009391906109aa565b60405180910390f35b3480156100a7575f5ffd5b506100867f000000000000000000000000000000000000000000000000000000000000000081565b6100e26100dd366004610a45565b610166565b6040516100939190610ba8565b3480156100fa575f5ffd5b505f5461011190600160b01b900463ffffffff1681565b60405163ffffffff9091168152602001610093565b348015610131575f5ffd5b50610145610140366004610bc1565b610280565b005b348015610152575f5ffd5b50610145610161366004610bfb565b6102d8565b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101b95760405162461bcd60e51b81526004016101b090610c38565b60405180910390fd5b82515f906001600160a01b0316156101d1575f6101d7565b83602001515b9050345f81836101e68361041c565b6101f09190610c8d565b6101fa9190610c8d565b9050610212865f0151876040015188602001516104a4565b608086015161023a906102258486610ca0565b60608901516001600160a01b031691906104cb565b935061024e865f015187604001515f6104a4565b5f6102585f61041c565b905081811115610276576102765f876102718585610c8d565b6104f9565b5050505092915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146102c85760405162461bcd60e51b81526004016101b090610c38565b6102d38284836104f9565b505050565b5f54610100900460ff16158080156102f657505f54600160ff909116105b806103165750610305306105be565b15801561031657505f5460ff166001145b6103795760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101b0565b5f805460ff19166001179055801561039a575f805461ff0019166101001790555b5f805462010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85160217905580156102d3575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b5f6001600160a01b0382161561049c576040516370a0823160e01b81526001600160a01b038316906370a08231906104589030906004016109aa565b602060405180830381865afa158015610473573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104979190610cb3565b61049e565b475b92915050565b6001600160a01b0383166104b757505050565b6102d36001600160a01b03841683836105cd565b60606104f1848484604051806060016040528060298152602001610d1e60299139610697565b949350505050565b805f0361050557505050565b6001600160a01b0383166105aa575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461055c576040519150601f19603f3d011682016040523d82523d5f602084013e610561565b606091505b50509050806105a45760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b60448201526064016101b0565b50505050565b6102d36001600160a01b038416838361076e565b6001600160a01b03163b151590565b5f63095ea7b360e01b83836040516024016105e9929190610cca565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610627848261078d565b6105a4576040516001600160a01b03841660248201525f604482015261068d90859063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610829565b6105a48482610829565b6060824710156106f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101b0565b5f5f866001600160a01b031685876040516107139190610ce3565b5f6040518083038185875af1925050503d805f811461074d576040519150601f19603f3d011682016040523d82523d5f602084013e610752565b606091505b5091509150610763878383876108fc565b979650505050505050565b6102d38363a9059cbb60e01b8484604051602401610656929190610cca565b5f5f5f846001600160a01b0316846040516107a89190610ce3565b5f604051808303815f865af19150503d805f81146107e1576040519150601f19603f3d011682016040523d82523d5f602084013e6107e6565b606091505b50915091508180156108105750805115806108105750808060200190518101906108109190610cfe565b80156108205750610820856105be565b95945050505050565b5f61087d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109729092919063ffffffff16565b905080515f148061089d57508080602001905181019061089d9190610cfe565b6102d35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101b0565b606083156109685782515f0361096157610915856105be565b6109615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b0565b50816104f1565b6104f18383610980565b60606104f184845f85610697565b8151156109905781518083602001fd5b8060405162461bcd60e51b81526004016101b09190610ba8565b6001600160a01b0391909116815260200190565b634e487b7160e01b5f52604160045260245ffd5b60405160a081016001600160401b03811182821017156109f4576109f46109be565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610a2257610a226109be565b604052919050565b80356001600160a01b0381168114610a40575f5ffd5b919050565b5f5f60408385031215610a56575f5ffd5b82356001600160401b03811115610a6b575f5ffd5b830160a08186031215610a7c575f5ffd5b610a846109d2565b610a8d82610a2a565b815260208281013590820152610aa560408301610a2a565b6040820152610ab660608301610a2a565b606082015260808201356001600160401b03811115610ad3575f5ffd5b80830192505085601f830112610ae7575f5ffd5b81356001600160401b03811115610b0057610b006109be565b610b13601f8201601f19166020016109fa565b818152876020838601011115610b27575f5ffd5b816020850160208301375f6020838301015280608084015250508093505050610b5260208401610a2a565b90509250929050565b5f5b83811015610b75578181015183820152602001610b5d565b50505f910152565b5f8151808452610b94816020860160208601610b5b565b601f01601f19169290920160200192915050565b602081525f610bba6020830184610b7d565b9392505050565b5f5f5f60608486031215610bd3575f5ffd5b610bdc84610a2a565b9250610bea60208501610a2a565b929592945050506040919091013590565b5f5f60408385031215610c0c575f5ffd5b610c1583610a2a565b9150602083013563ffffffff81168114610c2d575f5ffd5b809150509250929050565b60208082526021908201527f4465706f736974426f783a2063616c6c6572206973206e6f74206d616e6167656040820152603960f91b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561049e5761049e610c79565b8082018082111561049e5761049e610c79565b5f60208284031215610cc3575f5ffd5b5051919050565b6001600160a01b03929092168252602082015260400190565b5f8251610cf4818460208701610b5b565b9190910192915050565b5f60208284031215610d0e575f5ffd5b81518015158114610bba575f5ffdfe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220afc1a14ded4a540e28b7c0f99a15e869c8918ef90403d4ccab718803d5a226bb64736f6c634300081e0033",
|
|
167
|
-
"deployedBytecode": "0x608060405260043610610057575f3560e01c8063117803e3146100625780631b2df8501461009c57806328dc8307146100cf578063a817c113146100ef578063c3b35a7e14610126578063c5e4c9f914610147575f5ffd5b3661005e57005b5f5ffd5b34801561006d575f5ffd5b505f54610086906201000090046001600160a01b031681565b60405161009391906109aa565b60405180910390f35b3480156100a7575f5ffd5b506100867f000000000000000000000000000000000000000000000000000000000000000081565b6100e26100dd366004610a45565b610166565b6040516100939190610ba8565b3480156100fa575f5ffd5b505f5461011190600160b01b900463ffffffff1681565b60405163ffffffff9091168152602001610093565b348015610131575f5ffd5b50610145610140366004610bc1565b610280565b005b348015610152575f5ffd5b50610145610161366004610bfb565b6102d8565b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101b95760405162461bcd60e51b81526004016101b090610c38565b60405180910390fd5b82515f906001600160a01b0316156101d1575f6101d7565b83602001515b9050345f81836101e68361041c565b6101f09190610c8d565b6101fa9190610c8d565b9050610212865f0151876040015188602001516104a4565b608086015161023a906102258486610ca0565b60608901516001600160a01b031691906104cb565b935061024e865f015187604001515f6104a4565b5f6102585f61041c565b905081811115610276576102765f876102718585610c8d565b6104f9565b5050505092915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146102c85760405162461bcd60e51b81526004016101b090610c38565b6102d38284836104f9565b505050565b5f54610100900460ff16158080156102f657505f54600160ff909116105b806103165750610305306105be565b15801561031657505f5460ff166001145b6103795760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101b0565b5f805460ff19166001179055801561039a575f805461ff0019166101001790555b5f805462010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85160217905580156102d3575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b5f6001600160a01b0382161561049c576040516370a0823160e01b81526001600160a01b038316906370a08231906104589030906004016109aa565b602060405180830381865afa158015610473573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104979190610cb3565b61049e565b475b92915050565b6001600160a01b0383166104b757505050565b6102d36001600160a01b03841683836105cd565b60606104f1848484604051806060016040528060298152602001610d1e60299139610697565b949350505050565b805f0361050557505050565b6001600160a01b0383166105aa575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461055c576040519150601f19603f3d011682016040523d82523d5f602084013e610561565b606091505b50509050806105a45760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b60448201526064016101b0565b50505050565b6102d36001600160a01b038416838361076e565b6001600160a01b03163b151590565b5f63095ea7b360e01b83836040516024016105e9929190610cca565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050610627848261078d565b6105a4576040516001600160a01b03841660248201525f604482015261068d90859063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610829565b6105a48482610829565b6060824710156106f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101b0565b5f5f866001600160a01b031685876040516107139190610ce3565b5f6040518083038185875af1925050503d805f811461074d576040519150601f19603f3d011682016040523d82523d5f602084013e610752565b606091505b5091509150610763878383876108fc565b979650505050505050565b6102d38363a9059cbb60e01b8484604051602401610656929190610cca565b5f5f5f846001600160a01b0316846040516107a89190610ce3565b5f604051808303815f865af19150503d805f81146107e1576040519150601f19603f3d011682016040523d82523d5f602084013e6107e6565b606091505b50915091508180156108105750805115806108105750808060200190518101906108109190610cfe565b80156108205750610820856105be565b95945050505050565b5f61087d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109729092919063ffffffff16565b905080515f148061089d57508080602001905181019061089d9190610cfe565b6102d35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101b0565b606083156109685782515f0361096157610915856105be565b6109615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b0565b50816104f1565b6104f18383610980565b60606104f184845f85610697565b8151156109905781518083602001fd5b8060405162461bcd60e51b81526004016101b09190610ba8565b6001600160a01b0391909116815260200190565b634e487b7160e01b5f52604160045260245ffd5b60405160a081016001600160401b03811182821017156109f4576109f46109be565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610a2257610a226109be565b604052919050565b80356001600160a01b0381168114610a40575f5ffd5b919050565b5f5f60408385031215610a56575f5ffd5b82356001600160401b03811115610a6b575f5ffd5b830160a08186031215610a7c575f5ffd5b610a846109d2565b610a8d82610a2a565b815260208281013590820152610aa560408301610a2a565b6040820152610ab660608301610a2a565b606082015260808201356001600160401b03811115610ad3575f5ffd5b80830192505085601f830112610ae7575f5ffd5b81356001600160401b03811115610b0057610b006109be565b610b13601f8201601f19166020016109fa565b818152876020838601011115610b27575f5ffd5b816020850160208301375f6020838301015280608084015250508093505050610b5260208401610a2a565b90509250929050565b5f5b83811015610b75578181015183820152602001610b5d565b50505f910152565b5f8151808452610b94816020860160208601610b5b565b601f01601f19169290920160200192915050565b602081525f610bba6020830184610b7d565b9392505050565b5f5f5f60608486031215610bd3575f5ffd5b610bdc84610a2a565b9250610bea60208501610a2a565b929592945050506040919091013590565b5f5f60408385031215610c0c575f5ffd5b610c1583610a2a565b9150602083013563ffffffff81168114610c2d575f5ffd5b809150509250929050565b60208082526021908201527f4465706f736974426f783a2063616c6c6572206973206e6f74206d616e6167656040820152603960f91b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561049e5761049e610c79565b8082018082111561049e5761049e610c79565b5f60208284031215610cc3575f5ffd5b5051919050565b6001600160a01b03929092168252602082015260400190565b5f8251610cf4818460208701610b5b565b9190910192915050565b5f60208284031215610d0e575f5ffd5b81518015158114610bba575f5ffdfe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220afc1a14ded4a540e28b7c0f99a15e869c8918ef90403d4ccab718803d5a226bb64736f6c634300081e0033",
|
|
168
|
-
"linkReferences": {},
|
|
169
|
-
"deployedLinkReferences": {}
|
|
170
|
-
}
|
|
File without changes
|