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