-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from shramee/workspace
rewrite packages as workspace
- Loading branch information
Showing
131 changed files
with
11,403 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ src/fields/fq_6_torus.cairo | |
profile.pb.gz | ||
/bn_contracts | ||
scripts/__pycache__ | ||
miller_steps.py |
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 |
---|---|---|
@@ -1,26 +1,33 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"bn_contracts", | ||
"packages/*", | ||
"legacy/*", | ||
] | ||
|
||
[package] | ||
name = "bn" | ||
[workspace.package] | ||
version = "0.1.0" | ||
cairo-version = "2.6.2" | ||
|
||
[workspace.dependencies] | ||
# cairo_test = "2.7.0-rc.0" | ||
|
||
[package] | ||
name = "cairo_pairing" # the name of the package | ||
version = "0.1.0" # the current version, obeying semver | ||
|
||
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html | ||
|
||
[scripts] | ||
new = "scarb new --no-vcs" | ||
addchain_gen_t = "addchain gen -tmpl addchain/tpl addchain/t" | ||
contracts = "scarb build -p bn_contracts" | ||
# Declares class for the contract | ||
ktn_declare = "starkli declare target/dev/bn_contracts_BN_Pairing.contract_class.json --account katana --rpc=http://localhost:5050" | ||
ktn_declare = "starkli declare target/dev/bn254_u256_contract_BN_Pairing.contract_class.json" | ||
# Deploys the contract for input classhash | ||
ktn_deploy = "starkli deploy $1 --account katana --rpc=http://localhost:5050" | ||
ktn_deploy = "starkli deploy --account katana --rpc=http://localhost:5050" | ||
# Invokes final_exponentiation_bench on input contract address | ||
ktn_expo = "starkli invoke $1 final_exponentiation_bench --account katana --rpc=http://localhost:5050" | ||
ktn_expo = "starkli invoke final_exponentiation_bench --account katana --rpc=http://localhost:5050" | ||
# Invokes miller_bench on input contract address | ||
ktn_miller = "starkli invoke $1 miller_bench --account katana --rpc=http://localhost:5050" | ||
ktn_miller = "starkli invoke miller_bench --account katana --rpc=http://localhost:5050" | ||
# Invokes pairing_bench on input contract address | ||
ktn_pair = "starkli invoke $1 pairing_bench --account katana --rpc=http://localhost:5050" | ||
ktn_pair = "starkli invoke pairing_bench --account katana --rpc=http://localhost:5050" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
[package] | ||
name = "bn_contracts" | ||
version = "0.1.0" | ||
edition = "2023_11" | ||
version.workspace = true | ||
|
||
[dependencies] | ||
bn = { path = ".." } | ||
bn = { path = "../bn_legacy" } | ||
starknet = "2.5.0" | ||
|
||
[[target.starknet-contract]] |
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.