@metaplex-foundation/mpl-core
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -10,2 +10,3 @@ /** | ||
import { Serializer } from '@metaplex-foundation/umi/serializers'; | ||
import { UpdateAuthority, UpdateAuthorityArgs } from '../types'; | ||
export type UpdateV1InstructionAccounts = { | ||
@@ -20,4 +21,2 @@ /** The address of the asset */ | ||
authority?: Signer; | ||
/** The new update authority of the asset */ | ||
newUpdateAuthority?: PublicKey | Pda; | ||
/** The system program */ | ||
@@ -32,2 +31,3 @@ systemProgram?: PublicKey | Pda; | ||
newUri: Option<string>; | ||
newUpdateAuthority: Option<UpdateAuthority>; | ||
}; | ||
@@ -37,2 +37,3 @@ export type UpdateV1InstructionDataArgs = { | ||
newUri: OptionOrNullable<string>; | ||
newUpdateAuthority?: OptionOrNullable<UpdateAuthorityArgs>; | ||
}; | ||
@@ -39,0 +40,0 @@ export declare function getUpdateV1InstructionDataSerializer(): Serializer<UpdateV1InstructionDataArgs, UpdateV1InstructionData>; |
@@ -14,2 +14,3 @@ "use strict"; | ||
const shared_1 = require("../shared"); | ||
const types_1 = require("../types"); | ||
function getUpdateV1InstructionDataSerializer() { | ||
@@ -20,3 +21,8 @@ return (0, serializers_1.mapSerializer)((0, serializers_1.struct)([ | ||
['newUri', (0, serializers_1.option)((0, serializers_1.string)())], | ||
], { description: 'UpdateV1InstructionData' }), (value) => ({ ...value, discriminator: 15 })); | ||
['newUpdateAuthority', (0, serializers_1.option)((0, types_1.getUpdateAuthoritySerializer)())], | ||
], { description: 'UpdateV1InstructionData' }), (value) => ({ | ||
...value, | ||
discriminator: 15, | ||
newUpdateAuthority: value.newUpdateAuthority ?? (0, umi_1.none)(), | ||
})); | ||
} | ||
@@ -50,14 +56,9 @@ exports.getUpdateV1InstructionDataSerializer = getUpdateV1InstructionDataSerializer; | ||
}, | ||
newUpdateAuthority: { | ||
systemProgram: { | ||
index: 4, | ||
isWritable: false, | ||
value: input.newUpdateAuthority ?? null, | ||
}, | ||
systemProgram: { | ||
index: 5, | ||
isWritable: false, | ||
value: input.systemProgram ?? null, | ||
}, | ||
logWrapper: { | ||
index: 6, | ||
index: 5, | ||
isWritable: false, | ||
@@ -64,0 +65,0 @@ value: input.logWrapper ?? null, |
{ | ||
"name": "@metaplex-foundation/mpl-core", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Digital Assets", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
370240
5998
0
8
1