LevelUpgradeProgram
LevelUpgradeProgram: { accounts: [{ name: "levelUpAccount"; type: { fields: [{ docs: ["token key is NFT address"]; name: "tokenKey"; type: "publicKey" }, { docs: ["the current level of NFT"]; name: "level"; type: "u32" }, { docs: ["the public key of the signing authority"]; name: "signingAuthority"; type: "publicKey" }, { docs: ["the last block timestamp when the level is updated"]; name: "lastBlockTimestamp"; type: "i64" }, { docs: ["the last used timestamp when the message is sign"]; name: "lastUsedTimestamp"; type: "i64" }]; kind: "struct" } }]; errors: [{ code: 6000; msg: "Invalid block timestamp"; name: "InvalidBlockTimestamp" }, { code: 6001; msg: "Invalid signing authority"; name: "InvalidSigningAuthority" }, { code: 6002; msg: "Invalid token key"; name: "InvalidTokenKey" }, { code: 6003; msg: "Invalid sign timestamp"; name: "InvalidSignTimestamp" }, { code: 6004; msg: "Invalid level"; name: "InvalidLevel" }]; instructions: [{ accounts: [{ isMut: true; isSigner: true; name: "user" }, { isMut: false; isSigner: true; name: "signingAuthority" }, { isMut: false; isSigner: false; name: "tokenKey" }, { isMut: true; isSigner: false; name: "levelUpAccount" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "level"; type: "u32" }]; name: "initialize" }, { accounts: [{ isMut: true; isSigner: false; name: "levelUpAccount" }, { isMut: false; isSigner: true; name: "user" }, { isMut: false; isSigner: true; name: "signingAuthority" }, { isMut: false; isSigner: false; name: "tokenKey" }]; args: [{ name: "level"; type: "u32" }, { name: "signTimestamp"; type: "i64" }]; name: "updateLevel" }]; name: "level_upgrade"; version: "0.1.0" }
Type declaration
accounts: [{ name: "levelUpAccount"; type: { fields: [{ docs: ["token key is NFT address"]; name: "tokenKey"; type: "publicKey" }, { docs: ["the current level of NFT"]; name: "level"; type: "u32" }, { docs: ["the public key of the signing authority"]; name: "signingAuthority"; type: "publicKey" }, { docs: ["the last block timestamp when the level is updated"]; name: "lastBlockTimestamp"; type: "i64" }, { docs: ["the last used timestamp when the message is sign"]; name: "lastUsedTimestamp"; type: "i64" }]; kind: "struct" } }]
errors: [{ code: 6000; msg: "Invalid block timestamp"; name: "InvalidBlockTimestamp" }, { code: 6001; msg: "Invalid signing authority"; name: "InvalidSigningAuthority" }, { code: 6002; msg: "Invalid token key"; name: "InvalidTokenKey" }, { code: 6003; msg: "Invalid sign timestamp"; name: "InvalidSignTimestamp" }, { code: 6004; msg: "Invalid level"; name: "InvalidLevel" }]
instructions: [{ accounts: [{ isMut: true; isSigner: true; name: "user" }, { isMut: false; isSigner: true; name: "signingAuthority" }, { isMut: false; isSigner: false; name: "tokenKey" }, { isMut: true; isSigner: false; name: "levelUpAccount" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "level"; type: "u32" }]; name: "initialize" }, { accounts: [{ isMut: true; isSigner: false; name: "levelUpAccount" }, { isMut: false; isSigner: true; name: "user" }, { isMut: false; isSigner: true; name: "signingAuthority" }, { isMut: false; isSigner: false; name: "tokenKey" }]; args: [{ name: "level"; type: "u32" }, { name: "signTimestamp"; type: "i64" }]; name: "updateLevel" }]
name: "level_upgrade"
version: "0.1.0"