Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Update example app (#8836)
Browse files Browse the repository at this point in the history
* Update verify hook

* Remove check

* Update example app
  • Loading branch information
Incede authored Aug 11, 2023
1 parent 1fd3fe1 commit 78ee063
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,95 @@
}
}
},
{
"module": "nft",
"data": {
"nftSubstore": [],
"supportedNFTsSubstore": [
{
"chainID": "",
"supportedCollectionIDArray": []
}
]
},
"schema": {
"$id": "/nft/module/genesis",
"type": "object",
"required": ["nftSubstore", "supportedNFTsSubstore"],
"properties": {
"nftSubstore": {
"type": "array",
"fieldNumber": 1,
"items": {
"type": "object",
"required": ["nftID", "owner", "attributesArray"],
"properties": {
"nftID": {
"dataType": "bytes",
"fieldNumber": 1,
"minLength": 16,
"maxLength": 16
},
"owner": {
"dataType": "bytes",
"fieldNumber": 2
},
"attributesArray": {
"type": "array",
"fieldNumber": 3,
"items": {
"type": "object",
"required": ["module", "attributes"],
"properties": {
"module": {
"dataType": "string",
"minLength": 1,
"maxLength": 32,
"fieldNumber": 1
},
"attributes": {
"dataType": "bytes",
"fieldNumber": 2
}
}
}
}
}
}
},
"supportedNFTsSubstore": {
"type": "array",
"fieldNumber": 2,
"items": {
"type": "object",
"required": ["chainID", "supportedCollectionIDArray"],
"properties": {
"chainID": {
"dataType": "bytes",
"fieldNumber": 1
},
"supportedCollectionIDArray": {
"type": "array",
"fieldNumber": 2,
"items": {
"type": "object",
"required": ["collectionID"],
"properties": {
"collectionID": {
"dataType": "bytes",
"minLength": 4,
"maxLength": 4,
"fieldNumber": 1
}
}
}
}
}
}
}
}
}
},
{
"module": "pos",
"data": {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,95 @@
}
}
},
{
"module": "nft",
"data": {
"nftSubstore": [],
"supportedNFTsSubstore": [
{
"chainID": "04000000",
"supportedCollectionIDArray": []
}
]
},
"schema": {
"$id": "/nft/module/genesis",
"type": "object",
"required": ["nftSubstore", "supportedNFTsSubstore"],
"properties": {
"nftSubstore": {
"type": "array",
"fieldNumber": 1,
"items": {
"type": "object",
"required": ["nftID", "owner", "attributesArray"],
"properties": {
"nftID": {
"dataType": "bytes",
"fieldNumber": 1,
"minLength": 16,
"maxLength": 16
},
"owner": {
"dataType": "bytes",
"fieldNumber": 2
},
"attributesArray": {
"type": "array",
"fieldNumber": 3,
"items": {
"type": "object",
"required": ["module", "attributes"],
"properties": {
"module": {
"dataType": "string",
"minLength": 1,
"maxLength": 32,
"fieldNumber": 1
},
"attributes": {
"dataType": "bytes",
"fieldNumber": 2
}
}
}
}
}
}
},
"supportedNFTsSubstore": {
"type": "array",
"fieldNumber": 2,
"items": {
"type": "object",
"required": ["chainID", "supportedCollectionIDArray"],
"properties": {
"chainID": {
"dataType": "bytes",
"fieldNumber": 1
},
"supportedCollectionIDArray": {
"type": "array",
"fieldNumber": 2,
"items": {
"type": "object",
"required": ["collectionID"],
"properties": {
"collectionID": {
"dataType": "bytes",
"minLength": 4,
"maxLength": 4,
"fieldNumber": 1
}
}
}
}
}
}
}
}
}
},
{
"module": "pos",
"data": {
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/interop/pos-sidechain-example-one/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { registerModules } from './modules';
import { registerPlugins } from './plugins';

export const getApplication = (config: PartialApplicationConfig): Application => {
const { app, method } = Application.defaultApplication(config, true);
const { app, method } = Application.defaultApplication(config, false);

const nftModule = new NFTModule();
const testNftModule = new TestNftModule();
Expand Down

0 comments on commit 78ee063

Please sign in to comment.