diff --git a/Scarb.lock b/Scarb.lock index 8cea8d6..d21133c 100644 --- a/Scarb.lock +++ b/Scarb.lock @@ -6,6 +6,59 @@ name = "cubit" version = "1.3.0" source = "git+https://github.com/bal7hazar/cubit?branch=cairo-2.8.4#6bce623d5c735c097be47a4045c0e0432bad38e7" +[[package]] +name = "openzeppelin_access" +version = "0.17.0" +source = "registry+https://scarbs.xyz/" +checksum = "sha256:541bb8fdf1ad17fe0d275b00acb9f0d7f56ea5534741e21535ac3fda2c600281" +dependencies = [ + "openzeppelin_introspection", + "openzeppelin_utils", +] + +[[package]] +name = "openzeppelin_account" +version = "0.17.0" +source = "registry+https://scarbs.xyz/" +checksum = "sha256:c4e11609fdd1f4c3d3004cd1468711bd2ea664739c9e59a4b270567fe4c23ee3" +dependencies = [ + "openzeppelin_introspection", + "openzeppelin_utils", +] + +[[package]] +name = "openzeppelin_governance" +version = "0.17.0" +source = "registry+https://scarbs.xyz/" +checksum = "sha256:b7e0142d88d69a8c367aea8c9dc7f659f27372551efc23f39a0cf71a189c1302" +dependencies = [ + "openzeppelin_access", + "openzeppelin_introspection", +] + +[[package]] +name = "openzeppelin_introspection" +version = "0.17.0" +source = "registry+https://scarbs.xyz/" +checksum = "sha256:892433a4a1ea0fc9cf7cdb01e06ddc2782182abcc188e4ea5dd480906d006cf8" + +[[package]] +name = "openzeppelin_token" +version = "0.17.0" +source = "registry+https://scarbs.xyz/" +checksum = "sha256:77997a7e217b69674c34b402dc0c7b2210540db66a56087572679c31896eaabb" +dependencies = [ + "openzeppelin_account", + "openzeppelin_governance", + "openzeppelin_introspection", +] + +[[package]] +name = "openzeppelin_utils" +version = "0.17.0" +source = "registry+https://scarbs.xyz/" +checksum = "sha256:36d93e353f42fd6b824abcd8b4b51c3f5d02c893c5f886ae81403b0368aa5fde" + [[package]] name = "origami_algebra" version = "1.0.0-rc.2" @@ -35,3 +88,20 @@ version = "1.0.0-rc.2" [[package]] name = "origami_security" version = "1.0.0-rc.2" + +[[package]] +name = "origami_token_bound_accounts" +version = "1.0.0-rc.2" +dependencies = [ + "token_bound_accounts", +] + +[[package]] +name = "token_bound_accounts" +version = "0.3.1" +source = "registry+https://scarbs.xyz/" +checksum = "sha256:75e6ce74837d9d3199a1ce22cefcf464995ebeb3c86595eb9147b00a0c20e890" +dependencies = [ + "openzeppelin_introspection", + "openzeppelin_token", +] diff --git a/Scarb.toml b/Scarb.toml index bd24873..e76f1ae 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -6,6 +6,7 @@ members = [ "crates/random", "crates/rating", "crates/security", + "crates/tba", ] [workspace.package] diff --git a/crates/tba/Scarb.toml b/crates/tba/Scarb.toml new file mode 100644 index 0000000..935c44f --- /dev/null +++ b/crates/tba/Scarb.toml @@ -0,0 +1,17 @@ +[package] +name = "origami_token_bound_accounts" +version.workspace = true +description = "A port of ERC6551 to Starknet (SNIP-14)" +homepage = "https//www.tbaexplorer.com/" +edition = "2024_07" + +[dependencies] +token_bound_accounts = "0.3.1" + + + +# name = "token_bound_accounts" +# version.workspace = true +# description = "A port of ERC6551 to Starknet (SNIP-14)" +# homepage = "https://www.tbaexplorer.com/" +# edition = "2024_07" \ No newline at end of file diff --git a/crates/tba/src/lib.cairo b/crates/tba/src/lib.cairo new file mode 100644 index 0000000..e0cb760 --- /dev/null +++ b/crates/tba/src/lib.cairo @@ -0,0 +1 @@ +pub use token_bound_accounts::{registry, interfaces, accountV3, test_helper, components, utils}; diff --git a/scripts/build-all.sh b/scripts/build-all.sh index 7dc5423..ab09634 100755 --- a/scripts/build-all.sh +++ b/scripts/build-all.sh @@ -5,6 +5,7 @@ scarb --manifest-path crates/map/Scarb.toml build scarb --manifest-path crates/random/Scarb.toml build scarb --manifest-path crates/rating/Scarb.toml build scarb --manifest-path crates/security/Scarb.toml build +scarb --manifest-path crates/tba/Scarb.toml build # Sozo dependent crates. sozo build --package "origami_token"