near-api-js
Advanced tools
Comparing version 0.25.0 to 0.25.1
import BN from 'bn.js'; | ||
import { Account } from './account'; | ||
import { Connection } from './connection'; | ||
import { Signer } from './signer'; | ||
import { Contract } from './contract'; | ||
@@ -9,3 +10,5 @@ import { PublicKey } from './utils/key_pair'; | ||
declare type NearConfig = { | ||
deps: { | ||
keyStore?: KeyStore; | ||
signer?: Signer; | ||
deps?: { | ||
keyStore: KeyStore; | ||
@@ -12,0 +15,0 @@ }; |
@@ -20,3 +20,3 @@ "use strict"; | ||
provider: { type: 'JsonRpcProvider', args: { url: config.nodeUrl } }, | ||
signer: { type: 'InMemorySigner', keyStore: config.deps.keyStore } | ||
signer: config.signer || { type: 'InMemorySigner', keyStore: config.keyStore || config.deps.keyStore } | ||
}); | ||
@@ -23,0 +23,0 @@ if (config.masterAccount) { |
{ | ||
"name": "near-api-js", | ||
"description": "JavaScript library to interact with NEAR Protocol via RPC API", | ||
"version": "0.25.0", | ||
"version": "0.25.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -5,2 +5,3 @@ | ||
import { Connection } from './connection'; | ||
import { Signer } from './signer'; | ||
import { Contract } from './contract'; | ||
@@ -13,3 +14,5 @@ import { readKeyFile } from './key_stores/unencrypted_file_system_keystore'; | ||
type NearConfig = { | ||
deps: { keyStore: KeyStore } | ||
keyStore?: KeyStore, | ||
signer?: Signer, | ||
deps?: { keyStore: KeyStore } | ||
helperUrl?: string | ||
@@ -32,3 +35,3 @@ initialBalance?: string | ||
provider: { type: 'JsonRpcProvider', args: { url: config.nodeUrl } }, | ||
signer: { type: 'InMemorySigner', keyStore: config.deps.keyStore } | ||
signer: config.signer || { type: 'InMemorySigner', keyStore: config.keyStore || config.deps.keyStore } | ||
}); | ||
@@ -35,0 +38,0 @@ if (config.masterAccount) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2210550
27377