@flarenetwork/flare-periphery-contract-artifacts 0.1.39 → 0.1.40

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 (23) hide show
  1. package/coston/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
  2. package/coston2/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
  3. package/coston2/artifacts/contracts/IInstructionsFacet.sol/IInstructionsFacet.json +14 -2
  4. package/coston2/artifacts/contracts/IMasterAccountController.sol/IMasterAccountController.json +54 -15
  5. package/coston2/artifacts/contracts/IPersonalAccount.sol/IPersonalAccount.json +14 -2
  6. package/coston2/artifacts/contracts/ISwapFacet.sol/ISwapFacet.json +37 -10
  7. package/dist/coston/abis.d.ts.map +1 -1
  8. package/dist/coston/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
  9. package/dist/coston2/abis.d.ts.map +1 -1
  10. package/dist/coston2/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
  11. package/dist/coston2/artifacts/contracts/IInstructionsFacet.sol/IInstructionsFacet.json +14 -2
  12. package/dist/coston2/artifacts/contracts/IMasterAccountController.sol/IMasterAccountController.json +54 -15
  13. package/dist/coston2/artifacts/contracts/IPersonalAccount.sol/IPersonalAccount.json +14 -2
  14. package/dist/coston2/artifacts/contracts/ISwapFacet.sol/ISwapFacet.json +37 -10
  15. package/dist/flare/abis.d.ts.map +1 -1
  16. package/dist/flare/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
  17. package/dist/index.js +8 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/songbird/abis.d.ts.map +1 -1
  20. package/dist/songbird/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
  21. package/flare/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
  22. package/package.json +1 -1
  23. package/songbird/artifacts/contracts/IFAsset.sol/IFAsset.json +263 -0
@@ -106,6 +106,11 @@
106
106
  "name": "InvalidExecutorFee",
107
107
  "type": "error"
108
108
  },
109
+ {
110
+ "inputs": [],
111
+ "name": "InvalidFeedId",
112
+ "type": "error"
113
+ },
109
114
  {
110
115
  "inputs": [
111
116
  {
@@ -192,27 +197,27 @@
192
197
  },
193
198
  {
194
199
  "inputs": [],
195
- "name": "InvalidTransactionId",
200
+ "name": "InvalidStableCoin",
196
201
  "type": "error"
197
202
  },
198
203
  {
199
204
  "inputs": [],
200
- "name": "InvalidTransactionProof",
205
+ "name": "InvalidTransactionId",
201
206
  "type": "error"
202
207
  },
203
208
  {
204
209
  "inputs": [],
205
- "name": "InvalidTransactionStatus",
210
+ "name": "InvalidTransactionProof",
206
211
  "type": "error"
207
212
  },
208
213
  {
209
214
  "inputs": [],
210
- "name": "InvalidUniswapV3Router",
215
+ "name": "InvalidTransactionStatus",
211
216
  "type": "error"
212
217
  },
213
218
  {
214
219
  "inputs": [],
215
- "name": "InvalidUsdt0",
220
+ "name": "InvalidUniswapV3Router",
216
221
  "type": "error"
217
222
  },
218
223
  {
@@ -899,13 +904,25 @@
899
904
  {
900
905
  "indexed": false,
901
906
  "internalType": "uint256",
902
- "name": "amount",
907
+ "name": "claimableEpoch",
903
908
  "type": "uint256"
904
909
  },
905
910
  {
906
911
  "indexed": false,
907
912
  "internalType": "uint256",
908
- "name": "claimableEpoch",
913
+ "name": "year",
914
+ "type": "uint256"
915
+ },
916
+ {
917
+ "indexed": false,
918
+ "internalType": "uint256",
919
+ "name": "month",
920
+ "type": "uint256"
921
+ },
922
+ {
923
+ "indexed": false,
924
+ "internalType": "uint256",
925
+ "name": "day",
909
926
  "type": "uint256"
910
927
  }
911
928
  ],
@@ -998,19 +1015,19 @@
998
1015
  {
999
1016
  "indexed": false,
1000
1017
  "internalType": "address",
1001
- "name": "usdt0",
1018
+ "name": "stableCoin",
1002
1019
  "type": "address"
1003
1020
  },
1004
1021
  {
1005
1022
  "indexed": false,
1006
1023
  "internalType": "uint24",
1007
- "name": "wNatUsdt0PoolFeeTierPPM",
1024
+ "name": "wNatStableCoinPoolFeeTierPPM",
1008
1025
  "type": "uint24"
1009
1026
  },
1010
1027
  {
1011
1028
  "indexed": false,
1012
1029
  "internalType": "uint24",
1013
- "name": "usdt0FXrpPoolFeeTierPPM",
1030
+ "name": "stableCoinFXrpPoolFeeTierPPM",
1014
1031
  "type": "uint24"
1015
1032
  },
1016
1033
  {
@@ -1018,6 +1035,18 @@
1018
1035
  "internalType": "uint24",
1019
1036
  "name": "maxSlippagePPM",
1020
1037
  "type": "uint24"
1038
+ },
1039
+ {
1040
+ "indexed": false,
1041
+ "internalType": "bytes21",
1042
+ "name": "stableCoinUsdFeedId",
1043
+ "type": "bytes21"
1044
+ },
1045
+ {
1046
+ "indexed": false,
1047
+ "internalType": "bytes21",
1048
+ "name": "wNatUsdFeedId",
1049
+ "type": "bytes21"
1021
1050
  }
1022
1051
  ],
1023
1052
  "name": "SwapParamsSet",
@@ -1713,23 +1742,33 @@
1713
1742
  },
1714
1743
  {
1715
1744
  "internalType": "address",
1716
- "name": "_usdt0",
1745
+ "name": "_stableCoin",
1717
1746
  "type": "address"
1718
1747
  },
1719
1748
  {
1720
1749
  "internalType": "uint24",
1721
- "name": "_wNatUsdt0PoolFeeTierPPM",
1750
+ "name": "_wNatStableCoinPoolFeeTierPPM",
1722
1751
  "type": "uint24"
1723
1752
  },
1724
1753
  {
1725
1754
  "internalType": "uint24",
1726
- "name": "_usdt0FXrpPoolFeeTierPPM",
1755
+ "name": "_stableCoinFXrpPoolFeeTierPPM",
1727
1756
  "type": "uint24"
1728
1757
  },
1729
1758
  {
1730
1759
  "internalType": "uint24",
1731
1760
  "name": "_maxSlippagePPM",
1732
1761
  "type": "uint24"
1762
+ },
1763
+ {
1764
+ "internalType": "bytes21",
1765
+ "name": "_stableCoinUsdFeedId",
1766
+ "type": "bytes21"
1767
+ },
1768
+ {
1769
+ "internalType": "bytes21",
1770
+ "name": "_wNatUsdFeedId",
1771
+ "type": "bytes21"
1733
1772
  }
1734
1773
  ],
1735
1774
  "stateMutability": "view",
@@ -1904,7 +1943,7 @@
1904
1943
  "type": "string"
1905
1944
  }
1906
1945
  ],
1907
- "name": "swapUsdt0ForFAsset",
1946
+ "name": "swapStableCoinForFAsset",
1908
1947
  "outputs": [],
1909
1948
  "stateMutability": "nonpayable",
1910
1949
  "type": "function"
@@ -1917,7 +1956,7 @@
1917
1956
  "type": "string"
1918
1957
  }
1919
1958
  ],
1920
- "name": "swapWNatForUsdt0",
1959
+ "name": "swapWNatForStableCoin",
1921
1960
  "outputs": [],
1922
1961
  "stateMutability": "nonpayable",
1923
1962
  "type": "function"
@@ -254,13 +254,25 @@
254
254
  {
255
255
  "indexed": false,
256
256
  "internalType": "uint256",
257
- "name": "amount",
257
+ "name": "claimableEpoch",
258
258
  "type": "uint256"
259
259
  },
260
260
  {
261
261
  "indexed": false,
262
262
  "internalType": "uint256",
263
- "name": "claimableEpoch",
263
+ "name": "year",
264
+ "type": "uint256"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "internalType": "uint256",
269
+ "name": "month",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "indexed": false,
274
+ "internalType": "uint256",
275
+ "name": "day",
264
276
  "type": "uint256"
265
277
  }
266
278
  ],
@@ -1,4 +1,9 @@
1
1
  [
2
+ {
3
+ "inputs": [],
4
+ "name": "InvalidFeedId",
5
+ "type": "error"
6
+ },
2
7
  {
3
8
  "inputs": [],
4
9
  "name": "InvalidMaxSlippagePPM",
@@ -11,12 +16,12 @@
11
16
  },
12
17
  {
13
18
  "inputs": [],
14
- "name": "InvalidUniswapV3Router",
19
+ "name": "InvalidStableCoin",
15
20
  "type": "error"
16
21
  },
17
22
  {
18
23
  "inputs": [],
19
- "name": "InvalidUsdt0",
24
+ "name": "InvalidUniswapV3Router",
20
25
  "type": "error"
21
26
  },
22
27
  {
@@ -74,19 +79,19 @@
74
79
  {
75
80
  "indexed": false,
76
81
  "internalType": "address",
77
- "name": "usdt0",
82
+ "name": "stableCoin",
78
83
  "type": "address"
79
84
  },
80
85
  {
81
86
  "indexed": false,
82
87
  "internalType": "uint24",
83
- "name": "wNatUsdt0PoolFeeTierPPM",
88
+ "name": "wNatStableCoinPoolFeeTierPPM",
84
89
  "type": "uint24"
85
90
  },
86
91
  {
87
92
  "indexed": false,
88
93
  "internalType": "uint24",
89
- "name": "usdt0FXrpPoolFeeTierPPM",
94
+ "name": "stableCoinFXrpPoolFeeTierPPM",
90
95
  "type": "uint24"
91
96
  },
92
97
  {
@@ -94,6 +99,18 @@
94
99
  "internalType": "uint24",
95
100
  "name": "maxSlippagePPM",
96
101
  "type": "uint24"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "bytes21",
106
+ "name": "stableCoinUsdFeedId",
107
+ "type": "bytes21"
108
+ },
109
+ {
110
+ "indexed": false,
111
+ "internalType": "bytes21",
112
+ "name": "wNatUsdFeedId",
113
+ "type": "bytes21"
97
114
  }
98
115
  ],
99
116
  "name": "SwapParamsSet",
@@ -110,23 +127,33 @@
110
127
  },
111
128
  {
112
129
  "internalType": "address",
113
- "name": "_usdt0",
130
+ "name": "_stableCoin",
114
131
  "type": "address"
115
132
  },
116
133
  {
117
134
  "internalType": "uint24",
118
- "name": "_wNatUsdt0PoolFeeTierPPM",
135
+ "name": "_wNatStableCoinPoolFeeTierPPM",
119
136
  "type": "uint24"
120
137
  },
121
138
  {
122
139
  "internalType": "uint24",
123
- "name": "_usdt0FXrpPoolFeeTierPPM",
140
+ "name": "_stableCoinFXrpPoolFeeTierPPM",
124
141
  "type": "uint24"
125
142
  },
126
143
  {
127
144
  "internalType": "uint24",
128
145
  "name": "_maxSlippagePPM",
129
146
  "type": "uint24"
147
+ },
148
+ {
149
+ "internalType": "bytes21",
150
+ "name": "_stableCoinUsdFeedId",
151
+ "type": "bytes21"
152
+ },
153
+ {
154
+ "internalType": "bytes21",
155
+ "name": "_wNatUsdFeedId",
156
+ "type": "bytes21"
130
157
  }
131
158
  ],
132
159
  "stateMutability": "view",
@@ -140,7 +167,7 @@
140
167
  "type": "string"
141
168
  }
142
169
  ],
143
- "name": "swapUsdt0ForFAsset",
170
+ "name": "swapStableCoinForFAsset",
144
171
  "outputs": [],
145
172
  "stateMutability": "nonpayable",
146
173
  "type": "function"
@@ -153,7 +180,7 @@
153
180
  "type": "string"
154
181
  }
155
182
  ],
156
- "name": "swapWNatForUsdt0",
183
+ "name": "swapWNatForStableCoin",
157
184
  "outputs": [],
158
185
  "stateMutability": "nonpayable",
159
186
  "type": "function"
@@ -1 +1 @@
1
- {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../coston/abis.ts"],"names":[],"mappings":"AAkJA,OAAO,EAAY,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAQ5C,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAkJ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;QACT,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;KACvD,CAAC;CAmRL,CAAC"}
1
+ {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../coston/abis.ts"],"names":[],"mappings":"AAmJA,OAAO,EAAY,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAQ5C,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAmJ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;QACT,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;KACvD,CAAC;CAmRL,CAAC"}
@@ -0,0 +1,263 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "address",
8
+ "name": "owner",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "indexed": true,
13
+ "internalType": "address",
14
+ "name": "spender",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "indexed": false,
19
+ "internalType": "uint256",
20
+ "name": "value",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "name": "Approval",
25
+ "type": "event"
26
+ },
27
+ {
28
+ "anonymous": false,
29
+ "inputs": [
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "from",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": true,
38
+ "internalType": "address",
39
+ "name": "to",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "uint256",
45
+ "name": "value",
46
+ "type": "uint256"
47
+ }
48
+ ],
49
+ "name": "Transfer",
50
+ "type": "event"
51
+ },
52
+ {
53
+ "inputs": [
54
+ {
55
+ "internalType": "address",
56
+ "name": "owner",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "internalType": "address",
61
+ "name": "spender",
62
+ "type": "address"
63
+ }
64
+ ],
65
+ "name": "allowance",
66
+ "outputs": [
67
+ {
68
+ "internalType": "uint256",
69
+ "name": "",
70
+ "type": "uint256"
71
+ }
72
+ ],
73
+ "stateMutability": "view",
74
+ "type": "function"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "spender",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "amount",
86
+ "type": "uint256"
87
+ }
88
+ ],
89
+ "name": "approve",
90
+ "outputs": [
91
+ {
92
+ "internalType": "bool",
93
+ "name": "",
94
+ "type": "bool"
95
+ }
96
+ ],
97
+ "stateMutability": "nonpayable",
98
+ "type": "function"
99
+ },
100
+ {
101
+ "inputs": [],
102
+ "name": "assetManager",
103
+ "outputs": [
104
+ {
105
+ "internalType": "address",
106
+ "name": "",
107
+ "type": "address"
108
+ }
109
+ ],
110
+ "stateMutability": "view",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "assetName",
116
+ "outputs": [
117
+ {
118
+ "internalType": "string",
119
+ "name": "",
120
+ "type": "string"
121
+ }
122
+ ],
123
+ "stateMutability": "view",
124
+ "type": "function"
125
+ },
126
+ {
127
+ "inputs": [],
128
+ "name": "assetSymbol",
129
+ "outputs": [
130
+ {
131
+ "internalType": "string",
132
+ "name": "",
133
+ "type": "string"
134
+ }
135
+ ],
136
+ "stateMutability": "view",
137
+ "type": "function"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "address",
143
+ "name": "account",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "name": "balanceOf",
148
+ "outputs": [
149
+ {
150
+ "internalType": "uint256",
151
+ "name": "",
152
+ "type": "uint256"
153
+ }
154
+ ],
155
+ "stateMutability": "view",
156
+ "type": "function"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "decimals",
161
+ "outputs": [
162
+ {
163
+ "internalType": "uint8",
164
+ "name": "",
165
+ "type": "uint8"
166
+ }
167
+ ],
168
+ "stateMutability": "view",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "inputs": [],
173
+ "name": "name",
174
+ "outputs": [
175
+ {
176
+ "internalType": "string",
177
+ "name": "",
178
+ "type": "string"
179
+ }
180
+ ],
181
+ "stateMutability": "view",
182
+ "type": "function"
183
+ },
184
+ {
185
+ "inputs": [],
186
+ "name": "symbol",
187
+ "outputs": [
188
+ {
189
+ "internalType": "string",
190
+ "name": "",
191
+ "type": "string"
192
+ }
193
+ ],
194
+ "stateMutability": "view",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [],
199
+ "name": "totalSupply",
200
+ "outputs": [
201
+ {
202
+ "internalType": "uint256",
203
+ "name": "",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "address",
214
+ "name": "to",
215
+ "type": "address"
216
+ },
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "amount",
220
+ "type": "uint256"
221
+ }
222
+ ],
223
+ "name": "transfer",
224
+ "outputs": [
225
+ {
226
+ "internalType": "bool",
227
+ "name": "",
228
+ "type": "bool"
229
+ }
230
+ ],
231
+ "stateMutability": "nonpayable",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "address",
238
+ "name": "from",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "internalType": "address",
243
+ "name": "to",
244
+ "type": "address"
245
+ },
246
+ {
247
+ "internalType": "uint256",
248
+ "name": "amount",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "name": "transferFrom",
253
+ "outputs": [
254
+ {
255
+ "internalType": "bool",
256
+ "name": "",
257
+ "type": "bool"
258
+ }
259
+ ],
260
+ "stateMutability": "nonpayable",
261
+ "type": "function"
262
+ }
263
+ ]
@@ -1 +1 @@
1
- {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../coston2/abis.ts"],"names":[],"mappings":"AA+KA,OAAO,EAAY,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAQ5C,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CA+K/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;QACT,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;KACvD,CAAC;CA0RL,CAAC"}
1
+ {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../coston2/abis.ts"],"names":[],"mappings":"AAgLA,OAAO,EAAY,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAQ5C,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAgL/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;QACT,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;KACvD,CAAC;CA0RL,CAAC"}