This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add async deps * update funcs to async * adjust run_cmd, add helper funcs * adjust methods to async * adjust nre to async * fix formatting * replace arg object, fix nre and output * fix formatting * add rstrip to capture * async get-nonce * remove comments * fix formatting * add event loop * update tests without subprocess * update cli tests with asyncclick * adjust tests to async * add set_args func * simplify context with set_args * remove subprocess, add set_args * add tests for common funcs * async debug, remove subprocess * fix test * bump cairo-lang * fix conflicts * fix conflicts * fix account test conflicts * add sign_deployment * bump tox version * update account tests to async * update debug test to async * update get_accounts to async * start test refactor * add async to nre snippets * add language to code block * fix url tests * fix tests * fix formatting * fix get_gateway handling * remove redundant mock * fix formatting * remove unused func * fix linter * bump devnet (to support depploy_account) * bump devnet (to support depploy_account) * clean up test * fix network handling * fix tx_status calls * add account.deploy with __validate_deploy__ * support mainnet token * add call_cli func * abstract command args * fix tests with call_cli * fix tests with call_cli * fix formatting * remove unnecessary hex * remove async from simulate methods * remove unnecessary int conversion * add comment regarding AsyncObject in Account * handle async logging * fix formatting * refactor _process_arguments * fix formatting * test account.deploy * test deploy_account * fix linting * add salt and max_fee to Account constructor * fix linting * fix _process_arguments * fix test * fix tx output and error handling * fix formatting * add starknet_cli module * improve command_args handling * fix sender param * fix docstring formatting * add starknet_cli tests * fix status test * move tests to starknet_cli * update patch location * test args in execute_call * add comments * remove comments * fix conflicts. address review comments * fix linting * fix merge * add gateway response tests * update account artifacts w/vali_deploy * add get_balance and conterfactual_address * fix tests and implementations * fix linting * fix tests * add README * fix typo * Update README.md Co-authored-by: Eric Nordelo <[email protected]> * Update src/nile/signer.py Co-authored-by: Andrew Fleming <[email protected]> * apply review comments * fix linting * fix linting * fix linting * test get_balance, fix circular depedency * fix linting * improve get-balance logging * fix tests * fix linting * fix tests * fix tests * fix linting * apply review suggestions * fix linting Co-authored-by: Andrew <[email protected]> Co-authored-by: Eric Nordelo <[email protected]>
- Loading branch information
1 parent
6fee778
commit b81dce8
Showing
21 changed files
with
4,421 additions
and
1,954 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,274 @@ | ||
[ | ||
{ | ||
"members": [ | ||
{ | ||
"name": "low", | ||
"offset": 0, | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "high", | ||
"offset": 1, | ||
"type": "felt" | ||
} | ||
], | ||
"name": "Uint256", | ||
"size": 2, | ||
"type": "struct" | ||
}, | ||
{ | ||
"data": [ | ||
{ | ||
"name": "from_", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "to", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "value", | ||
"type": "Uint256" | ||
} | ||
], | ||
"keys": [], | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"data": [ | ||
{ | ||
"name": "owner", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "spender", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "value", | ||
"type": "Uint256" | ||
} | ||
], | ||
"keys": [], | ||
"name": "Approval", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "name", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "symbol", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "decimals", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "initial_supply", | ||
"type": "Uint256" | ||
}, | ||
{ | ||
"name": "recipient", | ||
"type": "felt" | ||
} | ||
], | ||
"name": "constructor", | ||
"outputs": [], | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [ | ||
{ | ||
"name": "name", | ||
"type": "felt" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "symbol", | ||
"outputs": [ | ||
{ | ||
"name": "symbol", | ||
"type": "felt" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"outputs": [ | ||
{ | ||
"name": "totalSupply", | ||
"type": "Uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "decimals", | ||
"outputs": [ | ||
{ | ||
"name": "decimals", | ||
"type": "felt" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "account", | ||
"type": "felt" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{ | ||
"name": "balance", | ||
"type": "Uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "owner", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "spender", | ||
"type": "felt" | ||
} | ||
], | ||
"name": "allowance", | ||
"outputs": [ | ||
{ | ||
"name": "remaining", | ||
"type": "Uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "recipient", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "amount", | ||
"type": "Uint256" | ||
} | ||
], | ||
"name": "transfer", | ||
"outputs": [ | ||
{ | ||
"name": "success", | ||
"type": "felt" | ||
} | ||
], | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "sender", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "recipient", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "amount", | ||
"type": "Uint256" | ||
} | ||
], | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{ | ||
"name": "success", | ||
"type": "felt" | ||
} | ||
], | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "spender", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "amount", | ||
"type": "Uint256" | ||
} | ||
], | ||
"name": "approve", | ||
"outputs": [ | ||
{ | ||
"name": "success", | ||
"type": "felt" | ||
} | ||
], | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "spender", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "added_value", | ||
"type": "Uint256" | ||
} | ||
], | ||
"name": "increaseAllowance", | ||
"outputs": [ | ||
{ | ||
"name": "success", | ||
"type": "felt" | ||
} | ||
], | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "spender", | ||
"type": "felt" | ||
}, | ||
{ | ||
"name": "subtracted_value", | ||
"type": "Uint256" | ||
} | ||
], | ||
"name": "decreaseAllowance", | ||
"outputs": [ | ||
{ | ||
"name": "success", | ||
"type": "felt" | ||
} | ||
], | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.