From bfed89962850e258589f530d5ccb943b48d63ce2 Mon Sep 17 00:00:00 2001 From: Dominik | Supercolony <43150707+coreggon11@users.noreply.github.com> Date: Tue, 27 Dec 2022 14:34:04 +0100 Subject: [PATCH] update docs --- Cargo.toml | 8 +-- README.md | 22 +++--- contracts/Cargo.toml | 8 +-- docs/docs/deployment.md | 2 +- .../PSP22-Pallet/Extensions/burnable.md | 2 +- .../PSP22-Pallet/Extensions/metadata.md | 2 +- .../PSP22-Pallet/Extensions/mintable.md | 2 +- .../PSP22-Pallet/psp22-pallet.md | 4 +- .../PSP22/Extensions/burnable.md | 4 +- .../PSP22/Extensions/capped.md | 4 +- .../PSP22/Extensions/flashmint.md | 4 +- .../PSP22/Extensions/metadata.md | 4 +- .../PSP22/Extensions/mintable.md | 4 +- .../PSP22/Extensions/pausable.md | 4 +- .../PSP22/Extensions/wrapper.md | 4 +- .../PSP22/Utils/token-timelock.md | 4 +- docs/docs/smart-contracts/PSP22/psp22.md | 4 +- .../PSP34/Extensions/burnable.md | 4 +- .../PSP34/Extensions/enumerable.md | 4 +- .../PSP34/Extensions/metadata.md | 4 +- .../PSP34/Extensions/mintable.md | 4 +- docs/docs/smart-contracts/PSP34/psp34.md | 4 +- .../smart-contracts/PSP37/Extensions/batch.md | 4 +- .../PSP37/Extensions/burnable.md | 4 +- .../PSP37/Extensions/enumerable.md | 4 +- .../PSP37/Extensions/metadata.md | 4 +- .../PSP37/Extensions/mintable.md | 4 +- docs/docs/smart-contracts/PSP37/psp37.md | 4 +- .../access-control/Extensions/enumerable.md | 4 +- .../access-control/access-control.md | 4 +- .../diamond/Extensions/loupe.md | 4 +- docs/docs/smart-contracts/diamond/diamond.md | 8 ++- docs/docs/smart-contracts/example/contract.md | 8 +-- .../smart-contracts/example/implementation.md | 6 +- docs/docs/smart-contracts/example/impls.md | 6 +- docs/docs/smart-contracts/overview.md | 71 +++++++------------ docs/docs/smart-contracts/ownable.md | 4 +- docs/docs/smart-contracts/pausable.md | 4 +- docs/docs/smart-contracts/payment-splitter.md | 4 +- docs/docs/smart-contracts/proxy.md | 8 ++- .../smart-contracts/timelock-controller.md | 4 +- docs/docs/smart-contracts/upgradeable.md | 28 +++----- docs/docusaurus.config.js | 8 +-- example_project_structure/Cargo.toml | 2 +- .../contracts/lending/Cargo.toml | 2 +- .../contracts/loan/Cargo.toml | 2 +- .../contracts/shares/Cargo.toml | 2 +- .../contracts/stable_coin/Cargo.toml | 2 +- examples/access_control/Cargo.toml | 2 +- examples/access_control/README.md | 2 +- .../enumerable/Cargo.toml | 2 +- examples/alternatives/diamond/ink/Cargo.toml | 2 +- examples/alternatives/diamond/rust/Cargo.toml | 2 +- examples/diamond/Cargo.toml | 2 +- examples/diamond/diamond_caller/Cargo.toml | 2 +- examples/diamond/psp22_facet_v1/Cargo.toml | 2 +- examples/diamond/psp22_facet_v2/Cargo.toml | 2 +- .../diamond/psp22_metadata_facet/Cargo.toml | 2 +- examples/ownable/Cargo.toml | 2 +- examples/ownable/README.md | 2 +- examples/pausable/Cargo.toml | 2 +- examples/pausable/README.md | 2 +- examples/payment_splitter/Cargo.toml | 2 +- examples/payment_splitter/README.md | 2 +- examples/proxy/Cargo.toml | 2 +- .../psp22_metadata_upgradeable/Cargo.toml | 2 +- examples/proxy/psp22_upgradeable/Cargo.toml | 2 +- examples/psp22/Cargo.toml | 2 +- examples/psp22/README.md | 2 +- examples/psp22_extensions/burnable/Cargo.toml | 2 +- examples/psp22_extensions/burnable/README.md | 2 +- examples/psp22_extensions/capped/Cargo.toml | 2 +- examples/psp22_extensions/capped/README.md | 2 +- .../psp22_extensions/flashmint/Cargo.toml | 2 +- examples/psp22_extensions/flashmint/README.md | 2 +- examples/psp22_extensions/metadata/Cargo.toml | 2 +- examples/psp22_extensions/metadata/README.md | 2 +- examples/psp22_extensions/mintable/Cargo.toml | 2 +- examples/psp22_extensions/mintable/README.md | 2 +- examples/psp22_extensions/pausable/Cargo.toml | 2 +- examples/psp22_extensions/wrapper/Cargo.toml | 2 +- examples/psp22_extensions/wrapper/README.md | 2 +- examples/psp22_pallet/Cargo.toml | 2 +- examples/psp22_pallet/README.md | 4 +- .../burnable/Cargo.toml | 2 +- .../burnable/README.md | 2 +- .../metadata/Cargo.toml | 2 +- .../metadata/README.md | 2 +- .../mintable/Cargo.toml | 2 +- .../mintable/README.md | 2 +- .../psp22_utils/token_timelock/Cargo.toml | 2 +- examples/psp22_utils/token_timelock/README.md | 2 +- examples/psp34/Cargo.toml | 2 +- examples/psp34/README.md | 2 +- examples/psp34_extensions/burnable/Cargo.toml | 2 +- examples/psp34_extensions/burnable/README.md | 2 +- .../psp34_extensions/enumerable/Cargo.toml | 2 +- .../psp34_extensions/enumerable/README.md | 2 +- examples/psp34_extensions/metadata/Cargo.toml | 2 +- examples/psp34_extensions/metadata/README.md | 2 +- examples/psp34_extensions/mintable/Cargo.toml | 2 +- examples/psp34_extensions/mintable/README.md | 2 +- examples/psp37/Cargo.toml | 2 +- examples/psp37/README.md | 2 +- examples/psp37_extensions/batch/Cargo.toml | 2 +- examples/psp37_extensions/batch/README.md | 2 +- examples/psp37_extensions/burnable/Cargo.toml | 2 +- examples/psp37_extensions/burnable/README.md | 2 +- .../psp37_extensions/enumerable/Cargo.toml | 2 +- .../psp37_extensions/enumerable/README.md | 2 +- examples/psp37_extensions/metadata/Cargo.toml | 2 +- examples/psp37_extensions/metadata/README.md | 2 +- examples/psp37_extensions/mintable/Cargo.toml | 2 +- examples/psp37_extensions/mintable/README.md | 2 +- examples/reentrancy_guard/Cargo.toml | 2 +- examples/reentrancy_guard/README.md | 2 +- .../contracts/flip_on_me/Cargo.toml | 2 +- .../contracts/flipper/Cargo.toml | 2 +- examples/timelock_controller/Cargo.toml | 2 +- examples/timelock_controller/README.md | 2 +- lang/Cargo.toml | 8 +-- lang/codegen/Cargo.toml | 8 +-- lang/macro/Cargo.toml | 8 +-- mock/flash-borrower/Cargo.toml | 2 +- mock/psp22-receiver/Cargo.toml | 2 +- mock/psp34-receiver/Cargo.toml | 2 +- mock/psp37-receiver/Cargo.toml | 2 +- tests/e2e/psp37/extensions/metadata.tests.ts | 4 +- 128 files changed, 239 insertions(+), 254 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6fd3c8839..9c211f6ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,16 +13,16 @@ exclude = [ [package] name = "openbrush" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2018" license = "MIT" readme = "README.md" -repository = "https://github.com/Supercolony-net/openbrush-contracts" +repository = "https://github.com/727-Ventures/openbrush-contracts" documentation = "https://docs.openbrush.io" -homepage = "https://supercolony.net" +homepage = "https://727.ventures" description = "OpenBrush library for smart contract development on ink!." -keywords = ["wasm", "supercolony", "smart-contracts", "blockchain", "ink"] +keywords = ["wasm", "brushfam", "smart-contracts", "blockchain", "ink"] categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs"] diff --git a/README.md b/README.md index 7596ad9e1..8816866d1 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@

-[![Docs](https://img.shields.io/badge/docs-%F0%9F%93%84-blue)](https://supercolony-net.github.io/openbrush-contracts) +[![Docs](https://img.shields.io/badge/docs-%F0%9F%93%84-blue)](https://727-Ventures.github.io/openbrush-contracts) [![telegram chat](https://img.shields.io/badge/Telegram-blue.svg?style=flat-square)](https://t.me/openbrush) [![element chat](https://img.shields.io/badge/Element-green.svg?style=flat-square)](https://matrix.to/#/!utTuYglskDvqRRMQta:matrix.org?via=matrix.org&via=t2bot.io&via=matrix.parity.io) [![discord chat](https://img.shields.io/badge/Discord-purple.svg?style=flat-square)](https://discord.gg/ZGdpEwFrJ8) -OpenBrush was created by [Supercolony](supercolony.net) to make ink! development faster, safer and easier. We plan to integrate most of the features +OpenBrush was created by [Brushfam](727.ventures) to make ink! development faster, safer and easier. We plan to integrate most of the features OpenBrush into ink!. OpenBrush provides documentation with FAQ section. You can ask questions regarding ink! development on Element, Discord, or Telegram OpenBrush channels by the links above. @@ -104,13 +104,13 @@ The callee contract should implement that trait. ### Additional stuff -- You can use [`test_utils`](https://github.com/Supercolony-net/openbrush-contracts/blob/main/lang/src/test_utils.rs#L39) +- You can use [`test_utils`](https://github.com/727-Ventures/openbrush-contracts/blob/main/lang/src/test_utils.rs#L39) to simplify unit testing of you code. -- You can use [`traits`](https://github.com/Supercolony-net/openbrush-contracts/blob/main/lang/src/traits.rs) that provides some additional +- You can use [`traits`](https://github.com/727-Ventures/openbrush-contracts/blob/main/lang/src/traits.rs) that provides some additional functionality for your code. -- Read our **documentation** in [doc](https://supercolony-net.github.io/openbrush-contracts). +- Read our **documentation** in [doc](https://727-Ventures.github.io/openbrush-contracts). - Go through our **examples** in [examples](examples) to check hot to use the library and ink!. -- Check the [**example of project struct**](https://github.com/Supercolony-net/openbrush-contracts/tree/main/example_project_structure) and [according documentation](https://docs.openbrush.io/smart-contracts/example/overview). +- Check the [**example of project struct**](https://github.com/727-Ventures/openbrush-contracts/tree/main/example_project_structure) and [according documentation](https://docs.openbrush.io/smart-contracts/example/overview). Not sure where to start? Use [the interactive generator](https://openbrush.io) to bootstrap your contract and learn about the components offered in OpenBrush. @@ -121,14 +121,14 @@ The identifiers of events must be based on the name of the trait. At the moment, but it must be fixed with this [issue](https://github.com/paritytech/ink/issues/809). ### Issues to be resolved before the library becomes production-ready: -* [Standard token naming convention](https://github.com/Supercolony-net/openbrush-contracts/issues/1) -* [Event's identifiers are based on the naming of the storage structure](https://github.com/Supercolony-net/openbrush-contracts/issues/2) +* [Standard token naming convention](https://github.com/727-Ventures/openbrush-contracts/issues/1) +* [Event's identifiers are based on the naming of the storage structure](https://github.com/727-Ventures/openbrush-contracts/issues/2) ### Other Issues open: -* [#[ink::trait_definition] doesn't support generics and default implementation](https://github.com/Supercolony-net/openbrush-contracts/issues/4) -* [Library provides implementation in Rust level instead of ink! level](https://github.com/Supercolony-net/openbrush-contracts/issues/5) -* [List of issues, solving each of them can simplify usage of library](https://github.com/Supercolony-net/openbrush-contracts/issues/8) +* [#[ink::trait_definition] doesn't support generics and default implementation](https://github.com/727-Ventures/openbrush-contracts/issues/4) +* [Library provides implementation in Rust level instead of ink! level](https://github.com/727-Ventures/openbrush-contracts/issues/5) +* [List of issues, solving each of them can simplify usage of library](https://github.com/727-Ventures/openbrush-contracts/issues/8) * After [Storage rework](https://github.com/paritytech/ink/pull/1217) we need to refactor upgradeable contracts. ## Roadmap 🚗 diff --git a/contracts/Cargo.toml b/contracts/Cargo.toml index e2ea3a01c..58f6bf243 100644 --- a/contracts/Cargo.toml +++ b/contracts/Cargo.toml @@ -1,16 +1,16 @@ [package] name = "openbrush_contracts" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" license = "MIT" readme = "README.md" -repository = "https://github.com/Supercolony-net/openbrush-contracts" +repository = "https://github.com/727-Ventures/openbrush-contracts" documentation = "https://docs.openbrush.io" -homepage = "https://supercolony.net" +homepage = "https://727.ventures" description = "Reusable implementations of contracts and traits for interaction with them." -keywords = ["wasm", "supercolony", "smart-contracts", "blockchain", "ink"] +keywords = ["wasm", "brushfam", "smart-contracts", "blockchain", "ink"] categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs"] diff --git a/docs/docs/deployment.md b/docs/docs/deployment.md index 6db41ad53..894380abd 100644 --- a/docs/docs/deployment.md +++ b/docs/docs/deployment.md @@ -19,7 +19,7 @@ The list of standalone blockchain/parachains that support ink! smart contracts: ### Overview -- To deploy contract you should build your own contract or get some example from [Openbrush](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples). You can find instruction how to build ink! smart contract in [docs](https://ink.substrate.io/getting-started/building-your-contract) +- To deploy contract you should build your own contract or get some example from [Openbrush](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples). You can find instruction how to build ink! smart contract in [docs](https://ink.substrate.io/getting-started/building-your-contract) - You have to choose substrate network to deploy your contract. There are several option you have: diff --git a/docs/docs/smart-contracts/PSP22-Pallet/Extensions/burnable.md b/docs/docs/smart-contracts/PSP22-Pallet/Extensions/burnable.md index cccac78d8..2f74791a1 100644 --- a/docs/docs/smart-contracts/PSP22-Pallet/Extensions/burnable.md +++ b/docs/docs/smart-contracts/PSP22-Pallet/Extensions/burnable.md @@ -4,7 +4,7 @@ title: PSP22 Burnable --- This example shows how you can reuse the implementation of -[PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) token with [PSP22Burnable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet/extensions/burnable.rs) extension via `pallet-assets` chain extension. +[PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) token with [PSP22Burnable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet/extensions/burnable.rs) extension via `pallet-assets` chain extension. ## How to use this extension diff --git a/docs/docs/smart-contracts/PSP22-Pallet/Extensions/metadata.md b/docs/docs/smart-contracts/PSP22-Pallet/Extensions/metadata.md index d2abec573..745bc1635 100644 --- a/docs/docs/smart-contracts/PSP22-Pallet/Extensions/metadata.md +++ b/docs/docs/smart-contracts/PSP22-Pallet/Extensions/metadata.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP22 Metadata --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) token with the [PSP22Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet/extensions/metadata.rs) extension via `pallet-assets` chain extension. +This example shows how you can reuse the implementation of [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) token with the [PSP22Metadata](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet/extensions/metadata.rs) extension via `pallet-assets` chain extension. First, you should implement basic version of [PSP22 Pallet](/smart-contracts/PSP22-Pallet). diff --git a/docs/docs/smart-contracts/PSP22-Pallet/Extensions/mintable.md b/docs/docs/smart-contracts/PSP22-Pallet/Extensions/mintable.md index 3fe1109f6..54de6d6e9 100644 --- a/docs/docs/smart-contracts/PSP22-Pallet/Extensions/mintable.md +++ b/docs/docs/smart-contracts/PSP22-Pallet/Extensions/mintable.md @@ -4,7 +4,7 @@ title: PSP22 Mintable --- This example shows how you can reuse the implementation of -[PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) token with [PSP22Mintable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet/extensions/mintable.rs) extension via `pallet-assets` chain extension. +[PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) token with [PSP22Mintable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet/extensions/mintable.rs) extension via `pallet-assets` chain extension. ## How to use this extension diff --git a/docs/docs/smart-contracts/PSP22-Pallet/psp22-pallet.md b/docs/docs/smart-contracts/PSP22-Pallet/psp22-pallet.md index a555e9c51..5709a1500 100644 --- a/docs/docs/smart-contracts/PSP22-Pallet/psp22-pallet.md +++ b/docs/docs/smart-contracts/PSP22-Pallet/psp22-pallet.md @@ -3,7 +3,7 @@ sidebar_position: 9 title: PSP22 Pallet --- -This example shows how you can reuse the implementation of [PSP22 Pallet](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) via `pallet-assets` chain extension. Also, this example shows how you can customize the logic, for example, to get current `asset_id`. +This example shows how you can reuse the implementation of [PSP22 Pallet](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22_pallet) via `pallet-assets` chain extension. Also, this example shows how you can customize the logic, for example, to get current `asset_id`. ## Step 1: Import default implementation @@ -91,7 +91,7 @@ pub mod my_psp22_pallet { ``` -You can check an example of the usage of [PSP22 Pallet](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_pallet). +You can check an example of the usage of [PSP22 Pallet](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_pallet). Also you can use extensions for PSP22 token: diff --git a/docs/docs/smart-contracts/PSP22/Extensions/burnable.md b/docs/docs/smart-contracts/PSP22/Extensions/burnable.md index 8488990c0..b323d6d11 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/burnable.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/burnable.md @@ -4,7 +4,7 @@ title: PSP22 Burnable --- This example shows how you can reuse the implementation of -[PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22Burnable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/burnable.rs) extension. +[PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22Burnable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/burnable.rs) extension. ## How to use this extension @@ -23,4 +23,4 @@ impl PSP22Burnable for Contract {} ``` And that's it! Your `PSP22` is now extended by the `PSP22Burnable` extension and ready to use its functions! -You can check an example of the usage of [PSP22 Burnable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/burnable). +You can check an example of the usage of [PSP22 Burnable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/burnable). diff --git a/docs/docs/smart-contracts/PSP22/Extensions/capped.md b/docs/docs/smart-contracts/PSP22/Extensions/capped.md index 155664b6c..851bbec5b 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/capped.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/capped.md @@ -3,7 +3,7 @@ sidebar_position: 7 title: PSP22 Capped --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) token with the [PSP22Capped](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/capped.rs) extension. +This example shows how you can reuse the implementation of [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) token with the [PSP22Capped](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/capped.rs) extension. First, you should implement basic version of [PSP22](/smart-contracts/PSP22). @@ -129,6 +129,6 @@ pub mod my_psp22 { } ``` -You can check an implementation example of [PSP22 Capped](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/capped). +You can check an implementation example of [PSP22 Capped](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/capped). You can also check the documentation for the basic implementation of [PSP22](/smart-contracts/PSP22). diff --git a/docs/docs/smart-contracts/PSP22/Extensions/flashmint.md b/docs/docs/smart-contracts/PSP22/Extensions/flashmint.md index e6c5ff18a..3af4141dd 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/flashmint.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/flashmint.md @@ -3,7 +3,7 @@ sidebar_position: 5 title: PSP22 FlashMint --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22FlashMint](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/flashmint.rs) extension, which allows the user to perform a flash loan on the token by minting the borrowed amount and then burning it along with fees for the loan. +This example shows how you can reuse the implementation of [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22FlashMint](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/flashmint.rs) extension, which allows the user to perform a flash loan on the token by minting the borrowed amount and then burning it along with fees for the loan. ## 1. Implement the FlashMint extension @@ -22,4 +22,4 @@ impl FlashLender for Contract {} ``` And that's it! Your `PSP22` is now extended by the `PSP22FlashMint` extension and ready to use its functions! -You can check the full example of the implementation of this extension [here](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/flashmint). +You can check the full example of the implementation of this extension [here](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/flashmint). diff --git a/docs/docs/smart-contracts/PSP22/Extensions/metadata.md b/docs/docs/smart-contracts/PSP22/Extensions/metadata.md index 5d2513886..271e8cc69 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/metadata.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/metadata.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP22 Metadata --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) token with the [PSP22Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/metadata.rs) extension. +This example shows how you can reuse the implementation of [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) token with the [PSP22Metadata](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/metadata.rs) extension. First, you should implement basic version of [PSP22](/smart-contracts/PSP22). @@ -117,6 +117,6 @@ pub mod my_psp22 { } ``` -You can check an example of the usage of [PSP22 Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/metadata). +You can check an example of the usage of [PSP22 Metadata](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/metadata). You can also check the documentation for the basic implementation of [PSP22](/smart-contracts/PSP22). diff --git a/docs/docs/smart-contracts/PSP22/Extensions/mintable.md b/docs/docs/smart-contracts/PSP22/Extensions/mintable.md index c1a0466b9..4152903b7 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/mintable.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/mintable.md @@ -4,7 +4,7 @@ title: PSP22 Mintable --- This example shows how you can reuse the implementation of -[PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22Mintable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/mintable.rs) extension. +[PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22Mintable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/mintable.rs) extension. ## How to use this extension @@ -22,6 +22,6 @@ use openbrush::contracts::psp22::extensions::mintable::*; impl PSP22Mintable for Contract {} ``` -You can check an example of the usage of [PSP22 Mintable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/mintable). +You can check an example of the usage of [PSP22 Mintable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/mintable). And that's it! Your `PSP22` is now extended by the `PSP22Mintable` extension and ready to use its functions! diff --git a/docs/docs/smart-contracts/PSP22/Extensions/pausable.md b/docs/docs/smart-contracts/PSP22/Extensions/pausable.md index c04b16511..7d402d522 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/pausable.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/pausable.md @@ -3,7 +3,7 @@ sidebar_position: 6 title: PSP22 Pausable --- -This example shows how you can implement a [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) contract with a [Pausable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/security/pausable) extension. See an example of [PSP22Pausable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/pausable) implementation. +This example shows how you can implement a [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) contract with a [Pausable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/security/pausable) extension. See an example of [PSP22Pausable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/pausable) implementation. First, you should implement basic version of [PSP22](/smart-contracts/PSP22). @@ -145,6 +145,6 @@ pub mod my_psp22_pausable { } ``` -You can check an implementation example of [PSP22 Pausable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/pausable). +You can check an implementation example of [PSP22 Pausable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/pausable). You can also check the documentation for the basic implementation of [PSP22](/smart-contracts/PSP22). diff --git a/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md b/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md index d73d475fc..470748ae2 100644 --- a/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md +++ b/docs/docs/smart-contracts/PSP22/Extensions/wrapper.md @@ -3,7 +3,7 @@ sidebar_position: 4 title: PSP22 Wrapper --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22 Wrapper](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/wrapper.rs) extension, which allows you to wrap your `PSP22` token in a `PSP22Wrapper` token which can be used for example for governance. +This example shows how you can reuse the implementation of [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) token with [PSP22 Wrapper](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22/extensions/wrapper.rs) extension, which allows you to wrap your `PSP22` token in a `PSP22Wrapper` token which can be used for example for governance. First, you should implement basic version of [PSP22](/smart-contracts/PSP22). @@ -113,6 +113,6 @@ pub mod my_psp22_wrapper { } ``` -You can check an example of the usage of [PSP22 Wrapper](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_extensions/wrapper). +You can check an example of the usage of [PSP22 Wrapper](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_extensions/wrapper). You can also check the documentation for the basic implementation of [PSP22](/smart-contracts/PSP22). \ No newline at end of file diff --git a/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md b/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md index 0bd0e1d19..834b5f117 100644 --- a/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md +++ b/docs/docs/smart-contracts/PSP22/Utils/token-timelock.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP22 Token Timelock --- -This example shows how you can reuse the implementation of [PSP22 Token Timelock](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22/src/utils/token_timelock.rs) utility for [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22). This contract will lock user's `PSP22` tokens until the time specified, when they can withdraw them. +This example shows how you can reuse the implementation of [PSP22 Token Timelock](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22/src/utils/token_timelock.rs) utility for [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22). This contract will lock user's `PSP22` tokens until the time specified, when they can withdraw them. ## Step 1: Add imports and enable unstable feature @@ -96,6 +96,6 @@ pub mod my_psp22_token_timelock { } ``` -You can check an example of the usage of [PSP22 Token Timelock](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22_utils/token_timelock). +You can check an example of the usage of [PSP22 Token Timelock](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22_utils/token_timelock). You can also check the documentation for the basic implementation of [PSP22](/smart-contracts/PSP22). \ No newline at end of file diff --git a/docs/docs/smart-contracts/PSP22/psp22.md b/docs/docs/smart-contracts/PSP22/psp22.md index 7a93a1461..a640c01f3 100644 --- a/docs/docs/smart-contracts/PSP22/psp22.md +++ b/docs/docs/smart-contracts/PSP22/psp22.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP22 --- -This example shows how you can reuse the implementation of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22) token. Also, this example shows how you can customize the logic, for example, to reject transferring tokens to `hated_account`. +This example shows how you can reuse the implementation of [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22) token. Also, this example shows how you can customize the logic, for example, to reject transferring tokens to `hated_account`. ## Step 1: Import default implementation @@ -101,7 +101,7 @@ pub mod my_psp22 { } ``` -You can check an example of the usage of [PSP22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp22). +You can check an example of the usage of [PSP22](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp22). Also you can use extensions for PSP22 token: diff --git a/docs/docs/smart-contracts/PSP34/Extensions/burnable.md b/docs/docs/smart-contracts/PSP34/Extensions/burnable.md index 8581bb169..d5dda02e2 100644 --- a/docs/docs/smart-contracts/PSP34/Extensions/burnable.md +++ b/docs/docs/smart-contracts/PSP34/Extensions/burnable.md @@ -3,7 +3,7 @@ sidebar_position: 3 title: PSP34 Burnable --- -This example shows how you can reuse the implementation of [PSP34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Burnable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/burnable.rs) extension. +This example shows how you can reuse the implementation of [PSP34](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Burnable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/burnable.rs) extension. ## How to use this extension @@ -22,4 +22,4 @@ impl PSP34Burnable for Contract {} ``` And that's it! Your `PSP34` is now extended by the `PSP34Burnable` extension and ready to use its functions! -You can check an example of the usage of [PSP34 Burnable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp34_extensions/burnable). \ No newline at end of file +You can check an example of the usage of [PSP34 Burnable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp34_extensions/burnable). \ No newline at end of file diff --git a/docs/docs/smart-contracts/PSP34/Extensions/enumerable.md b/docs/docs/smart-contracts/PSP34/Extensions/enumerable.md index ba844ef85..18dac23fc 100644 --- a/docs/docs/smart-contracts/PSP34/Extensions/enumerable.md +++ b/docs/docs/smart-contracts/PSP34/Extensions/enumerable.md @@ -3,7 +3,7 @@ sidebar_position: 3 title: PSP34 Enumerable --- -This example shows how you can reuse the implementation of [PSP34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Enumerable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/enumerable.rs) extension. +This example shows how you can reuse the implementation of [PSP34](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Enumerable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/enumerable.rs) extension. First, you should implement basic version of [PSP34](/smart-contracts/PSP34). @@ -76,6 +76,6 @@ pub mod my_psp34_enumerable { ``` And that's it! Your `PSP34` is now extended by the `PSP34Enumerable` extension and ready to use its functions! -You can check an example of the usage of [PSP34 Enumerable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp34_extensions/enumerable). +You can check an example of the usage of [PSP34 Enumerable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp34_extensions/enumerable). You can also check the documentation for the basic implementation of [PSP34](/smart-contracts/PSP34). \ No newline at end of file diff --git a/docs/docs/smart-contracts/PSP34/Extensions/metadata.md b/docs/docs/smart-contracts/PSP34/Extensions/metadata.md index 4d423f2b4..fbaa525e8 100644 --- a/docs/docs/smart-contracts/PSP34/Extensions/metadata.md +++ b/docs/docs/smart-contracts/PSP34/Extensions/metadata.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP34 Metadata --- -This example shows how you can reuse the implementation of [PSP34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/metadata.rs) extension. +This example shows how you can reuse the implementation of [PSP34](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Metadata](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/metadata.rs) extension. First, you should implement basic version of [PSP34](/smart-contracts/PSP34). @@ -112,6 +112,6 @@ pub mod my_psp34_metadata { } ``` -You can check an example of the usage of [PSP34 Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp34_extensions/metadata). +You can check an example of the usage of [PSP34 Metadata](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp34_extensions/metadata). You can also check the documentation for the basic implementation of [PSP34](/smart-contracts/PSP34). diff --git a/docs/docs/smart-contracts/PSP34/Extensions/mintable.md b/docs/docs/smart-contracts/PSP34/Extensions/mintable.md index 0b7b004d8..0b9de75f2 100644 --- a/docs/docs/smart-contracts/PSP34/Extensions/mintable.md +++ b/docs/docs/smart-contracts/PSP34/Extensions/mintable.md @@ -3,7 +3,7 @@ sidebar_position: 2 title: PSP34 Mintable --- -This example shows how you can reuse the implementation of [PSP34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Mintable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/mintable.rs) extension. +This example shows how you can reuse the implementation of [PSP34](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34) token with [PSP34Mintable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34/extensions/mintable.rs) extension. ## How to use this extension @@ -22,6 +22,6 @@ impl PSP34Mintable for Contract {} ``` And that's it! Your `PSP34` is now extended by the `PSP34Mintable` extension and ready to use its functions! -You can check an example of the usage of [PSP34 Mintable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp34_extensions/mintable). +You can check an example of the usage of [PSP34 Mintable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp34_extensions/mintable). You can also check the documentation for the basic implementation of [PSP34](/smart-contracts/PSP34). diff --git a/docs/docs/smart-contracts/PSP34/psp34.md b/docs/docs/smart-contracts/PSP34/psp34.md index 0726500dc..099d3a1c7 100644 --- a/docs/docs/smart-contracts/PSP34/psp34.md +++ b/docs/docs/smart-contracts/PSP34/psp34.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP34 --- -This example shows how you can reuse the implementation of [PSP34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34) token. Also, this example shows how you can customize the logic, for example, to track the number of tokens minted with `next_id`, increasing it with each new token minted, securing a unique id for each token. +This example shows how you can reuse the implementation of [PSP34](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34) token. Also, this example shows how you can customize the logic, for example, to track the number of tokens minted with `next_id`, increasing it with each new token minted, securing a unique id for each token. ## Step 1: Import default implementation @@ -78,7 +78,7 @@ pub mod my_psp34 { } ``` -You can check an example of the usage of [PSP34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp34). +You can check an example of the usage of [PSP34](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp34). Also you can use extensions for psp34 token: [PSP34Metadata](/smart-contracts/PSP34/extensions/metadata): metadata for PSP34. diff --git a/docs/docs/smart-contracts/PSP37/Extensions/batch.md b/docs/docs/smart-contracts/PSP37/Extensions/batch.md index cd3235fa2..244216119 100644 --- a/docs/docs/smart-contracts/PSP37/Extensions/batch.md +++ b/docs/docs/smart-contracts/PSP37/Extensions/batch.md @@ -3,7 +3,7 @@ sidebar_position: 2 title: PSP37 Batch --- -This example shows how you can reuse the implementation of [PSP37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Batch](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37/extensions/batch.rs) extension, which allows batch transferring of PSP37 tokens. +This example shows how you can reuse the implementation of [PSP37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Batch](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37/extensions/batch.rs) extension, which allows batch transferring of PSP37 tokens. ## How to use this extension @@ -21,4 +21,4 @@ impl PSP37Batch for Contract {} ``` And that's it! Your `PSP37` is now extended by the `PSP37Batch` extension and ready to use its functions! -You can check an example of the usage of [PSP37 Batch](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp37_extensions/batch). +You can check an example of the usage of [PSP37 Batch](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp37_extensions/batch). diff --git a/docs/docs/smart-contracts/PSP37/Extensions/burnable.md b/docs/docs/smart-contracts/PSP37/Extensions/burnable.md index e3f7151d5..fe55886ff 100644 --- a/docs/docs/smart-contracts/PSP37/Extensions/burnable.md +++ b/docs/docs/smart-contracts/PSP37/Extensions/burnable.md @@ -3,7 +3,7 @@ sidebar_position: 3 title: PSP37 Burnable --- -This example shows how you can reuse the implementation of [PSP37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Burnable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37/extensions/burnable.rs) extension. +This example shows how you can reuse the implementation of [PSP37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Burnable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37/extensions/burnable.rs) extension. ## How to use this extension @@ -22,5 +22,5 @@ impl PSP37Burnable for Contract {} ``` And that's it! Your `PSP37` is now extended by the `PSP37Burnable` extension and ready to use its functions! -You can check an example of the usage of [PSP37 Burnable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp37_extensions/burnable). +You can check an example of the usage of [PSP37 Burnable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp37_extensions/burnable). the documentation for the basic implementation of [PSP37](/smart-contracts/PSP37). \ No newline at end of file diff --git a/docs/docs/smart-contracts/PSP37/Extensions/enumerable.md b/docs/docs/smart-contracts/PSP37/Extensions/enumerable.md index 5d098b66a..a500643f4 100644 --- a/docs/docs/smart-contracts/PSP37/Extensions/enumerable.md +++ b/docs/docs/smart-contracts/PSP37/Extensions/enumerable.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP37 Enumerable --- -This example shows how you can reuse the implementation of [PSP37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Enumerable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37/extensions/enumerable.rs) extension. +This example shows how you can reuse the implementation of [PSP37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Enumerable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37/extensions/enumerable.rs) extension. First, you should implement basic version of [PSP37](/smart-contracts/PSP37). @@ -78,6 +78,6 @@ pub mod my_psp37_enumerable { ``` And that's it! Your `PSP37` is now extended by the `PSP37Enumerable` extension and ready to use its functions! -You can check an example of the usage of [PSP37 Enumerable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp37_extensions/enumerable). +You can check an example of the usage of [PSP37 Enumerable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp37_extensions/enumerable). You can also check the documentation for the basic implementation of [PSP37](/smart-contracts/PSP37). \ No newline at end of file diff --git a/docs/docs/smart-contracts/PSP37/Extensions/metadata.md b/docs/docs/smart-contracts/PSP37/Extensions/metadata.md index 5d8f5dd24..c020648b8 100644 --- a/docs/docs/smart-contracts/PSP37/Extensions/metadata.md +++ b/docs/docs/smart-contracts/PSP37/Extensions/metadata.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP37 Metadata --- -This example shows how you can reuse the implementation of [PSP37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37/extensions/metadata.rs) extension. +This example shows how you can reuse the implementation of [PSP37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Metadata](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37/extensions/metadata.rs) extension. First, you should implement basic version of [PSP37](/smart-contracts/PSP37). @@ -106,6 +106,6 @@ pub mod my_psp37 { } ``` -You can check an example of the usage of [PSP37 Metadata](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp37_extensions/metadata). +You can check an example of the usage of [PSP37 Metadata](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp37_extensions/metadata). You can also check the documentation for the basic implementation of [PSP37](/smart-contracts/PSP37). diff --git a/docs/docs/smart-contracts/PSP37/Extensions/mintable.md b/docs/docs/smart-contracts/PSP37/Extensions/mintable.md index 2e50eb6e4..3ef3d3f7d 100644 --- a/docs/docs/smart-contracts/PSP37/Extensions/mintable.md +++ b/docs/docs/smart-contracts/PSP37/Extensions/mintable.md @@ -3,7 +3,7 @@ sidebar_position: 2 title: PSP37 Mintable --- -This example shows how you can reuse the implementation of [PSP37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Mintable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37/extensions/mintable.rs) extension. +This example shows how you can reuse the implementation of [PSP37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37) token with [PSP37Mintable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37/extensions/mintable.rs) extension. ## How to use this extension @@ -22,4 +22,4 @@ impl PSP37Mintable for Contract {} ``` And that's it! Your `PSP37` is now extended by the `PSP37Mintable` extension and ready to use its functions! -You can check an example of the usage of [PSP37 Mintable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp37_extensions/mintable). +You can check an example of the usage of [PSP37 Mintable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp37_extensions/mintable). diff --git a/docs/docs/smart-contracts/PSP37/psp37.md b/docs/docs/smart-contracts/PSP37/psp37.md index 515c1f951..eec2c39cc 100644 --- a/docs/docs/smart-contracts/PSP37/psp37.md +++ b/docs/docs/smart-contracts/PSP37/psp37.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: PSP37 --- -This example shows how you can reuse the implementation of [PSP37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37) +This example shows how you can reuse the implementation of [PSP37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37) token. Also, this example shows how you can customize the logic, for example, to track the number of token types with `unique_ids`, adding a new token type with the `add_type` function. @@ -82,7 +82,7 @@ pub mod my_psp37 { } } ``` -You can check an example of the usage of [PSP37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/psp37). +You can check an example of the usage of [PSP37](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/psp37). Also you can use extensions for PSP37 token: diff --git a/docs/docs/smart-contracts/access-control/Extensions/enumerable.md b/docs/docs/smart-contracts/access-control/Extensions/enumerable.md index 20628c775..bee163c31 100644 --- a/docs/docs/smart-contracts/access-control/Extensions/enumerable.md +++ b/docs/docs/smart-contracts/access-control/Extensions/enumerable.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: AccessControl Enumerable --- -This example shows how you can reuse the implementation of [AccessControl](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/access/access_control/access_control.rs) with [AccessControlEnumerable](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/access/access_control/extensions/enumerable.rs) extension, which enables an easier overview of access control roles. +This example shows how you can reuse the implementation of [AccessControl](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/access/access_control/access_control.rs) with [AccessControlEnumerable](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/access/access_control/extensions/enumerable.rs) extension, which enables an easier overview of access control roles. First, you should implement basic version of [AccessControl](/smart-contracts/access-control). @@ -78,6 +78,6 @@ pub mod my_access_control { ``` And that's it! Your `AccessControl` is now extended by the `AccessControlEnumerable` extension and ready to use its functions! -You can check an example of the usage of [AccessControl Enumerable](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/access/access_control/extensions/enumerable.rs). +You can check an example of the usage of [AccessControl Enumerable](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/access/access_control/extensions/enumerable.rs). You can also check the documentation for the basic implementation of [AccessControl](/smart-contracts/access-control). \ No newline at end of file diff --git a/docs/docs/smart-contracts/access-control/access-control.md b/docs/docs/smart-contracts/access-control/access-control.md index 23bc23ec3..6456441a8 100644 --- a/docs/docs/smart-contracts/access-control/access-control.md +++ b/docs/docs/smart-contracts/access-control/access-control.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: Access Control --- -This example shows how you can use the implementation of [access-control](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/access/access_control) to provide rights for usage of specific smart contract functions. +This example shows how you can use the implementation of [access-control](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/access/access_control) to provide rights for usage of specific smart contract functions. ## Step 1: Import default implementation @@ -91,4 +91,4 @@ pub mod my_access_control { } ``` -You can check an example of the usage of [Access Control](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/access_control). \ No newline at end of file +You can check an example of the usage of [Access Control](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/access_control). \ No newline at end of file diff --git a/docs/docs/smart-contracts/diamond/Extensions/loupe.md b/docs/docs/smart-contracts/diamond/Extensions/loupe.md index 4cc04ac69..0edb3bc3c 100644 --- a/docs/docs/smart-contracts/diamond/Extensions/loupe.md +++ b/docs/docs/smart-contracts/diamond/Extensions/loupe.md @@ -3,7 +3,7 @@ sidebar_position: 1 title: Diamond Loupe --- -This example shows how you can reuse the implementation of [Diamond Standard](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/upgradeability/diamond) with [Diamond Loupe](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/upgradeability/diamond/extensions/diamond_loupe.rs) extension, which allows you to iterate over diamond contract's facets and available functions. +This example shows how you can reuse the implementation of [Diamond Standard](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/upgradeability/diamond) with [Diamond Loupe](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/upgradeability/diamond/extensions/diamond_loupe.rs) extension, which allows you to iterate over diamond contract's facets and available functions. ## How to use this extension @@ -21,4 +21,4 @@ impl DiamondLoupe for Contract {} ``` And that's it! Your `Diamond` is now extended by the `DiamondLoupe` extension and ready to use its functions! -You can check an example of the usage of [Diamond Loupe](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/diamond). +You can check an example of the usage of [Diamond Loupe](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/diamond). diff --git a/docs/docs/smart-contracts/diamond/diamond.md b/docs/docs/smart-contracts/diamond/diamond.md index ac894eb8b..7a9073f98 100644 --- a/docs/docs/smart-contracts/diamond/diamond.md +++ b/docs/docs/smart-contracts/diamond/diamond.md @@ -3,7 +3,11 @@ sidebar_position: 1 title: Diamond Standard --- -This example shows how you can use the implementation of [diamond standard](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/upgradeability/diamond) to implement diamond standard pattern for upgradeable and unlimited contracts. +This example shows how you can use the implementation of [diamond standard](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/upgradeability/diamond) to implement diamond standard pattern for upgradeable and unlimited contracts. + +## Disclaimer + +Delegate calls [were marked](https://github.com/paritytech/ink/pull/1331#discussion_r953736863) as a possible attack vector in ink! Therefore the `Diamond` pattern will not work within OpenBrush until this is reimplemented in ink! 4. ## Step 1: Import default implementation @@ -60,4 +64,4 @@ some of limitations are, that you can not add functions with the same selectors, when replacing functions, the new function needs to be from a different contract, then currently in use, and when removing functions, the function needs to be registered in the diamond contract. -You can check an example of the usage of [Diamond](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/diamond). +You can check an example of the usage of [Diamond](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/diamond). diff --git a/docs/docs/smart-contracts/example/contract.md b/docs/docs/smart-contracts/example/contract.md index a9e648d60..b49248dc6 100644 --- a/docs/docs/smart-contracts/example/contract.md +++ b/docs/docs/smart-contracts/example/contract.md @@ -17,7 +17,7 @@ implementation of `Lending` and `LendingPermissioned` traits defined in the `len [package] name = "lending_contract" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] @@ -97,9 +97,9 @@ impl LendingPermissioned for LendingContract {} impl lending::Internal for LendingContract { fn _instantiate_shares_contract(&self, contract_name: &str, contract_symbol: &str) -> AccountId { let code_hash = self.lending.shares_contract_code_hash; - let (hash, _) = - ink::env::random::(contract_name.as_bytes()).expect("Failed to get salt"); - let hash = hash.as_ref(); + let salt = (::env().block_timestamp(), contract_name).encode(); + let hash = xxh32(&salt, 0).to_le_bytes(); + let contract = SharesContractRef::new(Some(String::from(contract_name)), Some(String::from(contract_symbol))) .endowment(0) diff --git a/docs/docs/smart-contracts/example/implementation.md b/docs/docs/smart-contracts/example/implementation.md index c1c478809..0482a13cd 100644 --- a/docs/docs/smart-contracts/example/implementation.md +++ b/docs/docs/smart-contracts/example/implementation.md @@ -21,9 +21,9 @@ this: ```rust fn _instantiate_shares_contract(&self, contract_name: &str, contract_symbol: &str) -> AccountId { let code_hash = self.lending.shares_contract_code_hash; - let (hash, _) = - ink::env::random::(contract_name.as_bytes()).expect("Failed to get salt"); - let hash = hash.as_ref(); + let salt = (::env().block_timestamp(), contract_name).encode(); + let hash = xxh32(&salt, 0).to_le_bytes(); + let contract = SharesContractRef::new(Some(String::from(contract_name)), Some(String::from(contract_symbol))) .endowment(0) diff --git a/docs/docs/smart-contracts/example/impls.md b/docs/docs/smart-contracts/example/impls.md index a87d1dc9b..111b93b3b 100644 --- a/docs/docs/smart-contracts/example/impls.md +++ b/docs/docs/smart-contracts/example/impls.md @@ -297,7 +297,7 @@ where The all methods in `LendingPermissioned` are restricted and requires `#[modifiers(only_role(MANAGER))]`. That means that only accounts with `MANAGER` role can execute these methods. -Usage of `only_role` modifier from [access_control](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/access/access_control/mod.rs#L30) +Usage of `only_role` modifier from [access_control](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/access/access_control/mod.rs#L30) requires that the contract should implement `Storage`. For that we also require the same restriction on the generic type. @@ -305,7 +305,7 @@ In the implementation of `LendingPermissioned`, we want to use methods from `Lending`. For that, the set of restrictions for generic in the `Lending` implementation should be a subset(<=) of restrictions for generic in the `LendingPermissioned` implementation. The `Lending` implementation requires `Storage` and `Storage` to use `when_paused` -modifier from [pausable](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/security/pausable/mod.rs#L24). +modifier from [pausable](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/security/pausable/mod.rs#L24). So we should have the same restriction in our generic implementation. In the logic of the trait `LendingPermissioned` we need to instantiate @@ -471,7 +471,7 @@ fn set_collateral_accepted>(instance: &mut T, asset_addre The same logic is used during definition of the implementation for `Lending` trait. The `Storage` restriction is required to use `when_paused`, `when_not_paused` modifiers -from [pausable](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/security/pausable/mod.rs#L24). +from [pausable](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/security/pausable/mod.rs#L24). ```rust // Importing everything publicly from traits allows you to import diff --git a/docs/docs/smart-contracts/overview.md b/docs/docs/smart-contracts/overview.md index 17fe73c80..72ba5e50d 100644 --- a/docs/docs/smart-contracts/overview.md +++ b/docs/docs/smart-contracts/overview.md @@ -5,55 +5,45 @@ title: Overview This doc contains description of how the OpenBrush library can be imported and used. -The OpenBrush is using ink! stable release `4.0.0-beta` at the moment. -So you should use the same version of the ink! across your project. -If you use an old version of ink, you need to use the old version of OpenBrush. +The OpenBrush is using ink! version `4.0.0-beta` from `main` branch from commit `4655a8b4413cb50cbc38d1b7c173ad426ab06cde` at the moment. We are not using the stable release of ink! because of changes made in [this PR](https://github.com/paritytech/ink/pull/1531) which is not in release yet. +You will need to use the same version of the ink! in your project. +If you use a different version of ink, you need to use a different version of OpenBrush which uses the same version of ink!. OpenBrush had several significant changes in API, so you check the [Wizard](https://openbrush.io) to study how to use different versions of OpenBrush. The documentation describes the latest available OpenBrush and how to use it. -It doesn't contain [versioning](https://github.com/Supercolony-net/openbrush-contracts/issues/127) yet. +It doesn't contain [versioning](https://github.com/supercolony-net/openbrush-contracts/issues/127) yet. #### The default `toml` of your project with OpenBrush: ```toml [dependencies] -# Import of all ink! crates -ink = { version = "~4.0.0-beta", default-features = false } +# Import ink! +ink = { git = "https://github.com/paritytech/ink", commit = "4655a8b4413cb50cbc38d1b7c173ad426ab06cde", default-features = false} scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.3", default-features = false, features = ["derive"], optional = true } # Brush dependency -openbrush = { version = "~3.0.0-beta", default-features = false } +openbrush = { git = "https://github.com/727-Ventures/openbrush-contracts", version = "~3.0.0-beta", default-features = false } [features] default = ["std"] std = [ - "ink::primitives/std", - "ink::metadata", - "ink::metadata/std", - "ink::env/std", - "ink::storage/std", "ink/std", "scale/std", - "scale-info", "scale-info/std", - # Brush dependency "openbrush/std", ] ink-as-dependency = [] ``` -To avoid unexpected compilation errors better to always import all ink! crates until resolving -[issue](https://github.com/paritytech/ink/issues/825). - -By default, the `openbrush` crate provides [macros](https://github.com/Supercolony-net/openbrush-contracts/blob/main/lang/macro/src/lib.rs) -for simplification of the development and [traits](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/traits) of +By default, the `openbrush` crate provides [macros](https://github.com/727-Ventures/openbrush-contracts/blob/main/lang/macro/src/lib.rs) +for simplification of the development and [traits](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/traits) of contracts(you can implement them by yourself, and you can use them for a cross-contract calls). The OpenBrush also provides the default implementation of traits that can be enabled via crate features. -A list of all available features you can find [here](https://github.com/Supercolony-net/openbrush-contracts/blob/main/Cargo.toml#L51). +A list of all available features you can find [here](https://github.com/727-Ventures/openbrush-contracts/blob/main/Cargo.toml#L51). The default implementation of traits requires the usage of the unstable feature [min-specialization](https://doc.rust-lang.org/beta/unstable-book/language-features/min-specialization.html). You can enable it by adding `#![feature(min_specialization)]` at the top of your root module(for more information check [rust official documentation](https://doc.rust-lang.org/rustdoc/unstable-features.html)). @@ -72,8 +62,8 @@ All default implementations of the traits provided by OpenBursh have the same pa Consequently, the re-usage of each implementation in your contract also has the same pattern. Each implementation of the contract has its module and its feature that enables that -module. A list of available modules you can find [here](https://github.com/Supercolony-net/openbrush-contracts/blob/main/contracts/src/lib.rs#L33), -a list of available features [here](https://github.com/Supercolony-net/openbrush-contracts/blob/main/Cargo.toml#L51). +module. A list of available modules you can find [here](https://github.com/727-Ventures/openbrush-contracts/blob/main/contracts/src/lib.rs#L33), +a list of available features [here](https://github.com/727-Ventures/openbrush-contracts/blob/main/Cargo.toml#L51). Each module can be reached via the `openbrush::contracts::` namespace. For example, to use the `psp22` module, you need to import `openbrush::contracts::psp22`; to use the `ownable` module, you need to import `openbrush::contracts::ownable`. @@ -83,17 +73,17 @@ The name of the feature is the same as the name of the module. For example: To enable `psp22`: ```toml -openbrush = { version = "~3.0.0-beta", default-features = false, features = ["psp22"] } +openbrush = { git = "https://github.com/727-Ventures/openbrush-contracts", version = "~3.0.0-beta", default-features = false, features = ["psp22"] } ``` To enable `ownable`: ```toml -openbrush = { version = "~3.0.0-beta", default-features = false, features = ["ownable"] } +openbrush = { git = "https://github.com/727-Ventures/openbrush-contracts", version = "~3.0.0-beta", default-features = false, features = ["ownable"] } ``` To enable both: ```toml -openbrush = { version = "~3.0.0-beta", default-features = false, features = ["psp22", "ownable"] } +openbrush = { git = "https://github.com/727-Ventures/openbrush-contracts", version = "~3.0.0-beta", default-features = false, features = ["psp22, ownable"] } ``` After enabling the feature and importing the corresponding module, you need to embed the module @@ -211,7 +201,7 @@ the module and main trait. Some contract extensions require additional steps, so you can find instructions on how to work with them: * [PSP22](PSP22/psp22.md) is an example of how you can reuse the implementation of - [psp22](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp22). You also can find examples of how to reuse extensions. + [psp22](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp22). You also can find examples of how to reuse extensions. * [PSP22Metadata](PSP22/Extensions/metadata.md): metadata for PSP22. * [PSP22Mintable](PSP22/Extensions/mintable.md): creation of new tokens. * [PSP22Burnable](PSP22/Extensions/burnable.md): destruction of own tokens. @@ -220,40 +210,33 @@ you can find instructions on how to work with them: * [PSP22Pausable](PSP22/Extensions/pausable.md): example of using pausable extension in the PSP22 contract. * [PSP22TokenTimelock](PSP22/Utils/token-timelock.md): Utility which allows token holders to lock their tokens for a specified amount of time. * [PSP34](PSP34/psp34.md) is an example of how you can reuse the implementation of - [psp34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34). You also can find examples of how to reuse extensions. + [psp34](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34). You also can find examples of how to reuse extensions. * [PSP34Metadata](PSP34/Extensions/metadata.md): metadata for PSP34. * [PSP34Mintable](PSP34/Extensions/mintable.md): creation of new tokens. * [PSP34Burnable](PSP34/Extensions/burnable.md): destruction of own tokens. * [PSP34Enumerable](PSP34/Extensions/enumerable.md): iterating over contract's tokens. * [PSP37](PSP37/psp37.md) is an example of how you can reuse the implementation of - [psp37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37). You also can find examples of how to reuse extensions. + [psp37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37). You also can find examples of how to reuse extensions. * [PSP37Metadata](PSP37/Extensions/metadata.md): metadata for PSP37. * [PSP37Mintable](PSP37/Extensions/mintable.md): creation of new tokens. * [PSP37Burnable](PSP37/Extensions/burnable.md): destruction of own tokens. * [PSP37Batch](PSP37/Extensions/batch.md): batch transferring of tokens. * [PSP37Enumerable](PSP37/Extensions/enumerable.md): iterating over contract's tokens. * [Access Control](access-control/access-control.md) shows how you can use the implementation of - [access-control](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/access/access_control) and - [psp34](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/token/psp34) together to provide rights to mint and burn NFT tokens. + [access-control](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/access/access_control) and + [psp34](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/token/psp34) together to provide rights to mint and burn NFT tokens. * [AccessControlEnumerable](access-control/Extensions/enumerable.md): iterating over contract's roles. * [Ownable](ownable.md) shows how you can use the implementation of - [ownable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/access/ownable) and - [psp37](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/token/psp37) together to provide rights to mint and burn tokens. -* [ReentrancyGuard](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/security/reentrancy_guard) + [ownable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/access/ownable) and + [psp37](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/token/psp37) together to provide rights to mint and burn tokens. +* [ReentrancyGuard](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/security/reentrancy_guard) modifier to prevent reentrancy during certain functions. * [Pausable](pausable.md) shows how you can use the implementation of - [pausable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/security/pausable) + [pausable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/security/pausable) contract and modifiers. * [TimelockController](timelock-controller.md) shows how you can use the implementation of - [timelock-controller](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/governance/timelock_controller) + [timelock-controller](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/governance/timelock_controller) to execute a transaction with some delay via governance. * [PaymentSplitter](payment-splitter.md) shows how you can use the implementation of - [payment-splitter](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/finance/payment_splitter) - to split received native tokens between participants of the contract. -* [Diamond](diamond/diamond.md) shows how you can use the implementation of - [diamond](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/upgradeability/diamond) - pattern to split your contract into small parts and support upgradeability. - * [DiamondLoupe](diamond/Extensions/loupe.md): iterating over contract's facets. -* [Proxy](proxy.md) shows how you can use the implementation of - [proxy](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/upgradeability/proxy) - pattern to support upgradeability of your contract. \ No newline at end of file + [payment-splitter](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/finance/payment_splitter) + to split received native tokens between participants of the contract. \ No newline at end of file diff --git a/docs/docs/smart-contracts/ownable.md b/docs/docs/smart-contracts/ownable.md index fb7635184..692afd351 100644 --- a/docs/docs/smart-contracts/ownable.md +++ b/docs/docs/smart-contracts/ownable.md @@ -3,7 +3,7 @@ sidebar_position: 3 title: Ownable --- -This example shows how you can use the implementation of [ownable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/access/ownable) to provide `only owner` rights for contract's functions. +This example shows how you can use the implementation of [ownable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/access/ownable) to provide `only owner` rights for contract's functions. ## Step 1: Import default implementation @@ -79,4 +79,4 @@ pub mod my_ownable { ``` -You can check an example of the usage of [Ownable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/ownable). +You can check an example of the usage of [Ownable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/ownable). diff --git a/docs/docs/smart-contracts/pausable.md b/docs/docs/smart-contracts/pausable.md index 23febfa3b..4e15199d2 100644 --- a/docs/docs/smart-contracts/pausable.md +++ b/docs/docs/smart-contracts/pausable.md @@ -4,7 +4,7 @@ title: Pausable --- This example shows how you can reuse the implementation of -[pausable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/security/pausable) in `Flipper` contract to `flip` only if the contract is not paused. +[pausable](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/security/pausable) in `Flipper` contract to `flip` only if the contract is not paused. ## Step 1: Import default implementation @@ -76,4 +76,4 @@ pub mod my_pausable { } ``` -You can check an example of the usage of [Pausable](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/pausable). +You can check an example of the usage of [Pausable](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/pausable). diff --git a/docs/docs/smart-contracts/payment-splitter.md b/docs/docs/smart-contracts/payment-splitter.md index d96de1a45..69228355b 100644 --- a/docs/docs/smart-contracts/payment-splitter.md +++ b/docs/docs/smart-contracts/payment-splitter.md @@ -4,7 +4,7 @@ title: Payment Splitter --- This example shows how you can reuse the implementation of -[payment-splitter](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/finance/payment_splitter). +[payment-splitter](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/finance/payment_splitter). ## Step 1: Import default implementation @@ -31,7 +31,7 @@ impl Contract { } ``` -You can check an example of the usage of [PaymentSplitter](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/payment_splitter). +You can check an example of the usage of [PaymentSplitter](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/payment_splitter). ## Step 3 (Optional): Customize your contract diff --git a/docs/docs/smart-contracts/proxy.md b/docs/docs/smart-contracts/proxy.md index 9755bb882..acf4e2f10 100644 --- a/docs/docs/smart-contracts/proxy.md +++ b/docs/docs/smart-contracts/proxy.md @@ -3,7 +3,11 @@ sidebar_position: 3 title: Proxy --- -This example shows how you can use the implementation of [proxy](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/upgradeability/proxy) to to implement proxy pattern for upgradeable contracts. +This example shows how you can use the implementation of [proxy](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/upgradeability/proxy) to to implement proxy pattern for upgradeable contracts. + +## Disclaimer + +Delegate calls [were marked](https://github.com/paritytech/ink/pull/1331#discussion_r953736863) as a possible attack vector in ink! Therefore the `Proxy` pattern will not work within OpenBrush until this is reimplemented in ink! 4. ## Step 1: Import default implementation @@ -79,4 +83,4 @@ pub mod proxy { } ``` -You can check an example of the usage of [Proxy](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/proxy). +You can check an example of the usage of [Proxy](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/proxy). diff --git a/docs/docs/smart-contracts/timelock-controller.md b/docs/docs/smart-contracts/timelock-controller.md index b6be281e2..512622dac 100644 --- a/docs/docs/smart-contracts/timelock-controller.md +++ b/docs/docs/smart-contracts/timelock-controller.md @@ -4,7 +4,7 @@ title: Timelock Controller --- This example shows how you can reuse the implementation of -[timelock-controller](https://github.com/Supercolony-net/openbrush-contracts/tree/main/contracts/src/governance/timelock_controller). +[timelock-controller](https://github.com/727-Ventures/openbrush-contracts/tree/main/contracts/src/governance/timelock_controller). ## Step 1: Import default implementation @@ -79,4 +79,4 @@ pub mod my_timelock_controller { } ``` -You can check an example of the usage of [TimelockController](https://github.com/Supercolony-net/openbrush-contracts/tree/main/examples/timelock_controller). \ No newline at end of file +You can check an example of the usage of [TimelockController](https://github.com/727-Ventures/openbrush-contracts/tree/main/examples/timelock_controller). \ No newline at end of file diff --git a/docs/docs/smart-contracts/upgradeable.md b/docs/docs/smart-contracts/upgradeable.md index a669d9393..35fb6ed6c 100644 --- a/docs/docs/smart-contracts/upgradeable.md +++ b/docs/docs/smart-contracts/upgradeable.md @@ -7,23 +7,13 @@ title: Upgradeable contract ## Overview -Smart contracts are immutable by default, adding a layer of security and trust to the -contracts. But software quality depends on the ability to upgrade source code to -produce iterative releases. A certain degree of mutability is needed for bug fixing -and potential product improvements. +Code of a smart contract deployed on chain is immutable, however, we can update the code hash of a contract to point to a different code (therefore changing the code of the smart contract). This functionality can be used for bug fixing and potential product improvements. To do this, we need to first deploy a smart contract with the new code to register its code hash to the chain, and then call the `ink::env::set_code_hash` function. This function needs to be exposed in the smart contract API. You can check an example [here](https://github.com/paritytech/ink/tree/master/examples/upgradeable-contracts/set-code-hash). -Upgradeability allows experimenting and deploying the product at the early stage, -always leaving the chance to fix vulnerabilities and progressively add features. -It is more actual right now while ink! and contract-pallet are under active development. -Upgradeable contracts are not a Bug if they are developed consciously with -decentralization in mind. +Upgradeability allows experimenting and deploying the product at the early stage, always leaving the chance to fix vulnerabilities and progressively add features. It is more actual right now while ink! and contract-pallet are under active development. Upgradeable contracts are not a Bug if they are developed consciously with decentralization in mind. -Decentralization can be achieved by providing the right to upgrade only to -decentralized authority like governance, multisig, or another analog. +Decentralization can be achieved by providing the right to upgrade only to decentralized authority like governance, multisig, or another analog. -It is not hard to upgrade the logic of contracts. It can be achieved via `Proxy` and `Diamond` -patterns or via the `set_code_hash` function provided by contract-pallet. The hardest -part is to save the contract's state and make it compatible with new logic. +There is also a possibility of smart contract upgradeability via `Proxy` and `Diamond` patterns, but these use `DelegateCall`. Delegate calls [were marked](https://github.com/paritytech/ink/pull/1331#discussion_r953736863) as a possible attack vector in ink! Therefore the `Proxy` and `Diamond` patterns will not work within OpenBrush until this is reimplemented in ink! 4. ## Storage layout @@ -94,7 +84,7 @@ With this approach, you can order your units as you wish. You can add/remove/swa logic units and don't worry about storage layout because each logic unit will have its space in the blockchain's storage. If storage keys are unique, those spaces don't overlap. -OpenBrush provides [`openbrush::upgradeable_storage`](https://github.com/Supercolony-net/openbrush-contracts/blob/main/lang/macro/src/lib.rs#L447) +OpenBrush provides [`openbrush::upgradeable_storage`](https://github.com/727-Ventures/openbrush-contracts/blob/main/lang/macro/src/lib.rs#L447) attribute macro that implements all required traits with specified storage key(storage key is required input argument to macro). Also, macro initializes the field with a default value if the field is not initialized before (it can be actual during the upgrade because new fields are not initialized yet). @@ -188,7 +178,7 @@ and maybe you have a lot of unique structures :D The storage key should be unique per each logic unit. You can assign each key manually or use some hash function to automate it. -OpenBrush provides [`openbrush::storage_unique_key!`](https://github.com/Supercolony-net/openbrush-contracts/blob/main/lang/src/macros.rs#L25) +OpenBrush provides [`openbrush::storage_unique_key!`](https://github.com/727-Ventures/openbrush-contracts/blob/main/lang/src/macros.rs#L25) macro that generates a storage key based on the path to the structure. It has one required input argument - the name of the structure. @@ -216,6 +206,10 @@ pub struct Data { ## Constructor and initialization +### Disclaimer + +The following information describes `Proxy` and `Diamond` patterns of upgradeable storage, which currently don't work in ink! 4 due to `DelegateCall`, but we will leave it here for the future updates of this feature (and also for the OpenBrush versions before `3.0.0-beta`). + Uploading your contract on the blockchain with `contract-pallet` has two phases: - Deploy - deploys source code to the blockchain. After deploying, the network uses the hash of the source code as an identifier for future instantiation of the contract. Now anyone can instantiate the contract by source code hash. - Instantiation - creates the instance of the contract on the blockchain that uses source code by its hash. After that, anyone can interact with the contract. @@ -531,7 +525,7 @@ You have two options for how to do that: ##### Cross-contract call to itself If your `FacetA` implements some trait, then you can use the -[wrapper around trait](https://github.com/Supercolony-net/openbrush-contracts#wrapper-around-traits) +[wrapper around trait](https://github.com/727-Ventures/openbrush-contracts#wrapper-around-traits) feature of OpenBrush to do cross-contract call. > **Note**: The trait should be defined with `openbrush::trait_definition`. diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 35d33ebf5..a7d840514 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -10,7 +10,7 @@ module.exports = { onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.svg', - organizationName: 'supercolony-net', + organizationName: '727-Ventures', projectName: 'openbrush-contracts', themeConfig: { colorMode: { @@ -35,12 +35,12 @@ module.exports = { label: 'Deployment' }, { - href: 'https://twitter.com/supercolony_vs', + href: 'https://twitter.com/brushfam_io', className: 'header-twitter-link', position: 'right' }, { - href: 'https://github.com/Supercolony-net/openbrush-contracts', + href: 'https://github.com/727-Ventures/openbrush-contracts', className: 'header-github-link', position: 'right' } @@ -63,7 +63,7 @@ module.exports = { docs: { routeBasePath: '/', sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/Supercolony-net/openbrush-contracts/tree/main/docs' + editUrl: 'https://github.com/727-Ventures/openbrush-contracts/tree/main/docs' }, theme: { customCss: [require.resolve('./src/css/custom.scss')] diff --git a/example_project_structure/Cargo.toml b/example_project_structure/Cargo.toml index c12c10c9a..5c9596f7b 100644 --- a/example_project_structure/Cargo.toml +++ b/example_project_structure/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lending_project" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/example_project_structure/contracts/lending/Cargo.toml b/example_project_structure/contracts/lending/Cargo.toml index 609e1e6f6..7fb523e6a 100644 --- a/example_project_structure/contracts/lending/Cargo.toml +++ b/example_project_structure/contracts/lending/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lending_contract" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/example_project_structure/contracts/loan/Cargo.toml b/example_project_structure/contracts/loan/Cargo.toml index 1c168d098..4d5c29436 100644 --- a/example_project_structure/contracts/loan/Cargo.toml +++ b/example_project_structure/contracts/loan/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "loan_contract" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/example_project_structure/contracts/shares/Cargo.toml b/example_project_structure/contracts/shares/Cargo.toml index 6f7fca49c..984dd9827 100644 --- a/example_project_structure/contracts/shares/Cargo.toml +++ b/example_project_structure/contracts/shares/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "shares_contract" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/example_project_structure/contracts/stable_coin/Cargo.toml b/example_project_structure/contracts/stable_coin/Cargo.toml index afaaf4190..8e75981ee 100644 --- a/example_project_structure/contracts/stable_coin/Cargo.toml +++ b/example_project_structure/contracts/stable_coin/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "stable_coin_contract" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/access_control/Cargo.toml b/examples/access_control/Cargo.toml index 20e1236b2..13af77d30 100644 --- a/examples/access_control/Cargo.toml +++ b/examples/access_control/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_access_control" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/access_control/README.md b/examples/access_control/README.md index 78badbc03..fc007d92a 100644 --- a/examples/access_control/README.md +++ b/examples/access_control/README.md @@ -7,4 +7,4 @@ Roles can be granted and revoked dynamically via the `grant_role` and `revoke_role`. functions. Each role has an associated admin role, and only accounts that have a role's admin role can call `grant_role` and `revoke_role`. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/access-control) \ No newline at end of file +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/access-control) \ No newline at end of file diff --git a/examples/access_control_extensions/enumerable/Cargo.toml b/examples/access_control_extensions/enumerable/Cargo.toml index 36433ac19..72a12104c 100644 --- a/examples/access_control_extensions/enumerable/Cargo.toml +++ b/examples/access_control_extensions/enumerable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_access_control_enumerable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/alternatives/diamond/ink/Cargo.toml b/examples/alternatives/diamond/ink/Cargo.toml index 5f01ecaa7..3dbcccc43 100644 --- a/examples/alternatives/diamond/ink/Cargo.toml +++ b/examples/alternatives/diamond/ink/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ink_diamond" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/alternatives/diamond/rust/Cargo.toml b/examples/alternatives/diamond/rust/Cargo.toml index 60d792725..04c4f268f 100644 --- a/examples/alternatives/diamond/rust/Cargo.toml +++ b/examples/alternatives/diamond/rust/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rust_diamond" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/diamond/Cargo.toml b/examples/diamond/Cargo.toml index 86defd66c..06ea05476 100644 --- a/examples/diamond/Cargo.toml +++ b/examples/diamond/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_diamond" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/diamond/diamond_caller/Cargo.toml b/examples/diamond/diamond_caller/Cargo.toml index 342f526a1..f33b26fb1 100644 --- a/examples/diamond/diamond_caller/Cargo.toml +++ b/examples/diamond/diamond_caller/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "diamond_caller" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/diamond/psp22_facet_v1/Cargo.toml b/examples/diamond/psp22_facet_v1/Cargo.toml index 9fc0a57b3..b15ae961b 100644 --- a/examples/diamond/psp22_facet_v1/Cargo.toml +++ b/examples/diamond/psp22_facet_v1/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_facet_v1" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/diamond/psp22_facet_v2/Cargo.toml b/examples/diamond/psp22_facet_v2/Cargo.toml index b6d131610..b3034165b 100644 --- a/examples/diamond/psp22_facet_v2/Cargo.toml +++ b/examples/diamond/psp22_facet_v2/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_facet_v2" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/diamond/psp22_metadata_facet/Cargo.toml b/examples/diamond/psp22_metadata_facet/Cargo.toml index 4852a1ecc..bbab2bcaa 100644 --- a/examples/diamond/psp22_metadata_facet/Cargo.toml +++ b/examples/diamond/psp22_metadata_facet/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_metadata_facet" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/ownable/Cargo.toml b/examples/ownable/Cargo.toml index 087880075..79daf270d 100644 --- a/examples/ownable/Cargo.toml +++ b/examples/ownable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_ownable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/ownable/README.md b/examples/ownable/README.md index 00116f16c..d0e25297d 100644 --- a/examples/ownable/README.md +++ b/examples/ownable/README.md @@ -8,4 +8,4 @@ This module is used through the embedding of `ownable::Data` and implementation `Storage` traits. It will make the modifier `only_owner` available, which can be applied to your functions to restrict their use to the owner. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/ownable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/ownable) diff --git a/examples/pausable/Cargo.toml b/examples/pausable/Cargo.toml index 8f1a09d39..01be2685a 100644 --- a/examples/pausable/Cargo.toml +++ b/examples/pausable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_pausable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/pausable/README.md b/examples/pausable/README.md index 730037a1c..28ee68fcb 100644 --- a/examples/pausable/README.md +++ b/examples/pausable/README.md @@ -7,5 +7,5 @@ This module is used through the embedding of `pausable::Data` and implementation `Storage` traits. It will make available the modifier `when_not_paused` and `when_paused`, which can be applied to your functions to restrict their usage. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/pausable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/pausable) diff --git a/examples/payment_splitter/Cargo.toml b/examples/payment_splitter/Cargo.toml index f6120427f..9e11124f6 100644 --- a/examples/payment_splitter/Cargo.toml +++ b/examples/payment_splitter/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_payment_splitter" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/payment_splitter/README.md b/examples/payment_splitter/README.md index 5f22f485b..2999eddec 100644 --- a/examples/payment_splitter/README.md +++ b/examples/payment_splitter/README.md @@ -15,4 +15,4 @@ want to use the `releaseAll` method instead to save you a lot of time. This module is used through embedding of `payment_splitter::Data` and implementation of `PaymentSplitter` and `Storage` traits. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/payment-splitter) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/payment-splitter) diff --git a/examples/proxy/Cargo.toml b/examples/proxy/Cargo.toml index d7cf35fc1..156aa703f 100644 --- a/examples/proxy/Cargo.toml +++ b/examples/proxy/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_proxy" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/proxy/psp22_metadata_upgradeable/Cargo.toml b/examples/proxy/psp22_metadata_upgradeable/Cargo.toml index 77125b13b..82d8baff9 100644 --- a/examples/proxy/psp22_metadata_upgradeable/Cargo.toml +++ b/examples/proxy/psp22_metadata_upgradeable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_metadata_upgradeable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/proxy/psp22_upgradeable/Cargo.toml b/examples/proxy/psp22_upgradeable/Cargo.toml index e908ce104..881dd6110 100644 --- a/examples/proxy/psp22_upgradeable/Cargo.toml +++ b/examples/proxy/psp22_upgradeable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_upgradeable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22/Cargo.toml b/examples/psp22/Cargo.toml index 3bca9ff16..585522aef 100644 --- a/examples/psp22/Cargo.toml +++ b/examples/psp22/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22/README.md b/examples/psp22/README.md index aeef331fc..90be67bc1 100644 --- a/examples/psp22/README.md +++ b/examples/psp22/README.md @@ -2,4 +2,4 @@ Implementation of [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/psp22) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/psp22) diff --git a/examples/psp22_extensions/burnable/Cargo.toml b/examples/psp22_extensions/burnable/Cargo.toml index 89f6946a5..3a4fd4143 100644 --- a/examples/psp22_extensions/burnable/Cargo.toml +++ b/examples/psp22_extensions/burnable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_burnable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_extensions/burnable/README.md b/examples/psp22_extensions/burnable/README.md index b51f81477..aac85e5bf 100644 --- a/examples/psp22_extensions/burnable/README.md +++ b/examples/psp22_extensions/burnable/README.md @@ -2,4 +2,4 @@ Implementation of 'Burnable' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which implies destroying owners tokens or tokens from another account if have an allowance, and decreasing total supply. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/extensions/burnable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/extensions/burnable) diff --git a/examples/psp22_extensions/capped/Cargo.toml b/examples/psp22_extensions/capped/Cargo.toml index 11f47511d..bf29089c7 100644 --- a/examples/psp22_extensions/capped/Cargo.toml +++ b/examples/psp22_extensions/capped/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_capped" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_extensions/capped/README.md b/examples/psp22_extensions/capped/README.md index bd7f53669..61b9bba66 100644 --- a/examples/psp22_extensions/capped/README.md +++ b/examples/psp22_extensions/capped/README.md @@ -2,4 +2,4 @@ Implementation of 'Capped' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which adds cap (maximum amount) of amount of minted tokens. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/extensions/capped) \ No newline at end of file +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/extensions/capped) \ No newline at end of file diff --git a/examples/psp22_extensions/flashmint/Cargo.toml b/examples/psp22_extensions/flashmint/Cargo.toml index 3939b2e49..cd7bf5159 100644 --- a/examples/psp22_extensions/flashmint/Cargo.toml +++ b/examples/psp22_extensions/flashmint/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_flashmint" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_extensions/flashmint/README.md b/examples/psp22_extensions/flashmint/README.md index e90588b59..89413a538 100644 --- a/examples/psp22_extensions/flashmint/README.md +++ b/examples/psp22_extensions/flashmint/README.md @@ -2,4 +2,4 @@ Implementation of 'Flashmint' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which adds the flashloan utility directly to the token. See [EIP-3156](https://eips.ethereum.org/EIPS/eip-3156#flash-mint-reference-implementation). -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/extensions/flashmint) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/extensions/flashmint) diff --git a/examples/psp22_extensions/metadata/Cargo.toml b/examples/psp22_extensions/metadata/Cargo.toml index d7567a140..f6c6b734b 100644 --- a/examples/psp22_extensions/metadata/Cargo.toml +++ b/examples/psp22_extensions/metadata/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_metadata" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_extensions/metadata/README.md b/examples/psp22_extensions/metadata/README.md index 41371d994..0b9ae7efe 100644 --- a/examples/psp22_extensions/metadata/README.md +++ b/examples/psp22_extensions/metadata/README.md @@ -2,4 +2,4 @@ Implementation of 'Metadata' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which allows to add Metadata to the PSP22 token. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/extensions/metadata) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/extensions/metadata) diff --git a/examples/psp22_extensions/mintable/Cargo.toml b/examples/psp22_extensions/mintable/Cargo.toml index 71ed9ff82..677bb81b6 100644 --- a/examples/psp22_extensions/mintable/Cargo.toml +++ b/examples/psp22_extensions/mintable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_mintable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_extensions/mintable/README.md b/examples/psp22_extensions/mintable/README.md index 832bcfcc5..160e09554 100644 --- a/examples/psp22_extensions/mintable/README.md +++ b/examples/psp22_extensions/mintable/README.md @@ -2,4 +2,4 @@ Implementation of 'Mintable' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which allows to create new tokens and assigns them to particular account, increasing the total supply. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/extensions/mintable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/extensions/mintable) diff --git a/examples/psp22_extensions/pausable/Cargo.toml b/examples/psp22_extensions/pausable/Cargo.toml index cf77e2c97..3f1da58bc 100644 --- a/examples/psp22_extensions/pausable/Cargo.toml +++ b/examples/psp22_extensions/pausable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_pausable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_extensions/wrapper/Cargo.toml b/examples/psp22_extensions/wrapper/Cargo.toml index 4cb2092d4..32214782a 100644 --- a/examples/psp22_extensions/wrapper/Cargo.toml +++ b/examples/psp22_extensions/wrapper/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_wrapper" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_extensions/wrapper/README.md b/examples/psp22_extensions/wrapper/README.md index cdb5e5bce..7ab92bf01 100644 --- a/examples/psp22_extensions/wrapper/README.md +++ b/examples/psp22_extensions/wrapper/README.md @@ -2,4 +2,4 @@ Implementation of [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token wrapper extension standard in Polkadot blockchain. This extension allows the user to wrap their tokens. One example of usage of the wrapped tokens is usage in governance system. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/Extensions/wrapper) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/Extensions/wrapper) diff --git a/examples/psp22_pallet/Cargo.toml b/examples/psp22_pallet/Cargo.toml index 2d848ecfa..4e26109dc 100644 --- a/examples/psp22_pallet/Cargo.toml +++ b/examples/psp22_pallet/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_pallet" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_pallet/README.md b/examples/psp22_pallet/README.md index 41da1bc08..721a77ca7 100644 --- a/examples/psp22_pallet/README.md +++ b/examples/psp22_pallet/README.md @@ -1,5 +1,5 @@ ## PSP22 Pallet contract (ERC20 analogue) -Implementation of [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard via [Pallet assets](https://github.com/Supercolony-net/pallet-assets-chain-extension) chain extension in Polkadot blockchain. +Implementation of [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard via [Pallet assets](https://github.com/727-Ventures/pallet-assets-chain-extension) chain extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22-pallet/psp22_pallet) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22-pallet/psp22_pallet) diff --git a/examples/psp22_pallet_extensions/burnable/Cargo.toml b/examples/psp22_pallet_extensions/burnable/Cargo.toml index e84163250..6ad0ebfff 100644 --- a/examples/psp22_pallet_extensions/burnable/Cargo.toml +++ b/examples/psp22_pallet_extensions/burnable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_pallet_burnable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_pallet_extensions/burnable/README.md b/examples/psp22_pallet_extensions/burnable/README.md index 68b2655d4..e2b213d86 100644 --- a/examples/psp22_pallet_extensions/burnable/README.md +++ b/examples/psp22_pallet_extensions/burnable/README.md @@ -2,4 +2,4 @@ Implementation of 'Burnable' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which implies destroying owners tokens or tokens from another account if have an allowance, and decreasing total supply. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22_pallet/extensions/burnable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22_pallet/extensions/burnable) diff --git a/examples/psp22_pallet_extensions/metadata/Cargo.toml b/examples/psp22_pallet_extensions/metadata/Cargo.toml index b861f2ede..7c3cefe87 100644 --- a/examples/psp22_pallet_extensions/metadata/Cargo.toml +++ b/examples/psp22_pallet_extensions/metadata/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_pallet_metadata" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_pallet_extensions/metadata/README.md b/examples/psp22_pallet_extensions/metadata/README.md index 703196819..3108cc8b8 100644 --- a/examples/psp22_pallet_extensions/metadata/README.md +++ b/examples/psp22_pallet_extensions/metadata/README.md @@ -2,4 +2,4 @@ Implementation of 'Metadata' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which allows to add Metadata to the PSP22 token. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22_pallet/extensions/metadata) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22_pallet/extensions/metadata) diff --git a/examples/psp22_pallet_extensions/mintable/Cargo.toml b/examples/psp22_pallet_extensions/mintable/Cargo.toml index 589620276..d8bcdae68 100644 --- a/examples/psp22_pallet_extensions/mintable/Cargo.toml +++ b/examples/psp22_pallet_extensions/mintable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_pallet_mintable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_pallet_extensions/mintable/README.md b/examples/psp22_pallet_extensions/mintable/README.md index e89de9452..9c433753b 100644 --- a/examples/psp22_pallet_extensions/mintable/README.md +++ b/examples/psp22_pallet_extensions/mintable/README.md @@ -2,4 +2,4 @@ Implementation of 'Mintable' extension for [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token standard in Polkadot blockchain, which allows to create new tokens and assigns them to particular account, increasing the total supply. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22_pallet/extensions/mintable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22_pallet/extensions/mintable) diff --git a/examples/psp22_utils/token_timelock/Cargo.toml b/examples/psp22_utils/token_timelock/Cargo.toml index 006603837..50b02b49a 100644 --- a/examples/psp22_utils/token_timelock/Cargo.toml +++ b/examples/psp22_utils/token_timelock/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp22_token_timelock" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp22_utils/token_timelock/README.md b/examples/psp22_utils/token_timelock/README.md index c697c12ce..a43d72569 100644 --- a/examples/psp22_utils/token_timelock/README.md +++ b/examples/psp22_utils/token_timelock/README.md @@ -2,4 +2,4 @@ Implementation of [PSP22](https://github.com/w3f/PSPs/blob/master/PSPs/psp-22.md) token timelock utility in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp22/utils/token_timelock) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp22/utils/token_timelock) diff --git a/examples/psp34/Cargo.toml b/examples/psp34/Cargo.toml index 48c4a4f15..4631a0acd 100644 --- a/examples/psp34/Cargo.toml +++ b/examples/psp34/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp34" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp34/README.md b/examples/psp34/README.md index eb3ddcbe7..c9d600ea1 100644 --- a/examples/psp34/README.md +++ b/examples/psp34/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-721](https://eips.ethereum.org/EIPS/eip-721) token standard in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp34/psp34) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp34/psp34) diff --git a/examples/psp34_extensions/burnable/Cargo.toml b/examples/psp34_extensions/burnable/Cargo.toml index d0a1f049d..e2eaaab70 100644 --- a/examples/psp34_extensions/burnable/Cargo.toml +++ b/examples/psp34_extensions/burnable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp34_burnable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp34_extensions/burnable/README.md b/examples/psp34_extensions/burnable/README.md index 13e4a999a..e7910fb7d 100644 --- a/examples/psp34_extensions/burnable/README.md +++ b/examples/psp34_extensions/burnable/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-721](https://eips.ethereum.org/EIPS/eip-721) token standard with burnable extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp34/extensions/burnable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp34/extensions/burnable) diff --git a/examples/psp34_extensions/enumerable/Cargo.toml b/examples/psp34_extensions/enumerable/Cargo.toml index 5be1b388b..f969694f7 100644 --- a/examples/psp34_extensions/enumerable/Cargo.toml +++ b/examples/psp34_extensions/enumerable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp34_enumerable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp34_extensions/enumerable/README.md b/examples/psp34_extensions/enumerable/README.md index 50d243152..5dd7a8e8e 100644 --- a/examples/psp34_extensions/enumerable/README.md +++ b/examples/psp34_extensions/enumerable/README.md @@ -2,4 +2,4 @@ Implementation of [PSP34](https://github.com/w3f/PSPs/blob/master/PSPs/psp-34.md) analog [EIP-721](https://eips.ethereum.org/EIPS/eip-721) token standard with [enumerable](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Enumerable.sol) extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp34/extensions/metadata) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp34/extensions/metadata) diff --git a/examples/psp34_extensions/metadata/Cargo.toml b/examples/psp34_extensions/metadata/Cargo.toml index 48b1ca386..6392494b5 100644 --- a/examples/psp34_extensions/metadata/Cargo.toml +++ b/examples/psp34_extensions/metadata/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp34_metadata" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp34_extensions/metadata/README.md b/examples/psp34_extensions/metadata/README.md index a19bfed4f..4a17153a2 100644 --- a/examples/psp34_extensions/metadata/README.md +++ b/examples/psp34_extensions/metadata/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-721](https://eips.ethereum.org/EIPS/eip-721) token standard with metadata extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp34/extensions/metadata) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp34/extensions/metadata) diff --git a/examples/psp34_extensions/mintable/Cargo.toml b/examples/psp34_extensions/mintable/Cargo.toml index 8a5b31bfb..122f9d5ff 100644 --- a/examples/psp34_extensions/mintable/Cargo.toml +++ b/examples/psp34_extensions/mintable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp34_mintable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp34_extensions/mintable/README.md b/examples/psp34_extensions/mintable/README.md index df5588320..52b607adc 100644 --- a/examples/psp34_extensions/mintable/README.md +++ b/examples/psp34_extensions/mintable/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-721](https://eips.ethereum.org/EIPS/eip-721) token standard with mintable extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp34/extensions/mintable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp34/extensions/mintable) diff --git a/examples/psp37/Cargo.toml b/examples/psp37/Cargo.toml index 698a587d8..f4cbf5548 100644 --- a/examples/psp37/Cargo.toml +++ b/examples/psp37/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp37" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp37/README.md b/examples/psp37/README.md index a108e3ca7..982f3d863 100644 --- a/examples/psp37/README.md +++ b/examples/psp37/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155) token standard in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp37/psp37) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp37/psp37) diff --git a/examples/psp37_extensions/batch/Cargo.toml b/examples/psp37_extensions/batch/Cargo.toml index 16395baea..b751a9348 100644 --- a/examples/psp37_extensions/batch/Cargo.toml +++ b/examples/psp37_extensions/batch/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp37_batch" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp37_extensions/batch/README.md b/examples/psp37_extensions/batch/README.md index 85073f3c5..f2700b504 100644 --- a/examples/psp37_extensions/batch/README.md +++ b/examples/psp37_extensions/batch/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155) token standard with batch extension in Polkadot blockchain that allows batch transferring of tokens. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37batch) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37batch) diff --git a/examples/psp37_extensions/burnable/Cargo.toml b/examples/psp37_extensions/burnable/Cargo.toml index ee5d51608..3eecd9ebe 100644 --- a/examples/psp37_extensions/burnable/Cargo.toml +++ b/examples/psp37_extensions/burnable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp37_burnable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp37_extensions/burnable/README.md b/examples/psp37_extensions/burnable/README.md index 5f052cc7f..59036778a 100644 --- a/examples/psp37_extensions/burnable/README.md +++ b/examples/psp37_extensions/burnable/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155) token standard with burnable extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37burnable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37burnable) diff --git a/examples/psp37_extensions/enumerable/Cargo.toml b/examples/psp37_extensions/enumerable/Cargo.toml index d446f3a1b..bc6182f6a 100644 --- a/examples/psp37_extensions/enumerable/Cargo.toml +++ b/examples/psp37_extensions/enumerable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp37_enumerable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp37_extensions/enumerable/README.md b/examples/psp37_extensions/enumerable/README.md index a332eb228..d52b0f885 100644 --- a/examples/psp37_extensions/enumerable/README.md +++ b/examples/psp37_extensions/enumerable/README.md @@ -2,4 +2,4 @@ Implementation of [PSP37](https://github.com/w3f/PSPs/blob/master/PSPs/drafts/psp-35.md) analog of [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155) token standard with enumerable extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37enumerable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37enumerable) diff --git a/examples/psp37_extensions/metadata/Cargo.toml b/examples/psp37_extensions/metadata/Cargo.toml index 820d9ad53..20dc28b65 100644 --- a/examples/psp37_extensions/metadata/Cargo.toml +++ b/examples/psp37_extensions/metadata/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp37_metadata" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp37_extensions/metadata/README.md b/examples/psp37_extensions/metadata/README.md index 86ca5706d..d41235b48 100644 --- a/examples/psp37_extensions/metadata/README.md +++ b/examples/psp37_extensions/metadata/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155) token standard with metadata extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37metadata) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37metadata) diff --git a/examples/psp37_extensions/mintable/Cargo.toml b/examples/psp37_extensions/mintable/Cargo.toml index 1d71e9e90..035d54abf 100644 --- a/examples/psp37_extensions/mintable/Cargo.toml +++ b/examples/psp37_extensions/mintable/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_psp37_mintable" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/psp37_extensions/mintable/README.md b/examples/psp37_extensions/mintable/README.md index 365d9d968..7a8f2dad3 100644 --- a/examples/psp37_extensions/mintable/README.md +++ b/examples/psp37_extensions/mintable/README.md @@ -2,4 +2,4 @@ Implementation of [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155) token standard with mintable extension in Polkadot blockchain. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37mintable) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/psp37/extensions/psp37mintable) diff --git a/examples/reentrancy_guard/Cargo.toml b/examples/reentrancy_guard/Cargo.toml index 9f3d8bcfa..96ebefe8e 100644 --- a/examples/reentrancy_guard/Cargo.toml +++ b/examples/reentrancy_guard/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "flipper" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/reentrancy_guard/README.md b/examples/reentrancy_guard/README.md index 5a7178c78..9bb96575a 100644 --- a/examples/reentrancy_guard/README.md +++ b/examples/reentrancy_guard/README.md @@ -9,4 +9,4 @@ by making the `non_reentrant` function external, and make it call a This modifier flushes the struct into storage with `ENTERED` status before calling the original method. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/reentrancy-guard) \ No newline at end of file +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/reentrancy-guard) \ No newline at end of file diff --git a/examples/reentrancy_guard/contracts/flip_on_me/Cargo.toml b/examples/reentrancy_guard/contracts/flip_on_me/Cargo.toml index 2e4ba9853..e5dd3d569 100644 --- a/examples/reentrancy_guard/contracts/flip_on_me/Cargo.toml +++ b/examples/reentrancy_guard/contracts/flip_on_me/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "flip_on_me" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/reentrancy_guard/contracts/flipper/Cargo.toml b/examples/reentrancy_guard/contracts/flipper/Cargo.toml index 9845533c5..949da58f8 100644 --- a/examples/reentrancy_guard/contracts/flipper/Cargo.toml +++ b/examples/reentrancy_guard/contracts/flipper/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_flipper_guard" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/timelock_controller/Cargo.toml b/examples/timelock_controller/Cargo.toml index 98e3b3acd..d56c7eb54 100644 --- a/examples/timelock_controller/Cargo.toml +++ b/examples/timelock_controller/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "my_timelock_controller" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/examples/timelock_controller/README.md b/examples/timelock_controller/README.md index 4a3606f4c..da3ae4c7a 100644 --- a/examples/timelock_controller/README.md +++ b/examples/timelock_controller/README.md @@ -16,4 +16,4 @@ This module is used through embedding of `timelock_controller::Data`, `access_co implementation of `TimelockController`, `AccessControl` and `Storage` traits. -[See example](https://supercolony-net.github.io/openbrush-contracts/smart-contracts/timelock-controller) +[See example](https://727-Ventures.github.io/openbrush-contracts/smart-contracts/timelock-controller) diff --git a/lang/Cargo.toml b/lang/Cargo.toml index b82133549..59276a3e0 100644 --- a/lang/Cargo.toml +++ b/lang/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "openbrush_lang" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" license = "MIT" -repository = "https://github.com/Supercolony-net/openbrush-contracts" +repository = "https://github.com/727-Ventures/openbrush-contracts" documentation = "https://docs.openbrush.io" -homepage = "https://supercolony.net" +homepage = "https://727.ventures" description = "Aggregator of all openbrush functionality and utils." -keywords = ["wasm", "supercolony", "smart-contracts", "blockchain", "ink"] +keywords = ["wasm", "brushfam", "smart-contracts", "blockchain", "ink"] categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs"] diff --git a/lang/codegen/Cargo.toml b/lang/codegen/Cargo.toml index aa982fc3d..229b50958 100644 --- a/lang/codegen/Cargo.toml +++ b/lang/codegen/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "openbrush_lang_codegen" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" license = "MIT" -repository = "https://github.com/Supercolony-net/openbrush-contracts" +repository = "https://github.com/727-Ventures/openbrush-contracts" documentation = "https://docs.openbrush.io" -homepage = "https://supercolony.net" +homepage = "https://727.ventures" description = "OpenBrush codegeneration for macros in `openbrush_lang_macro`." -keywords = ["wasm", "supercolony", "smart-contracts", "blockchain", "ink"] +keywords = ["wasm", "brushfam", "smart-contracts", "blockchain", "ink"] categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs"] diff --git a/lang/macro/Cargo.toml b/lang/macro/Cargo.toml index 3ead30bf4..39f956887 100644 --- a/lang/macro/Cargo.toml +++ b/lang/macro/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "openbrush_lang_macro" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" license = "MIT" -repository = "https://github.com/Supercolony-net/openbrush-contracts" +repository = "https://github.com/727-Ventures/openbrush-contracts" documentation = "https://docs.openbrush.io" -homepage = "https://supercolony.net" +homepage = "https://727.ventures" description = "OpenBrush macros to extend functionality of the ink!." -keywords = ["wasm", "supercolony", "smart-contracts", "blockchain", "ink"] +keywords = ["wasm", "brushfam", "smart-contracts", "blockchain", "ink"] categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs"] diff --git a/mock/flash-borrower/Cargo.toml b/mock/flash-borrower/Cargo.toml index 7fb2cfb6f..3d011aa96 100644 --- a/mock/flash-borrower/Cargo.toml +++ b/mock/flash-borrower/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "flash_borrower" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/mock/psp22-receiver/Cargo.toml b/mock/psp22-receiver/Cargo.toml index 6cd841772..7f40da3ab 100644 --- a/mock/psp22-receiver/Cargo.toml +++ b/mock/psp22-receiver/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "psp22_receiver" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/mock/psp34-receiver/Cargo.toml b/mock/psp34-receiver/Cargo.toml index 02ae793f9..6eee8a07c 100644 --- a/mock/psp34-receiver/Cargo.toml +++ b/mock/psp34-receiver/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "psp34_receiver" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/mock/psp37-receiver/Cargo.toml b/mock/psp37-receiver/Cargo.toml index a2e5e63de..257bd62b4 100644 --- a/mock/psp37-receiver/Cargo.toml +++ b/mock/psp37-receiver/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "psp37_receiver" version = "3.0.0-beta" -authors = ["Supercolony "] +authors = ["Brushfam "] edition = "2021" [dependencies] diff --git a/tests/e2e/psp37/extensions/metadata.tests.ts b/tests/e2e/psp37/extensions/metadata.tests.ts index cd2e9cd05..46cbe304e 100644 --- a/tests/e2e/psp37/extensions/metadata.tests.ts +++ b/tests/e2e/psp37/extensions/metadata.tests.ts @@ -39,11 +39,11 @@ describe('MY_PSP37_METADATA', () => { await expect(query.getAttribute(id, bnArg(1))).to.have.output(null) - await tx.setAttribute(id, bnArg(1), bnArg(encoder.encode('https://www.supercolony.net/'))) + await tx.setAttribute(id, bnArg(1), bnArg(encoder.encode('https://www.727.ventures/'))) await expect(query.getAttribute(id, bnArg(1))).to.have.output( '0x' + bytesToHex( - Uint8Array.from(bnArg(encoder.encode('https://www.supercolony.net/'))) + Uint8Array.from(bnArg(encoder.encode('https://www.727.ventures/'))) ) )