@pendle/core-v2 5.4.3 → 5.4.4-beta-okx-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.
Files changed (125) hide show
  1. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
  3. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  19. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +61 -0
  20. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  21. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  23. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  25. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  26. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  27. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  28. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  29. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  31. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  32. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  33. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  34. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  38. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  39. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  40. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  41. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  43. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  44. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  45. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  46. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  47. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  48. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  49. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  50. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  51. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  52. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  53. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  54. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  56. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  58. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  59. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  60. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  61. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  63. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  65. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  67. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  69. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  71. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +0 -40
  73. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +4 -0
  74. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.json +407 -0
  75. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +4 -0
  76. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.json +10 -0
  77. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.dbg.json +4 -0
  78. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchAggregationRouterV6.json +214 -0
  79. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.dbg.json +4 -0
  80. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/I1inchCommonType.json +10 -0
  81. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.dbg.json +4 -0
  82. package/build/artifacts/contracts/router/swap-aggregator/OneInchScaleHelper.sol/OneInchScaleHelper.json +10 -0
  83. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  84. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  86. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -55
  87. package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +6 -0
  88. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +0 -2
  89. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +215 -0
  90. package/contracts/router/swap-aggregator/OneInchScaleHelper.sol +120 -0
  91. package/contracts/router/swap-aggregator/PendleSwap.sol +24 -7
  92. package/deployments/1-core.json +1 -1
  93. package/deployments/10-core.json +1 -1
  94. package/deployments/42161-core.json +1 -1
  95. package/deployments/5000-core.json +1 -1
  96. package/deployments/56-core.json +1 -1
  97. package/deployments/8453-core.json +1 -1
  98. package/package.json +1 -1
  99. package/typechain-types/I1inchAggregationRouterV6.ts +337 -0
  100. package/typechain-types/IPMultiTokenMerkleDistributor.ts +88 -0
  101. package/typechain-types/IPSwapAggregator.ts +0 -39
  102. package/typechain-types/PendleSwap.ts +0 -60
  103. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  104. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  105. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  106. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  107. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  108. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  109. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  110. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  111. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  112. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  113. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  114. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  115. package/typechain-types/factories/I1inchAggregationRouterV6__factory.ts +233 -0
  116. package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +61 -0
  117. package/typechain-types/factories/IPSwapAggregator__factory.ts +0 -40
  118. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
  119. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  120. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  121. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  122. package/typechain-types/factories/PendleSwap__factory.ts +1 -54
  123. package/typechain-types/factories/Reflector__factory.ts +1 -1
  124. package/typechain-types/hardhat.d.ts +18 -9
  125. package/typechain-types/index.ts +4 -2
@@ -3,8 +3,8 @@
3
3
  "contractName": "MarketApproxPtOutLibOnchain",
4
4
  "sourceName": "contracts/router/math/MarketApproxLibOnchain.sol",
5
5
  "abi": [],
6
- "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122082ee6b4c3753b1f796c20ab9994d40665233feb79be0c6d333a60f27f176317164736f6c63430008170033",
7
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122082ee6b4c3753b1f796c20ab9994d40665233feb79be0c6d333a60f27f176317164736f6c63430008170033",
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207eecdd58f9c9504f0ee4fa0cdd4e8962c8952088847de274ffa8e2245e1d158264736f6c63430008170033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207eecdd58f9c9504f0ee4fa0cdd4e8962c8952088847de274ffa8e2245e1d158264736f6c63430008170033",
8
8
  "linkReferences": {},
9
9
  "deployedLinkReferences": {}
10
10
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/f3456968fbf18b477661658955d3543f.json"
3
+ "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
4
4
  }
@@ -3,8 +3,8 @@
3
3
  "contractName": "MarketApproxPtInLibV2",
4
4
  "sourceName": "contracts/router/math/MarketApproxLibV2.sol",
5
5
  "abi": [],
6
- "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122022b0fd7528bcb973f5e4454e1375749c61aa1376d386690bb586658c14314efc64736f6c63430008170033",
7
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122022b0fd7528bcb973f5e4454e1375749c61aa1376d386690bb586658c14314efc64736f6c63430008170033",
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206266cb8a9d26cfdec0daacc289ff5027055e0459d4fd3e5e0c05455ab230621f64736f6c63430008170033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206266cb8a9d26cfdec0daacc289ff5027055e0459d4fd3e5e0c05455ab230621f64736f6c63430008170033",
8
8
  "linkReferences": {},
9
9
  "deployedLinkReferences": {}
10
10
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/f3456968fbf18b477661658955d3543f.json"
3
+ "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
4
4
  }
@@ -3,8 +3,8 @@
3
3
  "contractName": "MarketApproxPtOutLibV2",
4
4
  "sourceName": "contracts/router/math/MarketApproxLibV2.sol",
5
5
  "abi": [],
6
- "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202c09a9863c1f93abbdd5aeb68e23495b6b3bb15750089ef1ca4fd03c62ef1b6164736f6c63430008170033",
7
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202c09a9863c1f93abbdd5aeb68e23495b6b3bb15750089ef1ca4fd03c62ef1b6164736f6c63430008170033",
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220bd2aa2abb3abdf314b919e4c0916b8e25e2a0cb1591068840a9937ce807dbb2c64736f6c63430008170033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220bd2aa2abb3abdf314b919e4c0916b8e25e2a0cb1591068840a9937ce807dbb2c64736f6c63430008170033",
8
8
  "linkReferences": {},
9
9
  "deployedLinkReferences": {}
10
10
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/f3456968fbf18b477661658955d3543f.json"
3
+ "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
4
4
  }
@@ -72,46 +72,6 @@
72
72
  "outputs": [],
73
73
  "stateMutability": "payable",
74
74
  "type": "function"
75
- },
76
- {
77
- "inputs": [
78
- {
79
- "internalType": "address[]",
80
- "name": "tokensIn",
81
- "type": "address[]"
82
- },
83
- {
84
- "components": [
85
- {
86
- "internalType": "enum SwapType",
87
- "name": "swapType",
88
- "type": "uint8"
89
- },
90
- {
91
- "internalType": "address",
92
- "name": "extRouter",
93
- "type": "address"
94
- },
95
- {
96
- "internalType": "bytes",
97
- "name": "extCalldata",
98
- "type": "bytes"
99
- },
100
- {
101
- "internalType": "bool",
102
- "name": "needScale",
103
- "type": "bool"
104
- }
105
- ],
106
- "internalType": "struct SwapData",
107
- "name": "swapData",
108
- "type": "tuple"
109
- }
110
- ],
111
- "name": "swapMultiOdos",
112
- "outputs": [],
113
- "stateMutability": "payable",
114
- "type": "function"
115
75
  }
116
76
  ],
117
77
  "bytecode": "0x",
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
4
+ }
@@ -0,0 +1,407 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOKXDexRouter",
4
+ "sourceName": "contracts/router/swap-aggregator/OKXScaleHelper.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "orderId",
11
+ "type": "uint256"
12
+ },
13
+ {
14
+ "components": [
15
+ {
16
+ "internalType": "uint256",
17
+ "name": "fromToken",
18
+ "type": "uint256"
19
+ },
20
+ {
21
+ "internalType": "address",
22
+ "name": "toToken",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "fromTokenAmount",
28
+ "type": "uint256"
29
+ },
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "minReturnAmount",
33
+ "type": "uint256"
34
+ },
35
+ {
36
+ "internalType": "uint256",
37
+ "name": "deadLine",
38
+ "type": "uint256"
39
+ }
40
+ ],
41
+ "internalType": "struct IOKXDexRouter.BaseRequest",
42
+ "name": "baseRequest",
43
+ "type": "tuple"
44
+ },
45
+ {
46
+ "internalType": "uint256[]",
47
+ "name": "batchesAmount",
48
+ "type": "uint256[]"
49
+ },
50
+ {
51
+ "components": [
52
+ {
53
+ "internalType": "address[]",
54
+ "name": "mixAdapters",
55
+ "type": "address[]"
56
+ },
57
+ {
58
+ "internalType": "address[]",
59
+ "name": "assetTo",
60
+ "type": "address[]"
61
+ },
62
+ {
63
+ "internalType": "uint256[]",
64
+ "name": "rawData",
65
+ "type": "uint256[]"
66
+ },
67
+ {
68
+ "internalType": "bytes[]",
69
+ "name": "extraData",
70
+ "type": "bytes[]"
71
+ },
72
+ {
73
+ "internalType": "uint256",
74
+ "name": "fromToken",
75
+ "type": "uint256"
76
+ }
77
+ ],
78
+ "internalType": "struct IOKXDexRouter.RouterPath[][]",
79
+ "name": "batches",
80
+ "type": "tuple[][]"
81
+ },
82
+ {
83
+ "components": [
84
+ {
85
+ "internalType": "uint256",
86
+ "name": "pathIndex",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "internalType": "address",
91
+ "name": "payer",
92
+ "type": "address"
93
+ },
94
+ {
95
+ "internalType": "address",
96
+ "name": "fromToken",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "internalType": "address",
101
+ "name": "toToken",
102
+ "type": "address"
103
+ },
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "fromTokenAmountMax",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "internalType": "uint256",
111
+ "name": "toTokenAmountMax",
112
+ "type": "uint256"
113
+ },
114
+ {
115
+ "internalType": "uint256",
116
+ "name": "salt",
117
+ "type": "uint256"
118
+ },
119
+ {
120
+ "internalType": "uint256",
121
+ "name": "deadLine",
122
+ "type": "uint256"
123
+ },
124
+ {
125
+ "internalType": "bool",
126
+ "name": "isPushOrder",
127
+ "type": "bool"
128
+ },
129
+ {
130
+ "internalType": "bytes",
131
+ "name": "extension",
132
+ "type": "bytes"
133
+ }
134
+ ],
135
+ "internalType": "struct IOKXDexRouter.PMMSwapRequest[]",
136
+ "name": "extraData",
137
+ "type": "tuple[]"
138
+ }
139
+ ],
140
+ "name": "smartSwapByOrderId",
141
+ "outputs": [
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "returnAmount",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "stateMutability": "payable",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "uint256",
155
+ "name": "orderId",
156
+ "type": "uint256"
157
+ },
158
+ {
159
+ "internalType": "address",
160
+ "name": "receiver",
161
+ "type": "address"
162
+ },
163
+ {
164
+ "components": [
165
+ {
166
+ "internalType": "uint256",
167
+ "name": "fromToken",
168
+ "type": "uint256"
169
+ },
170
+ {
171
+ "internalType": "address",
172
+ "name": "toToken",
173
+ "type": "address"
174
+ },
175
+ {
176
+ "internalType": "uint256",
177
+ "name": "fromTokenAmount",
178
+ "type": "uint256"
179
+ },
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "minReturnAmount",
183
+ "type": "uint256"
184
+ },
185
+ {
186
+ "internalType": "uint256",
187
+ "name": "deadLine",
188
+ "type": "uint256"
189
+ }
190
+ ],
191
+ "internalType": "struct IOKXDexRouter.BaseRequest",
192
+ "name": "baseRequest",
193
+ "type": "tuple"
194
+ },
195
+ {
196
+ "internalType": "uint256[]",
197
+ "name": "batchesAmount",
198
+ "type": "uint256[]"
199
+ },
200
+ {
201
+ "components": [
202
+ {
203
+ "internalType": "address[]",
204
+ "name": "mixAdapters",
205
+ "type": "address[]"
206
+ },
207
+ {
208
+ "internalType": "address[]",
209
+ "name": "assetTo",
210
+ "type": "address[]"
211
+ },
212
+ {
213
+ "internalType": "uint256[]",
214
+ "name": "rawData",
215
+ "type": "uint256[]"
216
+ },
217
+ {
218
+ "internalType": "bytes[]",
219
+ "name": "extraData",
220
+ "type": "bytes[]"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "fromToken",
225
+ "type": "uint256"
226
+ }
227
+ ],
228
+ "internalType": "struct IOKXDexRouter.RouterPath[][]",
229
+ "name": "batches",
230
+ "type": "tuple[][]"
231
+ },
232
+ {
233
+ "components": [
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "pathIndex",
237
+ "type": "uint256"
238
+ },
239
+ {
240
+ "internalType": "address",
241
+ "name": "payer",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "address",
246
+ "name": "fromToken",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "internalType": "address",
251
+ "name": "toToken",
252
+ "type": "address"
253
+ },
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "fromTokenAmountMax",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "internalType": "uint256",
261
+ "name": "toTokenAmountMax",
262
+ "type": "uint256"
263
+ },
264
+ {
265
+ "internalType": "uint256",
266
+ "name": "salt",
267
+ "type": "uint256"
268
+ },
269
+ {
270
+ "internalType": "uint256",
271
+ "name": "deadLine",
272
+ "type": "uint256"
273
+ },
274
+ {
275
+ "internalType": "bool",
276
+ "name": "isPushOrder",
277
+ "type": "bool"
278
+ },
279
+ {
280
+ "internalType": "bytes",
281
+ "name": "extension",
282
+ "type": "bytes"
283
+ }
284
+ ],
285
+ "internalType": "struct IOKXDexRouter.PMMSwapRequest[]",
286
+ "name": "extraData",
287
+ "type": "tuple[]"
288
+ }
289
+ ],
290
+ "name": "smartSwapTo",
291
+ "outputs": [],
292
+ "stateMutability": "payable",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "internalType": "uint256",
299
+ "name": "receiver",
300
+ "type": "uint256"
301
+ },
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "amount",
305
+ "type": "uint256"
306
+ },
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "minReturn",
310
+ "type": "uint256"
311
+ },
312
+ {
313
+ "internalType": "uint256[]",
314
+ "name": "pools",
315
+ "type": "uint256[]"
316
+ }
317
+ ],
318
+ "name": "uniswapV3SwapTo",
319
+ "outputs": [
320
+ {
321
+ "internalType": "uint256",
322
+ "name": "returnAmount",
323
+ "type": "uint256"
324
+ }
325
+ ],
326
+ "stateMutability": "payable",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [
331
+ {
332
+ "internalType": "uint256",
333
+ "name": "srcToken",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "internalType": "uint256",
338
+ "name": "amount",
339
+ "type": "uint256"
340
+ },
341
+ {
342
+ "internalType": "uint256",
343
+ "name": "minReturn",
344
+ "type": "uint256"
345
+ },
346
+ {
347
+ "internalType": "bytes32[]",
348
+ "name": "pools",
349
+ "type": "bytes32[]"
350
+ }
351
+ ],
352
+ "name": "unxswapByOrderId",
353
+ "outputs": [
354
+ {
355
+ "internalType": "uint256",
356
+ "name": "returnAmount",
357
+ "type": "uint256"
358
+ }
359
+ ],
360
+ "stateMutability": "payable",
361
+ "type": "function"
362
+ },
363
+ {
364
+ "inputs": [
365
+ {
366
+ "internalType": "uint256",
367
+ "name": "srcToken",
368
+ "type": "uint256"
369
+ },
370
+ {
371
+ "internalType": "uint256",
372
+ "name": "amount",
373
+ "type": "uint256"
374
+ },
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "minReturn",
378
+ "type": "uint256"
379
+ },
380
+ {
381
+ "internalType": "address",
382
+ "name": "receiver",
383
+ "type": "address"
384
+ },
385
+ {
386
+ "internalType": "bytes32[]",
387
+ "name": "pools",
388
+ "type": "bytes32[]"
389
+ }
390
+ ],
391
+ "name": "unxswapTo",
392
+ "outputs": [
393
+ {
394
+ "internalType": "uint256",
395
+ "name": "returnAmount",
396
+ "type": "uint256"
397
+ }
398
+ ],
399
+ "stateMutability": "payable",
400
+ "type": "function"
401
+ }
402
+ ],
403
+ "bytecode": "0x",
404
+ "deployedBytecode": "0x",
405
+ "linkReferences": {},
406
+ "deployedLinkReferences": {}
407
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "OKXScaleHelper",
4
+ "sourceName": "contracts/router/swap-aggregator/OKXScaleHelper.sol",
5
+ "abi": [],
6
+ "bytecode": "0x",
7
+ "deployedBytecode": "0x",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/7fa579b181813c7af64ef3c7fee573ab.json"
4
+ }