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

@solana-program/compute-budget

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana-program/compute-budget - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

71

dist/src/index.js

@@ -38,2 +38,6 @@ 'use strict';

// src/generated/instructions/requestHeapFrame.ts
var REQUEST_HEAP_FRAME_DISCRIMINATOR = 1;
function getRequestHeapFrameDiscriminatorBytes() {
return web3_js.getU8Encoder().encode(REQUEST_HEAP_FRAME_DISCRIMINATOR);
}
function getRequestHeapFrameInstructionDataEncoder() {

@@ -45,3 +49,3 @@ return web3_js.transformEncoder(

]),
(value) => ({ ...value, discriminator: 1 })
(value) => ({ ...value, discriminator: REQUEST_HEAP_FRAME_DISCRIMINATOR })
);

@@ -61,4 +65,4 @@ }

}
function getRequestHeapFrameInstruction(input) {
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
function getRequestHeapFrameInstruction(input, config) {
const programAddress = config?.programAddress ?? COMPUTE_BUDGET_PROGRAM_ADDRESS;
const args = { ...input };

@@ -79,2 +83,6 @@ const instruction = {

}
var REQUEST_UNITS_DISCRIMINATOR = 0;
function getRequestUnitsDiscriminatorBytes() {
return web3_js.getU8Encoder().encode(REQUEST_UNITS_DISCRIMINATOR);
}
function getRequestUnitsInstructionDataEncoder() {

@@ -87,3 +95,3 @@ return web3_js.transformEncoder(

]),
(value) => ({ ...value, discriminator: 0 })
(value) => ({ ...value, discriminator: REQUEST_UNITS_DISCRIMINATOR })
);

@@ -104,4 +112,4 @@ }

}
function getRequestUnitsInstruction(input) {
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
function getRequestUnitsInstruction(input, config) {
const programAddress = config?.programAddress ?? COMPUTE_BUDGET_PROGRAM_ADDRESS;
const args = { ...input };

@@ -122,2 +130,6 @@ const instruction = {

}
var SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR = 2;
function getSetComputeUnitLimitDiscriminatorBytes() {
return web3_js.getU8Encoder().encode(SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR);
}
function getSetComputeUnitLimitInstructionDataEncoder() {

@@ -129,3 +141,6 @@ return web3_js.transformEncoder(

]),
(value) => ({ ...value, discriminator: 2 })
(value) => ({
...value,
discriminator: SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR
})
);

@@ -145,4 +160,4 @@ }

}
function getSetComputeUnitLimitInstruction(input) {
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
function getSetComputeUnitLimitInstruction(input, config) {
const programAddress = config?.programAddress ?? COMPUTE_BUDGET_PROGRAM_ADDRESS;
const args = { ...input };

@@ -165,2 +180,6 @@ const instruction = {

}
var SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR = 3;
function getSetComputeUnitPriceDiscriminatorBytes() {
return web3_js.getU8Encoder().encode(SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR);
}
function getSetComputeUnitPriceInstructionDataEncoder() {

@@ -172,3 +191,6 @@ return web3_js.transformEncoder(

]),
(value) => ({ ...value, discriminator: 3 })
(value) => ({
...value,
discriminator: SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR
})
);

@@ -188,4 +210,4 @@ }

}
function getSetComputeUnitPriceInstruction(input) {
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
function getSetComputeUnitPriceInstruction(input, config) {
const programAddress = config?.programAddress ?? COMPUTE_BUDGET_PROGRAM_ADDRESS;
const args = { ...input };

@@ -208,2 +230,8 @@ const instruction = {

}
var SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR = 4;
function getSetLoadedAccountsDataSizeLimitDiscriminatorBytes() {
return web3_js.getU8Encoder().encode(
SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR
);
}
function getSetLoadedAccountsDataSizeLimitInstructionDataEncoder() {

@@ -215,3 +243,6 @@ return web3_js.transformEncoder(

]),
(value) => ({ ...value, discriminator: 4 })
(value) => ({
...value,
discriminator: SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR
})
);

@@ -231,4 +262,4 @@ }

}
function getSetLoadedAccountsDataSizeLimitInstruction(input) {
const programAddress = COMPUTE_BUDGET_PROGRAM_ADDRESS;
function getSetLoadedAccountsDataSizeLimitInstruction(input, config) {
const programAddress = config?.programAddress ?? COMPUTE_BUDGET_PROGRAM_ADDRESS;
const args = { ...input };

@@ -254,2 +285,8 @@ const instruction = {

exports.ComputeBudgetInstruction = ComputeBudgetInstruction;
exports.REQUEST_HEAP_FRAME_DISCRIMINATOR = REQUEST_HEAP_FRAME_DISCRIMINATOR;
exports.REQUEST_UNITS_DISCRIMINATOR = REQUEST_UNITS_DISCRIMINATOR;
exports.SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR = SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR;
exports.SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR = SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR;
exports.SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR = SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR;
exports.getRequestHeapFrameDiscriminatorBytes = getRequestHeapFrameDiscriminatorBytes;
exports.getRequestHeapFrameInstruction = getRequestHeapFrameInstruction;

@@ -259,2 +296,3 @@ exports.getRequestHeapFrameInstructionDataCodec = getRequestHeapFrameInstructionDataCodec;

exports.getRequestHeapFrameInstructionDataEncoder = getRequestHeapFrameInstructionDataEncoder;
exports.getRequestUnitsDiscriminatorBytes = getRequestUnitsDiscriminatorBytes;
exports.getRequestUnitsInstruction = getRequestUnitsInstruction;

@@ -264,2 +302,3 @@ exports.getRequestUnitsInstructionDataCodec = getRequestUnitsInstructionDataCodec;

exports.getRequestUnitsInstructionDataEncoder = getRequestUnitsInstructionDataEncoder;
exports.getSetComputeUnitLimitDiscriminatorBytes = getSetComputeUnitLimitDiscriminatorBytes;
exports.getSetComputeUnitLimitInstruction = getSetComputeUnitLimitInstruction;

@@ -269,2 +308,3 @@ exports.getSetComputeUnitLimitInstructionDataCodec = getSetComputeUnitLimitInstructionDataCodec;

exports.getSetComputeUnitLimitInstructionDataEncoder = getSetComputeUnitLimitInstructionDataEncoder;
exports.getSetComputeUnitPriceDiscriminatorBytes = getSetComputeUnitPriceDiscriminatorBytes;
exports.getSetComputeUnitPriceInstruction = getSetComputeUnitPriceInstruction;

@@ -274,2 +314,3 @@ exports.getSetComputeUnitPriceInstructionDataCodec = getSetComputeUnitPriceInstructionDataCodec;

exports.getSetComputeUnitPriceInstructionDataEncoder = getSetComputeUnitPriceInstructionDataEncoder;
exports.getSetLoadedAccountsDataSizeLimitDiscriminatorBytes = getSetLoadedAccountsDataSizeLimitDiscriminatorBytes;
exports.getSetLoadedAccountsDataSizeLimitInstruction = getSetLoadedAccountsDataSizeLimitInstruction;

@@ -276,0 +317,0 @@ exports.getSetLoadedAccountsDataSizeLimitInstructionDataCodec = getSetLoadedAccountsDataSizeLimitInstructionDataCodec;

@@ -10,2 +10,4 @@ /**

import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
export declare const REQUEST_HEAP_FRAME_DISCRIMINATOR = 1;
export declare function getRequestHeapFrameDiscriminatorBytes(): import("@solana/web3.js").ReadonlyUint8Array;
export type RequestHeapFrameInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;

@@ -33,3 +35,5 @@ export type RequestHeapFrameInstructionData = {

};
export declare function getRequestHeapFrameInstruction(input: RequestHeapFrameInput): RequestHeapFrameInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;
export declare function getRequestHeapFrameInstruction<TProgramAddress extends Address = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>(input: RequestHeapFrameInput, config?: {
programAddress?: TProgramAddress;
}): RequestHeapFrameInstruction<TProgramAddress>;
export type ParsedRequestHeapFrameInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> = {

@@ -36,0 +40,0 @@ programAddress: Address<TProgram>;

@@ -10,2 +10,4 @@ /**

import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
export declare const REQUEST_UNITS_DISCRIMINATOR = 0;
export declare function getRequestUnitsDiscriminatorBytes(): import("@solana/web3.js").ReadonlyUint8Array;
export type RequestUnitsInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;

@@ -32,3 +34,5 @@ export type RequestUnitsInstructionData = {

};
export declare function getRequestUnitsInstruction(input: RequestUnitsInput): RequestUnitsInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;
export declare function getRequestUnitsInstruction<TProgramAddress extends Address = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>(input: RequestUnitsInput, config?: {
programAddress?: TProgramAddress;
}): RequestUnitsInstruction<TProgramAddress>;
export type ParsedRequestUnitsInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> = {

@@ -35,0 +39,0 @@ programAddress: Address<TProgram>;

@@ -10,2 +10,4 @@ /**

import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
export declare const SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR = 2;
export declare function getSetComputeUnitLimitDiscriminatorBytes(): import("@solana/web3.js").ReadonlyUint8Array;
export type SetComputeUnitLimitInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;

@@ -27,3 +29,5 @@ export type SetComputeUnitLimitInstructionData = {

};
export declare function getSetComputeUnitLimitInstruction(input: SetComputeUnitLimitInput): SetComputeUnitLimitInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;
export declare function getSetComputeUnitLimitInstruction<TProgramAddress extends Address = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>(input: SetComputeUnitLimitInput, config?: {
programAddress?: TProgramAddress;
}): SetComputeUnitLimitInstruction<TProgramAddress>;
export type ParsedSetComputeUnitLimitInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> = {

@@ -30,0 +34,0 @@ programAddress: Address<TProgram>;

@@ -10,2 +10,4 @@ /**

import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
export declare const SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR = 3;
export declare function getSetComputeUnitPriceDiscriminatorBytes(): import("@solana/web3.js").ReadonlyUint8Array;
export type SetComputeUnitPriceInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;

@@ -27,3 +29,5 @@ export type SetComputeUnitPriceInstructionData = {

};
export declare function getSetComputeUnitPriceInstruction(input: SetComputeUnitPriceInput): SetComputeUnitPriceInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;
export declare function getSetComputeUnitPriceInstruction<TProgramAddress extends Address = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>(input: SetComputeUnitPriceInput, config?: {
programAddress?: TProgramAddress;
}): SetComputeUnitPriceInstruction<TProgramAddress>;
export type ParsedSetComputeUnitPriceInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> = {

@@ -30,0 +34,0 @@ programAddress: Address<TProgram>;

@@ -10,2 +10,4 @@ /**

import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
export declare const SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR = 4;
export declare function getSetLoadedAccountsDataSizeLimitDiscriminatorBytes(): import("@solana/web3.js").ReadonlyUint8Array;
export type SetLoadedAccountsDataSizeLimitInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<TRemainingAccounts>;

@@ -25,3 +27,5 @@ export type SetLoadedAccountsDataSizeLimitInstructionData = {

};
export declare function getSetLoadedAccountsDataSizeLimitInstruction(input: SetLoadedAccountsDataSizeLimitInput): SetLoadedAccountsDataSizeLimitInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>;
export declare function getSetLoadedAccountsDataSizeLimitInstruction<TProgramAddress extends Address = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS>(input: SetLoadedAccountsDataSizeLimitInput, config?: {
programAddress?: TProgramAddress;
}): SetLoadedAccountsDataSizeLimitInstruction<TProgramAddress>;
export type ParsedSetLoadedAccountsDataSizeLimitInstruction<TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> = {

@@ -28,0 +32,0 @@ programAddress: Address<TProgram>;

{
"name": "@solana-program/compute-budget",
"version": "0.5.1",
"version": "0.5.2",
"description": "JavaScript client for the Compute Budget program",

@@ -5,0 +5,0 @@ "sideEffects": false,

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