Skip to content

Commit c59a96d

Browse files
Nana-ECquiet-node
andauthored
feat: Resolve IHRC632 and IHRC904 definitions (#1103)
* Resolve IHRC632 and IHRC904 definitons Signed-off-by: Nana Essilfie-Conduah <[email protected]> * Add abi files Signed-off-by: Nana Essilfie-Conduah <[email protected]> * fix: fixed Foundry build Signed-off-by: Logan Nguyen <[email protected]> * Fix test refs Signed-off-by: Nana Essilfie-Conduah <[email protected]> * tweak wallet address name Signed-off-by: Nana Essilfie-Conduah <[email protected]> * fix: fixed IHRC906 Signed-off-by: Logan Nguyen <[email protected]> * Revert "fix: fixed IHRC906" This reverts commit 54bb0e6. Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed cryptoOwner to use IHRC906Facade Signed-off-by: Logan Nguyen <[email protected]> * fix: renamed IHRC906.js to IHRC906Facade.js Signed-off-by: Logan Nguyen <[email protected]> * Add facade specifictions and add exapand README tables Signed-off-by: Nana Essilfie-Conduah <[email protected]> * Fix readme versions Signed-off-by: Nana Essilfie-Conduah <[email protected]> --------- Signed-off-by: Nana Essilfie-Conduah <[email protected]> Signed-off-by: Logan Nguyen <[email protected]> Co-authored-by: Logan Nguyen <[email protected]>
1 parent 364927f commit c59a96d

File tree

27 files changed

+1693
-46
lines changed

27 files changed

+1693
-46
lines changed

contracts-abi/contracts/system-contracts/hedera-account-service/IHRC632.sol/IHRC632.json

+99-12
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,79 @@
33
"inputs": [
44
{
55
"internalType": "address",
6-
"name": "spender",
6+
"name": "accountNumAlias",
77
"type": "address"
88
}
99
],
10-
"name": "hbarAllowance",
10+
"name": "getEvmAddressAlias",
1111
"outputs": [
1212
{
1313
"internalType": "int64",
1414
"name": "responseCode",
1515
"type": "int64"
1616
},
1717
{
18-
"internalType": "int256",
19-
"name": "amount",
20-
"type": "int256"
18+
"internalType": "address",
19+
"name": "evmAddressAlias",
20+
"type": "address"
21+
}
22+
],
23+
"stateMutability": "nonpayable",
24+
"type": "function"
25+
},
26+
{
27+
"inputs": [
28+
{
29+
"internalType": "address",
30+
"name": "evmAddressAlias",
31+
"type": "address"
32+
}
33+
],
34+
"name": "getHederaAccountNumAlias",
35+
"outputs": [
36+
{
37+
"internalType": "int64",
38+
"name": "responseCode",
39+
"type": "int64"
40+
},
41+
{
42+
"internalType": "address",
43+
"name": "accountNumAlias",
44+
"type": "address"
45+
}
46+
],
47+
"stateMutability": "nonpayable",
48+
"type": "function"
49+
},
50+
{
51+
"inputs": [
52+
{
53+
"internalType": "address",
54+
"name": "account",
55+
"type": "address"
56+
},
57+
{
58+
"internalType": "bytes",
59+
"name": "message",
60+
"type": "bytes"
61+
},
62+
{
63+
"internalType": "bytes",
64+
"name": "signature",
65+
"type": "bytes"
66+
}
67+
],
68+
"name": "isAuthorized",
69+
"outputs": [
70+
{
71+
"internalType": "int64",
72+
"name": "responseCode",
73+
"type": "int64"
74+
},
75+
{
76+
"internalType": "bool",
77+
"name": "authorized",
78+
"type": "bool"
2179
}
2280
],
2381
"stateMutability": "nonpayable",
@@ -27,21 +85,50 @@
2785
"inputs": [
2886
{
2987
"internalType": "address",
30-
"name": "spender",
88+
"name": "account",
3189
"type": "address"
3290
},
3391
{
34-
"internalType": "int256",
35-
"name": "amount",
36-
"type": "int256"
92+
"internalType": "bytes",
93+
"name": "messageHash",
94+
"type": "bytes"
95+
},
96+
{
97+
"internalType": "bytes",
98+
"name": "signature",
99+
"type": "bytes"
37100
}
38101
],
39-
"name": "hbarApprove",
102+
"name": "isAuthorizedRaw",
40103
"outputs": [
41104
{
42-
"internalType": "uint256",
105+
"internalType": "int64",
43106
"name": "responseCode",
44-
"type": "uint256"
107+
"type": "int64"
108+
},
109+
{
110+
"internalType": "bool",
111+
"name": "authorized",
112+
"type": "bool"
113+
}
114+
],
115+
"stateMutability": "nonpayable",
116+
"type": "function"
117+
},
118+
{
119+
"inputs": [
120+
{
121+
"internalType": "address",
122+
"name": "addr",
123+
"type": "address"
124+
}
125+
],
126+
"name": "isValidAlias",
127+
"outputs": [
128+
{
129+
"internalType": "bool",
130+
"name": "response",
131+
"type": "bool"
45132
}
46133
],
47134
"stateMutability": "nonpayable",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "bool",
6+
"name": "enableAutoAssociations",
7+
"type": "bool"
8+
}
9+
],
10+
"name": "setUnlimitedAutomaticAssociations",
11+
"outputs": [
12+
{
13+
"internalType": "int64",
14+
"name": "responseCode",
15+
"type": "int64"
16+
}
17+
],
18+
"stateMutability": "nonpayable",
19+
"type": "function"
20+
}
21+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "owner",
7+
"type": "address"
8+
},
9+
{
10+
"internalType": "address",
11+
"name": "spender",
12+
"type": "address"
13+
}
14+
],
15+
"name": "hbarAllowance",
16+
"outputs": [
17+
{
18+
"internalType": "int64",
19+
"name": "responseCode",
20+
"type": "int64"
21+
},
22+
{
23+
"internalType": "int256",
24+
"name": "amount",
25+
"type": "int256"
26+
}
27+
],
28+
"stateMutability": "nonpayable",
29+
"type": "function"
30+
},
31+
{
32+
"inputs": [
33+
{
34+
"internalType": "address",
35+
"name": "owner",
36+
"type": "address"
37+
},
38+
{
39+
"internalType": "address",
40+
"name": "spender",
41+
"type": "address"
42+
},
43+
{
44+
"internalType": "int256",
45+
"name": "amount",
46+
"type": "int256"
47+
}
48+
],
49+
"name": "hbarApprove",
50+
"outputs": [
51+
{
52+
"internalType": "int64",
53+
"name": "responseCode",
54+
"type": "int64"
55+
}
56+
],
57+
"stateMutability": "nonpayable",
58+
"type": "function"
59+
}
60+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "spender",
7+
"type": "address"
8+
}
9+
],
10+
"name": "hbarAllowance",
11+
"outputs": [
12+
{
13+
"internalType": "int64",
14+
"name": "responseCode",
15+
"type": "int64"
16+
},
17+
{
18+
"internalType": "int256",
19+
"name": "amount",
20+
"type": "int256"
21+
}
22+
],
23+
"stateMutability": "nonpayable",
24+
"type": "function"
25+
},
26+
{
27+
"inputs": [
28+
{
29+
"internalType": "address",
30+
"name": "spender",
31+
"type": "address"
32+
},
33+
{
34+
"internalType": "int256",
35+
"name": "amount",
36+
"type": "int256"
37+
}
38+
],
39+
"name": "hbarApprove",
40+
"outputs": [
41+
{
42+
"internalType": "int64",
43+
"name": "responseCode",
44+
"type": "int64"
45+
}
46+
],
47+
"stateMutability": "nonpayable",
48+
"type": "function"
49+
}
50+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "spender",
7+
"type": "address"
8+
}
9+
],
10+
"name": "hbarAllowance",
11+
"outputs": [
12+
{
13+
"internalType": "int64",
14+
"name": "responseCode",
15+
"type": "int64"
16+
},
17+
{
18+
"internalType": "int256",
19+
"name": "amount",
20+
"type": "int256"
21+
}
22+
],
23+
"stateMutability": "nonpayable",
24+
"type": "function"
25+
},
26+
{
27+
"inputs": [
28+
{
29+
"internalType": "address",
30+
"name": "spender",
31+
"type": "address"
32+
},
33+
{
34+
"internalType": "int256",
35+
"name": "amount",
36+
"type": "int256"
37+
}
38+
],
39+
"name": "hbarApprove",
40+
"outputs": [
41+
{
42+
"internalType": "int64",
43+
"name": "responseCode",
44+
"type": "int64"
45+
}
46+
],
47+
"stateMutability": "nonpayable",
48+
"type": "function"
49+
}
50+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "spender",
7+
"type": "address"
8+
}
9+
],
10+
"name": "hbarAllowance",
11+
"outputs": [
12+
{
13+
"internalType": "int64",
14+
"name": "responseCode",
15+
"type": "int64"
16+
},
17+
{
18+
"internalType": "int256",
19+
"name": "amount",
20+
"type": "int256"
21+
}
22+
],
23+
"stateMutability": "nonpayable",
24+
"type": "function"
25+
},
26+
{
27+
"inputs": [
28+
{
29+
"internalType": "address",
30+
"name": "spender",
31+
"type": "address"
32+
},
33+
{
34+
"internalType": "int256",
35+
"name": "amount",
36+
"type": "int256"
37+
}
38+
],
39+
"name": "hbarApprove",
40+
"outputs": [
41+
{
42+
"internalType": "int64",
43+
"name": "responseCode",
44+
"type": "int64"
45+
}
46+
],
47+
"stateMutability": "nonpayable",
48+
"type": "function"
49+
}
50+
]

0 commit comments

Comments
 (0)