Skip to content

Commit

Permalink
Merge pull request #344 from alephium/import-from-std
Browse files Browse the repository at this point in the history
Import interfaces from std
  • Loading branch information
Lbqds authored Apr 16, 2024
2 parents 1fc3174 + 84258b4 commit 1325c8c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .project.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
},
"FungibleTokenUnimplemented": {
"sourceFile": "../packages/web3/std/fungible_token_unimplemented.ral",
"sourceCodeHash": "dc2d6de72bcb5f86cb30e0d3adf57566d8a9c99219843f357674bf71b2830aa4",
"sourceCodeHash": "df36ccc9548da207df716192341e864c7a8d0ea22ea9214b9cfad13bf324a0f6",
"bytecodeDebugPatch": "",
"codeHashDebug": "",
"warnings": []
Expand Down Expand Up @@ -152,14 +152,14 @@
},
"INFTCollection": {
"sourceFile": "../packages/web3/std/nft_collection_interface.ral",
"sourceCodeHash": "738a3440b686d94c9f7db58f23e22b7512d229540392b426ecb190b82db3fb4f",
"sourceCodeHash": "06648d34b65081500e038a943eb81d66301b43252b447d8cb96e0c8f2095edf8",
"bytecodeDebugPatch": "",
"codeHashDebug": "",
"warnings": []
},
"INFTCollectionWithRoyalty": {
"sourceFile": "../packages/web3/std/nft_collection_with_royalty_interface.ral",
"sourceCodeHash": "6407fb10136b21e191c5cf1f695be89f9e427ce2b01c039dd525dac587f3fc05",
"sourceCodeHash": "9f325c739267074d442f0da4536fd68baeb9571ef220e29cca6bc173af24b232",
"bytecodeDebugPatch": "",
"codeHashDebug": "",
"warnings": []
Expand Down
2 changes: 2 additions & 0 deletions packages/web3/std/fungible_token_unimplemented.ral
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "std/fungible_token_interface"

@std(enabled = false)
Abstract Contract FungibleTokenUnimplemented() implements IFungibleToken {
pub fn getSymbol() -> ByteVec {
Expand Down
2 changes: 2 additions & 0 deletions packages/web3/std/nft_collection_interface.ral
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "std/nft_interface"

@std(id = #0002)
Interface INFTCollection {
// Collection Uri points to a json file containing metadata for the NFT collection.
Expand Down
2 changes: 2 additions & 0 deletions packages/web3/std/nft_collection_with_royalty_interface.ral
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "std/nft_collection_interface"

@std(id = #000201)
Interface INFTCollectionWithRoyalty extends INFTCollection {
pub fn royaltyAmount(tokenId: ByteVec, salePrice: U256) -> (U256)
Expand Down

0 comments on commit 1325c8c

Please sign in to comment.