@fepvenancio/stela-sdk 0.6.1 → 0.7.0
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/index.cjs +36 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +36 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/stela.json +35 -33
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var STATUS_LABELS = {
|
|
|
24
24
|
|
|
25
25
|
// src/constants/addresses.ts
|
|
26
26
|
var STELA_ADDRESS = {
|
|
27
|
-
sepolia: "
|
|
27
|
+
sepolia: "0x038a0b195e011fbfd75e9bce9bbc4137ebc5296882e11c5769c333b90bda4f89",
|
|
28
28
|
mainnet: "0x0"
|
|
29
29
|
};
|
|
30
30
|
var VALID_NETWORKS = ["sepolia", "mainnet"];
|
|
@@ -1132,17 +1132,6 @@ var stela_default = [
|
|
|
1132
1132
|
],
|
|
1133
1133
|
state_mutability: "view"
|
|
1134
1134
|
},
|
|
1135
|
-
{
|
|
1136
|
-
type: "function",
|
|
1137
|
-
name: "get_inscription_fee",
|
|
1138
|
-
inputs: [],
|
|
1139
|
-
outputs: [
|
|
1140
|
-
{
|
|
1141
|
-
type: "core::integer::u256"
|
|
1142
|
-
}
|
|
1143
|
-
],
|
|
1144
|
-
state_mutability: "view"
|
|
1145
|
-
},
|
|
1146
1135
|
{
|
|
1147
1136
|
type: "function",
|
|
1148
1137
|
name: "nonces",
|
|
@@ -1159,17 +1148,6 @@ var stela_default = [
|
|
|
1159
1148
|
],
|
|
1160
1149
|
state_mutability: "view"
|
|
1161
1150
|
},
|
|
1162
|
-
{
|
|
1163
|
-
type: "function",
|
|
1164
|
-
name: "get_relayer_fee",
|
|
1165
|
-
inputs: [],
|
|
1166
|
-
outputs: [
|
|
1167
|
-
{
|
|
1168
|
-
type: "core::integer::u256"
|
|
1169
|
-
}
|
|
1170
|
-
],
|
|
1171
|
-
state_mutability: "view"
|
|
1172
|
-
},
|
|
1173
1151
|
{
|
|
1174
1152
|
type: "function",
|
|
1175
1153
|
name: "get_treasury",
|
|
@@ -1285,15 +1263,19 @@ var stela_default = [
|
|
|
1285
1263
|
},
|
|
1286
1264
|
{
|
|
1287
1265
|
type: "function",
|
|
1288
|
-
name: "
|
|
1266
|
+
name: "is_volume_token_whitelisted",
|
|
1289
1267
|
inputs: [
|
|
1290
1268
|
{
|
|
1291
|
-
name: "
|
|
1292
|
-
type: "core::
|
|
1269
|
+
name: "token",
|
|
1270
|
+
type: "core::starknet::contract_address::ContractAddress"
|
|
1293
1271
|
}
|
|
1294
1272
|
],
|
|
1295
|
-
outputs: [
|
|
1296
|
-
|
|
1273
|
+
outputs: [
|
|
1274
|
+
{
|
|
1275
|
+
type: "core::bool"
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
state_mutability: "view"
|
|
1297
1279
|
},
|
|
1298
1280
|
{
|
|
1299
1281
|
type: "function",
|
|
@@ -1333,11 +1315,11 @@ var stela_default = [
|
|
|
1333
1315
|
},
|
|
1334
1316
|
{
|
|
1335
1317
|
type: "function",
|
|
1336
|
-
name: "
|
|
1318
|
+
name: "set_implementation_hash",
|
|
1337
1319
|
inputs: [
|
|
1338
1320
|
{
|
|
1339
|
-
name: "
|
|
1340
|
-
type: "core::
|
|
1321
|
+
name: "implementation_hash",
|
|
1322
|
+
type: "core::felt252"
|
|
1341
1323
|
}
|
|
1342
1324
|
],
|
|
1343
1325
|
outputs: [],
|
|
@@ -1345,11 +1327,15 @@ var stela_default = [
|
|
|
1345
1327
|
},
|
|
1346
1328
|
{
|
|
1347
1329
|
type: "function",
|
|
1348
|
-
name: "
|
|
1330
|
+
name: "set_volume_token_whitelisted",
|
|
1349
1331
|
inputs: [
|
|
1350
1332
|
{
|
|
1351
|
-
name: "
|
|
1352
|
-
type: "core::
|
|
1333
|
+
name: "token",
|
|
1334
|
+
type: "core::starknet::contract_address::ContractAddress"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
name: "whitelisted",
|
|
1338
|
+
type: "core::bool"
|
|
1353
1339
|
}
|
|
1354
1340
|
],
|
|
1355
1341
|
outputs: [],
|
|
@@ -1392,6 +1378,18 @@ var stela_default = [
|
|
|
1392
1378
|
],
|
|
1393
1379
|
state_mutability: "view"
|
|
1394
1380
|
},
|
|
1381
|
+
{
|
|
1382
|
+
type: "function",
|
|
1383
|
+
name: "set_pauser",
|
|
1384
|
+
inputs: [
|
|
1385
|
+
{
|
|
1386
|
+
name: "new_pauser",
|
|
1387
|
+
type: "core::starknet::contract_address::ContractAddress"
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
outputs: [],
|
|
1391
|
+
state_mutability: "external"
|
|
1392
|
+
},
|
|
1395
1393
|
{
|
|
1396
1394
|
type: "function",
|
|
1397
1395
|
name: "set_locker_allowed_selector",
|
|
@@ -1400,6 +1398,10 @@ var stela_default = [
|
|
|
1400
1398
|
name: "locker",
|
|
1401
1399
|
type: "core::starknet::contract_address::ContractAddress"
|
|
1402
1400
|
},
|
|
1401
|
+
{
|
|
1402
|
+
name: "target",
|
|
1403
|
+
type: "core::starknet::contract_address::ContractAddress"
|
|
1404
|
+
},
|
|
1403
1405
|
{
|
|
1404
1406
|
name: "selector",
|
|
1405
1407
|
type: "core::felt252"
|
|
@@ -2428,10 +2430,6 @@ var InscriptionClient = class {
|
|
|
2428
2430
|
const result = await this.contract.call("get_locker", toU256(inscriptionId));
|
|
2429
2431
|
return String(result[0]);
|
|
2430
2432
|
}
|
|
2431
|
-
async getInscriptionFee() {
|
|
2432
|
-
const result = await this.contract.call("get_inscription_fee");
|
|
2433
|
-
return extractU256(result);
|
|
2434
|
-
}
|
|
2435
2433
|
async convertToShares(inscriptionId, percentage) {
|
|
2436
2434
|
const result = await this.contract.call("convert_to_shares", [
|
|
2437
2435
|
...toU256(inscriptionId),
|