@metaplex-foundation/mpl-bubblegum
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
import * as beetSolana from '@metaplex-foundation/beet-solana'; | ||
import { DecompressableState } from '../types/DecompressableState'; | ||
import { DecompressibleState } from '../types/DecompressibleState'; | ||
export type TreeConfigArgs = { | ||
@@ -13,3 +13,3 @@ treeCreator: web3.PublicKey; | ||
isPublic: boolean; | ||
isDecompressable: DecompressableState; | ||
isDecompressible: DecompressibleState; | ||
}; | ||
@@ -23,3 +23,3 @@ export declare const treeConfigDiscriminator: number[]; | ||
readonly isPublic: boolean; | ||
readonly isDecompressable: DecompressableState; | ||
readonly isDecompressible: DecompressibleState; | ||
private constructor(); | ||
@@ -35,3 +35,3 @@ static fromArgs(args: TreeConfigArgs): TreeConfig; | ||
isPublic: any; | ||
isDecompressable: any; | ||
isDecompressible: any; | ||
accountDiscriminator: any; | ||
@@ -54,3 +54,3 @@ }>; | ||
isPublic: boolean; | ||
isDecompressable: string; | ||
isDecompressible: string; | ||
}; | ||
@@ -57,0 +57,0 @@ } |
@@ -30,6 +30,6 @@ "use strict"; | ||
const beetSolana = __importStar(require("@metaplex-foundation/beet-solana")); | ||
const DecompressableState_1 = require("../types/DecompressableState"); | ||
const DecompressibleState_1 = require("../types/DecompressibleState"); | ||
exports.treeConfigDiscriminator = [122, 245, 175, 248, 171, 34, 0, 207]; | ||
class TreeConfig { | ||
constructor(treeCreator, treeDelegate, totalMintCapacity, numMinted, isPublic, isDecompressable) { | ||
constructor(treeCreator, treeDelegate, totalMintCapacity, numMinted, isPublic, isDecompressible) { | ||
this.treeCreator = treeCreator; | ||
@@ -40,6 +40,6 @@ this.treeDelegate = treeDelegate; | ||
this.isPublic = isPublic; | ||
this.isDecompressable = isDecompressable; | ||
this.isDecompressible = isDecompressible; | ||
} | ||
static fromArgs(args) { | ||
return new TreeConfig(args.treeCreator, args.treeDelegate, args.totalMintCapacity, args.numMinted, args.isPublic, args.isDecompressable); | ||
return new TreeConfig(args.treeCreator, args.treeDelegate, args.totalMintCapacity, args.numMinted, args.isPublic, args.isDecompressible); | ||
} | ||
@@ -106,3 +106,3 @@ static fromAccountInfo(accountInfo, offset = 0) { | ||
isPublic: this.isPublic, | ||
isDecompressable: 'DecompressableState.' + DecompressableState_1.DecompressableState[this.isDecompressable], | ||
isDecompressible: 'DecompressibleState.' + DecompressibleState_1.DecompressibleState[this.isDecompressible], | ||
}; | ||
@@ -119,4 +119,4 @@ } | ||
['isPublic', beet.bool], | ||
['isDecompressable', DecompressableState_1.decompressableStateBeet], | ||
['isDecompressible', DecompressibleState_1.decompressibleStateBeet], | ||
], TreeConfig.fromArgs, 'TreeConfig'); | ||
//# sourceMappingURL=TreeConfig.js.map |
@@ -11,3 +11,3 @@ export * from './burn'; | ||
export * from './setAndVerifyCollection'; | ||
export * from './setDecompressableState'; | ||
export * from './setDecompressibleState'; | ||
export * from './setTreeDelegate'; | ||
@@ -14,0 +14,0 @@ export * from './transfer'; |
@@ -27,3 +27,3 @@ "use strict"; | ||
__exportStar(require("./setAndVerifyCollection"), exports); | ||
__exportStar(require("./setDecompressableState"), exports); | ||
__exportStar(require("./setDecompressibleState"), exports); | ||
__exportStar(require("./setTreeDelegate"), exports); | ||
@@ -30,0 +30,0 @@ __exportStar(require("./transfer"), exports); |
export * from './BubblegumEventType'; | ||
export * from './Collection'; | ||
export * from './Creator'; | ||
export * from './DecompressableState'; | ||
export * from './InstructionName'; | ||
export * from './DecompressibleState'; | ||
export * from './LeafSchema'; | ||
@@ -7,0 +6,0 @@ export * from './MetadataArgs'; |
@@ -20,4 +20,3 @@ "use strict"; | ||
__exportStar(require("./Creator"), exports); | ||
__exportStar(require("./DecompressableState"), exports); | ||
__exportStar(require("./InstructionName"), exports); | ||
__exportStar(require("./DecompressibleState"), exports); | ||
__exportStar(require("./LeafSchema"), exports); | ||
@@ -24,0 +23,0 @@ __exportStar(require("./MetadataArgs"), exports); |
{ | ||
"name": "@metaplex-foundation/mpl-bubblegum", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"programVersion": "0.8.0", | ||
@@ -16,3 +16,3 @@ "description": "SDK for MPL Bubblegum contract", | ||
"build": "rimraf dist && tsc -p tsconfig.json", | ||
"start-validator": "solana-test-validator -ud --quiet --reset -c cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK -c 4VTQredsAmr1yzRJugLV6Mt6eu6XMeCwdkZ73wwVMWHv -c noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV -c 3RHkdjCwWyK2firrwFQGvXCxbUpBky1GTmb9EDK9hUnX -c metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s -c PwDiXFxQsGra4sFFTT8r1QWRMd4vfumiWC1jfWNfdYT --bpf-program BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY ../../programs/.bin/mpl_bubblegum.so", | ||
"start-validator": "solana-test-validator -ud --quiet --reset -c cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK -c 4VTQredsAmr1yzRJugLV6Mt6eu6XMeCwdkZ73wwVMWHv -c noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV -c 3RHkdjCwWyK2firrwFQGvXCxbUpBky1GTmb9EDK9hUnX -c metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s -c PwDiXFxQsGra4sFFTT8r1QWRMd4vfumiWC1jfWNfdYT --bpf-program BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY ../../programs/.bin/bubblegum.so", | ||
"run-tests": "jest tests --detectOpenHandles", | ||
@@ -19,0 +19,0 @@ "test": "start-server-and-test start-validator http://localhost:8899/health run-tests", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
236349
117
3948