Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@project-serum/anchor

Package Overview
Dependencies
Maintainers
6
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@project-serum/anchor - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

4

dist/cjs/index.js

@@ -25,3 +25,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Wallet = exports.utils = exports.web3 = exports.BN = exports.Provider = exports.getProvider = exports.setProvider = exports.AccountsCoder = exports.TypesCoder = exports.StateCoder = exports.EventCoder = exports.InstructionCoder = exports.Coder = exports.StateClient = exports.AccountClient = exports.Program = exports.workspace = void 0;
exports.EventParser = exports.Wallet = exports.utils = exports.web3 = exports.BN = exports.Provider = exports.getProvider = exports.setProvider = exports.AccountsCoder = exports.TypesCoder = exports.StateCoder = exports.EventCoder = exports.InstructionCoder = exports.Coder = exports.StateClient = exports.AccountClient = exports.Program = exports.workspace = void 0;
const bn_js_1 = __importDefault(require("bn.js"));

@@ -52,2 +52,4 @@ exports.BN = bn_js_1.default;

Object.defineProperty(exports, "StateClient", { enumerable: true, get: function () { return namespace_1.StateClient; } });
const event_1 = require("./program/event");
Object.defineProperty(exports, "EventParser", { enumerable: true, get: function () { return event_1.EventParser; } });
//# sourceMappingURL=index.js.map

@@ -189,7 +189,2 @@ "use strict";

{ pubkey: programId, isWritable: false, isSigner: false },
{
pubkey: web3_js_1.SYSVAR_RENT_PUBKEY,
isWritable: false,
isSigner: false,
},
];

@@ -196,0 +191,0 @@ }

@@ -77,4 +77,4 @@ "use strict";

const clusterId = anchorToml.provider.cluster;
if (anchorToml.clusters && anchorToml.clusters[clusterId]) {
attachWorkspaceOverride(workspaceCache, anchorToml.clusters[clusterId], idlMap);
if (anchorToml.programs && anchorToml.programs[clusterId]) {
attachWorkspaceOverride(workspaceCache, anchorToml.programs[clusterId], idlMap);
}

@@ -81,0 +81,0 @@ _populatedWorkspace = true;

@@ -9,3 +9,4 @@ import BN from "bn.js";

import { AccountClient, StateClient, } from "./program/namespace";
export { workspace, Program, AccountClient, StateClient, Coder, InstructionCoder, EventCoder, StateCoder, TypesCoder, AccountsCoder, setProvider, getProvider, Provider, BN, web3, utils, Wallet, };
import { EventParser } from "./program/event";
export { workspace, Program, AccountClient, StateClient, Coder, InstructionCoder, EventCoder, StateCoder, TypesCoder, AccountsCoder, setProvider, getProvider, Provider, BN, web3, utils, Wallet, EventParser, };
//# sourceMappingURL=index.js.map
import EventEmitter from "eventemitter3";
import camelCase from "camelcase";
import { SystemProgram, SYSVAR_RENT_PUBKEY, } from "@solana/web3.js";
import { SystemProgram } from "@solana/web3.js";
import Coder, { stateDiscriminator } from "../../coder";

@@ -162,7 +162,2 @@ import { getProvider } from "../../";

{ pubkey: programId, isWritable: false, isSigner: false },
{
pubkey: SYSVAR_RENT_PUBKEY,
isWritable: false,
isSigner: false,
},
];

@@ -169,0 +164,0 @@ }

@@ -53,4 +53,4 @@ import camelCase from "camelcase";

const clusterId = anchorToml.provider.cluster;
if (anchorToml.clusters && anchorToml.clusters[clusterId]) {
attachWorkspaceOverride(workspaceCache, anchorToml.clusters[clusterId], idlMap);
if (anchorToml.programs && anchorToml.programs[clusterId]) {
attachWorkspaceOverride(workspaceCache, anchorToml.programs[clusterId], idlMap);
}

@@ -57,0 +57,0 @@ _populatedWorkspace = true;

@@ -14,3 +14,4 @@ import BN from "bn.js";

import { Context, Accounts } from "./program/context";
export { workspace, Program, AccountNamespace, AccountClient, StateClient, RpcNamespace, RpcFn, SimulateNamespace, SimulateFn, TransactionNamespace, TransactionFn, InstructionNamespace, InstructionFn, ProgramAccount, Context, Accounts, Coder, InstructionCoder, EventCoder, StateCoder, TypesCoder, AccountsCoder, Event, Instruction, setProvider, getProvider, Provider, BN, web3, Idl, utils, Wallet, Address, };
import { EventParser } from "./program/event";
export { workspace, Program, AccountNamespace, AccountClient, StateClient, RpcNamespace, RpcFn, SimulateNamespace, SimulateFn, TransactionNamespace, TransactionFn, InstructionNamespace, InstructionFn, ProgramAccount, Context, Accounts, Coder, InstructionCoder, EventCoder, StateCoder, TypesCoder, AccountsCoder, Event, Instruction, setProvider, getProvider, Provider, BN, web3, Idl, utils, Wallet, Address, EventParser, };
//# sourceMappingURL=index.d.ts.map
{
"name": "@project-serum/anchor",
"version": "0.12.0",
"version": "0.13.0",
"description": "Anchor client",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -37,2 +37,3 @@ import BN from "bn.js";

import { Context, Accounts } from "./program/context";
import { EventParser } from "./program/event";

@@ -73,2 +74,3 @@ export {

Address,
EventParser,
};
import EventEmitter from "eventemitter3";
import camelCase from "camelcase";
import {
PublicKey,
SystemProgram,
SYSVAR_RENT_PUBKEY,
Commitment,
} from "@solana/web3.js";
import { PublicKey, SystemProgram, Commitment } from "@solana/web3.js";
import Provider from "../../provider";

@@ -249,7 +244,2 @@ import { Idl, IdlStateMethod } from "../../idl";

{ pubkey: programId, isWritable: false, isSigner: false },
{
pubkey: SYSVAR_RENT_PUBKEY,
isWritable: false,
isSigner: false,
},
];

@@ -256,0 +246,0 @@ } else {

@@ -70,6 +70,6 @@ import camelCase from "camelcase";

const clusterId = anchorToml.provider.cluster;
if (anchorToml.clusters && anchorToml.clusters[clusterId]) {
if (anchorToml.programs && anchorToml.programs[clusterId]) {
attachWorkspaceOverride(
workspaceCache,
anchorToml.clusters[clusterId],
anchorToml.programs[clusterId],
idlMap

@@ -76,0 +76,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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