@allbridge/bridge-core-sdk 3.29.2-alpha.1 → 3.30.0-alpha.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.
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +4 -4
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +4 -4
- package/dist/src/client/core-api/core-api-mapper.js +2 -0
- package/dist/src/client/core-api/core-api-mapper.js.map +1 -1
- package/dist/src/client/core-api/core-api.model.d.ts +13 -2
- package/dist/src/client/core-api/core-api.model.js +2 -0
- package/dist/src/client/core-api/core-api.model.js.map +1 -1
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/services/bridge/evm/index.d.ts +2 -0
- package/dist/src/services/bridge/evm/index.js +32 -0
- package/dist/src/services/bridge/evm/index.js.map +1 -1
- package/dist/src/services/bridge/index.js +7 -0
- package/dist/src/services/bridge/index.js.map +1 -1
- package/dist/src/services/bridge/sol/bridge-tx-service.js +2 -0
- package/dist/src/services/bridge/sol/bridge-tx-service.js.map +1 -1
- package/dist/src/services/bridge/sol/jupiter-service.js +1 -1
- package/dist/src/services/bridge/sol/jupiter-service.js.map +1 -1
- package/dist/src/services/bridge/sol/payer-with-token-service.js +2 -0
- package/dist/src/services/bridge/sol/payer-with-token-service.js.map +1 -1
- package/dist/src/services/bridge/stx/index.js +24 -16
- package/dist/src/services/bridge/stx/index.js.map +1 -1
- package/dist/src/services/bridge/sui/index.js +2 -0
- package/dist/src/services/bridge/sui/index.js.map +1 -1
- package/dist/src/services/bridge/trx/index.js +2 -0
- package/dist/src/services/bridge/trx/index.js.map +1 -1
- package/dist/src/services/bridge/utils.d.ts +1 -0
- package/dist/src/services/bridge/utils.js +10 -3
- package/dist/src/services/bridge/utils.js.map +1 -1
- package/dist/src/services/index.d.ts +3 -0
- package/dist/src/services/index.js +40 -0
- package/dist/src/services/index.js.map +1 -1
- package/dist/src/services/models/abi/XReserveBridge.d.ts +246 -0
- package/dist/src/services/models/abi/XReserveBridge.js +318 -0
- package/dist/src/services/models/abi/XReserveBridge.js.map +1 -0
- package/dist/src/services/models/stx/clarigen-types.d.ts +72 -0
- package/dist/src/services/models/stx/clarigen-types.js +226 -0
- package/dist/src/services/models/stx/clarigen-types.js.map +1 -1
- package/dist/src/tokens-info/tokens-info.model.d.ts +11 -0
- package/dist/src/tokens-info/tokens-info.model.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
declare const artifact: {
|
|
2
|
+
readonly abi: readonly [{
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly internalType: "uint256";
|
|
5
|
+
readonly name: "chainId_";
|
|
6
|
+
readonly type: "uint256";
|
|
7
|
+
}, {
|
|
8
|
+
readonly internalType: "address";
|
|
9
|
+
readonly name: "tokenAddress";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "address";
|
|
13
|
+
readonly name: "xReserve_";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
}];
|
|
16
|
+
readonly stateMutability: "nonpayable";
|
|
17
|
+
readonly type: "constructor";
|
|
18
|
+
}, {
|
|
19
|
+
readonly anonymous: false;
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly indexed: true;
|
|
22
|
+
readonly internalType: "address";
|
|
23
|
+
readonly name: "previousOwner";
|
|
24
|
+
readonly type: "address";
|
|
25
|
+
}, {
|
|
26
|
+
readonly indexed: true;
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "newOwner";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "OwnershipTransferred";
|
|
32
|
+
readonly type: "event";
|
|
33
|
+
}, {
|
|
34
|
+
readonly anonymous: false;
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly indexed: false;
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
readonly name: "sender";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly indexed: false;
|
|
42
|
+
readonly internalType: "bytes32";
|
|
43
|
+
readonly name: "recipient";
|
|
44
|
+
readonly type: "bytes32";
|
|
45
|
+
}, {
|
|
46
|
+
readonly indexed: false;
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "amount";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}, {
|
|
51
|
+
readonly indexed: false;
|
|
52
|
+
readonly internalType: "uint256";
|
|
53
|
+
readonly name: "destinationChainId";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
}, {
|
|
56
|
+
readonly indexed: false;
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly name: "adminFeeTokenAmount";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly indexed: false;
|
|
62
|
+
readonly internalType: "uint256";
|
|
63
|
+
readonly name: "maxFee";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}];
|
|
66
|
+
readonly name: "TokensSent";
|
|
67
|
+
readonly type: "event";
|
|
68
|
+
}, {
|
|
69
|
+
readonly anonymous: false;
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly indexed: false;
|
|
72
|
+
readonly internalType: "bytes32";
|
|
73
|
+
readonly name: "recipientWalletAddress";
|
|
74
|
+
readonly type: "bytes32";
|
|
75
|
+
}];
|
|
76
|
+
readonly name: "TokensSentExtras";
|
|
77
|
+
readonly type: "event";
|
|
78
|
+
}, {
|
|
79
|
+
readonly stateMutability: "payable";
|
|
80
|
+
readonly type: "fallback";
|
|
81
|
+
}, {
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly name: "adminFeeShareBP";
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "view";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
readonly name: "amount";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
}, {
|
|
97
|
+
readonly internalType: "bytes32";
|
|
98
|
+
readonly name: "recipient";
|
|
99
|
+
readonly type: "bytes32";
|
|
100
|
+
}, {
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
readonly name: "destinationChainId";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
}];
|
|
105
|
+
readonly name: "bridge";
|
|
106
|
+
readonly outputs: readonly [];
|
|
107
|
+
readonly stateMutability: "nonpayable";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly name: "amount";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}, {
|
|
115
|
+
readonly internalType: "bytes32";
|
|
116
|
+
readonly name: "recipient";
|
|
117
|
+
readonly type: "bytes32";
|
|
118
|
+
}, {
|
|
119
|
+
readonly internalType: "bytes32";
|
|
120
|
+
readonly name: "recipientWalletAddress";
|
|
121
|
+
readonly type: "bytes32";
|
|
122
|
+
}, {
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
readonly name: "destinationChainId";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}];
|
|
127
|
+
readonly name: "bridgeWithWalletAddress";
|
|
128
|
+
readonly outputs: readonly [];
|
|
129
|
+
readonly stateMutability: "nonpayable";
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly name: "chainId";
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly name: "";
|
|
137
|
+
readonly type: "uint256";
|
|
138
|
+
}];
|
|
139
|
+
readonly stateMutability: "view";
|
|
140
|
+
readonly type: "function";
|
|
141
|
+
}, {
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "chainId_";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
readonly name: "getDomainByChainId";
|
|
148
|
+
readonly outputs: readonly [{
|
|
149
|
+
readonly internalType: "uint32";
|
|
150
|
+
readonly name: "";
|
|
151
|
+
readonly type: "uint32";
|
|
152
|
+
}];
|
|
153
|
+
readonly stateMutability: "view";
|
|
154
|
+
readonly type: "function";
|
|
155
|
+
}, {
|
|
156
|
+
readonly inputs: readonly [];
|
|
157
|
+
readonly name: "maxFeeShare";
|
|
158
|
+
readonly outputs: readonly [{
|
|
159
|
+
readonly internalType: "uint256";
|
|
160
|
+
readonly name: "";
|
|
161
|
+
readonly type: "uint256";
|
|
162
|
+
}];
|
|
163
|
+
readonly stateMutability: "view";
|
|
164
|
+
readonly type: "function";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [];
|
|
167
|
+
readonly name: "owner";
|
|
168
|
+
readonly outputs: readonly [{
|
|
169
|
+
readonly internalType: "address";
|
|
170
|
+
readonly name: "";
|
|
171
|
+
readonly type: "address";
|
|
172
|
+
}];
|
|
173
|
+
readonly stateMutability: "view";
|
|
174
|
+
readonly type: "function";
|
|
175
|
+
}, {
|
|
176
|
+
readonly inputs: readonly [{
|
|
177
|
+
readonly internalType: "uint256";
|
|
178
|
+
readonly name: "chainId_";
|
|
179
|
+
readonly type: "uint256";
|
|
180
|
+
}, {
|
|
181
|
+
readonly internalType: "uint32";
|
|
182
|
+
readonly name: "domain";
|
|
183
|
+
readonly type: "uint32";
|
|
184
|
+
}];
|
|
185
|
+
readonly name: "registerBridgeDestination";
|
|
186
|
+
readonly outputs: readonly [];
|
|
187
|
+
readonly stateMutability: "nonpayable";
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
}, {
|
|
190
|
+
readonly inputs: readonly [];
|
|
191
|
+
readonly name: "renounceOwnership";
|
|
192
|
+
readonly outputs: readonly [];
|
|
193
|
+
readonly stateMutability: "nonpayable";
|
|
194
|
+
readonly type: "function";
|
|
195
|
+
}, {
|
|
196
|
+
readonly inputs: readonly [{
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
readonly name: "adminFeeShareBP_";
|
|
199
|
+
readonly type: "uint256";
|
|
200
|
+
}];
|
|
201
|
+
readonly name: "setAdminFeeShare";
|
|
202
|
+
readonly outputs: readonly [];
|
|
203
|
+
readonly stateMutability: "nonpayable";
|
|
204
|
+
readonly type: "function";
|
|
205
|
+
}, {
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
readonly name: "maxFeeShare_";
|
|
209
|
+
readonly type: "uint256";
|
|
210
|
+
}];
|
|
211
|
+
readonly name: "setMaxFeeShare";
|
|
212
|
+
readonly outputs: readonly [];
|
|
213
|
+
readonly stateMutability: "nonpayable";
|
|
214
|
+
readonly type: "function";
|
|
215
|
+
}, {
|
|
216
|
+
readonly inputs: readonly [{
|
|
217
|
+
readonly internalType: "address";
|
|
218
|
+
readonly name: "newOwner";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
}];
|
|
221
|
+
readonly name: "transferOwnership";
|
|
222
|
+
readonly outputs: readonly [];
|
|
223
|
+
readonly stateMutability: "nonpayable";
|
|
224
|
+
readonly type: "function";
|
|
225
|
+
}, {
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly internalType: "uint256";
|
|
228
|
+
readonly name: "chainId_";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
}];
|
|
231
|
+
readonly name: "unregisterBridgeDestination";
|
|
232
|
+
readonly outputs: readonly [];
|
|
233
|
+
readonly stateMutability: "nonpayable";
|
|
234
|
+
readonly type: "function";
|
|
235
|
+
}, {
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly name: "withdrawFeeInTokens";
|
|
238
|
+
readonly outputs: readonly [];
|
|
239
|
+
readonly stateMutability: "nonpayable";
|
|
240
|
+
readonly type: "function";
|
|
241
|
+
}, {
|
|
242
|
+
readonly stateMutability: "payable";
|
|
243
|
+
readonly type: "receive";
|
|
244
|
+
}];
|
|
245
|
+
};
|
|
246
|
+
export default artifact;
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const artifact = {
|
|
4
|
+
abi: [
|
|
5
|
+
{
|
|
6
|
+
inputs: [
|
|
7
|
+
{
|
|
8
|
+
internalType: "uint256",
|
|
9
|
+
name: "chainId_",
|
|
10
|
+
type: "uint256",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
internalType: "address",
|
|
14
|
+
name: "tokenAddress",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "xReserve_",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "nonpayable",
|
|
24
|
+
type: "constructor",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
anonymous: false,
|
|
28
|
+
inputs: [
|
|
29
|
+
{
|
|
30
|
+
indexed: true,
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "previousOwner",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "newOwner",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "OwnershipTransferred",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: false,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "sender",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
internalType: "bytes32",
|
|
57
|
+
name: "recipient",
|
|
58
|
+
type: "bytes32",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
indexed: false,
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "amount",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
indexed: false,
|
|
68
|
+
internalType: "uint256",
|
|
69
|
+
name: "destinationChainId",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
indexed: false,
|
|
74
|
+
internalType: "uint256",
|
|
75
|
+
name: "adminFeeTokenAmount",
|
|
76
|
+
type: "uint256",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
indexed: false,
|
|
80
|
+
internalType: "uint256",
|
|
81
|
+
name: "maxFee",
|
|
82
|
+
type: "uint256",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name: "TokensSent",
|
|
86
|
+
type: "event",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
anonymous: false,
|
|
90
|
+
inputs: [
|
|
91
|
+
{
|
|
92
|
+
indexed: false,
|
|
93
|
+
internalType: "bytes32",
|
|
94
|
+
name: "recipientWalletAddress",
|
|
95
|
+
type: "bytes32",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
name: "TokensSentExtras",
|
|
99
|
+
type: "event",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
stateMutability: "payable",
|
|
103
|
+
type: "fallback",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: "adminFeeShareBP",
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "uint256",
|
|
122
|
+
name: "amount",
|
|
123
|
+
type: "uint256",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
internalType: "bytes32",
|
|
127
|
+
name: "recipient",
|
|
128
|
+
type: "bytes32",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "destinationChainId",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
name: "bridge",
|
|
137
|
+
outputs: [],
|
|
138
|
+
stateMutability: "nonpayable",
|
|
139
|
+
type: "function",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint256",
|
|
145
|
+
name: "amount",
|
|
146
|
+
type: "uint256",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
internalType: "bytes32",
|
|
150
|
+
name: "recipient",
|
|
151
|
+
type: "bytes32",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
internalType: "bytes32",
|
|
155
|
+
name: "recipientWalletAddress",
|
|
156
|
+
type: "bytes32",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint256",
|
|
160
|
+
name: "destinationChainId",
|
|
161
|
+
type: "uint256",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "bridgeWithWalletAddress",
|
|
165
|
+
outputs: [],
|
|
166
|
+
stateMutability: "nonpayable",
|
|
167
|
+
type: "function",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
inputs: [],
|
|
171
|
+
name: "chainId",
|
|
172
|
+
outputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "uint256",
|
|
175
|
+
name: "",
|
|
176
|
+
type: "uint256",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
stateMutability: "view",
|
|
180
|
+
type: "function",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
inputs: [
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "chainId_",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
name: "getDomainByChainId",
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint32",
|
|
194
|
+
name: "",
|
|
195
|
+
type: "uint32",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [],
|
|
203
|
+
name: "maxFeeShare",
|
|
204
|
+
outputs: [
|
|
205
|
+
{
|
|
206
|
+
internalType: "uint256",
|
|
207
|
+
name: "",
|
|
208
|
+
type: "uint256",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
stateMutability: "view",
|
|
212
|
+
type: "function",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
inputs: [],
|
|
216
|
+
name: "owner",
|
|
217
|
+
outputs: [
|
|
218
|
+
{
|
|
219
|
+
internalType: "address",
|
|
220
|
+
name: "",
|
|
221
|
+
type: "address",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
stateMutability: "view",
|
|
225
|
+
type: "function",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
inputs: [
|
|
229
|
+
{
|
|
230
|
+
internalType: "uint256",
|
|
231
|
+
name: "chainId_",
|
|
232
|
+
type: "uint256",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
internalType: "uint32",
|
|
236
|
+
name: "domain",
|
|
237
|
+
type: "uint32",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
name: "registerBridgeDestination",
|
|
241
|
+
outputs: [],
|
|
242
|
+
stateMutability: "nonpayable",
|
|
243
|
+
type: "function",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [],
|
|
247
|
+
name: "renounceOwnership",
|
|
248
|
+
outputs: [],
|
|
249
|
+
stateMutability: "nonpayable",
|
|
250
|
+
type: "function",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
inputs: [
|
|
254
|
+
{
|
|
255
|
+
internalType: "uint256",
|
|
256
|
+
name: "adminFeeShareBP_",
|
|
257
|
+
type: "uint256",
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
name: "setAdminFeeShare",
|
|
261
|
+
outputs: [],
|
|
262
|
+
stateMutability: "nonpayable",
|
|
263
|
+
type: "function",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{
|
|
268
|
+
internalType: "uint256",
|
|
269
|
+
name: "maxFeeShare_",
|
|
270
|
+
type: "uint256",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
name: "setMaxFeeShare",
|
|
274
|
+
outputs: [],
|
|
275
|
+
stateMutability: "nonpayable",
|
|
276
|
+
type: "function",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
inputs: [
|
|
280
|
+
{
|
|
281
|
+
internalType: "address",
|
|
282
|
+
name: "newOwner",
|
|
283
|
+
type: "address",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
name: "transferOwnership",
|
|
287
|
+
outputs: [],
|
|
288
|
+
stateMutability: "nonpayable",
|
|
289
|
+
type: "function",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
inputs: [
|
|
293
|
+
{
|
|
294
|
+
internalType: "uint256",
|
|
295
|
+
name: "chainId_",
|
|
296
|
+
type: "uint256",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
name: "unregisterBridgeDestination",
|
|
300
|
+
outputs: [],
|
|
301
|
+
stateMutability: "nonpayable",
|
|
302
|
+
type: "function",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
inputs: [],
|
|
306
|
+
name: "withdrawFeeInTokens",
|
|
307
|
+
outputs: [],
|
|
308
|
+
stateMutability: "nonpayable",
|
|
309
|
+
type: "function",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
stateMutability: "payable",
|
|
313
|
+
type: "receive",
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
};
|
|
317
|
+
exports.default = artifact;
|
|
318
|
+
//# sourceMappingURL=XReserveBridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XReserveBridge.js","sourceRoot":"","sources":["../../../../../src/services/models/abi/XReserveBridge.ts"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG;IACf,GAAG,EAAE;QACH;YACE,MAAM,EAAE;gBACN;oBACE,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,cAAc;oBACpB,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,eAAe,EAAE,YAAY;YAC7B,IAAI,EAAE,aAAa;SACpB;QACD;YACE,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE;gBACN;oBACE,OAAO,EAAE,IAAI;oBACb,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,eAAe;oBACrB,IAAI,EAAE,SAAS;iBAChB;gBACD;oBACE,OAAO,EAAE,IAAI;oBACb,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,OAAO;SAC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AAE,EAAE;YACX,eAAe,EAAE,YAAY;YAC7B,IAAI,EAAE,UAAU;SACjB;QACD;YACE,MAAM,EAAE;gBACN;oBACE,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,cAAc;oBACpB,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,YAAY;YAC7B,IAAI,EAAE,UAAU;SACjB;QACD;YACE,MAAM,EAAE;gBACN;oBACE,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,YAAY;YAC7B,IAAI,EAAE,UAAU;SACjB;QACD;YACE,MAAM,EAAE;gBACN;oBACE,YAAY,EAAE,SAAS;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,IAAI,EAAE,6BAA6B;YACnC,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,YAAY;YAC7B,IAAI,EAAE,UAAU;SACjB;QACD;YACE,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,qBAAqB;YAC3B,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,YAAY;YAC7B,IAAI,EAAE,UAAU;SACjB;QACD;YACE,eAAe,EAAE,SAAS;YAC1B,IAAI,EAAE,SAAS;SAChB;KACF;CACO,CAAC;AACX,kBAAe,QAAQ,CAAC","sourcesContent":["const artifact = {\n abi: [\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"chainId_\",\n type: \"uint256\",\n },\n {\n internalType: \"address\",\n name: \"tokenAddress\",\n type: \"address\",\n },\n {\n internalType: \"address\",\n name: \"xReserve_\",\n type: \"address\",\n },\n ],\n stateMutability: \"nonpayable\",\n type: \"constructor\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"previousOwner\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"newOwner\",\n type: \"address\",\n },\n ],\n name: \"OwnershipTransferred\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n internalType: \"address\",\n name: \"sender\",\n type: \"address\",\n },\n {\n indexed: false,\n internalType: \"bytes32\",\n name: \"recipient\",\n type: \"bytes32\",\n },\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"amount\",\n type: \"uint256\",\n },\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"destinationChainId\",\n type: \"uint256\",\n },\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"adminFeeTokenAmount\",\n type: \"uint256\",\n },\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"maxFee\",\n type: \"uint256\",\n },\n ],\n name: \"TokensSent\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n internalType: \"bytes32\",\n name: \"recipientWalletAddress\",\n type: \"bytes32\",\n },\n ],\n name: \"TokensSentExtras\",\n type: \"event\",\n },\n {\n stateMutability: \"payable\",\n type: \"fallback\",\n },\n {\n inputs: [],\n name: \"adminFeeShareBP\",\n outputs: [\n {\n internalType: \"uint256\",\n name: \"\",\n type: \"uint256\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"amount\",\n type: \"uint256\",\n },\n {\n internalType: \"bytes32\",\n name: \"recipient\",\n type: \"bytes32\",\n },\n {\n internalType: \"uint256\",\n name: \"destinationChainId\",\n type: \"uint256\",\n },\n ],\n name: \"bridge\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"amount\",\n type: \"uint256\",\n },\n {\n internalType: \"bytes32\",\n name: \"recipient\",\n type: \"bytes32\",\n },\n {\n internalType: \"bytes32\",\n name: \"recipientWalletAddress\",\n type: \"bytes32\",\n },\n {\n internalType: \"uint256\",\n name: \"destinationChainId\",\n type: \"uint256\",\n },\n ],\n name: \"bridgeWithWalletAddress\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"chainId\",\n outputs: [\n {\n internalType: \"uint256\",\n name: \"\",\n type: \"uint256\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"chainId_\",\n type: \"uint256\",\n },\n ],\n name: \"getDomainByChainId\",\n outputs: [\n {\n internalType: \"uint32\",\n name: \"\",\n type: \"uint32\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"maxFeeShare\",\n outputs: [\n {\n internalType: \"uint256\",\n name: \"\",\n type: \"uint256\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"owner\",\n outputs: [\n {\n internalType: \"address\",\n name: \"\",\n type: \"address\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"chainId_\",\n type: \"uint256\",\n },\n {\n internalType: \"uint32\",\n name: \"domain\",\n type: \"uint32\",\n },\n ],\n name: \"registerBridgeDestination\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"renounceOwnership\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"adminFeeShareBP_\",\n type: \"uint256\",\n },\n ],\n name: \"setAdminFeeShare\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"maxFeeShare_\",\n type: \"uint256\",\n },\n ],\n name: \"setMaxFeeShare\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"address\",\n name: \"newOwner\",\n type: \"address\",\n },\n ],\n name: \"transferOwnership\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"uint256\",\n name: \"chainId_\",\n type: \"uint256\",\n },\n ],\n name: \"unregisterBridgeDestination\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"withdrawFeeInTokens\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n stateMutability: \"payable\",\n type: \"receive\",\n },\n ],\n} as const;\nexport default artifact;\n"]}
|
|
@@ -654,4 +654,76 @@ export declare const stacksContracts: {
|
|
|
654
654
|
readonly clarity_version: "Clarity3";
|
|
655
655
|
readonly contractName: "utils";
|
|
656
656
|
};
|
|
657
|
+
readonly xReserveBridge: {
|
|
658
|
+
readonly functions: {
|
|
659
|
+
readonly assertBurn: TypedAbiFunction<[burnRef: TypedAbiArg<string, "burnRef">], Response<boolean, bigint>>;
|
|
660
|
+
readonly assertToken: TypedAbiFunction<[tokenRef: TypedAbiArg<string, "tokenRef">], Response<boolean, bigint>>;
|
|
661
|
+
readonly onlyOwner: TypedAbiFunction<[], Response<boolean, bigint>>;
|
|
662
|
+
readonly bridge: TypedAbiFunction<[tokenRef: TypedAbiArg<string, "tokenRef">, burnRef: TypedAbiArg<string, "burnRef">, amount: TypedAbiArg<number | bigint, "amount">, recipient: TypedAbiArg<Uint8Array, "recipient">, destinationChainId: TypedAbiArg<number | bigint, "destinationChainId">], Response<boolean, bigint>>;
|
|
663
|
+
readonly removeChainDomain: TypedAbiFunction<[chainIdIn: TypedAbiArg<number | bigint, "chainIdIn">], Response<boolean, bigint>>;
|
|
664
|
+
readonly setAdminFee: TypedAbiFunction<[newFeeBp: TypedAbiArg<number | bigint, "newFeeBp">], Response<boolean, bigint>>;
|
|
665
|
+
readonly setBurnPrincipal: TypedAbiFunction<[newBurnPrincipal: TypedAbiArg<string, "newBurnPrincipal">], Response<boolean, bigint>>;
|
|
666
|
+
readonly setChainDomain: TypedAbiFunction<[newChainId: TypedAbiArg<number | bigint, "newChainId">, domain: TypedAbiArg<number | bigint, "domain">], Response<boolean, bigint>>;
|
|
667
|
+
readonly setOwner: TypedAbiFunction<[newOwner: TypedAbiArg<string, "newOwner">], Response<boolean, bigint>>;
|
|
668
|
+
readonly setTokenPrincipal: TypedAbiFunction<[newTokenPrincipal: TypedAbiArg<string, "newTokenPrincipal">], Response<boolean, bigint>>;
|
|
669
|
+
readonly withdrawFees: TypedAbiFunction<[tokenRef: TypedAbiArg<string, "tokenRef">, recipient: TypedAbiArg<string, "recipient">], Response<bigint, bigint>>;
|
|
670
|
+
};
|
|
671
|
+
readonly maps: {
|
|
672
|
+
readonly chainIdToDomain: TypedAbiMap<number | bigint, bigint>;
|
|
673
|
+
};
|
|
674
|
+
readonly variables: {
|
|
675
|
+
readonly BP: TypedAbiVariable<bigint>;
|
|
676
|
+
readonly errInsufficientAmount: TypedAbiVariable<Response<null, bigint>>;
|
|
677
|
+
readonly errInvalidAmount: TypedAbiVariable<Response<null, bigint>>;
|
|
678
|
+
readonly errNotFound: TypedAbiVariable<Response<null, bigint>>;
|
|
679
|
+
readonly errNotInitialized: TypedAbiVariable<Response<null, bigint>>;
|
|
680
|
+
readonly errUnauthorized: TypedAbiVariable<Response<null, bigint>>;
|
|
681
|
+
readonly errWrongBurn: TypedAbiVariable<Response<null, bigint>>;
|
|
682
|
+
readonly errWrongToken: TypedAbiVariable<Response<null, bigint>>;
|
|
683
|
+
readonly adminFeeBp: TypedAbiVariable<bigint>;
|
|
684
|
+
readonly burnPrincipal: TypedAbiVariable<string | null>;
|
|
685
|
+
readonly owner: TypedAbiVariable<string>;
|
|
686
|
+
readonly tokenPrincipal: TypedAbiVariable<string | null>;
|
|
687
|
+
};
|
|
688
|
+
readonly constants: {
|
|
689
|
+
readonly BP: 10000n;
|
|
690
|
+
readonly adminFeeBp: 0n;
|
|
691
|
+
readonly burnPrincipal: null;
|
|
692
|
+
readonly errInsufficientAmount: {
|
|
693
|
+
readonly isOk: false;
|
|
694
|
+
readonly value: 1001n;
|
|
695
|
+
};
|
|
696
|
+
readonly errInvalidAmount: {
|
|
697
|
+
readonly isOk: false;
|
|
698
|
+
readonly value: 1002n;
|
|
699
|
+
};
|
|
700
|
+
readonly errNotFound: {
|
|
701
|
+
readonly isOk: false;
|
|
702
|
+
readonly value: 1003n;
|
|
703
|
+
};
|
|
704
|
+
readonly errNotInitialized: {
|
|
705
|
+
readonly isOk: false;
|
|
706
|
+
readonly value: 1004n;
|
|
707
|
+
};
|
|
708
|
+
readonly errUnauthorized: {
|
|
709
|
+
readonly isOk: false;
|
|
710
|
+
readonly value: 1000n;
|
|
711
|
+
};
|
|
712
|
+
readonly errWrongBurn: {
|
|
713
|
+
readonly isOk: false;
|
|
714
|
+
readonly value: 1006n;
|
|
715
|
+
};
|
|
716
|
+
readonly errWrongToken: {
|
|
717
|
+
readonly isOk: false;
|
|
718
|
+
readonly value: 1005n;
|
|
719
|
+
};
|
|
720
|
+
readonly owner: "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM";
|
|
721
|
+
readonly tokenPrincipal: null;
|
|
722
|
+
};
|
|
723
|
+
readonly non_fungible_tokens: readonly [];
|
|
724
|
+
readonly fungible_tokens: readonly [];
|
|
725
|
+
readonly epoch: "Epoch31";
|
|
726
|
+
readonly clarity_version: "Clarity3";
|
|
727
|
+
readonly contractName: "x-reserve-bridge";
|
|
728
|
+
};
|
|
657
729
|
};
|