@orbs-network/twap 2.2.10 → 2.2.12

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 (2) hide show
  1. package/package.json +1 -1
  2. package/taker.abi.json +153 -131
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbs-network/twap",
3
- "version": "2.2.10",
3
+ "version": "2.2.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/orbs-network/twap.git"
package/taker.abi.json CHANGED
@@ -1,133 +1,155 @@
1
1
  [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract TWAP",
6
- "name": "_twap",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "contract ITreasury",
11
- "name": "_treasury",
12
- "type": "address"
13
- }
14
- ],
15
- "stateMutability": "nonpayable",
16
- "type": "constructor"
17
- },
18
- {
19
- "inputs": [
20
- {
21
- "internalType": "address",
22
- "name": "caller",
23
- "type": "address"
24
- }
25
- ],
26
- "name": "NotAllowed",
27
- "type": "error"
28
- },
29
- {
30
- "inputs": [
31
- {
32
- "internalType": "uint64",
33
- "name": "id",
34
- "type": "uint64"
35
- },
36
- {
37
- "internalType": "address",
38
- "name": "exchange",
39
- "type": "address"
40
- },
41
- {
42
- "internalType": "uint256",
43
- "name": "dstFee",
44
- "type": "uint256"
45
- },
46
- {
47
- "internalType": "uint32",
48
- "name": "slippagePercent",
49
- "type": "uint32"
50
- },
51
- {
52
- "internalType": "bytes",
53
- "name": "data",
54
- "type": "bytes"
55
- }
56
- ],
57
- "name": "bid",
58
- "outputs": [],
59
- "stateMutability": "nonpayable",
60
- "type": "function"
61
- },
62
- {
63
- "inputs": [
64
- {
65
- "internalType": "uint64",
66
- "name": "id",
67
- "type": "uint64"
68
- },
69
- {
70
- "internalType": "address",
71
- "name": "feeExchange",
72
- "type": "address"
73
- },
74
- {
75
- "internalType": "uint256",
76
- "name": "feeMinAmountOut",
77
- "type": "uint256"
78
- },
79
- {
80
- "internalType": "bytes",
81
- "name": "feeData",
82
- "type": "bytes"
83
- }
84
- ],
85
- "name": "fill",
86
- "outputs": [],
87
- "stateMutability": "nonpayable",
88
- "type": "function"
89
- },
90
- {
91
- "inputs": [
92
- {
93
- "internalType": "address",
94
- "name": "token",
95
- "type": "address"
96
- }
97
- ],
98
- "name": "rescue",
99
- "outputs": [],
100
- "stateMutability": "nonpayable",
101
- "type": "function"
102
- },
103
- {
104
- "inputs": [],
105
- "name": "treasury",
106
- "outputs": [
107
- {
108
- "internalType": "contract ITreasury",
109
- "name": "",
110
- "type": "address"
111
- }
112
- ],
113
- "stateMutability": "view",
114
- "type": "function"
115
- },
116
- {
117
- "inputs": [],
118
- "name": "twap",
119
- "outputs": [
120
- {
121
- "internalType": "contract TWAP",
122
- "name": "",
123
- "type": "address"
124
- }
125
- ],
126
- "stateMutability": "view",
127
- "type": "function"
128
- },
129
- {
130
- "stateMutability": "payable",
131
- "type": "receive"
132
- }
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "receive",
9
+ "stateMutability": "payable"
10
+ },
11
+ {
12
+ "type": "function",
13
+ "name": "allowed",
14
+ "inputs": [],
15
+ "outputs": [
16
+ {
17
+ "name": "",
18
+ "type": "address",
19
+ "internalType": "contract IAllowed"
20
+ }
21
+ ],
22
+ "stateMutability": "view"
23
+ },
24
+ {
25
+ "type": "function",
26
+ "name": "bid",
27
+ "inputs": [
28
+ {
29
+ "name": "id",
30
+ "type": "uint64",
31
+ "internalType": "uint64"
32
+ },
33
+ {
34
+ "name": "exchange",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ },
38
+ {
39
+ "name": "dstFee",
40
+ "type": "uint256",
41
+ "internalType": "uint256"
42
+ },
43
+ {
44
+ "name": "slippagePercent",
45
+ "type": "uint32",
46
+ "internalType": "uint32"
47
+ },
48
+ {
49
+ "name": "data",
50
+ "type": "bytes",
51
+ "internalType": "bytes"
52
+ }
53
+ ],
54
+ "outputs": [],
55
+ "stateMutability": "nonpayable"
56
+ },
57
+ {
58
+ "type": "function",
59
+ "name": "fill",
60
+ "inputs": [
61
+ {
62
+ "name": "id",
63
+ "type": "uint64",
64
+ "internalType": "uint64"
65
+ },
66
+ {
67
+ "name": "fee",
68
+ "type": "address",
69
+ "internalType": "address"
70
+ },
71
+ {
72
+ "name": "dstSenderAmount",
73
+ "type": "uint256",
74
+ "internalType": "uint256"
75
+ },
76
+ {
77
+ "name": "feeSwapExchange",
78
+ "type": "address",
79
+ "internalType": "address"
80
+ },
81
+ {
82
+ "name": "feeSwapData",
83
+ "type": "bytes",
84
+ "internalType": "bytes"
85
+ }
86
+ ],
87
+ "outputs": [],
88
+ "stateMutability": "nonpayable"
89
+ },
90
+ {
91
+ "type": "function",
92
+ "name": "init",
93
+ "inputs": [
94
+ {
95
+ "name": "_twap",
96
+ "type": "address",
97
+ "internalType": "contract TWAP"
98
+ },
99
+ {
100
+ "name": "_allowed",
101
+ "type": "address",
102
+ "internalType": "contract IAllowed"
103
+ }
104
+ ],
105
+ "outputs": [],
106
+ "stateMutability": "nonpayable"
107
+ },
108
+ {
109
+ "type": "function",
110
+ "name": "rescue",
111
+ "inputs": [
112
+ {
113
+ "name": "token",
114
+ "type": "address",
115
+ "internalType": "address"
116
+ },
117
+ {
118
+ "name": "to",
119
+ "type": "address",
120
+ "internalType": "address"
121
+ },
122
+ {
123
+ "name": "amount",
124
+ "type": "uint256",
125
+ "internalType": "uint256"
126
+ }
127
+ ],
128
+ "outputs": [],
129
+ "stateMutability": "nonpayable"
130
+ },
131
+ {
132
+ "type": "function",
133
+ "name": "twap",
134
+ "inputs": [],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "address",
139
+ "internalType": "contract TWAP"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ },
144
+ {
145
+ "type": "error",
146
+ "name": "NotAllowed",
147
+ "inputs": [
148
+ {
149
+ "name": "caller",
150
+ "type": "address",
151
+ "internalType": "address"
152
+ }
153
+ ]
154
+ }
133
155
  ]