-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to Ethers.js v5
- Loading branch information
Showing
14 changed files
with
680 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
export const TOKEN_METADATA_ABI = [ | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: 'name', | ||
outputs: [ | ||
{ | ||
name: '', | ||
type: 'string' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: 'symbol', | ||
outputs: [ | ||
{ | ||
name: '', | ||
type: 'string' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: 'decimals', | ||
outputs: [ | ||
{ | ||
name: '', | ||
type: 'uint8' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
} | ||
]; | ||
|
||
export const ALT_TOKEN_METADATA_ABI = [ | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: 'name', | ||
outputs: [ | ||
{ | ||
name: '', | ||
type: 'bytes32' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: 'symbol', | ||
outputs: [ | ||
{ | ||
name: '', | ||
type: 'bytes32' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: 'decimals', | ||
outputs: [ | ||
{ | ||
name: '', | ||
type: 'uint8' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
} | ||
]; | ||
|
||
export const BALANCE_SCANNER_ABI = [ | ||
{ | ||
constant: true, | ||
inputs: [ | ||
{ | ||
name: 'addresses', | ||
type: 'address[]' | ||
}, | ||
{ | ||
name: 'token', | ||
type: 'address' | ||
} | ||
], | ||
name: 'tokenBalances', | ||
outputs: [ | ||
{ | ||
name: 'balances', | ||
type: 'uint256[]' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [ | ||
{ | ||
name: 'addresses', | ||
type: 'address[]' | ||
} | ||
], | ||
name: 'etherBalances', | ||
outputs: [ | ||
{ | ||
name: 'balances', | ||
type: 'uint256[]' | ||
} | ||
], | ||
payable: false, | ||
stateMutability: 'view', | ||
type: 'function' | ||
}, | ||
{ | ||
payable: true, | ||
stateMutability: 'payable', | ||
type: 'fallback' | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './abi'; | ||
export * from './constants'; | ||
export * from './derivation-paths'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.