@fepvenancio/stela-sdk 0.2.3 → 0.3.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/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
- "version": "0.2.3",
10
+ "version": "0.3.0",
11
11
  "description": "TypeScript SDK for the Stela P2P lending protocol on StarkNet",
12
12
  "type": "module",
13
13
  "main": "./dist/index.cjs",
@@ -0,0 +1,54 @@
1
+ [
2
+ {
3
+ "type": "struct",
4
+ "name": "core::integer::u256",
5
+ "members": [
6
+ { "name": "low", "type": "core::integer::u128" },
7
+ { "name": "high", "type": "core::integer::u128" }
8
+ ]
9
+ },
10
+ {
11
+ "type": "interface",
12
+ "name": "erc20::IERC20",
13
+ "items": [
14
+ {
15
+ "type": "function",
16
+ "name": "approve",
17
+ "inputs": [
18
+ { "name": "spender", "type": "core::starknet::contract_address::ContractAddress" },
19
+ { "name": "amount", "type": "core::integer::u256" }
20
+ ],
21
+ "outputs": [{ "type": "core::bool" }],
22
+ "state_mutability": "external"
23
+ },
24
+ {
25
+ "type": "function",
26
+ "name": "balance_of",
27
+ "inputs": [
28
+ { "name": "account", "type": "core::starknet::contract_address::ContractAddress" }
29
+ ],
30
+ "outputs": [{ "type": "core::integer::u256" }],
31
+ "state_mutability": "view"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "allowance",
36
+ "inputs": [
37
+ { "name": "owner", "type": "core::starknet::contract_address::ContractAddress" },
38
+ { "name": "spender", "type": "core::starknet::contract_address::ContractAddress" }
39
+ ],
40
+ "outputs": [{ "type": "core::integer::u256" }],
41
+ "state_mutability": "view"
42
+ },
43
+ {
44
+ "type": "function",
45
+ "name": "balanceOf",
46
+ "inputs": [
47
+ { "name": "account", "type": "core::starknet::contract_address::ContractAddress" }
48
+ ],
49
+ "outputs": [{ "type": "core::integer::u256" }],
50
+ "state_mutability": "view"
51
+ }
52
+ ]
53
+ }
54
+ ]
@@ -0,0 +1,54 @@
1
+ [
2
+ {
3
+ "type": "struct",
4
+ "name": "core::integer::u256",
5
+ "members": [
6
+ { "name": "low", "type": "core::integer::u128" },
7
+ { "name": "high", "type": "core::integer::u128" }
8
+ ]
9
+ },
10
+ {
11
+ "type": "interface",
12
+ "name": "erc20::IERC20",
13
+ "items": [
14
+ {
15
+ "type": "function",
16
+ "name": "approve",
17
+ "inputs": [
18
+ { "name": "spender", "type": "core::starknet::contract_address::ContractAddress" },
19
+ { "name": "amount", "type": "core::integer::u256" }
20
+ ],
21
+ "outputs": [{ "type": "core::bool" }],
22
+ "state_mutability": "external"
23
+ },
24
+ {
25
+ "type": "function",
26
+ "name": "balance_of",
27
+ "inputs": [
28
+ { "name": "account", "type": "core::starknet::contract_address::ContractAddress" }
29
+ ],
30
+ "outputs": [{ "type": "core::integer::u256" }],
31
+ "state_mutability": "view"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "allowance",
36
+ "inputs": [
37
+ { "name": "owner", "type": "core::starknet::contract_address::ContractAddress" },
38
+ { "name": "spender", "type": "core::starknet::contract_address::ContractAddress" }
39
+ ],
40
+ "outputs": [{ "type": "core::integer::u256" }],
41
+ "state_mutability": "view"
42
+ },
43
+ {
44
+ "type": "function",
45
+ "name": "balanceOf",
46
+ "inputs": [
47
+ { "name": "account", "type": "core::starknet::contract_address::ContractAddress" }
48
+ ],
49
+ "outputs": [{ "type": "core::integer::u256" }],
50
+ "state_mutability": "view"
51
+ }
52
+ ]
53
+ }
54
+ ]
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "type": "enum",
4
+ "name": "core::bool",
5
+ "variants": [
6
+ { "name": "False", "type": "()" },
7
+ { "name": "True", "type": "()" }
8
+ ]
9
+ },
10
+ {
11
+ "type": "struct",
12
+ "name": "core::starknet::account::Call",
13
+ "members": [
14
+ { "name": "to", "type": "core::starknet::contract_address::ContractAddress" },
15
+ { "name": "selector", "type": "core::felt252" },
16
+ { "name": "calldata", "type": "core::array::Array::<core::felt252>" }
17
+ ]
18
+ },
19
+ {
20
+ "type": "struct",
21
+ "name": "core::array::Span::<core::felt252>",
22
+ "members": [
23
+ { "name": "snapshot", "type": "@core::array::Array::<core::felt252>" }
24
+ ]
25
+ },
26
+ {
27
+ "type": "interface",
28
+ "name": "locker::ILockerAccount",
29
+ "items": [
30
+ {
31
+ "type": "function",
32
+ "name": "__execute__",
33
+ "inputs": [
34
+ { "name": "calls", "type": "core::array::Span::<core::starknet::account::Call>" }
35
+ ],
36
+ "outputs": [
37
+ { "type": "core::array::Array::<core::array::Span::<core::felt252>>" }
38
+ ],
39
+ "state_mutability": "external"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "is_unlocked",
44
+ "inputs": [],
45
+ "outputs": [{ "type": "core::bool" }],
46
+ "state_mutability": "view"
47
+ }
48
+ ]
49
+ }
50
+ ]
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "type": "enum",
4
+ "name": "core::bool",
5
+ "variants": [
6
+ { "name": "False", "type": "()" },
7
+ { "name": "True", "type": "()" }
8
+ ]
9
+ },
10
+ {
11
+ "type": "struct",
12
+ "name": "core::starknet::account::Call",
13
+ "members": [
14
+ { "name": "to", "type": "core::starknet::contract_address::ContractAddress" },
15
+ { "name": "selector", "type": "core::felt252" },
16
+ { "name": "calldata", "type": "core::array::Array::<core::felt252>" }
17
+ ]
18
+ },
19
+ {
20
+ "type": "struct",
21
+ "name": "core::array::Span::<core::felt252>",
22
+ "members": [
23
+ { "name": "snapshot", "type": "@core::array::Array::<core::felt252>" }
24
+ ]
25
+ },
26
+ {
27
+ "type": "interface",
28
+ "name": "locker::ILockerAccount",
29
+ "items": [
30
+ {
31
+ "type": "function",
32
+ "name": "__execute__",
33
+ "inputs": [
34
+ { "name": "calls", "type": "core::array::Span::<core::starknet::account::Call>" }
35
+ ],
36
+ "outputs": [
37
+ { "type": "core::array::Array::<core::array::Span::<core::felt252>>" }
38
+ ],
39
+ "state_mutability": "external"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "is_unlocked",
44
+ "inputs": [],
45
+ "outputs": [{ "type": "core::bool" }],
46
+ "state_mutability": "view"
47
+ }
48
+ ]
49
+ }
50
+ ]