@mintbase-js/sdk
Advanced tools
Comparing version 0.6.1-beta-prerelease.0 to 0.6.1-update-packages-24058ee.0
@@ -11,8 +11,4 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.validateSigningOptions = exports.flattenArgs = exports.convertGenericCallToWalletCall = exports.genericBatchExecute = exports.callbackUrlFormatter = exports.checkCallbackUrl = void 0; | ||
const bn_js_1 = __importDefault(require("bn.js")); | ||
const errors_1 = require("../errors"); | ||
@@ -92,3 +88,3 @@ /** | ||
try { | ||
outcomes.push(yield account.functionCall(Object.assign({ contractId: call.contractAddress, methodName: call.methodName, args: call.args, gas: new bn_js_1.default(call.gas), attachedDeposit: new bn_js_1.default(call.deposit) }, (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 })))); | ||
} | ||
@@ -95,0 +91,0 @@ catch (err) { |
import { Wallet } from '@near-wallet-selector/core'; | ||
import BN from 'bn.js'; | ||
import { Account } from 'near-api-js'; | ||
@@ -134,4 +133,4 @@ import type { Optional, Transaction } from '@near-wallet-selector/core'; | ||
args: T; | ||
gas: string | BN; | ||
deposit: string | BN; | ||
gas: string; | ||
deposit: string; | ||
signerId?: string; | ||
@@ -138,0 +137,0 @@ callbackUrl?: string; |
{ | ||
"name": "@mintbase-js/sdk", | ||
"version": "0.6.1-beta-prerelease.0", | ||
"version": "0.6.1-update-packages-24058ee.0", | ||
"description": "Core functions for Mintbase JS SDK", | ||
@@ -23,9 +23,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"bn.js": "5.2.1", | ||
"near-api-js": "^2.1.4" | ||
"near-api-js": "^4.0.3" | ||
}, | ||
"devDependencies": { | ||
"@near-wallet-selector/core": "8.9.3" | ||
"@near-wallet-selector/core": "8.9.12" | ||
}, | ||
"gitHead": "79db734e92265876a70062871d9053eaa2d03f49" | ||
"gitHead": "30a511f39219d9600f79181b8e6482990e271e0a" | ||
} |
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
1
186407
2366
+ Added@near-js/accounts@1.2.2(transitive)
+ Added@near-js/crypto@1.3.0(transitive)
+ Added@near-js/keystores@0.1.0(transitive)
+ Added@near-js/keystores-browser@0.1.0(transitive)
+ Added@near-js/keystores-node@0.0.13(transitive)
+ Added@near-js/providers@0.2.3(transitive)
+ Added@near-js/signers@0.1.5(transitive)
+ Added@near-js/transactions@1.2.3(transitive)
+ Added@near-js/types@0.2.1(transitive)
+ Added@near-js/utils@0.3.0(transitive)
+ Added@near-js/wallet-account@1.2.3(transitive)
+ Added@noble/curves@1.2.0(transitive)
+ Added@noble/hashes@1.3.21.3.3(transitive)
+ Addedbase-x@2.0.6(transitive)
+ Addedbn.js@4.12.1(transitive)
+ Addedborsh@1.0.0(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedbs58@4.0.0(transitive)
+ Addedelliptic@6.6.1(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedhttp-errors@1.7.2(transitive)
+ Addedinherits@2.0.3(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedlru_map@0.4.1(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addedmustache@4.0.0(transitive)
+ Addednear-api-js@4.0.4(transitive)
+ Addednode-addon-api@5.1.0(transitive)
+ Addednode-fetch@2.6.7(transitive)
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedsecp256k1@5.0.0(transitive)
+ Addedsetprototypeof@1.1.1(transitive)
+ Addedtoidentifier@1.0.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedbn.js@5.2.1
- Removed@near-js/accounts@0.1.4(transitive)
- Removed@near-js/crypto@0.0.5(transitive)
- Removed@near-js/keystores@0.0.5(transitive)
- Removed@near-js/keystores-browser@0.0.5(transitive)
- Removed@near-js/keystores-node@0.0.5(transitive)
- Removed@near-js/providers@0.0.7(transitive)
- Removed@near-js/signers@0.0.5(transitive)
- Removed@near-js/transactions@0.2.1(transitive)
- Removed@near-js/types@0.0.4(transitive)
- Removed@near-js/utils@0.0.4(transitive)
- Removed@near-js/wallet-account@0.0.7(transitive)
- Removedajv@8.17.1(transitive)
- Removedajv-formats@2.1.1(transitive)
- Removedbase-x@3.0.10(transitive)
- Removedbn.js@5.2.1(transitive)
- Removedborsh@0.7.0(transitive)
- Removedbs58@4.0.1(transitive)
- Removedcapability@0.2.5(transitive)
- Removederror-polyfill@0.1.3(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-uri@3.0.6(transitive)
- Removedhttp-errors@1.8.1(transitive)
- Removedjs-sha256@0.9.0(transitive)
- Removedjson-schema-traverse@1.0.0(transitive)
- Removedmustache@4.2.0(transitive)
- Removednear-api-js@2.1.4(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedo3@1.0.3(transitive)
- Removedrequire-from-string@2.0.2(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedtext-encoding-utf-8@1.0.2(transitive)
- Removedtoidentifier@1.0.1(transitive)
- Removedtweetnacl@1.0.3(transitive)
- Removedu3@0.1.1(transitive)
Updatednear-api-js@^4.0.3