Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SRC-20 Examples #32

Merged
merged 5 commits into from
Nov 1, 2023
Merged

Add SRC-20 Examples #32

merged 5 commits into from
Nov 1, 2023

Conversation

bitzoic
Copy link
Member

@bitzoic bitzoic commented Nov 1, 2023

Type of change

  • New feature
  • Documentation

Changes

The following changes have been made:

  • Added basic SRC-20 Example of a single asset contract
  • Added basic SRC-20 example of a multi asset contract
  • Added Examples folder to CI
  • Created Examples workspace

Notes

  • These are in a separate folder as nested packages are not supported

Related Issues

Closes #31

@bitzoic bitzoic added Documentation Improvements or additions to documentation Enhancement New feature or request SRC 20 Label used to filter for the standard issue labels Nov 1, 2023
@bitzoic bitzoic self-assigned this Nov 1, 2023
@bitzoic bitzoic requested a review from a team as a code owner November 1, 2023 08:47
Braqzen
Braqzen previously approved these changes Nov 1, 2023
Copy link
Contributor

@Braqzen Braqzen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure of the purpose for this because it's limited to a few getters.

examples/src_20/multi_asset/src/multi_asset.sw Outdated Show resolved Hide resolved
examples/src_20/single_asset/src/single_asset.sw Outdated Show resolved Hide resolved
@bitzoic
Copy link
Member Author

bitzoic commented Nov 1, 2023

I'm unsure of the purpose for this because it's limited to a few getters.

That is the intention. A barebones example of only the standard implemented, NOT an application. It must compile, use no external libraries, no helper functions, and no special bells or whistles.

@bitzoic bitzoic requested a review from a team November 1, 2023 10:48
@bitzoic bitzoic merged commit b156ae4 into master Nov 1, 2023
2 checks passed
@bitzoic bitzoic deleted the src-20-example branch November 6, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Enhancement New feature or request SRC 20 Label used to filter for the standard issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Barebones Examples for Existing Standards
3 participants