Add a script to declare standard ArgentX account contract classes #1579
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relies on #1610
Related to #1328
Add a declare script using
starkli
for declaring standard ArgentX account contract, both0.3.0
and0.3.1
are supported.Usage
Go to the
/scripts
directory:cd crates/katana/scripts
Run the script
./declare-argent-account.sh <ACCOUNT_ADDRESS> <PRIVATE_KEY> <RPC_URL>
The command above will declare both
0.3.0
and0.3.1
Argent account classes. If you want to declare a specific version, you can specify the exact class hash of the Argent account class:./declare-argent-account.sh 0x1 0x2 http://localhost:5050 0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003
0.3.0
0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003
(0.3.0)https://github.com/argentlabs/argent-contracts-starknet/blob/account-0.3.0/contracts/account/src/argent_account.cairo
https://voyager.online/class/0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003
0.3.1
0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b
(0.3.1)https://github.com/argentlabs/argent-contracts-starknet/blob/account-0.3.1/src/account/argent_account.cairo
https://voyager.online/class/0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b