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

Commit

Permalink
simpleNFT -> utxoNFT (#90)
Browse files Browse the repository at this point in the history
* simpleNFT -> utxoNFT

* use latest node
  • Loading branch information
jonmattgray authored Apr 18, 2023
1 parent d048b79 commit 6399345
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/util/appUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const processRoles = async (roles) => {

export async function getMaxMetadataCount() {
await api.isReady
return api.consts.simpleNFT.maxMetadataCount.toNumber()
return api.consts.utxoNFT.maxMetadataCount.toNumber()
}

const validMetadataValueTypes = new Set(['LITERAL', 'TOKEN_ID', 'FILE', 'NONE'])
Expand Down Expand Up @@ -190,7 +190,7 @@ const downloadFile = async (dirHash) => {

export async function getLastTokenId() {
await api.isReady
const lastTokenId = await api.query.simpleNFT.lastToken()
const lastTokenId = await api.query.utxoNFT.lastToken()

return lastTokenId ? parseInt(lastTokenId, 10) : 0
}
Expand Down Expand Up @@ -240,7 +240,7 @@ export async function runProcess(process, inputs, outputs) {
logger.debug('Running Transaction inputs: %j outputs: %j', inputs, relevantOutputs)
return new Promise((resolve, reject) => {
let unsub = null
api.tx.simpleNFT
api.tx.utxoNFT
.runProcess(process, inputs, relevantOutputs)
.signAndSend(alice, (result) => {
logger.debug('result.status %s', JSON.stringify(result.status))
Expand Down Expand Up @@ -298,7 +298,7 @@ function transformItem({ originalId, createdAt, destroyedAt, ...rest }) {

export async function getItem(tokenId) {
await api.isReady
const itemRaw = (await api.query.simpleNFT.tokensById(tokenId)).toJSON()
const itemRaw = (await api.query.utxoNFT.tokensById(tokenId)).toJSON()

if (!itemRaw) {
return null
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- 8081:8080
- 5002:5001
dscp-node:
image: digicatapult/dscp-node:v5.0.3
image: digicatapult/dscp-node:latest
command:
--base-path /data/
--dev
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dscp-api",
"version": "5.0.5",
"version": "5.0.6",
"description": "DSCP API",
"type": "module",
"repository": {
Expand Down

0 comments on commit 6399345

Please sign in to comment.