New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metaplex-foundation/mpl-toolbox

Package Overview
Dependencies
Maintainers
7
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metaplex-foundation/mpl-toolbox - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

5

dist/src/createMintWithAssociatedToken.d.ts

@@ -1,7 +0,8 @@

import { Context, PublicKey, TransactionBuilder } from '@metaplex-foundation/umi';
import { Context, PublicKey, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { CreateMintArgs } from './createMint';
export type CreateMintWithAssociatedTokenArgs = CreateMintArgs & {
export type CreateMintWithAssociatedTokenArgs = Omit<CreateMintArgs, 'mintAuthority'> & {
owner?: PublicKey;
amount?: number | bigint;
mintAuthority?: PublicKey | Signer;
};
export declare function createMintWithAssociatedToken(context: Pick<Context, 'programs' | 'identity' | 'payer' | 'eddsa'>, input: CreateMintWithAssociatedTokenArgs): TransactionBuilder;

10

dist/src/createMintWithAssociatedToken.js

@@ -16,3 +16,8 @@ "use strict";

let builder = (0, umi_1.transactionBuilder)()
.add((0, createMint_1.createMint)(context, input))
.add((0, createMint_1.createMint)(context, {
...input,
mintAuthority: input.mintAuthority
? (0, umi_1.publicKey)(input.mintAuthority, false)
: undefined,
}))
.add((0, generated_1.createAssociatedToken)(context, mintAndOwner));

@@ -24,2 +29,5 @@ if (amount > 0) {

token: (0, hooked_1.findAssociatedTokenPda)(context, mintAndOwner),
mintAuthority: input.mintAuthority && (0, umi_1.isSigner)(input.mintAuthority)
? input.mintAuthority
: undefined,
}));

@@ -26,0 +34,0 @@ }

{
"name": "@metaplex-foundation/mpl-toolbox",
"version": "0.8.0",
"version": "0.8.1",
"description": "Auto-generated essential Solana and Metaplex programs",

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc