From 7ab50cc1d6cfb69ec863729dc692420933b66583 Mon Sep 17 00:00:00 2001 From: bitzoic Date: Thu, 21 Dec 2023 10:24:16 -0500 Subject: [PATCH] Fix broken links to examples --- README.md | 16 ++++++++-------- standards/src20-token/README.md | 4 ++-- standards/src3-mint-burn/README.md | 4 ++-- standards/src5-ownership/README.md | 4 ++-- standards/src6-vault/README.md | 6 +++--- standards/src7-metadata/README.md | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 3481e22..2a7b3ac 100644 --- a/README.md +++ b/README.md @@ -70,41 +70,41 @@ Minimal example implementations for every standard can be found in the [`example #### SRC-20; Token Standard Examples -##### - [Single Native Assset](./examples/src_20/single_asset/src/single_asset.sw) +##### - [Single Native Assset](./examples/src20-token/single_asset/src/single_asset.sw) Example of the SRC-20 implementation where a contract contains a single asset with one `SubId`. This implementation is recommended for users that intend to deploy a single asset with their contract. -##### - [Multi Native Asset](./examples/src_20/multi_asset/src/multi_asset.sw) +##### - [Multi Native Asset](./examples/src20-token/multi_asset/src/multi_asset.sw) Example of the SRC-20 implementation where a contract contains multiple assets with differing `SubId`s. This implementation is recommended for users that intend to deploy multiple assets with their contract. #### SRC-3; Mint and Burn Standard Examples -##### - [Single Native Asset](./examples/src_3/single_asset/src/single_asset.sw) +##### - [Single Native Asset](./examples/src3-mint-burn/single_asset/src/single_asset.sw) Example of the SRC-3 implementation where a contract only mints a single asset with one `SubId`. -##### - [Multi Native Asset](./examples/src_3/multi_asset/src/multi_asset.sw) +##### - [Multi Native Asset](./examples/src3-mint-burn/multi_asset/src/multi_asset.sw) Example of the SRC-3 implementation where a contract mints multiple assets with differing `SubId`s. #### SRC-5; Ownership Examples -##### - [Uninitalized](./examples/src_5/uninitialized_example/src/uninitialized_example.sw) +##### - [Uninitalized](./examples/src5-ownership/uninitialized_example/src/uninitialized_example.sw) Example of the SRC-5 implementation where a contract does not have an owner set at compile time with the intent to set it during runtime. -##### - [Initialized](./examples/src_5/initialized_example/src/initialized_example.sw) +##### - [Initialized](./examples/src5-ownership/initialized_example/src/initialized_example.sw) Example of the SRC-5 implementation where a contract has an owner set at compile time. #### SRC-7; Arbitrary Asset Metadata Standard Examples -##### - [Single Native Asset](./examples/src_7/single_asset/src/single_asset.sw) +##### - [Single Native Asset](./examples/src7-metadata/single_asset/src/single_asset.sw) Example of the SRC-7 implementation where metadata exists for only a single asset with one `SubId`. -##### - [Mutli Native Asset](./examples/src_7/multi_asset/src/multi_asset.sw) +##### - [Mutli Native Asset](./examples/src7-metadata/multi_asset/src/multi_asset.sw) Example of the SRC-7 implementation where metadata exists for multiple assets with differing `SubId`s. diff --git a/standards/src20-token/README.md b/standards/src20-token/README.md index 2077ca2..1441989 100644 --- a/standards/src20-token/README.md +++ b/standards/src20-token/README.md @@ -87,10 +87,10 @@ abi MyToken { # Example Implementation -## [Single Native Assset](../../examples/src_20/single_asset/src/single_asset.sw) +## [Single Native Assset](../../examples/src20-token/single_asset/src/single_asset.sw) Example of the SRC-20 implementation where a contract contains a single asset with one `SubId`. This implementation is recommended for users that intend to deploy a single asset with their contract. -## [Multi Native Asset](../../examples/src_20/multi_asset/src/multi_asset.sw) +## [Multi Native Asset](../../examples/src20-token/multi_asset/src/multi_asset.sw) Example of the SRC-20 implementation where a contract contains multiple assets with differing `SubId`s. This implementation is recommended for users that intend to deploy multiple assets with their contract. diff --git a/standards/src3-mint-burn/README.md b/standards/src3-mint-burn/README.md index 3a92c17..9d04875 100644 --- a/standards/src3-mint-burn/README.md +++ b/standards/src3-mint-burn/README.md @@ -63,10 +63,10 @@ abi MySRC3Token { # Example Implementation -## [Single Native Asset](../../examples/src_3/single_asset/src/single_asset.sw) +## [Single Native Asset](../../examples/src3-mint-burn/single_asset/src/single_asset.sw) Example of the SRC-3 implementation where a contract only mints a single asset with one `SubId`. -## [Multi Native Asset](../../examples/src_3/multi_asset/src/multi_asset.sw) +## [Multi Native Asset](../../examples/src3-mint-burn/multi_asset/src/multi_asset.sw) Example of the SRC-3 implementation where a contract mints multiple assets with differing `SubId`s. diff --git a/standards/src5-ownership/README.md b/standards/src5-ownership/README.md index bd9d1f8..f81c99c 100644 --- a/standards/src5-ownership/README.md +++ b/standards/src5-ownership/README.md @@ -83,10 +83,10 @@ abi SRC5 { # Example Implementation -## [Uninitalized](../../examples/src_5/uninitialized_example/src/uninitialized_example.sw) +## [Uninitalized](../../examples/src5-ownership/uninitialized_example/src/uninitialized_example.sw) Example of the SRC-5 implementation where a contract does not have an owner set at compile time with the intent to set it during runtime. -## [Initialized](../../examples/src_5/initialized_example/src/initialized_example.sw) +## [Initialized](../../examples/src5-ownership/initialized_example/src/initialized_example.sw) Example of the SRC-5 implementation where a contract has an owner set at compile time. diff --git a/standards/src6-vault/README.md b/standards/src6-vault/README.md index 6114f24..a16d137 100644 --- a/standards/src6-vault/README.md +++ b/standards/src6-vault/README.md @@ -172,14 +172,14 @@ abi SRC6 { # Example Implementation -## [Multi Token Vault](../../examples/src_6/multi_token_vault/) +## [Multi Token Vault](../../examples/src6-vault/multi_token_vault/) A barebones implementation of the vault standard that supports any number of sub vaults being created for every AssetId. -## [Single Token Vault](../../examples/src_6/single_token_vault/) +## [Single Token Vault](../../examples/src6-vault/single_token_vault/) A barebones implemenation of the vault standard demonstrating how to constrict deposits and withdrawals to a single AssetId. -## [Single Token Single Sub Vault](../../examples/src_6/single_token_single_sub_vault/) +## [Single Token Single Sub Vault](../../examples/src6-vault/single_token_single_sub_vault/) A barebones implementation of the vault standard demonstrating how to constrict deposits and withdrawals to a single AssetId, and to a single Sub vault. \ No newline at end of file diff --git a/standards/src7-metadata/README.md b/standards/src7-metadata/README.md index aadadf5..17837c4 100644 --- a/standards/src7-metadata/README.md +++ b/standards/src7-metadata/README.md @@ -74,10 +74,10 @@ abi SRC7Metadata { # Example Implementation -## [Single Native Asset](../../examples/src_7/single_asset/src/single_asset.sw) +## [Single Native Asset](../../examples/src7-metadata/single_asset/src/single_asset.sw) Example of the SRC-7 implementation where metadata exists for only a single asset with one `SubId`. -## [Mutli Native Asset](../../examples/src_7/multi_asset/src/multi_asset.sw) +## [Mutli Native Asset](../../examples/src7-metadata/multi_asset/src/multi_asset.sw) Example of the SRC-7 implementation where metadata exists for multiple assets with differing `SubId`s.