New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contract base class and ERC20 class implementations #60
Conversation
…tarknet_getNonce` call
This reverts commit f71d876. Account contract returns next transaction expected nonce.
…sn't have 'get_nonce' selector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very great work!
provider: provider, | ||
signer: signer, | ||
accountAddress: accountAddress, | ||
chainId: StarknetChainId.testNet); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice. I think we could even have factory functions like Account.Testnet
to speed up the setup :)
final erc20 = ERC20(account: account, address: erc20Address); | ||
|
||
Future<Uint256> account_balance(Felt account) async { | ||
final balance = await erc20.balanceOf(account); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woww
#46
In order to add ERC20 class, I have done the following:
felt.dart
totypes
folderuint256.dart
implementation intypes
foldercontract.dart
anderc20.dart
implementations incontract
folder.Please note that only ERC20 view methods are currently implemented