@fepvenancio/stela-sdk 0.7.0 → 0.7.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/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: "0x038a0b195e011fbfd75e9bce9bbc4137ebc5296882e11c5769c333b90bda4f89",
27
+ sepolia: "0x0109c6caae0c5b4da6e063ed6c02ae784be05aa90806501a48dcfbb213bd7c03",
28
28
  mainnet: "0x0"
29
29
  };
30
30
  var VALID_NETWORKS = ["sepolia", "mainnet"];
@@ -1159,17 +1159,6 @@ var stela_default = [
1159
1159
  ],
1160
1160
  state_mutability: "view"
1161
1161
  },
1162
- {
1163
- type: "function",
1164
- name: "is_paused",
1165
- inputs: [],
1166
- outputs: [
1167
- {
1168
- type: "core::bool"
1169
- }
1170
- ],
1171
- state_mutability: "view"
1172
- },
1173
1162
  {
1174
1163
  type: "function",
1175
1164
  name: "is_order_registered",
@@ -1355,36 +1344,55 @@ var stela_default = [
1355
1344
  },
1356
1345
  {
1357
1346
  type: "function",
1358
- name: "pause",
1359
- inputs: [],
1360
- outputs: [],
1361
- state_mutability: "external"
1362
- },
1363
- {
1364
- type: "function",
1365
- name: "unpause",
1366
- inputs: [],
1347
+ name: "set_governance_target",
1348
+ inputs: [
1349
+ {
1350
+ name: "target",
1351
+ type: "core::starknet::contract_address::ContractAddress"
1352
+ },
1353
+ {
1354
+ name: "whitelisted",
1355
+ type: "core::bool"
1356
+ }
1357
+ ],
1367
1358
  outputs: [],
1368
1359
  state_mutability: "external"
1369
1360
  },
1370
1361
  {
1371
1362
  type: "function",
1372
- name: "get_pauser",
1373
- inputs: [],
1374
- outputs: [
1363
+ name: "is_governance_target_whitelisted",
1364
+ inputs: [
1375
1365
  {
1366
+ name: "target",
1376
1367
  type: "core::starknet::contract_address::ContractAddress"
1377
1368
  }
1378
1369
  ],
1370
+ outputs: [
1371
+ {
1372
+ type: "core::bool"
1373
+ }
1374
+ ],
1379
1375
  state_mutability: "view"
1380
1376
  },
1381
1377
  {
1382
1378
  type: "function",
1383
- name: "set_pauser",
1379
+ name: "set_locker_allowed_selector",
1384
1380
  inputs: [
1385
1381
  {
1386
- name: "new_pauser",
1382
+ name: "locker",
1387
1383
  type: "core::starknet::contract_address::ContractAddress"
1384
+ },
1385
+ {
1386
+ name: "target",
1387
+ type: "core::starknet::contract_address::ContractAddress"
1388
+ },
1389
+ {
1390
+ name: "selector",
1391
+ type: "core::felt252"
1392
+ },
1393
+ {
1394
+ name: "allowed",
1395
+ type: "core::bool"
1388
1396
  }
1389
1397
  ],
1390
1398
  outputs: [],
@@ -1392,11 +1400,11 @@ var stela_default = [
1392
1400
  },
1393
1401
  {
1394
1402
  type: "function",
1395
- name: "set_locker_allowed_selector",
1403
+ name: "set_borrower_governance_selector",
1396
1404
  inputs: [
1397
1405
  {
1398
- name: "locker",
1399
- type: "core::starknet::contract_address::ContractAddress"
1406
+ name: "inscription_id",
1407
+ type: "core::integer::u256"
1400
1408
  },
1401
1409
  {
1402
1410
  name: "target",
@@ -1850,10 +1858,6 @@ var stela_default = [
1850
1858
  {
1851
1859
  name: "implementation_hash",
1852
1860
  type: "core::felt252"
1853
- },
1854
- {
1855
- name: "pauser",
1856
- type: "core::starknet::contract_address::ContractAddress"
1857
1861
  }
1858
1862
  ]
1859
1863
  },
@@ -2050,47 +2054,6 @@ var stela_default = [
2050
2054
  kind: "enum",
2051
2055
  variants: []
2052
2056
  },
2053
- {
2054
- type: "event",
2055
- name: "openzeppelin_security::pausable::PausableComponent::Paused",
2056
- kind: "struct",
2057
- members: [
2058
- {
2059
- name: "account",
2060
- type: "core::starknet::contract_address::ContractAddress",
2061
- kind: "data"
2062
- }
2063
- ]
2064
- },
2065
- {
2066
- type: "event",
2067
- name: "openzeppelin_security::pausable::PausableComponent::Unpaused",
2068
- kind: "struct",
2069
- members: [
2070
- {
2071
- name: "account",
2072
- type: "core::starknet::contract_address::ContractAddress",
2073
- kind: "data"
2074
- }
2075
- ]
2076
- },
2077
- {
2078
- type: "event",
2079
- name: "openzeppelin_security::pausable::PausableComponent::Event",
2080
- kind: "enum",
2081
- variants: [
2082
- {
2083
- name: "Paused",
2084
- type: "openzeppelin_security::pausable::PausableComponent::Paused",
2085
- kind: "nested"
2086
- },
2087
- {
2088
- name: "Unpaused",
2089
- type: "openzeppelin_security::pausable::PausableComponent::Unpaused",
2090
- kind: "nested"
2091
- }
2092
- ]
2093
- },
2094
2057
  {
2095
2058
  type: "event",
2096
2059
  name: "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
@@ -2322,6 +2285,28 @@ var stela_default = [
2322
2285
  }
2323
2286
  ]
2324
2287
  },
2288
+ {
2289
+ type: "event",
2290
+ name: "stela::stela::StelaProtocol::CollateralReturned",
2291
+ kind: "struct",
2292
+ members: [
2293
+ {
2294
+ name: "inscription_id",
2295
+ type: "core::integer::u256",
2296
+ kind: "key"
2297
+ },
2298
+ {
2299
+ name: "borrower",
2300
+ type: "core::starknet::contract_address::ContractAddress",
2301
+ kind: "data"
2302
+ },
2303
+ {
2304
+ name: "asset_count",
2305
+ type: "core::integer::u32",
2306
+ kind: "data"
2307
+ }
2308
+ ]
2309
+ },
2325
2310
  {
2326
2311
  type: "event",
2327
2312
  name: "stela::stela::StelaProtocol::Event",
@@ -2347,11 +2332,6 @@ var stela_default = [
2347
2332
  type: "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
2348
2333
  kind: "flat"
2349
2334
  },
2350
- {
2351
- name: "PausableEvent",
2352
- type: "openzeppelin_security::pausable::PausableComponent::Event",
2353
- kind: "flat"
2354
- },
2355
2335
  {
2356
2336
  name: "NoncesEvent",
2357
2337
  type: "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
@@ -2406,6 +2386,11 @@ var stela_default = [
2406
2386
  name: "OrdersBulkCancelled",
2407
2387
  type: "stela::stela::StelaProtocol::OrdersBulkCancelled",
2408
2388
  kind: "nested"
2389
+ },
2390
+ {
2391
+ name: "CollateralReturned",
2392
+ type: "stela::stela::StelaProtocol::CollateralReturned",
2393
+ kind: "nested"
2409
2394
  }
2410
2395
  ]
2411
2396
  }