Socket
Socket
Sign inDemoInstall

@metaplex-foundation/mpl-core

Package Overview
Dependencies
9
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

5

dist/src/generated/instructions/updateV1.d.ts

@@ -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>;

17

dist/src/generated/instructions/updateV1.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc