@paraswap/dex-lib 3.7.7-skip-approval.1 → 3.7.8

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 (171) hide show
  1. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  2. package/build/dex/aave-v1/aave-v1.js +22 -0
  3. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  4. package/build/dex/aave-v3/aave-v3.js +1 -2
  5. package/build/dex/aave-v3/aave-v3.js.map +1 -1
  6. package/build/dex/angle-staked-stable/angle-staked-stable.js +1 -4
  7. package/build/dex/angle-staked-stable/angle-staked-stable.js.map +1 -1
  8. package/build/dex/compound/compound.js +1 -2
  9. package/build/dex/compound/compound.js.map +1 -1
  10. package/build/dex/etherfi.js +1 -4
  11. package/build/dex/etherfi.js.map +1 -1
  12. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  13. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  14. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  15. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  16. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  17. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  18. package/build/dex/idle-dao/scripts.d.ts +9 -0
  19. package/build/dex/idle-dao/scripts.js +552 -0
  20. package/build/dex/idle-dao/scripts.js.map +1 -0
  21. package/build/dex/mStable.js +1 -1
  22. package/build/dex/mStable.js.map +1 -1
  23. package/build/dex/platypus/platypus.d.ts +2 -1
  24. package/build/dex/platypus/platypus.js +31 -0
  25. package/build/dex/platypus/platypus.js.map +1 -1
  26. package/build/dex/simple-exchange.d.ts +1 -1
  27. package/build/dex/simple-exchange.js +2 -4
  28. package/build/dex/simple-exchange.js.map +1 -1
  29. package/build/dex/spark/spark.js +1 -1
  30. package/build/dex/spark/spark.js.map +1 -1
  31. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  32. package/build/dex/swaap-v1/swaap-v1.js +10 -0
  33. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  34. package/build/executor/Executor01BytecodeBuilder.js +0 -1
  35. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  36. package/build/executor/Executor02BytecodeBuilder.js +0 -1
  37. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  38. package/build/executor/Executor03BytecodeBuilder.js +0 -1
  39. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  40. package/build/generic-swap-transaction-builder.js +2 -4
  41. package/build/generic-swap-transaction-builder.js.map +1 -1
  42. package/build/types.d.ts +0 -1
  43. package/build/utils.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/src/dex/aave-v3/aave-v3-e2e.test.ts +9 -4
  46. package/src/dex/aave-v3/aave-v3.ts +0 -5
  47. package/src/dex/angle-staked-stable/angle-staked-stable.ts +0 -8
  48. package/src/dex/compound/compound.ts +0 -5
  49. package/src/dex/etherfi.ts +0 -5
  50. package/src/dex/mStable.ts +0 -4
  51. package/src/dex/simple-exchange.ts +5 -5
  52. package/src/dex/spark/spark-e2e.test.ts +3 -3
  53. package/src/dex/spark/spark.ts +0 -4
  54. package/src/executor/Executor01BytecodeBuilder.ts +0 -1
  55. package/src/executor/Executor02BytecodeBuilder.ts +0 -1
  56. package/src/executor/Executor03BytecodeBuilder.ts +0 -1
  57. package/src/executor/executor01-bytecode-builder-e2e.test.ts +0 -25
  58. package/src/executor/executor02-bytecode-builder-e2e.test.ts +0 -29
  59. package/src/generic-swap-transaction-builder.ts +1 -4
  60. package/src/types.ts +0 -1
  61. package/tests/constants-e2e.ts +9 -9
  62. package/tests/utils-e2e.ts +1 -1
  63. package/build/abi/Uncompressor.json +0 -250
  64. package/build/dex/bProtocol.d.ts +0 -18
  65. package/build/dex/bProtocol.js +0 -39
  66. package/build/dex/bProtocol.js.map +0 -1
  67. package/build/dex/bancor.d.ts +0 -26
  68. package/build/dex/bancor.js +0 -58
  69. package/build/dex/bancor.js.map +0 -1
  70. package/build/dex/compound.d.ts +0 -18
  71. package/build/dex/compound.js +0 -46
  72. package/build/dex/compound.js.map +0 -1
  73. package/build/dex/curve-v2.d.ts +0 -58
  74. package/build/dex/curve-v2.js +0 -180
  75. package/build/dex/curve-v2.js.map +0 -1
  76. package/build/dex/dodo-v1.d.ts +0 -33
  77. package/build/dex/dodo-v1.js +0 -63
  78. package/build/dex/dodo-v1.js.map +0 -1
  79. package/build/dex/etherfi/etherfi.d.ts +0 -26
  80. package/build/dex/etherfi/etherfi.js +0 -96
  81. package/build/dex/etherfi/etherfi.js.map +0 -1
  82. package/build/dex/lido.d.ts +0 -19
  83. package/build/dex/lido.js +0 -42
  84. package/build/dex/lido.js.map +0 -1
  85. package/build/dex/onebit.d.ts +0 -25
  86. package/build/dex/onebit.js +0 -42
  87. package/build/dex/onebit.js.map +0 -1
  88. package/build/dex/sdai/config.d.ts +0 -11
  89. package/build/dex/sdai/config.js +0 -21
  90. package/build/dex/sdai/config.js.map +0 -1
  91. package/build/dex/sdai/constants.d.ts +0 -2
  92. package/build/dex/sdai/constants.js +0 -6
  93. package/build/dex/sdai/constants.js.map +0 -1
  94. package/build/dex/sdai/scripts/validate-state.d.ts +0 -1
  95. package/build/dex/sdai/scripts/validate-state.js +0 -102
  96. package/build/dex/sdai/scripts/validate-state.js.map +0 -1
  97. package/build/dex/sdai/sdai-pool.d.ts +0 -16
  98. package/build/dex/sdai/sdai-pool.js +0 -85
  99. package/build/dex/sdai/sdai-pool.js.map +0 -1
  100. package/build/dex/sdai/sdai.d.ts +0 -51
  101. package/build/dex/sdai/sdai.js +0 -172
  102. package/build/dex/sdai/sdai.js.map +0 -1
  103. package/build/dex/sdai/types.d.ts +0 -21
  104. package/build/dex/sdai/types.js +0 -11
  105. package/build/dex/sdai/types.js.map +0 -1
  106. package/build/dex/sdai/utils.d.ts +0 -4
  107. package/build/dex/sdai/utils.js +0 -39
  108. package/build/dex/sdai/utils.js.map +0 -1
  109. package/build/dex/smoothy.d.ts +0 -26
  110. package/build/dex/smoothy.js +0 -48
  111. package/build/dex/smoothy.js.map +0 -1
  112. package/build/dex/stable-pool.d.ts +0 -28
  113. package/build/dex/stable-pool.js +0 -62
  114. package/build/dex/stable-pool.js.map +0 -1
  115. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  116. package/build/dex/trader-joe-v2.1.js +0 -79
  117. package/build/dex/trader-joe-v2.1.js.map +0 -1
  118. package/build/executor/compressor/Compressor.d.ts +0 -23
  119. package/build/executor/compressor/Compressor.js +0 -144
  120. package/build/executor/compressor/Compressor.js.map +0 -1
  121. package/build/executor/compressor/compress.d.ts +0 -17
  122. package/build/executor/compressor/compress.js +0 -187
  123. package/build/executor/compressor/compress.js.map +0 -1
  124. package/build/executor/compressor/compress_functions/addressSubstitution.d.ts +0 -6
  125. package/build/executor/compressor/compress_functions/addressSubstitution.js +0 -29
  126. package/build/executor/compressor/compress_functions/addressSubstitution.js.map +0 -1
  127. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.d.ts +0 -10
  128. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js +0 -40
  129. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js.map +0 -1
  130. package/build/executor/compressor/compress_functions/byteSubstitution.d.ts +0 -11
  131. package/build/executor/compressor/compress_functions/byteSubstitution.js +0 -64
  132. package/build/executor/compressor/compress_functions/byteSubstitution.js.map +0 -1
  133. package/build/executor/compressor/compress_functions/ffSubstitution.d.ts +0 -7
  134. package/build/executor/compressor/compress_functions/ffSubstitution.js +0 -54
  135. package/build/executor/compressor/compress_functions/ffSubstitution.js.map +0 -1
  136. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.d.ts +0 -8
  137. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js +0 -67
  138. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js.map +0 -1
  139. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.d.ts +0 -8
  140. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js +0 -61
  141. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js.map +0 -1
  142. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.d.ts +0 -6
  143. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js +0 -37
  144. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js.map +0 -1
  145. package/build/executor/compressor/compress_functions/searchUnusedBytes.d.ts +0 -9
  146. package/build/executor/compressor/compress_functions/searchUnusedBytes.js +0 -33
  147. package/build/executor/compressor/compress_functions/searchUnusedBytes.js.map +0 -1
  148. package/build/executor/compressor/fetchSaved.d.ts +0 -0
  149. package/build/executor/compressor/fetchSaved.js +0 -17
  150. package/build/executor/compressor/fetchSaved.js.map +0 -1
  151. package/build/executor/compressor/utils/computeCostL2.d.ts +0 -2
  152. package/build/executor/compressor/utils/computeCostL2.js +0 -14
  153. package/build/executor/compressor/utils/computeCostL2.js.map +0 -1
  154. package/build/executor/compressor/utils/findLongestDuplicatedString.d.ts +0 -2
  155. package/build/executor/compressor/utils/findLongestDuplicatedString.js +0 -30
  156. package/build/executor/compressor/utils/findLongestDuplicatedString.js.map +0 -1
  157. package/build/executor/compressor/utils/getAllIndexes.d.ts +0 -2
  158. package/build/executor/compressor/utils/getAllIndexes.js +0 -12
  159. package/build/executor/compressor/utils/getAllIndexes.js.map +0 -1
  160. package/build/executor/compressor/utils/getByteForAddress.d.ts +0 -2
  161. package/build/executor/compressor/utils/getByteForAddress.js +0 -14
  162. package/build/executor/compressor/utils/getByteForAddress.js.map +0 -1
  163. package/build/executor/compressor/utils/intTo2Bytes.d.ts +0 -2
  164. package/build/executor/compressor/utils/intTo2Bytes.js +0 -14
  165. package/build/executor/compressor/utils/intTo2Bytes.js.map +0 -1
  166. package/build/executor/compressor/utils/intTo3Bytes.d.ts +0 -2
  167. package/build/executor/compressor/utils/intTo3Bytes.js +0 -18
  168. package/build/executor/compressor/utils/intTo3Bytes.js.map +0 -1
  169. package/build/executor/compressor/utils/intToByte.d.ts +0 -2
  170. package/build/executor/compressor/utils/intToByte.js +0 -10
  171. package/build/executor/compressor/utils/intToByte.js.map +0 -1
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const intTo3Bytes_1 = __importDefault(require("./intTo3Bytes"));
7
- const getByteForAddress = (addresses, address) => {
8
- const index = addresses.indexOf(address.toLowerCase());
9
- if (index < 0)
10
- return null;
11
- return (0, intTo3Bytes_1.default)(index);
12
- };
13
- exports.default = getByteForAddress;
14
- //# sourceMappingURL=getByteForAddress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getByteForAddress.js","sourceRoot":"","sources":["../../../../src/executor/compressor/utils/getByteForAddress.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AAExC,MAAM,iBAAiB,GAAG,CACxB,SAAmB,EACnB,OAAe,EACA,EAAE;IACjB,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACvD,IAAI,KAAK,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAE3B,OAAO,IAAA,qBAAW,EAAC,KAAK,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const intTo2Bytes: (int: number) => string;
2
- export default intTo2Bytes;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const intTo2Bytes = (int) => {
4
- let hex = int.toString(16);
5
- if (hex.length < 2)
6
- hex = '000' + hex;
7
- else if (hex.length < 3)
8
- hex = '00' + hex;
9
- else if (hex.length < 4)
10
- hex = '0' + hex;
11
- return hex;
12
- };
13
- exports.default = intTo2Bytes;
14
- //# sourceMappingURL=intTo2Bytes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intTo2Bytes.js","sourceRoot":"","sources":["../../../../src/executor/compressor/utils/intTo2Bytes.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,CAAC,GAAW,EAAU,EAAE;IAC1C,IAAI,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3B,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC;SACjC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;SACrC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const intTo3Bytes: (int: number) => string;
2
- export default intTo3Bytes;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const intTo3Bytes = (int) => {
4
- let hex = int.toString(16);
5
- if (hex.length < 2)
6
- hex = '00000' + hex;
7
- else if (hex.length < 3)
8
- hex = '0000' + hex;
9
- else if (hex.length < 4)
10
- hex = '000' + hex;
11
- else if (hex.length < 5)
12
- hex = '00' + hex;
13
- else if (hex.length < 6)
14
- hex = '0' + hex;
15
- return hex;
16
- };
17
- exports.default = intTo3Bytes;
18
- //# sourceMappingURL=intTo3Bytes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intTo3Bytes.js","sourceRoot":"","sources":["../../../../src/executor/compressor/utils/intTo3Bytes.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,CAAC,GAAW,EAAU,EAAE;IAC1C,IAAI,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3B,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,OAAO,GAAG,GAAG,CAAC;SACnC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,MAAM,GAAG,GAAG,CAAC;SACvC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC;SACtC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;SACrC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const intToByte: (int: number) => string;
2
- export default intToByte;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const intToByte = (int) => {
4
- let hex = int.toString(16);
5
- if (hex.length < 2)
6
- hex = '0' + hex;
7
- return hex;
8
- };
9
- exports.default = intToByte;
10
- //# sourceMappingURL=intToByte.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intToByte.js","sourceRoot":"","sources":["../../../../src/executor/compressor/utils/intToByte.ts"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,CAAC,GAAW,EAAU,EAAE;IACxC,IAAI,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3B,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACpC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}