@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.d.cts CHANGED
@@ -459,7 +459,6 @@ declare class InscriptionClient {
459
459
  constructor(opts: InscriptionClientOptions);
460
460
  getInscription(inscriptionId: bigint): Promise<StoredInscription>;
461
461
  getLocker(inscriptionId: bigint): Promise<string>;
462
- getInscriptionFee(): Promise<bigint>;
463
462
  convertToShares(inscriptionId: bigint, percentage: bigint): Promise<bigint>;
464
463
  getNonce(address: string): Promise<bigint>;
465
464
  getRelayerFee(): Promise<bigint>;
package/dist/index.d.ts CHANGED
@@ -459,7 +459,6 @@ declare class InscriptionClient {
459
459
  constructor(opts: InscriptionClientOptions);
460
460
  getInscription(inscriptionId: bigint): Promise<StoredInscription>;
461
461
  getLocker(inscriptionId: bigint): Promise<string>;
462
- getInscriptionFee(): Promise<bigint>;
463
462
  convertToShares(inscriptionId: bigint, percentage: bigint): Promise<bigint>;
464
463
  getNonce(address: string): Promise<bigint>;
465
464
  getRelayerFee(): Promise<bigint>;
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ var STATUS_LABELS = {
22
22
 
23
23
  // src/constants/addresses.ts
24
24
  var STELA_ADDRESS = {
25
- sepolia: "0x012998e49cc8205d0bb56b5c10202bd32994091b1cacdb7bcbd03dc6781d4974",
25
+ sepolia: "0x038a0b195e011fbfd75e9bce9bbc4137ebc5296882e11c5769c333b90bda4f89",
26
26
  mainnet: "0x0"
27
27
  };
28
28
  var VALID_NETWORKS = ["sepolia", "mainnet"];
@@ -1130,17 +1130,6 @@ var stela_default = [
1130
1130
  ],
1131
1131
  state_mutability: "view"
1132
1132
  },
1133
- {
1134
- type: "function",
1135
- name: "get_inscription_fee",
1136
- inputs: [],
1137
- outputs: [
1138
- {
1139
- type: "core::integer::u256"
1140
- }
1141
- ],
1142
- state_mutability: "view"
1143
- },
1144
1133
  {
1145
1134
  type: "function",
1146
1135
  name: "nonces",
@@ -1157,17 +1146,6 @@ var stela_default = [
1157
1146
  ],
1158
1147
  state_mutability: "view"
1159
1148
  },
1160
- {
1161
- type: "function",
1162
- name: "get_relayer_fee",
1163
- inputs: [],
1164
- outputs: [
1165
- {
1166
- type: "core::integer::u256"
1167
- }
1168
- ],
1169
- state_mutability: "view"
1170
- },
1171
1149
  {
1172
1150
  type: "function",
1173
1151
  name: "get_treasury",
@@ -1283,15 +1261,19 @@ var stela_default = [
1283
1261
  },
1284
1262
  {
1285
1263
  type: "function",
1286
- name: "set_inscription_fee",
1264
+ name: "is_volume_token_whitelisted",
1287
1265
  inputs: [
1288
1266
  {
1289
- name: "fee",
1290
- type: "core::integer::u256"
1267
+ name: "token",
1268
+ type: "core::starknet::contract_address::ContractAddress"
1291
1269
  }
1292
1270
  ],
1293
- outputs: [],
1294
- state_mutability: "external"
1271
+ outputs: [
1272
+ {
1273
+ type: "core::bool"
1274
+ }
1275
+ ],
1276
+ state_mutability: "view"
1295
1277
  },
1296
1278
  {
1297
1279
  type: "function",
@@ -1331,11 +1313,11 @@ var stela_default = [
1331
1313
  },
1332
1314
  {
1333
1315
  type: "function",
1334
- name: "set_relayer_fee",
1316
+ name: "set_implementation_hash",
1335
1317
  inputs: [
1336
1318
  {
1337
- name: "fee",
1338
- type: "core::integer::u256"
1319
+ name: "implementation_hash",
1320
+ type: "core::felt252"
1339
1321
  }
1340
1322
  ],
1341
1323
  outputs: [],
@@ -1343,11 +1325,15 @@ var stela_default = [
1343
1325
  },
1344
1326
  {
1345
1327
  type: "function",
1346
- name: "set_implementation_hash",
1328
+ name: "set_volume_token_whitelisted",
1347
1329
  inputs: [
1348
1330
  {
1349
- name: "implementation_hash",
1350
- type: "core::felt252"
1331
+ name: "token",
1332
+ type: "core::starknet::contract_address::ContractAddress"
1333
+ },
1334
+ {
1335
+ name: "whitelisted",
1336
+ type: "core::bool"
1351
1337
  }
1352
1338
  ],
1353
1339
  outputs: [],
@@ -1390,6 +1376,18 @@ var stela_default = [
1390
1376
  ],
1391
1377
  state_mutability: "view"
1392
1378
  },
1379
+ {
1380
+ type: "function",
1381
+ name: "set_pauser",
1382
+ inputs: [
1383
+ {
1384
+ name: "new_pauser",
1385
+ type: "core::starknet::contract_address::ContractAddress"
1386
+ }
1387
+ ],
1388
+ outputs: [],
1389
+ state_mutability: "external"
1390
+ },
1393
1391
  {
1394
1392
  type: "function",
1395
1393
  name: "set_locker_allowed_selector",
@@ -1398,6 +1396,10 @@ var stela_default = [
1398
1396
  name: "locker",
1399
1397
  type: "core::starknet::contract_address::ContractAddress"
1400
1398
  },
1399
+ {
1400
+ name: "target",
1401
+ type: "core::starknet::contract_address::ContractAddress"
1402
+ },
1401
1403
  {
1402
1404
  name: "selector",
1403
1405
  type: "core::felt252"
@@ -2426,10 +2428,6 @@ var InscriptionClient = class {
2426
2428
  const result = await this.contract.call("get_locker", toU256(inscriptionId));
2427
2429
  return String(result[0]);
2428
2430
  }
2429
- async getInscriptionFee() {
2430
- const result = await this.contract.call("get_inscription_fee");
2431
- return extractU256(result);
2432
- }
2433
2431
  async convertToShares(inscriptionId, percentage) {
2434
2432
  const result = await this.contract.call("convert_to_shares", [
2435
2433
  ...toU256(inscriptionId),