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

@mintbase-js/sdk

Package Overview
Dependencies
Maintainers
2
Versions
1314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintbase-js/sdk - npm Package Compare versions

Comparing version 0.6.0-najs-v4-8e7fede.0 to 0.6.0-najs-v4-e32cec6.0

4

lib/execute/execute.d.ts
import type { ComposableCall, NearExecuteOptions } from '../types';
import { FinalExecutionOutcome } from '@near-wallet-selector/core';
import { FinalExecutionOutcome as FinalExecutionOutcomeNWS } from '@near-wallet-selector/core';
/**

@@ -10,3 +10,3 @@ * Base method for executing contract calls.

*/
export declare const execute: ({ wallet, account, callbackUrl, callbackArgs }: NearExecuteOptions, ...calls: ComposableCall[]) => Promise<void | FinalExecutionOutcome | FinalExecutionOutcome[]>;
export declare const execute: ({ wallet, account, callbackUrl, callbackArgs }: NearExecuteOptions, ...calls: ComposableCall[]) => Promise<void | FinalExecutionOutcomeNWS | FinalExecutionOutcomeNWS[]>;
//# sourceMappingURL=execute.d.ts.map

@@ -1,2 +0,2 @@

import type { Wallet, FinalExecutionOutcome } from '@near-wallet-selector/core';
import type { Wallet, FinalExecutionOutcome as FinalExecutionOutcomeNWS } from '@near-wallet-selector/core';
import type { Account } from 'near-api-js';

@@ -11,5 +11,5 @@ import type { CallBackArgs, ContractCall, TxnOptionalSignerId, NearExecuteOptions, ExecuteArgsResponse, ComposableCall } from '../types';

*/
export declare const checkCallbackUrl: (callbackUrl: string, callbackArgs: CallBackArgs, wallet: Wallet, outcomes: void | FinalExecutionOutcome[]) => void | FinalExecutionOutcome[] | FinalExecutionOutcome;
export declare const checkCallbackUrl: (callbackUrl: string, callbackArgs: CallBackArgs, wallet: Wallet, outcomes: void | FinalExecutionOutcomeNWS[]) => void | FinalExecutionOutcomeNWS[] | FinalExecutionOutcomeNWS;
export declare const callbackUrlFormatter: (callbackUrl: string, callbackArgs: CallBackArgs) => string;
export declare const genericBatchExecute: (call: ContractCall<ExecuteArgsResponse>[], wallet: Wallet, account: Account, callbackUrl: string, callbackArgs: CallBackArgs) => Promise<void | FinalExecutionOutcome[]>;
export declare const genericBatchExecute: (call: ContractCall<ExecuteArgsResponse>[], wallet: Wallet, account: Account, callbackUrl: string, callbackArgs: CallBackArgs) => Promise<void | FinalExecutionOutcomeNWS[]>;
export declare const convertGenericCallToWalletCall: (call: ContractCall<ExecuteArgsResponse>) => TxnOptionalSignerId;

@@ -16,0 +16,0 @@ export declare function flattenArgs(calls: ComposableCall[]): ContractCall<ExecuteArgsResponse>[];

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

try {
outcomes.push(yield account.functionCall(Object.assign({ contractId: call.contractAddress, methodName: call.methodName, args: call.args, gas: BigInt(call.gas.toString()), attachedDeposit: BigInt(call.deposit.toString()) }, (callbackUrl && { walletCallbackUrl: callbackUrl }))));
outcomes.push(yield account.functionCall(Object.assign({ contractId: call.contractAddress, methodName: call.methodName, args: call.args, gas: BigInt(call.gas), attachedDeposit: BigInt(call.deposit) }, (callbackUrl && { walletCallbackUrl: callbackUrl }))));
}

@@ -90,0 +90,0 @@ catch (err) {

import { Wallet } from '@near-wallet-selector/core';
import BN from 'bn.js';
import { Account, providers } from 'near-api-js';

@@ -133,4 +132,4 @@ import type { Optional, Transaction } from '@near-wallet-selector/core';

args: T;
gas: string | BN;
deposit: string | BN;
gas: string | bigint;
deposit: string | bigint;
signerId?: string;

@@ -137,0 +136,0 @@ callbackUrl?: string;

{
"name": "@mintbase-js/sdk",
"version": "0.6.0-najs-v4-8e7fede.0",
"version": "0.6.0-najs-v4-e32cec6.0",
"description": "Core functions for Mintbase JS SDK",

@@ -25,3 +25,3 @@ "main": "lib/index.js",

},
"gitHead": "de99823606dbb177ab0746b2cfeb0a4e5e7a6158"
"gitHead": "f3952d942c88c645319e64aaa3530130af028d78"
}

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