Skip to content

Commit a26bf19

Browse files
authored
Merge pull request #923 from Sifchain/realitySpiral/coinbaseReadInvokeSmartContracts
feat: add readContract / invokeContract functionality to Coinbase plugin
2 parents 051323f + fbb5f0a commit a26bf19

File tree

4 files changed

+463
-251
lines changed

4 files changed

+463
-251
lines changed
+224
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
export const ABI = [
2+
{
3+
inputs: [],
4+
name: "name",
5+
outputs: [
6+
{
7+
name: "",
8+
type: "string",
9+
internalType: "string"
10+
}
11+
],
12+
stateMutability: "view",
13+
type: "function"
14+
},
15+
{
16+
inputs: [
17+
{
18+
name: "spender",
19+
type: "address",
20+
internalType: "address"
21+
},
22+
{
23+
name: "amount",
24+
type: "uint256",
25+
internalType: "uint256"
26+
}
27+
],
28+
name: "approve",
29+
outputs: [
30+
{
31+
name: "",
32+
type: "bool",
33+
internalType: "bool"
34+
}
35+
],
36+
stateMutability: "nonpayable",
37+
type: "function"
38+
},
39+
{
40+
inputs: [],
41+
name: "totalSupply",
42+
outputs: [
43+
{
44+
name: "",
45+
type: "uint256",
46+
internalType: "uint256"
47+
}
48+
],
49+
stateMutability: "view",
50+
type: "function"
51+
},
52+
{
53+
inputs: [
54+
{
55+
name: "from",
56+
type: "address",
57+
internalType: "address"
58+
},
59+
{
60+
name: "to",
61+
type: "address",
62+
internalType: "address"
63+
},
64+
{
65+
name: "amount",
66+
type: "uint256",
67+
internalType: "uint256"
68+
}
69+
],
70+
name: "transferFrom",
71+
outputs: [
72+
{
73+
name: "",
74+
type: "bool",
75+
internalType: "bool"
76+
}
77+
],
78+
stateMutability: "nonpayable",
79+
type: "function"
80+
},
81+
{
82+
inputs: [],
83+
name: "decimals",
84+
outputs: [
85+
{
86+
name: "",
87+
type: "uint8",
88+
internalType: "uint8"
89+
}
90+
],
91+
stateMutability: "view",
92+
type: "function"
93+
},
94+
{
95+
inputs: [
96+
{
97+
name: "account",
98+
type: "address",
99+
internalType: "address"
100+
}
101+
],
102+
name: "balanceOf",
103+
outputs: [
104+
{
105+
name: "",
106+
type: "uint256",
107+
internalType: "uint256"
108+
}
109+
],
110+
stateMutability: "view",
111+
type: "function"
112+
},
113+
{
114+
inputs: [],
115+
name: "symbol",
116+
outputs: [
117+
{
118+
name: "",
119+
type: "string",
120+
internalType: "string"
121+
}
122+
],
123+
stateMutability: "view",
124+
type: "function"
125+
},
126+
{
127+
inputs: [
128+
{
129+
name: "to",
130+
type: "address",
131+
internalType: "address"
132+
},
133+
{
134+
name: "amount",
135+
type: "uint256",
136+
internalType: "uint256"
137+
}
138+
],
139+
name: "transfer",
140+
outputs: [
141+
{
142+
name: "",
143+
type: "bool",
144+
internalType: "bool"
145+
}
146+
],
147+
stateMutability: "nonpayable",
148+
type: "function"
149+
},
150+
{
151+
inputs: [
152+
{
153+
name: "owner",
154+
type: "address",
155+
internalType: "address"
156+
},
157+
{
158+
name: "spender",
159+
type: "address",
160+
internalType: "address"
161+
}
162+
],
163+
name: "allowance",
164+
outputs: [
165+
{
166+
name: "",
167+
type: "uint256",
168+
internalType: "uint256"
169+
}
170+
],
171+
stateMutability: "view",
172+
type: "function"
173+
},
174+
{
175+
inputs: [
176+
{
177+
indexed: true,
178+
name: "owner",
179+
type: "address",
180+
internalType: "address"
181+
},
182+
{
183+
indexed: true,
184+
name: "spender",
185+
type: "address",
186+
internalType: "address"
187+
},
188+
{
189+
indexed: false,
190+
name: "value",
191+
type: "uint256",
192+
internalType: "uint256"
193+
}
194+
],
195+
name: "Approval",
196+
type: "event",
197+
anonymous: false
198+
},
199+
{
200+
inputs: [
201+
{
202+
indexed: true,
203+
name: "from",
204+
type: "address",
205+
internalType: "address"
206+
},
207+
{
208+
indexed: true,
209+
name: "to",
210+
type: "address",
211+
internalType: "address"
212+
},
213+
{
214+
indexed: false,
215+
name: "value",
216+
type: "uint256",
217+
internalType: "uint256"
218+
}
219+
],
220+
name: "Transfer",
221+
type: "event",
222+
anonymous: false
223+
}
224+
];

0 commit comments

Comments
 (0)