feat: transfer everything out of the gift wallet (#456)

* feat: transfer everything out of the gift wallet

* refactor: extract bzz token address into variable
This commit is contained in:
Vojtech Simetka
2022-06-29 22:32:16 +02:00
committed by GitHub
parent fb8775d0a7
commit 7225c5ca11
4 changed files with 69 additions and 57 deletions
+45
View File
@@ -0,0 +1,45 @@
export const BZZ_TOKEN_ADDRESS = '0xdBF3Ea6F5beE45c02255B2c26a16F300502F68da'
export const bzzABI = [
{
type: 'function',
stateMutability: 'view',
payable: false,
outputs: [
{
type: 'uint256',
name: '',
},
],
name: 'balanceOf',
inputs: [
{
type: 'address',
name: '_owner',
},
],
constant: true,
},
{
type: 'function',
stateMutability: 'nonpayable',
payable: false,
outputs: [
{
type: 'bool',
name: '',
},
],
name: 'transfer',
inputs: [
{
type: 'address',
name: '_to',
},
{
type: 'uint256',
name: '_value',
},
],
constant: false,
},
]