Skip to content

Commit

Permalink
feat(metadata): add NEP141 token standard for near blockchain (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Franky <75002277+FrankLi123@users.noreply.github.com>
  • Loading branch information
pseudoyu and FrankLi123 authored Sep 12, 2024
1 parent a48f7b6 commit 595c4bb
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 34 deletions.
4 changes: 4 additions & 0 deletions schema/metadata/collectible.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func (r CollectibleTradeAction) Type() schema.Type {
const (
ActionCollectibleTradeBuy CollectibleTradeAction = iota + 1
ActionCollectibleTradeSell
ActionCollectibleTradeOffer
ActionCollectibleTradeSet
ActionCollectibleTradeCreate
ActionCollectibleTradeFinalize
)

var _ Metadata = (*CollectibleTradeAction)(nil)
Expand Down
32 changes: 24 additions & 8 deletions schema/metadata/collectible_trade.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions schema/metadata/governance.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (r GovernanceVoteAction) Type() schema.Type {
}

const (
ActionGovernanceFor GovernanceVoteAction = iota + 1
ActionGovernanceAgainst
ActionGovernanceAbstain
ActionGovernanceVoteFor GovernanceVoteAction = iota + 1
ActionGovernanceVoteAgainst
ActionGovernanceVoteAbstain
)
136 changes: 136 additions & 0 deletions schema/metadata/governance_vote.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions schema/metadata/token_standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ const (
StandardERC721 Standard = 721 // ERC-721
StandardERC1155 Standard = 1155 // ERC-1155
StandardERC1967 Standard = 1967 // ERC-1967
StandardNEP141 Standard = 141 // NEP-141
)
55 changes: 32 additions & 23 deletions schema/metadata/token_standard_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 595c4bb

Please sign in to comment.