@paraswap/dex-lib 3.8.23 → 3.8.25

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 (53) hide show
  1. package/build/abi/infusion/InfusionFactory.json +147 -0
  2. package/build/abi/infusion/InfusionPair.json +658 -0
  3. package/build/abi/infusion/InfusionRouter.json +442 -0
  4. package/build/dex/index.js +4 -0
  5. package/build/dex/index.js.map +1 -1
  6. package/build/dex/infusion/config.d.ts +3 -0
  7. package/build/dex/infusion/config.js +20 -0
  8. package/build/dex/infusion/config.js.map +1 -0
  9. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  10. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  11. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  12. package/build/dex/infusion/infusion.d.ts +51 -0
  13. package/build/dex/infusion/infusion.js +457 -0
  14. package/build/dex/infusion/infusion.js.map +1 -0
  15. package/build/dex/infusion/types.d.ts +45 -0
  16. package/build/dex/infusion/types.js +3 -0
  17. package/build/dex/infusion/types.js.map +1 -0
  18. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  19. package/build/dex/infusion/utils/isStablePair.js +18 -0
  20. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  21. package/build/dex/lite-psm/lite-psm.js +2 -5
  22. package/build/dex/lite-psm/lite-psm.js.map +1 -1
  23. package/build/dex/maker-psm/maker-psm.js +2 -6
  24. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  25. package/build/dex/oswap/oswap-pool.js +8 -8
  26. package/build/dex/oswap/oswap-pool.js.map +1 -1
  27. package/build/dex/oswap/oswap.d.ts +5 -5
  28. package/build/dex/oswap/oswap.js +62 -46
  29. package/build/dex/oswap/oswap.js.map +1 -1
  30. package/build/dex/oswap/types.d.ts +4 -4
  31. package/package.json +1 -1
  32. package/src/abi/infusion/InfusionFactory.json +147 -0
  33. package/src/abi/infusion/InfusionPair.json +658 -0
  34. package/src/abi/infusion/InfusionRouter.json +442 -0
  35. package/src/abi/oswap/oswap.abi.json +452 -0
  36. package/src/dex/index.ts +4 -0
  37. package/src/dex/infusion/config.ts +21 -0
  38. package/src/dex/infusion/infusion-e2e.test.ts +110 -0
  39. package/src/dex/infusion/infusion-integration.test.ts +232 -0
  40. package/src/dex/infusion/infusion-stable-pool.ts +91 -0
  41. package/src/dex/infusion/infusion.ts +652 -0
  42. package/src/dex/infusion/types.ts +60 -0
  43. package/src/dex/infusion/utils/isStablePair.ts +18 -0
  44. package/src/dex/lite-psm/lite-psm.ts +2 -5
  45. package/src/dex/maker-psm/maker-psm.ts +2 -6
  46. package/src/dex/oswap/config.ts +32 -0
  47. package/src/dex/oswap/oswap-e2e.test.ts +91 -0
  48. package/src/dex/oswap/oswap-events.test.ts +88 -0
  49. package/src/dex/oswap/oswap-integration.test.ts +291 -0
  50. package/src/dex/oswap/oswap-pool.ts +190 -0
  51. package/src/dex/oswap/oswap.ts +414 -0
  52. package/src/dex/oswap/types.ts +29 -0
  53. package/tests/constants-e2e.ts +1 -1
@@ -0,0 +1,147 @@
1
+ [
2
+ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
+ {
4
+ "anonymous": false,
5
+ "inputs": [
6
+ {
7
+ "indexed": true,
8
+ "internalType": "address",
9
+ "name": "token0",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "indexed": true,
14
+ "internalType": "address",
15
+ "name": "token1",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "indexed": false,
20
+ "internalType": "bool",
21
+ "name": "stable",
22
+ "type": "bool"
23
+ },
24
+ {
25
+ "indexed": false,
26
+ "internalType": "address",
27
+ "name": "pair",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "indexed": false,
32
+ "internalType": "uint256",
33
+ "name": "",
34
+ "type": "uint256"
35
+ }
36
+ ],
37
+ "name": "PairCreated",
38
+ "type": "event"
39
+ },
40
+ {
41
+ "inputs": [],
42
+ "name": "acceptPauser",
43
+ "outputs": [],
44
+ "stateMutability": "nonpayable",
45
+ "type": "function"
46
+ },
47
+ {
48
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
49
+ "name": "allPairs",
50
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
51
+ "stateMutability": "view",
52
+ "type": "function"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "allPairsLength",
57
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
58
+ "stateMutability": "view",
59
+ "type": "function"
60
+ },
61
+ {
62
+ "inputs": [
63
+ { "internalType": "address", "name": "tokenA", "type": "address" },
64
+ { "internalType": "address", "name": "tokenB", "type": "address" },
65
+ { "internalType": "bool", "name": "stable", "type": "bool" }
66
+ ],
67
+ "name": "createPair",
68
+ "outputs": [
69
+ { "internalType": "address", "name": "pair", "type": "address" }
70
+ ],
71
+ "stateMutability": "nonpayable",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "getInitializable",
77
+ "outputs": [
78
+ { "internalType": "address", "name": "", "type": "address" },
79
+ { "internalType": "address", "name": "", "type": "address" },
80
+ { "internalType": "bool", "name": "", "type": "bool" }
81
+ ],
82
+ "stateMutability": "view",
83
+ "type": "function"
84
+ },
85
+ {
86
+ "inputs": [
87
+ { "internalType": "address", "name": "", "type": "address" },
88
+ { "internalType": "address", "name": "", "type": "address" },
89
+ { "internalType": "bool", "name": "", "type": "bool" }
90
+ ],
91
+ "name": "getPair",
92
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
93
+ "stateMutability": "view",
94
+ "type": "function"
95
+ },
96
+ {
97
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
98
+ "name": "isPair",
99
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
100
+ "stateMutability": "view",
101
+ "type": "function"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "isPaused",
106
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
107
+ "stateMutability": "view",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "pairCodeHash",
113
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
114
+ "stateMutability": "pure",
115
+ "type": "function"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "pauser",
120
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
121
+ "stateMutability": "view",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "pendingPauser",
127
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
128
+ "stateMutability": "view",
129
+ "type": "function"
130
+ },
131
+ {
132
+ "inputs": [{ "internalType": "bool", "name": "_state", "type": "bool" }],
133
+ "name": "setPause",
134
+ "outputs": [],
135
+ "stateMutability": "nonpayable",
136
+ "type": "function"
137
+ },
138
+ {
139
+ "inputs": [
140
+ { "internalType": "address", "name": "_pauser", "type": "address" }
141
+ ],
142
+ "name": "setPauser",
143
+ "outputs": [],
144
+ "stateMutability": "nonpayable",
145
+ "type": "function"
146
+ }
147
+ ]