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

algosdk

Package Overview
Dependencies
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

algosdk - npm Package Compare versions

Comparing version 1.16.0 to 1.17.0

37

dist/cjs/src/client/v2/algod/models/types.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Version = exports.TransactionParametersResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.ProofResponse = exports.PostTransactionsResponse = exports.PendingTransactionsResponse = exports.PendingTransactionResponse = exports.NodeStatusResponse = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.DryrunTxnResult = exports.DryrunState = exports.DryrunSource = exports.DryrunResponse = exports.DryrunRequest = exports.CompileResponse = exports.CatchpointStartResponse = exports.CatchpointAbortResponse = exports.BuildVersion = exports.BlockResponse = exports.AssetParams = exports.AssetHolding = exports.Asset = exports.ApplicationStateSchema = exports.ApplicationParams = exports.ApplicationLocalState = exports.Application = exports.AccountStateDelta = exports.AccountParticipation = exports.AccountAssetResponse = exports.AccountApplicationResponse = exports.Account = void 0;
exports.Version = exports.TransactionParametersResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.ProofResponse = exports.PostTransactionsResponse = exports.PendingTransactionsResponse = exports.PendingTransactionResponse = exports.NodeStatusResponse = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.DryrunTxnResult = exports.DryrunState = exports.DryrunSource = exports.DryrunResponse = exports.DryrunRequest = exports.DisassembleResponse = exports.CompileResponse = exports.CatchpointStartResponse = exports.CatchpointAbortResponse = exports.BuildVersion = exports.BlockResponse = exports.AssetParams = exports.AssetHolding = exports.Asset = exports.ApplicationStateSchema = exports.ApplicationParams = exports.ApplicationLocalState = exports.Application = exports.AccountStateDelta = exports.AccountParticipation = exports.AccountAssetResponse = exports.AccountApplicationResponse = exports.Account = void 0;
/* eslint-disable no-use-before-define */

@@ -567,10 +567,13 @@ const base_1 = __importDefault(require("./base"));

* @param result - base64 encoded program bytes
* @param sourcemap - JSON of the source map
*/
constructor(hash, result) {
constructor(hash, result, sourcemap) {
super();
this.hash = hash;
this.result = result;
this.sourcemap = sourcemap;
this.attribute_map = {
hash: 'hash',
result: 'result',
sourcemap: 'sourcemap',
};

@@ -581,2 +584,19 @@ }

/**
* Teal disassembly Result
*/
class DisassembleResponse extends base_1.default {
/**
* Creates a new `DisassembleResponse` object.
* @param result - disassembled Teal code
*/
constructor(result) {
super();
this.result = result;
this.attribute_map = {
result: 'result',
};
}
}
exports.DisassembleResponse = DisassembleResponse;
/**
* Request data type for dryrun endpoint. Given the Transactions and simulated

@@ -711,3 +731,6 @@ * ledger state upload, run TEAL scripts and return debugging information.

* @param appCallTrace -
* @param cost - Execution cost of app call transaction
* @param budgetAdded - Budget added during execution of app call transaction.
* @param budgetConsumed - Budget consumed during execution of app call transaction.
* @param cost - Net cost of app execution. Field is DEPRECATED and is subject for removal.
* Instead, use `budget-added` and `budget-consumed.
* @param globalDelta - Application state delta.

@@ -720,3 +743,3 @@ * @param localDeltas -

*/
constructor({ disassembly, appCallMessages, appCallTrace, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }) {
constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }) {
super();

@@ -726,2 +749,4 @@ this.disassembly = disassembly;

this.appCallTrace = appCallTrace;
this.budgetAdded = budgetAdded;
this.budgetConsumed = budgetConsumed;
this.cost = cost;

@@ -738,2 +763,4 @@ this.globalDelta = globalDelta;

appCallTrace: 'app-call-trace',
budgetAdded: 'budget-added',
budgetConsumed: 'budget-consumed',
cost: 'cost',

@@ -991,4 +1018,4 @@ globalDelta: 'global-delta',

* @param hashtype - The type of hash function used to create the proof, must be one of:
* * sumhash
* * sha512_256
* * sha256
*/

@@ -995,0 +1022,0 @@ constructor({ idx, proof, stibhash, treedepth, hashtype, }) {

@@ -544,10 +544,13 @@ /**

* @param result - base64 encoded program bytes
* @param sourcemap - JSON of the source map
*/
constructor(hash, result) {
constructor(hash, result, sourcemap) {
super();
this.hash = hash;
this.result = result;
this.sourcemap = sourcemap;
this.attribute_map = {
hash: 'hash',
result: 'result',
sourcemap: 'sourcemap',
};

@@ -557,2 +560,18 @@ }

/**
* Teal disassembly Result
*/
export class DisassembleResponse extends BaseModel {
/**
* Creates a new `DisassembleResponse` object.
* @param result - disassembled Teal code
*/
constructor(result) {
super();
this.result = result;
this.attribute_map = {
result: 'result',
};
}
}
/**
* Request data type for dryrun endpoint. Given the Transactions and simulated

@@ -683,3 +702,6 @@ * ledger state upload, run TEAL scripts and return debugging information.

* @param appCallTrace -
* @param cost - Execution cost of app call transaction
* @param budgetAdded - Budget added during execution of app call transaction.
* @param budgetConsumed - Budget consumed during execution of app call transaction.
* @param cost - Net cost of app execution. Field is DEPRECATED and is subject for removal.
* Instead, use `budget-added` and `budget-consumed.
* @param globalDelta - Application state delta.

@@ -692,3 +714,3 @@ * @param localDeltas -

*/
constructor({ disassembly, appCallMessages, appCallTrace, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }) {
constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }) {
super();

@@ -698,2 +720,4 @@ this.disassembly = disassembly;

this.appCallTrace = appCallTrace;
this.budgetAdded = budgetAdded;
this.budgetConsumed = budgetConsumed;
this.cost = cost;

@@ -710,2 +734,4 @@ this.globalDelta = globalDelta;

appCallTrace: 'app-call-trace',
budgetAdded: 'budget-added',
budgetConsumed: 'budget-consumed',
cost: 'cost',

@@ -955,4 +981,4 @@ globalDelta: 'global-delta',

* @param hashtype - The type of hash function used to create the proof, must be one of:
* * sumhash
* * sha512_256
* * sha256
*/

@@ -959,0 +985,0 @@ constructor({ idx, proof, stibhash, treedepth, hashtype, }) {

4

dist/types/src/client/kmd.d.ts

@@ -143,3 +143,3 @@ /// <reference types="node" />

*/
signTransactionWithSpecificPublicKey(walletHandle: string, walletPassword: string, transaction: txn.TransactionLike, publicKey: string): Promise<any>;
signTransactionWithSpecificPublicKey(walletHandle: string, walletPassword: string, transaction: txn.TransactionLike, publicKey: Uint8Array | string): Promise<any>;
/**

@@ -188,3 +188,3 @@ * listMultisig accepts a wallet handle and returns a ListMultisigResponse

*/
signMultisigTransaction(walletHandle: string, pw: string, transaction: txn.TransactionLike, pk: string, partial: string): Promise<any>;
signMultisigTransaction(walletHandle: string, pw: string, transaction: txn.TransactionLike, pk: Uint8Array | string, partial: string): Promise<any>;
/**

@@ -191,0 +191,0 @@ * deleteMultisig accepts a wallet handle, wallet password, and multisig

@@ -704,9 +704,28 @@ /**

/**
* JSON of the source map
*/
sourcemap?: Record<string, any>;
/**
* Creates a new `CompileResponse` object.
* @param hash - base32 SHA512_256 of program bytes (Address style)
* @param result - base64 encoded program bytes
* @param sourcemap - JSON of the source map
*/
constructor(hash: string, result: string);
constructor(hash: string, result: string, sourcemap?: Record<string, any>);
}
/**
* Teal disassembly Result
*/
export declare class DisassembleResponse extends BaseModel {
/**
* disassembled Teal code
*/
result: string;
/**
* Creates a new `DisassembleResponse` object.
* @param result - disassembled Teal code
*/
constructor(result: string);
}
/**
* Request data type for dryrun endpoint. Given the Transactions and simulated

@@ -847,4 +866,13 @@ * ledger state upload, run TEAL scripts and return debugging information.

/**
* Execution cost of app call transaction
* Budget added during execution of app call transaction.
*/
budgetAdded?: number | bigint;
/**
* Budget consumed during execution of app call transaction.
*/
budgetConsumed?: number | bigint;
/**
* Net cost of app execution. Field is DEPRECATED and is subject for removal.
* Instead, use `budget-added` and `budget-consumed.
*/
cost?: number | bigint;

@@ -868,3 +896,6 @@ /**

* @param appCallTrace -
* @param cost - Execution cost of app call transaction
* @param budgetAdded - Budget added during execution of app call transaction.
* @param budgetConsumed - Budget consumed during execution of app call transaction.
* @param cost - Net cost of app execution. Field is DEPRECATED and is subject for removal.
* Instead, use `budget-added` and `budget-consumed.
* @param globalDelta - Application state delta.

@@ -877,6 +908,8 @@ * @param localDeltas -

*/
constructor({ disassembly, appCallMessages, appCallTrace, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }: {
constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }: {
disassembly: string[];
appCallMessages?: string[];
appCallTrace?: DryrunState[];
budgetAdded?: number | bigint;
budgetConsumed?: number | bigint;
cost?: number | bigint;

@@ -1219,4 +1252,4 @@ globalDelta?: EvalDeltaKeyValue[];

* The type of hash function used to create the proof, must be one of:
* * sumhash
* * sha512_256
* * sha256
*/

@@ -1232,4 +1265,4 @@ hashtype?: string;

* @param hashtype - The type of hash function used to create the proof, must be one of:
* * sumhash
* * sha512_256
* * sha256
*/

@@ -1236,0 +1269,0 @@ constructor({ idx, proof, stibhash, treedepth, hashtype, }: {

{
"name": "algosdk",
"version": "1.16.0",
"version": "1.17.0",
"description": "The official JavaScript SDK for Algorand",

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

@@ -25,4 +25,4 @@ # js-algorand-sdk

<script
src="https://unpkg.com/algosdk@v1.16.0/dist/browser/algosdk.min.js"
integrity="sha384-0BSEzBpLxqFWYBI+sOGhv3W91/wPf+jFwCiuXNrC52XZav2qb3Rz+pfq3AFI0CrL"
src="https://unpkg.com/algosdk@v1.17.0/dist/browser/algosdk.min.js"
integrity="sha384-a9B05lyY5P6hDuZRdqWCEOD7xn/qAY8gc4B5/SJwy+t8GcUlwpzJ25qHcYwxi1NX"
crossorigin="anonymous"

@@ -36,4 +36,4 @@ ></script>

<script
src="https://cdn.jsdelivr.net/npm/algosdk@v1.16.0/dist/browser/algosdk.min.js"
integrity="sha384-0BSEzBpLxqFWYBI+sOGhv3W91/wPf+jFwCiuXNrC52XZav2qb3Rz+pfq3AFI0CrL"
src="https://cdn.jsdelivr.net/npm/algosdk@v1.17.0/dist/browser/algosdk.min.js"
integrity="sha384-a9B05lyY5P6hDuZRdqWCEOD7xn/qAY8gc4B5/SJwy+t8GcUlwpzJ25qHcYwxi1NX"
crossorigin="anonymous"

@@ -40,0 +40,0 @@ ></script>

Sorry, the diff of this file is too big to display

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