Skip to content

Commit 595c4bb

Browse files
pseudoyuFrankLi123
andauthored
feat(metadata): add NEP141 token standard for near blockchain (#57)
Co-authored-by: Franky <[email protected]>
1 parent a48f7b6 commit 595c4bb

File tree

6 files changed

+200
-34
lines changed

6 files changed

+200
-34
lines changed

schema/metadata/collectible.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ func (r CollectibleTradeAction) Type() schema.Type {
4949
const (
5050
ActionCollectibleTradeBuy CollectibleTradeAction = iota + 1
5151
ActionCollectibleTradeSell
52+
ActionCollectibleTradeOffer
53+
ActionCollectibleTradeSet
54+
ActionCollectibleTradeCreate
55+
ActionCollectibleTradeFinalize
5256
)
5357

5458
var _ Metadata = (*CollectibleTradeAction)(nil)

schema/metadata/collectible_trade.go

Lines changed: 24 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/metadata/governance.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (r GovernanceVoteAction) Type() schema.Type {
4343
}
4444

4545
const (
46-
ActionGovernanceFor GovernanceVoteAction = iota + 1
47-
ActionGovernanceAgainst
48-
ActionGovernanceAbstain
46+
ActionGovernanceVoteFor GovernanceVoteAction = iota + 1
47+
ActionGovernanceVoteAgainst
48+
ActionGovernanceVoteAbstain
4949
)

schema/metadata/governance_vote.go

Lines changed: 136 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/metadata/token_standard.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ const (
1010
StandardERC721 Standard = 721 // ERC-721
1111
StandardERC1155 Standard = 1155 // ERC-1155
1212
StandardERC1967 Standard = 1967 // ERC-1967
13+
StandardNEP141 Standard = 141 // NEP-141
1314
)

schema/metadata/token_standard_string.go

Lines changed: 32 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)