├── .devcontainer └── devcontainer.json ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── brand_new_feature.yml │ ├── bug_report.yml │ └── improvement_to_existing_feature.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── ci.yml │ ├── docs.yml │ ├── gh-pages.yml │ └── publish-libs.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── docs ├── book │ ├── .gitignore │ ├── .spellcheck.yml │ ├── README.md │ ├── book.toml │ ├── spell-check-custom-words.txt │ ├── src │ │ ├── SUMMARY.md │ │ ├── admin │ │ │ └── index.md │ │ ├── asset │ │ │ ├── base.md │ │ │ ├── index.md │ │ │ ├── metadata.md │ │ │ └── supply.md │ │ ├── bigint │ │ │ └── index.md │ │ ├── bytecode │ │ │ └── index.md │ │ ├── getting_started │ │ │ ├── index.md │ │ │ └── running_tests.md │ │ ├── index.md │ │ ├── merkle │ │ │ └── index.md │ │ ├── ownership │ │ │ └── index.md │ │ ├── pausable │ │ │ └── index.md │ │ ├── queue │ │ │ └── index.md │ │ ├── reentrancy │ │ │ └── index.md │ │ ├── signed_integers │ │ │ └── index.md │ │ └── upgradability │ │ │ └── index.md │ └── theme │ │ └── highlight.js ├── contributing-book │ ├── .gitignore │ ├── README.md │ ├── book.toml │ ├── src │ │ ├── SUMMARY.md │ │ ├── code │ │ │ ├── .gitignore │ │ │ ├── Forc.lock │ │ │ ├── Forc.toml │ │ │ ├── bad_documentation │ │ │ │ ├── Forc.toml │ │ │ │ └── src │ │ │ │ │ └── lib.sw │ │ │ ├── connect_four │ │ │ │ ├── Forc.toml │ │ │ │ └── src │ │ │ │ │ ├── data_structures.sw │ │ │ │ │ ├── errors.sw │ │ │ │ │ ├── events.sw │ │ │ │ │ ├── interface.sw │ │ │ │ │ ├── main.sw │ │ │ │ │ └── utils.sw │ │ │ └── style_guide │ │ │ │ ├── Forc.toml │ │ │ │ └── src │ │ │ │ └── lib.sw │ │ ├── code_docs │ │ │ ├── abi.md │ │ │ ├── comments.md │ │ │ ├── index.md │ │ │ ├── naming-components.md │ │ │ ├── specification.md │ │ │ └── style.md │ │ ├── documentation │ │ │ ├── index.md │ │ │ └── read-me.md │ │ ├── images │ │ │ ├── app-documentation.png │ │ │ ├── app-filter-assignee.png │ │ │ ├── app-filter-comments.png │ │ │ ├── app-filter.png │ │ │ ├── filter-dropdown.png │ │ │ └── issue-templates.png │ │ ├── index.md │ │ ├── issues │ │ │ ├── assignment.md │ │ │ ├── create-issue.md │ │ │ ├── filtering.md │ │ │ ├── index.md │ │ │ ├── search.md │ │ │ └── summary.md │ │ ├── library-quality │ │ │ ├── code-structure.md │ │ │ ├── index.md │ │ │ └── library-structure.md │ │ ├── pull-requests │ │ │ ├── commit.md │ │ │ ├── creating-pr.md │ │ │ └── index.md │ │ └── testing │ │ │ └── index.md │ └── theme │ │ └── highlight.js ├── sway-libs-logo-dark-theme.png └── sway-libs-logo-light-theme.png ├── examples ├── .gitignore ├── Cargo.toml ├── Forc.lock ├── Forc.toml ├── admin │ ├── Forc.toml │ └── src │ │ ├── main.sw │ │ └── owner_integration.sw ├── asset │ ├── base_docs │ │ ├── Forc.lock │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ ├── basic_src20 │ │ ├── Forc.lock │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ ├── basic_src3 │ │ ├── Forc.lock │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ ├── basic_src7 │ │ ├── Forc.lock │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ ├── metadata_docs │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ ├── setting_src20_attributes │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ ├── setting_src7_attributes │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ └── supply_docs │ │ ├── Forc.toml │ │ └── src │ │ └── main.sw ├── big_integers │ ├── Forc.toml │ └── src │ │ └── main.sw ├── bytecode │ ├── Forc.toml │ └── src │ │ └── main.sw ├── harness.rs ├── merkle_binary │ ├── Forc.toml │ ├── mod.rs │ └── src │ │ └── main.sw ├── merkle_sparse │ ├── Forc.toml │ ├── mod.rs │ └── src │ │ └── main.sw ├── ownership │ ├── Forc.toml │ └── src │ │ ├── lib.sw │ │ └── main.sw ├── ownership_configurable │ ├── Forc.toml │ └── src │ │ └── main.sw ├── pausable │ ├── pausable │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ └── pausable_with_ownership │ │ ├── Forc.toml │ │ └── src │ │ └── main.sw ├── queue │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy │ ├── Forc.toml │ └── src │ │ └── main.sw ├── signed_integers │ ├── Forc.toml │ └── src │ │ └── main.sw └── upgradability │ ├── Forc.toml │ └── src │ └── main.sw ├── libs ├── admin │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── admin.sw │ │ └── errors.sw ├── asset │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── base.sw │ │ ├── errors.sw │ │ ├── lib.sw │ │ ├── metadata.sw │ │ └── supply.sw ├── big_int │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ └── big_int.sw ├── bytecode │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── bytecode.sw │ │ └── utils.sw ├── merkle │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── binary.sw │ │ ├── common.sw │ │ ├── merkle.sw │ │ └── sparse.sw ├── ownership │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── errors.sw │ │ ├── events.sw │ │ └── ownership.sw ├── pausable │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── errors.sw │ │ ├── events.sw │ │ └── pausable.sw ├── queue │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ └── queue.sw ├── reentrancy │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── errors.sw │ │ └── reentrancy.sw ├── signed_int │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ │ ├── common.sw │ │ ├── errors.sw │ │ ├── i128.sw │ │ ├── i16.sw │ │ ├── i256.sw │ │ ├── i32.sw │ │ ├── i64.sw │ │ ├── i8.sw │ │ └── signed_int.sw └── upgradability │ ├── Forc.lock │ ├── Forc.toml │ ├── README.md │ └── src │ ├── errors.sw │ ├── events.sw │ └── upgradability.sw ├── mlc_config.json └── tests ├── .gitignore ├── Cargo.toml ├── Forc.lock ├── Forc.toml └── src ├── admin ├── Forc.toml ├── mod.rs ├── src │ └── main.sw └── tests │ ├── functions │ ├── add_admin.rs │ ├── is_admin.rs │ ├── mod.rs │ ├── only_admin.rs │ ├── only_owner_or_admin.rs │ └── remove_admin.rs │ ├── mod.rs │ └── utils │ └── mod.rs ├── bigint ├── Forc.lock ├── Forc.toml └── src │ └── main.sw ├── bytecode ├── .gitignore ├── mod.rs ├── test_artifacts │ ├── complex_contract │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ ├── simple_contract │ │ ├── Forc.toml │ │ └── src │ │ │ └── main.sw │ └── simple_predicate │ │ ├── Forc.toml │ │ └── src │ │ └── main.sw ├── test_contract │ ├── Forc.toml │ └── src │ │ └── main.sw └── tests │ ├── functions │ ├── compute_bytecode_root.rs │ ├── compute_predicate_address.rs │ ├── mod.rs │ ├── predicate_address_from_root.rs │ ├── swap_configurables.rs │ ├── verify_contract_bytecode.rs │ └── verify_predicate_address.rs │ ├── mod.rs │ └── utils │ └── mod.rs ├── harness.rs ├── merkle_proof ├── .gitignore ├── Forc.toml ├── mod.rs ├── src │ └── main.sw └── tests │ ├── functions │ ├── binary_leaf_digest.rs │ ├── binary_process_proof.rs │ ├── binary_verify_proof.rs │ ├── mod.rs │ ├── node_digest.rs │ ├── sparse_leaf_digest.rs │ ├── sparse_root.rs │ └── sparse_verify.rs │ ├── mod.rs │ └── utils │ └── mod.rs ├── native_asset ├── Forc.toml ├── mod.rs ├── src │ └── main.sw └── tests │ ├── functions │ ├── burn.rs │ ├── decimals.rs │ ├── metadata.rs │ ├── mint.rs │ ├── mod.rs │ ├── name.rs │ ├── set_decimals.rs │ ├── set_metadata.rs │ ├── set_name.rs │ ├── set_symbol.rs │ ├── symbol.rs │ ├── total_assets.rs │ └── total_supply.rs │ ├── mod.rs │ └── utils │ ├── interface.rs │ ├── mod.rs │ └── setup.rs ├── ownership ├── .gitignore ├── Forc.toml ├── mod.rs ├── src │ └── main.sw └── tests │ ├── functions │ ├── mod.rs │ ├── only_owner.rs │ ├── owner.rs │ ├── renounce_ownership.rs │ ├── set_ownership.rs │ └── transfer_ownership.rs │ ├── mod.rs │ └── utils │ └── mod.rs ├── pausable ├── Forc.toml └── src │ └── main.sw ├── reentrancy ├── mod.rs ├── reentrancy_attack_fallback_abi │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy_attack_helper_abi │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy_attack_helper_contract │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy_attacker_abi │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy_attacker_contract │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy_proxy_abi │ ├── Forc.lock │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy_proxy_contract │ ├── Forc.lock │ ├── Forc.toml │ └── src │ │ └── main.sw ├── reentrancy_target_abi │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw └── reentrancy_target_contract │ ├── .gitignore │ ├── Forc.toml │ └── src │ └── main.sw ├── signed_integers ├── signed_i128 │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── signed_i16 │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── signed_i256 │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── signed_i32 │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw ├── signed_i64 │ ├── .gitignore │ ├── Forc.toml │ └── src │ │ └── main.sw └── signed_i8 │ ├── .gitignore │ ├── Forc.toml │ └── src │ └── main.sw └── upgradability ├── Forc.toml ├── mod.rs ├── src └── main.sw └── tests ├── functions ├── mod.rs ├── only_proxy_owner.rs ├── proxy_owner.rs ├── proxy_target.rs ├── set_proxy_owner.rs └── set_proxy_target.rs ├── mod.rs └── utils └── mod.rs /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @FuelLabs/onchain 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/brand_new_feature.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/ISSUE_TEMPLATE/brand_new_feature.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/ISSUE_TEMPLATE/bug_report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/improvement_to_existing_feature.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/ISSUE_TEMPLATE/improvement_to_existing_feature.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.github/workflows/gh-pages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/workflows/gh-pages.yml -------------------------------------------------------------------------------- /.github/workflows/publish-libs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.github/workflows/publish-libs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/README.md -------------------------------------------------------------------------------- /docs/book/.gitignore: -------------------------------------------------------------------------------- 1 | book 2 | -------------------------------------------------------------------------------- /docs/book/.spellcheck.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/.spellcheck.yml -------------------------------------------------------------------------------- /docs/book/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/README.md -------------------------------------------------------------------------------- /docs/book/book.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/book.toml -------------------------------------------------------------------------------- /docs/book/spell-check-custom-words.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/spell-check-custom-words.txt -------------------------------------------------------------------------------- /docs/book/src/SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/SUMMARY.md -------------------------------------------------------------------------------- /docs/book/src/admin/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/admin/index.md -------------------------------------------------------------------------------- /docs/book/src/asset/base.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/asset/base.md -------------------------------------------------------------------------------- /docs/book/src/asset/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/asset/index.md -------------------------------------------------------------------------------- /docs/book/src/asset/metadata.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/asset/metadata.md -------------------------------------------------------------------------------- /docs/book/src/asset/supply.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/asset/supply.md -------------------------------------------------------------------------------- /docs/book/src/bigint/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/bigint/index.md -------------------------------------------------------------------------------- /docs/book/src/bytecode/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/bytecode/index.md -------------------------------------------------------------------------------- /docs/book/src/getting_started/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/getting_started/index.md -------------------------------------------------------------------------------- /docs/book/src/getting_started/running_tests.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/getting_started/running_tests.md -------------------------------------------------------------------------------- /docs/book/src/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/index.md -------------------------------------------------------------------------------- /docs/book/src/merkle/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/merkle/index.md -------------------------------------------------------------------------------- /docs/book/src/ownership/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/ownership/index.md -------------------------------------------------------------------------------- /docs/book/src/pausable/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/pausable/index.md -------------------------------------------------------------------------------- /docs/book/src/queue/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/queue/index.md -------------------------------------------------------------------------------- /docs/book/src/reentrancy/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/reentrancy/index.md -------------------------------------------------------------------------------- /docs/book/src/signed_integers/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/signed_integers/index.md -------------------------------------------------------------------------------- /docs/book/src/upgradability/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/src/upgradability/index.md -------------------------------------------------------------------------------- /docs/book/theme/highlight.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/book/theme/highlight.js -------------------------------------------------------------------------------- /docs/contributing-book/.gitignore: -------------------------------------------------------------------------------- 1 | book 2 | -------------------------------------------------------------------------------- /docs/contributing-book/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/README.md -------------------------------------------------------------------------------- /docs/contributing-book/book.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/book.toml -------------------------------------------------------------------------------- /docs/contributing-book/src/SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/SUMMARY.md -------------------------------------------------------------------------------- /docs/contributing-book/src/code/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/.gitignore -------------------------------------------------------------------------------- /docs/contributing-book/src/code/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/Forc.lock -------------------------------------------------------------------------------- /docs/contributing-book/src/code/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/Forc.toml -------------------------------------------------------------------------------- /docs/contributing-book/src/code/bad_documentation/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/bad_documentation/Forc.toml -------------------------------------------------------------------------------- /docs/contributing-book/src/code/bad_documentation/src/lib.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/bad_documentation/src/lib.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code/connect_four/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/connect_four/Forc.toml -------------------------------------------------------------------------------- /docs/contributing-book/src/code/connect_four/src/data_structures.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/connect_four/src/data_structures.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code/connect_four/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/connect_four/src/errors.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code/connect_four/src/events.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/connect_four/src/events.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code/connect_four/src/interface.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/connect_four/src/interface.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code/connect_four/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/connect_four/src/main.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code/connect_four/src/utils.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/connect_four/src/utils.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code/style_guide/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/style_guide/Forc.toml -------------------------------------------------------------------------------- /docs/contributing-book/src/code/style_guide/src/lib.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code/style_guide/src/lib.sw -------------------------------------------------------------------------------- /docs/contributing-book/src/code_docs/abi.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code_docs/abi.md -------------------------------------------------------------------------------- /docs/contributing-book/src/code_docs/comments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code_docs/comments.md -------------------------------------------------------------------------------- /docs/contributing-book/src/code_docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code_docs/index.md -------------------------------------------------------------------------------- /docs/contributing-book/src/code_docs/naming-components.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code_docs/naming-components.md -------------------------------------------------------------------------------- /docs/contributing-book/src/code_docs/specification.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code_docs/specification.md -------------------------------------------------------------------------------- /docs/contributing-book/src/code_docs/style.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/code_docs/style.md -------------------------------------------------------------------------------- /docs/contributing-book/src/documentation/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/documentation/index.md -------------------------------------------------------------------------------- /docs/contributing-book/src/documentation/read-me.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/documentation/read-me.md -------------------------------------------------------------------------------- /docs/contributing-book/src/images/app-documentation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/images/app-documentation.png -------------------------------------------------------------------------------- /docs/contributing-book/src/images/app-filter-assignee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/images/app-filter-assignee.png -------------------------------------------------------------------------------- /docs/contributing-book/src/images/app-filter-comments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/images/app-filter-comments.png -------------------------------------------------------------------------------- /docs/contributing-book/src/images/app-filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/images/app-filter.png -------------------------------------------------------------------------------- /docs/contributing-book/src/images/filter-dropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/images/filter-dropdown.png -------------------------------------------------------------------------------- /docs/contributing-book/src/images/issue-templates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/images/issue-templates.png -------------------------------------------------------------------------------- /docs/contributing-book/src/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/index.md -------------------------------------------------------------------------------- /docs/contributing-book/src/issues/assignment.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/issues/assignment.md -------------------------------------------------------------------------------- /docs/contributing-book/src/issues/create-issue.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/issues/create-issue.md -------------------------------------------------------------------------------- /docs/contributing-book/src/issues/filtering.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/issues/filtering.md -------------------------------------------------------------------------------- /docs/contributing-book/src/issues/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/issues/index.md -------------------------------------------------------------------------------- /docs/contributing-book/src/issues/search.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/issues/search.md -------------------------------------------------------------------------------- /docs/contributing-book/src/issues/summary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/issues/summary.md -------------------------------------------------------------------------------- /docs/contributing-book/src/library-quality/code-structure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/library-quality/code-structure.md -------------------------------------------------------------------------------- /docs/contributing-book/src/library-quality/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/library-quality/index.md -------------------------------------------------------------------------------- /docs/contributing-book/src/library-quality/library-structure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/library-quality/library-structure.md -------------------------------------------------------------------------------- /docs/contributing-book/src/pull-requests/commit.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/pull-requests/commit.md -------------------------------------------------------------------------------- /docs/contributing-book/src/pull-requests/creating-pr.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/pull-requests/creating-pr.md -------------------------------------------------------------------------------- /docs/contributing-book/src/pull-requests/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/pull-requests/index.md -------------------------------------------------------------------------------- /docs/contributing-book/src/testing/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/src/testing/index.md -------------------------------------------------------------------------------- /docs/contributing-book/theme/highlight.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/contributing-book/theme/highlight.js -------------------------------------------------------------------------------- /docs/sway-libs-logo-dark-theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/sway-libs-logo-dark-theme.png -------------------------------------------------------------------------------- /docs/sway-libs-logo-light-theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/docs/sway-libs-logo-light-theme.png -------------------------------------------------------------------------------- /examples/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /examples/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/Cargo.toml -------------------------------------------------------------------------------- /examples/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/Forc.lock -------------------------------------------------------------------------------- /examples/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/Forc.toml -------------------------------------------------------------------------------- /examples/admin/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/admin/Forc.toml -------------------------------------------------------------------------------- /examples/admin/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/admin/src/main.sw -------------------------------------------------------------------------------- /examples/admin/src/owner_integration.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/admin/src/owner_integration.sw -------------------------------------------------------------------------------- /examples/asset/base_docs/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/base_docs/Forc.lock -------------------------------------------------------------------------------- /examples/asset/base_docs/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/base_docs/Forc.toml -------------------------------------------------------------------------------- /examples/asset/base_docs/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/base_docs/src/main.sw -------------------------------------------------------------------------------- /examples/asset/basic_src20/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src20/Forc.lock -------------------------------------------------------------------------------- /examples/asset/basic_src20/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src20/Forc.toml -------------------------------------------------------------------------------- /examples/asset/basic_src20/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src20/src/main.sw -------------------------------------------------------------------------------- /examples/asset/basic_src3/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src3/Forc.lock -------------------------------------------------------------------------------- /examples/asset/basic_src3/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src3/Forc.toml -------------------------------------------------------------------------------- /examples/asset/basic_src3/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src3/src/main.sw -------------------------------------------------------------------------------- /examples/asset/basic_src7/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src7/Forc.lock -------------------------------------------------------------------------------- /examples/asset/basic_src7/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src7/Forc.toml -------------------------------------------------------------------------------- /examples/asset/basic_src7/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/basic_src7/src/main.sw -------------------------------------------------------------------------------- /examples/asset/metadata_docs/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/metadata_docs/Forc.toml -------------------------------------------------------------------------------- /examples/asset/metadata_docs/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/metadata_docs/src/main.sw -------------------------------------------------------------------------------- /examples/asset/setting_src20_attributes/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/setting_src20_attributes/Forc.toml -------------------------------------------------------------------------------- /examples/asset/setting_src20_attributes/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/setting_src20_attributes/src/main.sw -------------------------------------------------------------------------------- /examples/asset/setting_src7_attributes/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/setting_src7_attributes/Forc.toml -------------------------------------------------------------------------------- /examples/asset/setting_src7_attributes/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/setting_src7_attributes/src/main.sw -------------------------------------------------------------------------------- /examples/asset/supply_docs/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/supply_docs/Forc.toml -------------------------------------------------------------------------------- /examples/asset/supply_docs/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/asset/supply_docs/src/main.sw -------------------------------------------------------------------------------- /examples/big_integers/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/big_integers/Forc.toml -------------------------------------------------------------------------------- /examples/big_integers/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/big_integers/src/main.sw -------------------------------------------------------------------------------- /examples/bytecode/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/bytecode/Forc.toml -------------------------------------------------------------------------------- /examples/bytecode/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/bytecode/src/main.sw -------------------------------------------------------------------------------- /examples/harness.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/harness.rs -------------------------------------------------------------------------------- /examples/merkle_binary/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/merkle_binary/Forc.toml -------------------------------------------------------------------------------- /examples/merkle_binary/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/merkle_binary/mod.rs -------------------------------------------------------------------------------- /examples/merkle_binary/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/merkle_binary/src/main.sw -------------------------------------------------------------------------------- /examples/merkle_sparse/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/merkle_sparse/Forc.toml -------------------------------------------------------------------------------- /examples/merkle_sparse/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/merkle_sparse/mod.rs -------------------------------------------------------------------------------- /examples/merkle_sparse/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/merkle_sparse/src/main.sw -------------------------------------------------------------------------------- /examples/ownership/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/ownership/Forc.toml -------------------------------------------------------------------------------- /examples/ownership/src/lib.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/ownership/src/lib.sw -------------------------------------------------------------------------------- /examples/ownership/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/ownership/src/main.sw -------------------------------------------------------------------------------- /examples/ownership_configurable/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/ownership_configurable/Forc.toml -------------------------------------------------------------------------------- /examples/ownership_configurable/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/ownership_configurable/src/main.sw -------------------------------------------------------------------------------- /examples/pausable/pausable/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/pausable/pausable/Forc.toml -------------------------------------------------------------------------------- /examples/pausable/pausable/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/pausable/pausable/src/main.sw -------------------------------------------------------------------------------- /examples/pausable/pausable_with_ownership/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/pausable/pausable_with_ownership/Forc.toml -------------------------------------------------------------------------------- /examples/pausable/pausable_with_ownership/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/pausable/pausable_with_ownership/src/main.sw -------------------------------------------------------------------------------- /examples/queue/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/queue/Forc.toml -------------------------------------------------------------------------------- /examples/queue/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/queue/src/main.sw -------------------------------------------------------------------------------- /examples/reentrancy/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/reentrancy/Forc.toml -------------------------------------------------------------------------------- /examples/reentrancy/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/reentrancy/src/main.sw -------------------------------------------------------------------------------- /examples/signed_integers/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/signed_integers/Forc.toml -------------------------------------------------------------------------------- /examples/signed_integers/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/signed_integers/src/main.sw -------------------------------------------------------------------------------- /examples/upgradability/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/upgradability/Forc.toml -------------------------------------------------------------------------------- /examples/upgradability/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/examples/upgradability/src/main.sw -------------------------------------------------------------------------------- /libs/admin/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/admin/Forc.lock -------------------------------------------------------------------------------- /libs/admin/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/admin/Forc.toml -------------------------------------------------------------------------------- /libs/admin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/admin/README.md -------------------------------------------------------------------------------- /libs/admin/src/admin.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/admin/src/admin.sw -------------------------------------------------------------------------------- /libs/admin/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/admin/src/errors.sw -------------------------------------------------------------------------------- /libs/asset/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/Forc.lock -------------------------------------------------------------------------------- /libs/asset/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/Forc.toml -------------------------------------------------------------------------------- /libs/asset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/README.md -------------------------------------------------------------------------------- /libs/asset/src/base.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/src/base.sw -------------------------------------------------------------------------------- /libs/asset/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/src/errors.sw -------------------------------------------------------------------------------- /libs/asset/src/lib.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/src/lib.sw -------------------------------------------------------------------------------- /libs/asset/src/metadata.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/src/metadata.sw -------------------------------------------------------------------------------- /libs/asset/src/supply.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/asset/src/supply.sw -------------------------------------------------------------------------------- /libs/big_int/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/big_int/Forc.lock -------------------------------------------------------------------------------- /libs/big_int/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/big_int/Forc.toml -------------------------------------------------------------------------------- /libs/big_int/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/big_int/README.md -------------------------------------------------------------------------------- /libs/big_int/src/big_int.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/big_int/src/big_int.sw -------------------------------------------------------------------------------- /libs/bytecode/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/bytecode/Forc.lock -------------------------------------------------------------------------------- /libs/bytecode/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/bytecode/Forc.toml -------------------------------------------------------------------------------- /libs/bytecode/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/bytecode/README.md -------------------------------------------------------------------------------- /libs/bytecode/src/bytecode.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/bytecode/src/bytecode.sw -------------------------------------------------------------------------------- /libs/bytecode/src/utils.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/bytecode/src/utils.sw -------------------------------------------------------------------------------- /libs/merkle/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/merkle/Forc.lock -------------------------------------------------------------------------------- /libs/merkle/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/merkle/Forc.toml -------------------------------------------------------------------------------- /libs/merkle/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/merkle/README.md -------------------------------------------------------------------------------- /libs/merkle/src/binary.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/merkle/src/binary.sw -------------------------------------------------------------------------------- /libs/merkle/src/common.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/merkle/src/common.sw -------------------------------------------------------------------------------- /libs/merkle/src/merkle.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/merkle/src/merkle.sw -------------------------------------------------------------------------------- /libs/merkle/src/sparse.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/merkle/src/sparse.sw -------------------------------------------------------------------------------- /libs/ownership/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/ownership/Forc.lock -------------------------------------------------------------------------------- /libs/ownership/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/ownership/Forc.toml -------------------------------------------------------------------------------- /libs/ownership/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/ownership/README.md -------------------------------------------------------------------------------- /libs/ownership/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/ownership/src/errors.sw -------------------------------------------------------------------------------- /libs/ownership/src/events.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/ownership/src/events.sw -------------------------------------------------------------------------------- /libs/ownership/src/ownership.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/ownership/src/ownership.sw -------------------------------------------------------------------------------- /libs/pausable/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/pausable/Forc.lock -------------------------------------------------------------------------------- /libs/pausable/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/pausable/Forc.toml -------------------------------------------------------------------------------- /libs/pausable/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/pausable/README.md -------------------------------------------------------------------------------- /libs/pausable/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/pausable/src/errors.sw -------------------------------------------------------------------------------- /libs/pausable/src/events.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/pausable/src/events.sw -------------------------------------------------------------------------------- /libs/pausable/src/pausable.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/pausable/src/pausable.sw -------------------------------------------------------------------------------- /libs/queue/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/queue/Forc.lock -------------------------------------------------------------------------------- /libs/queue/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/queue/Forc.toml -------------------------------------------------------------------------------- /libs/queue/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/queue/README.md -------------------------------------------------------------------------------- /libs/queue/src/queue.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/queue/src/queue.sw -------------------------------------------------------------------------------- /libs/reentrancy/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/reentrancy/Forc.lock -------------------------------------------------------------------------------- /libs/reentrancy/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/reentrancy/Forc.toml -------------------------------------------------------------------------------- /libs/reentrancy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/reentrancy/README.md -------------------------------------------------------------------------------- /libs/reentrancy/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/reentrancy/src/errors.sw -------------------------------------------------------------------------------- /libs/reentrancy/src/reentrancy.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/reentrancy/src/reentrancy.sw -------------------------------------------------------------------------------- /libs/signed_int/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/Forc.lock -------------------------------------------------------------------------------- /libs/signed_int/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/Forc.toml -------------------------------------------------------------------------------- /libs/signed_int/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/README.md -------------------------------------------------------------------------------- /libs/signed_int/src/common.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/common.sw -------------------------------------------------------------------------------- /libs/signed_int/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/errors.sw -------------------------------------------------------------------------------- /libs/signed_int/src/i128.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/i128.sw -------------------------------------------------------------------------------- /libs/signed_int/src/i16.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/i16.sw -------------------------------------------------------------------------------- /libs/signed_int/src/i256.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/i256.sw -------------------------------------------------------------------------------- /libs/signed_int/src/i32.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/i32.sw -------------------------------------------------------------------------------- /libs/signed_int/src/i64.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/i64.sw -------------------------------------------------------------------------------- /libs/signed_int/src/i8.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/i8.sw -------------------------------------------------------------------------------- /libs/signed_int/src/signed_int.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/signed_int/src/signed_int.sw -------------------------------------------------------------------------------- /libs/upgradability/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/upgradability/Forc.lock -------------------------------------------------------------------------------- /libs/upgradability/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/upgradability/Forc.toml -------------------------------------------------------------------------------- /libs/upgradability/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/upgradability/README.md -------------------------------------------------------------------------------- /libs/upgradability/src/errors.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/upgradability/src/errors.sw -------------------------------------------------------------------------------- /libs/upgradability/src/events.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/upgradability/src/events.sw -------------------------------------------------------------------------------- /libs/upgradability/src/upgradability.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/libs/upgradability/src/upgradability.sw -------------------------------------------------------------------------------- /mlc_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/mlc_config.json -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/Cargo.toml -------------------------------------------------------------------------------- /tests/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/Forc.lock -------------------------------------------------------------------------------- /tests/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/Forc.toml -------------------------------------------------------------------------------- /tests/src/admin/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/Forc.toml -------------------------------------------------------------------------------- /tests/src/admin/mod.rs: -------------------------------------------------------------------------------- 1 | mod tests; 2 | -------------------------------------------------------------------------------- /tests/src/admin/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/src/main.sw -------------------------------------------------------------------------------- /tests/src/admin/tests/functions/add_admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/functions/add_admin.rs -------------------------------------------------------------------------------- /tests/src/admin/tests/functions/is_admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/functions/is_admin.rs -------------------------------------------------------------------------------- /tests/src/admin/tests/functions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/functions/mod.rs -------------------------------------------------------------------------------- /tests/src/admin/tests/functions/only_admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/functions/only_admin.rs -------------------------------------------------------------------------------- /tests/src/admin/tests/functions/only_owner_or_admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/functions/only_owner_or_admin.rs -------------------------------------------------------------------------------- /tests/src/admin/tests/functions/remove_admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/functions/remove_admin.rs -------------------------------------------------------------------------------- /tests/src/admin/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/mod.rs -------------------------------------------------------------------------------- /tests/src/admin/tests/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/admin/tests/utils/mod.rs -------------------------------------------------------------------------------- /tests/src/bigint/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bigint/Forc.lock -------------------------------------------------------------------------------- /tests/src/bigint/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bigint/Forc.toml -------------------------------------------------------------------------------- /tests/src/bigint/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bigint/src/main.sw -------------------------------------------------------------------------------- /tests/src/bytecode/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/bytecode/mod.rs: -------------------------------------------------------------------------------- 1 | mod tests; 2 | -------------------------------------------------------------------------------- /tests/src/bytecode/test_artifacts/complex_contract/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_artifacts/complex_contract/Forc.toml -------------------------------------------------------------------------------- /tests/src/bytecode/test_artifacts/complex_contract/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_artifacts/complex_contract/src/main.sw -------------------------------------------------------------------------------- /tests/src/bytecode/test_artifacts/simple_contract/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_artifacts/simple_contract/Forc.toml -------------------------------------------------------------------------------- /tests/src/bytecode/test_artifacts/simple_contract/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_artifacts/simple_contract/src/main.sw -------------------------------------------------------------------------------- /tests/src/bytecode/test_artifacts/simple_predicate/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_artifacts/simple_predicate/Forc.toml -------------------------------------------------------------------------------- /tests/src/bytecode/test_artifacts/simple_predicate/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_artifacts/simple_predicate/src/main.sw -------------------------------------------------------------------------------- /tests/src/bytecode/test_contract/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_contract/Forc.toml -------------------------------------------------------------------------------- /tests/src/bytecode/test_contract/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/test_contract/src/main.sw -------------------------------------------------------------------------------- /tests/src/bytecode/tests/functions/compute_bytecode_root.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/functions/compute_bytecode_root.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/functions/compute_predicate_address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/functions/compute_predicate_address.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/functions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/functions/mod.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/functions/predicate_address_from_root.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/functions/predicate_address_from_root.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/functions/swap_configurables.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/functions/swap_configurables.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/functions/verify_contract_bytecode.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/functions/verify_contract_bytecode.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/functions/verify_predicate_address.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/functions/verify_predicate_address.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/mod.rs -------------------------------------------------------------------------------- /tests/src/bytecode/tests/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/bytecode/tests/utils/mod.rs -------------------------------------------------------------------------------- /tests/src/harness.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/harness.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/merkle_proof/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/Forc.toml -------------------------------------------------------------------------------- /tests/src/merkle_proof/mod.rs: -------------------------------------------------------------------------------- 1 | mod tests; 2 | -------------------------------------------------------------------------------- /tests/src/merkle_proof/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/src/main.sw -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/binary_leaf_digest.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/binary_leaf_digest.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/binary_process_proof.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/binary_process_proof.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/binary_verify_proof.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/binary_verify_proof.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/mod.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/node_digest.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/node_digest.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/sparse_leaf_digest.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/sparse_leaf_digest.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/sparse_root.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/sparse_root.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/functions/sparse_verify.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/functions/sparse_verify.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/mod.rs -------------------------------------------------------------------------------- /tests/src/merkle_proof/tests/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/merkle_proof/tests/utils/mod.rs -------------------------------------------------------------------------------- /tests/src/native_asset/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/Forc.toml -------------------------------------------------------------------------------- /tests/src/native_asset/mod.rs: -------------------------------------------------------------------------------- 1 | mod tests; 2 | -------------------------------------------------------------------------------- /tests/src/native_asset/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/src/main.sw -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/burn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/burn.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/decimals.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/decimals.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/metadata.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/metadata.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/mint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/mint.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/mod.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/name.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/name.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/set_decimals.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/set_decimals.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/set_metadata.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/set_metadata.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/set_name.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/set_name.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/set_symbol.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/set_symbol.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/symbol.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/symbol.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/total_assets.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/total_assets.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/functions/total_supply.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/functions/total_supply.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/mod.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/utils/interface.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/utils/interface.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/utils/mod.rs -------------------------------------------------------------------------------- /tests/src/native_asset/tests/utils/setup.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/native_asset/tests/utils/setup.rs -------------------------------------------------------------------------------- /tests/src/ownership/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/src/ownership/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/Forc.toml -------------------------------------------------------------------------------- /tests/src/ownership/mod.rs: -------------------------------------------------------------------------------- 1 | mod tests; 2 | -------------------------------------------------------------------------------- /tests/src/ownership/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/src/main.sw -------------------------------------------------------------------------------- /tests/src/ownership/tests/functions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/functions/mod.rs -------------------------------------------------------------------------------- /tests/src/ownership/tests/functions/only_owner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/functions/only_owner.rs -------------------------------------------------------------------------------- /tests/src/ownership/tests/functions/owner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/functions/owner.rs -------------------------------------------------------------------------------- /tests/src/ownership/tests/functions/renounce_ownership.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/functions/renounce_ownership.rs -------------------------------------------------------------------------------- /tests/src/ownership/tests/functions/set_ownership.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/functions/set_ownership.rs -------------------------------------------------------------------------------- /tests/src/ownership/tests/functions/transfer_ownership.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/functions/transfer_ownership.rs -------------------------------------------------------------------------------- /tests/src/ownership/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/mod.rs -------------------------------------------------------------------------------- /tests/src/ownership/tests/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/ownership/tests/utils/mod.rs -------------------------------------------------------------------------------- /tests/src/pausable/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/pausable/Forc.toml -------------------------------------------------------------------------------- /tests/src/pausable/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/pausable/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/mod.rs -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_fallback_abi/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attack_fallback_abi/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_fallback_abi/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attack_fallback_abi/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_helper_abi/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_helper_abi/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attack_helper_abi/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_helper_abi/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attack_helper_abi/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_helper_contract/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_helper_contract/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attack_helper_contract/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attack_helper_contract/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attack_helper_contract/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attacker_abi/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attacker_abi/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attacker_abi/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attacker_abi/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attacker_abi/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attacker_contract/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attacker_contract/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attacker_contract/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_attacker_contract/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_attacker_contract/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_proxy_abi/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_proxy_abi/Forc.lock -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_proxy_abi/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_proxy_abi/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_proxy_abi/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_proxy_abi/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_proxy_contract/Forc.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_proxy_contract/Forc.lock -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_proxy_contract/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_proxy_contract/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_proxy_contract/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_proxy_contract/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_target_abi/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_target_abi/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_target_abi/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_target_abi/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_target_abi/src/main.sw -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_target_contract/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_target_contract/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_target_contract/Forc.toml -------------------------------------------------------------------------------- /tests/src/reentrancy/reentrancy_target_contract/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/reentrancy/reentrancy_target_contract/src/main.sw -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i128/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i128/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i128/Forc.toml -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i128/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i128/src/main.sw -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i16/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i16/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i16/Forc.toml -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i16/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i16/src/main.sw -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i256/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i256/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i256/Forc.toml -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i256/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i256/src/main.sw -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i32/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i32/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i32/Forc.toml -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i32/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i32/src/main.sw -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i64/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i64/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i64/Forc.toml -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i64/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i64/src/main.sw -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i8/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | target 3 | -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i8/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i8/Forc.toml -------------------------------------------------------------------------------- /tests/src/signed_integers/signed_i8/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/signed_integers/signed_i8/src/main.sw -------------------------------------------------------------------------------- /tests/src/upgradability/Forc.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/Forc.toml -------------------------------------------------------------------------------- /tests/src/upgradability/mod.rs: -------------------------------------------------------------------------------- 1 | mod tests; 2 | -------------------------------------------------------------------------------- /tests/src/upgradability/src/main.sw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/src/main.sw -------------------------------------------------------------------------------- /tests/src/upgradability/tests/functions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/functions/mod.rs -------------------------------------------------------------------------------- /tests/src/upgradability/tests/functions/only_proxy_owner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/functions/only_proxy_owner.rs -------------------------------------------------------------------------------- /tests/src/upgradability/tests/functions/proxy_owner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/functions/proxy_owner.rs -------------------------------------------------------------------------------- /tests/src/upgradability/tests/functions/proxy_target.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/functions/proxy_target.rs -------------------------------------------------------------------------------- /tests/src/upgradability/tests/functions/set_proxy_owner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/functions/set_proxy_owner.rs -------------------------------------------------------------------------------- /tests/src/upgradability/tests/functions/set_proxy_target.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/functions/set_proxy_target.rs -------------------------------------------------------------------------------- /tests/src/upgradability/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/mod.rs -------------------------------------------------------------------------------- /tests/src/upgradability/tests/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FuelLabs/sway-libs/HEAD/tests/src/upgradability/tests/utils/mod.rs --------------------------------------------------------------------------------