@fepvenancio/stela-sdk 0.4.0 → 0.4.2
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 +34 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +33 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/stela.json +23 -0
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: "0x03e88d289b9ce13e5d6e6ca5159930f9227b08cfbd004231a09a1d6f48568973",
|
|
28
28
|
mainnet: "0x0"
|
|
29
29
|
};
|
|
30
30
|
var VALID_NETWORKS = ["sepolia", "mainnet"];
|
|
@@ -34,6 +34,14 @@ function resolveNetwork(raw) {
|
|
|
34
34
|
if (trimmed) console.warn(`Invalid NETWORK "${trimmed}", falling back to sepolia`);
|
|
35
35
|
return "sepolia";
|
|
36
36
|
}
|
|
37
|
+
var CHAIN_ID = {
|
|
38
|
+
sepolia: "SN_SEPOLIA",
|
|
39
|
+
mainnet: "SN_MAIN"
|
|
40
|
+
};
|
|
41
|
+
var EXPLORER_TX_URL = {
|
|
42
|
+
sepolia: "https://sepolia.voyager.online/tx",
|
|
43
|
+
mainnet: "https://voyager.online/tx"
|
|
44
|
+
};
|
|
37
45
|
|
|
38
46
|
// src/constants/protocol.ts
|
|
39
47
|
var MAX_BPS = 10000n;
|
|
@@ -1361,6 +1369,29 @@ var stela_default = [
|
|
|
1361
1369
|
outputs: [],
|
|
1362
1370
|
state_mutability: "external"
|
|
1363
1371
|
},
|
|
1372
|
+
{
|
|
1373
|
+
type: "function",
|
|
1374
|
+
name: "set_fee_vault",
|
|
1375
|
+
inputs: [
|
|
1376
|
+
{
|
|
1377
|
+
name: "fee_vault",
|
|
1378
|
+
type: "core::starknet::contract_address::ContractAddress"
|
|
1379
|
+
}
|
|
1380
|
+
],
|
|
1381
|
+
outputs: [],
|
|
1382
|
+
state_mutability: "external"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
type: "function",
|
|
1386
|
+
name: "get_fee_vault",
|
|
1387
|
+
inputs: [],
|
|
1388
|
+
outputs: [
|
|
1389
|
+
{
|
|
1390
|
+
type: "core::starknet::contract_address::ContractAddress"
|
|
1391
|
+
}
|
|
1392
|
+
],
|
|
1393
|
+
state_mutability: "view"
|
|
1394
|
+
},
|
|
1364
1395
|
{
|
|
1365
1396
|
type: "function",
|
|
1366
1397
|
name: "pause",
|
|
@@ -3082,6 +3113,8 @@ exports.ASSET_TYPE_ENUM = ASSET_TYPE_ENUM;
|
|
|
3082
3113
|
exports.ASSET_TYPE_NAMES = ASSET_TYPE_NAMES;
|
|
3083
3114
|
exports.ApiClient = ApiClient;
|
|
3084
3115
|
exports.ApiError = ApiError;
|
|
3116
|
+
exports.CHAIN_ID = CHAIN_ID;
|
|
3117
|
+
exports.EXPLORER_TX_URL = EXPLORER_TX_URL;
|
|
3085
3118
|
exports.InscriptionClient = InscriptionClient;
|
|
3086
3119
|
exports.LockerClient = LockerClient;
|
|
3087
3120
|
exports.MAX_BPS = MAX_BPS;
|