diff --git a/dist/nearlib.js b/dist/nearlib.js index c96e53c27c..84ae44f70a 100644 --- a/dist/nearlib.js +++ b/dist/nearlib.js @@ -778,7 +778,7 @@ class JsonRpcProvider extends provider_1.Provider { } else { const errorMessage = `[${response.error.code}] ${response.error.message}: ${response.error.data}`; - if (errorMessage === '[-32000] Server error: ') { + if (errorMessage === '[-32000] Server error: send_tx_commit has timed out.') { throw new TypedError('send_tx_commit has timed out.', 'TimeoutError'); } else { diff --git a/dist/nearlib.min.js b/dist/nearlib.min.js index cccc02dec8..b9b1ecc167 100644 --- a/dist/nearlib.min.js +++ b/dist/nearlib.min.js @@ -46,7 +46,7 @@ require("error-polyfill"),window.nearlib=require("./lib/index"),window.Buffer=Bu },{"./json-rpc-provider":15,"./provider":16}],15:[function(require,module,exports){ (function (Buffer){ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const provider_1=require("./provider"),web_1=require("../utils/web"),serialize_1=require("../utils/serialize");let _nextId=123;class TypedError extends Error{constructor(r,e){super(r),this.type=e||"UntypedError"}}exports.TypedError=TypedError;class JsonRpcProvider extends provider_1.Provider{constructor(r,e){super(),this.connection={url:r}}async getNetwork(){return{name:"test",chainId:"test"}}async status(){return this.sendJsonRpc("status",[])}async sendTransaction(r){const e=r.encode();return this.sendJsonRpc("broadcast_tx_commit",[Buffer.from(e).toString("base64")]).then(provider_1.adaptTransactionResult)}async txStatus(r){return this.sendJsonRpc("tx",[serialize_1.base_encode(r)]).then(provider_1.adaptTransactionResult)}async query(r,e){const t=await this.sendJsonRpc("query",[r,e]);if(t&&t.error)throw new Error(`Quering ${r} failed: ${t.error}.\n${JSON.stringify(t,null,2)}`);return t}async block(r){return this.sendJsonRpc("block",[r])}async sendJsonRpc(r,e){const t={method:r,params:e,id:_nextId++,jsonrpc:"2.0"},s=await web_1.fetchJson(this.connection,JSON.stringify(t));if(s.error){if("object"==typeof s.error.data)throw new TypedError(s.error.data.error_message,s.error.data.error_type);{const r=`[${s.error.code}] ${s.error.message}: ${s.error.data}`;throw"[-32000] Server error: "===r?new TypedError("send_tx_commit has timed out.","TimeoutError"):new TypedError(r)}}return s.result}}exports.JsonRpcProvider=JsonRpcProvider; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const provider_1=require("./provider"),web_1=require("../utils/web"),serialize_1=require("../utils/serialize");let _nextId=123;class TypedError extends Error{constructor(r,e){super(r),this.type=e||"UntypedError"}}exports.TypedError=TypedError;class JsonRpcProvider extends provider_1.Provider{constructor(r,e){super(),this.connection={url:r}}async getNetwork(){return{name:"test",chainId:"test"}}async status(){return this.sendJsonRpc("status",[])}async sendTransaction(r){const e=r.encode();return this.sendJsonRpc("broadcast_tx_commit",[Buffer.from(e).toString("base64")]).then(provider_1.adaptTransactionResult)}async txStatus(r){return this.sendJsonRpc("tx",[serialize_1.base_encode(r)]).then(provider_1.adaptTransactionResult)}async query(r,e){const t=await this.sendJsonRpc("query",[r,e]);if(t&&t.error)throw new Error(`Quering ${r} failed: ${t.error}.\n${JSON.stringify(t,null,2)}`);return t}async block(r){return this.sendJsonRpc("block",[r])}async sendJsonRpc(r,e){const t={method:r,params:e,id:_nextId++,jsonrpc:"2.0"},s=await web_1.fetchJson(this.connection,JSON.stringify(t));if(s.error){if("object"==typeof s.error.data)throw new TypedError(s.error.data.error_message,s.error.data.error_type);{const r=`[${s.error.code}] ${s.error.message}: ${s.error.data}`;throw"[-32000] Server error: send_tx_commit has timed out."===r?new TypedError("send_tx_commit has timed out.","TimeoutError"):new TypedError(r)}}return s.result}}exports.JsonRpcProvider=JsonRpcProvider; }).call(this,require("buffer").Buffer) },{"../utils/serialize":23,"../utils/web":24,"./provider":16,"buffer":32}],16:[function(require,module,exports){ diff --git a/docs/nearlib/classes/_account_.account.md b/docs/nearlib/classes/_account_.account.md index e3e92753b7..7a2b091119 100644 --- a/docs/nearlib/classes/_account_.account.md +++ b/docs/nearlib/classes/_account_.account.md @@ -52,7 +52,7 @@ sidebar_label: "Account" \+ **new Account**(`connection`: [Connection](_connection_.connection.md), `accountId`: string): *[Account](_account_.account.md)* -*Defined in [account.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L46)* +*Defined in [account.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L46)* **Parameters:** @@ -69,7 +69,7 @@ Name | Type | • **_accessKey**: *[AccessKey](_transaction_.accesskey.md)* -*Defined in [account.ts:41](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L41)* +*Defined in [account.ts:41](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L41)* ___ @@ -77,7 +77,7 @@ ___ • **_ready**: *Promise‹void›* -*Defined in [account.ts:43](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L43)* +*Defined in [account.ts:43](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L43)* ___ @@ -85,7 +85,7 @@ ___ • **_state**: *[AccountState](../interfaces/_account_.accountstate.md)* -*Defined in [account.ts:40](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L40)* +*Defined in [account.ts:40](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L40)* ___ @@ -93,7 +93,7 @@ ___ • **accountId**: *string* -*Defined in [account.ts:39](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L39)* +*Defined in [account.ts:39](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L39)* ___ @@ -101,7 +101,7 @@ ___ • **connection**: *[Connection](_connection_.connection.md)* -*Defined in [account.ts:38](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L38)* +*Defined in [account.ts:38](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L38)* ## Accessors @@ -109,7 +109,7 @@ ___ • **get ready**(): *Promise‹void›* -*Defined in [account.ts:44](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L44)* +*Defined in [account.ts:44](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L44)* **Returns:** *Promise‹void›* @@ -119,7 +119,7 @@ ___ ▸ **addKey**(`publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md), `contractId?`: string, `methodName?`: string, `amount?`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:162](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L162)* +*Defined in [account.ts:162](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L162)* **Parameters:** @@ -138,7 +138,7 @@ ___ ▸ **createAccount**(`newAccountId`: string, `publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md), `amount`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:141](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L141)* +*Defined in [account.ts:141](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L141)* **Parameters:** @@ -156,7 +156,7 @@ ___ ▸ **createAndDeployContract**(`contractId`: string, `publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md), `data`: Uint8Array, `amount`: BN): *Promise‹[Account](_account_.account.md)›* -*Defined in [account.ts:130](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L130)* +*Defined in [account.ts:130](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L130)* **Parameters:** @@ -175,7 +175,7 @@ ___ ▸ **deleteAccount**(`beneficiaryId`: string): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:146](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L146)* +*Defined in [account.ts:146](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L146)* **Parameters:** @@ -191,7 +191,7 @@ ___ ▸ **deleteKey**(`publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md)): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:172](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L172)* +*Defined in [account.ts:172](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L172)* **Parameters:** @@ -207,7 +207,7 @@ ___ ▸ **deployContract**(`data`: Uint8Array): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:150](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L150)* +*Defined in [account.ts:150](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L150)* **Parameters:** @@ -223,7 +223,7 @@ ___ ▸ **fetchState**(): *Promise‹void›* -*Defined in [account.ts:53](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L53)* +*Defined in [account.ts:53](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L53)* **Returns:** *Promise‹void›* @@ -233,7 +233,7 @@ ___ ▸ **functionCall**(`contractId`: string, `methodName`: string, `args`: any, `gas`: number, `amount?`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:154](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L154)* +*Defined in [account.ts:154](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L154)* **Parameters:** @@ -253,7 +253,7 @@ ___ ▸ **getAccessKeys**(): *Promise‹any›* -*Defined in [account.ts:189](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L189)* +*Defined in [account.ts:189](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L189)* **Returns:** *Promise‹any›* @@ -263,7 +263,7 @@ ___ ▸ **getAccountDetails**(): *Promise‹any›* -*Defined in [account.ts:194](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L194)* +*Defined in [account.ts:194](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L194)* **Returns:** *Promise‹any›* @@ -273,7 +273,7 @@ ___ ▸ **printLogs**(`contractId`: string, `logs`: string[]): *void* -*Defined in [account.ts:72](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L72)* +*Defined in [account.ts:72](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L72)* **Parameters:** @@ -290,7 +290,7 @@ ___ ▸ **retryTxResult**(`txHash`: Uint8Array): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:78](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L78)* +*Defined in [account.ts:78](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L78)* **Parameters:** @@ -306,7 +306,7 @@ ___ ▸ **sendMoney**(`receiverId`: string, `amount`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:137](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L137)* +*Defined in [account.ts:137](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L137)* **Parameters:** @@ -323,7 +323,7 @@ ___ ▸ **signAndSendTransaction**(`receiverId`: string, `actions`: [Action](_transaction_.action.md)[]): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:94](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L94)* +*Defined in [account.ts:94](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L94)* **Parameters:** @@ -340,7 +340,7 @@ ___ ▸ **stake**(`publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md), `amount`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [account.ts:176](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L176)* +*Defined in [account.ts:176](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L176)* **Parameters:** @@ -357,7 +357,7 @@ ___ ▸ **state**(): *Promise‹[AccountState](../interfaces/_account_.accountstate.md)›* -*Defined in [account.ts:67](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L67)* +*Defined in [account.ts:67](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L67)* **Returns:** *Promise‹[AccountState](../interfaces/_account_.accountstate.md)›* @@ -367,7 +367,7 @@ ___ ▸ **viewFunction**(`contractId`: string, `methodName`: string, `args`: any): *Promise‹any›* -*Defined in [account.ts:180](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L180)* +*Defined in [account.ts:180](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L180)* **Parameters:** diff --git a/docs/nearlib/classes/_account_creator_.accountcreator.md b/docs/nearlib/classes/_account_creator_.accountcreator.md index ce1d3e451d..9fbd56383d 100644 --- a/docs/nearlib/classes/_account_creator_.accountcreator.md +++ b/docs/nearlib/classes/_account_creator_.accountcreator.md @@ -26,7 +26,7 @@ Account creator provides interface to specific implementation to acutally create ▸ **createAccount**(`newAccountId`: string, `publicKey`: [PublicKey](_utils_key_pair_.publickey.md)): *Promise‹void›* -*Defined in [account_creator.ts:11](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L11)* +*Defined in [account_creator.ts:11](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L11)* **Parameters:** diff --git a/docs/nearlib/classes/_account_creator_.localaccountcreator.md b/docs/nearlib/classes/_account_creator_.localaccountcreator.md index a72bddc5e1..20a44b5223 100644 --- a/docs/nearlib/classes/_account_creator_.localaccountcreator.md +++ b/docs/nearlib/classes/_account_creator_.localaccountcreator.md @@ -31,7 +31,7 @@ sidebar_label: "LocalAccountCreator" \+ **new LocalAccountCreator**(`masterAccount`: [Account](_account_.account.md), `initialBalance`: BN): *[LocalAccountCreator](_account_creator_.localaccountcreator.md)* -*Defined in [account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L16)* +*Defined in [account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L16)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **initialBalance**: *BN* -*Defined in [account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L16)* +*Defined in [account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L16)* ___ @@ -56,7 +56,7 @@ ___ • **masterAccount**: *[Account](_account_.account.md)* -*Defined in [account_creator.ts:15](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L15)* +*Defined in [account_creator.ts:15](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L15)* ## Methods @@ -66,7 +66,7 @@ ___ *Overrides [AccountCreator](_account_creator_.accountcreator.md).[createAccount](_account_creator_.accountcreator.md#abstract-createaccount)* -*Defined in [account_creator.ts:24](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L24)* +*Defined in [account_creator.ts:24](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L24)* **Parameters:** diff --git a/docs/nearlib/classes/_account_creator_.urlaccountcreator.md b/docs/nearlib/classes/_account_creator_.urlaccountcreator.md index fc5f8edda4..f6e900c8e1 100644 --- a/docs/nearlib/classes/_account_creator_.urlaccountcreator.md +++ b/docs/nearlib/classes/_account_creator_.urlaccountcreator.md @@ -31,7 +31,7 @@ sidebar_label: "UrlAccountCreator" \+ **new UrlAccountCreator**(`connection`: [Connection](_connection_.connection.md), `helperUrl`: string): *[UrlAccountCreator](_account_creator_.urlaccountcreator.md)* -*Defined in [account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L32)* +*Defined in [account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L32)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **connection**: *[Connection](_connection_.connection.md)* -*Defined in [account_creator.ts:31](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L31)* +*Defined in [account_creator.ts:31](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L31)* ___ @@ -56,7 +56,7 @@ ___ • **helperConnection**: *[ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md)* -*Defined in [account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L32)* +*Defined in [account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L32)* ## Methods @@ -66,7 +66,7 @@ ___ *Overrides [AccountCreator](_account_creator_.accountcreator.md).[createAccount](_account_creator_.accountcreator.md#abstract-createaccount)* -*Defined in [account_creator.ts:40](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account_creator.ts#L40)* +*Defined in [account_creator.ts:40](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account_creator.ts#L40)* **Parameters:** diff --git a/docs/nearlib/classes/_connection_.connection.md b/docs/nearlib/classes/_connection_.connection.md index 6ac8783fa7..5ea8a1546e 100644 --- a/docs/nearlib/classes/_connection_.connection.md +++ b/docs/nearlib/classes/_connection_.connection.md @@ -30,7 +30,7 @@ sidebar_label: "Connection" \+ **new Connection**(`networkId`: string, `provider`: [Provider](_providers_provider_.provider.md), `signer`: [Signer](_signer_.signer.md)): *[Connection](_connection_.connection.md)* -*Defined in [connection.ts:29](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/connection.ts#L29)* +*Defined in [connection.ts:29](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/connection.ts#L29)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **networkId**: *string* -*Defined in [connection.ts:27](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/connection.ts#L27)* +*Defined in [connection.ts:27](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/connection.ts#L27)* ___ @@ -56,7 +56,7 @@ ___ • **provider**: *[Provider](_providers_provider_.provider.md)* -*Defined in [connection.ts:28](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/connection.ts#L28)* +*Defined in [connection.ts:28](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/connection.ts#L28)* ___ @@ -64,7 +64,7 @@ ___ • **signer**: *[Signer](_signer_.signer.md)* -*Defined in [connection.ts:29](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/connection.ts#L29)* +*Defined in [connection.ts:29](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/connection.ts#L29)* ## Methods @@ -72,7 +72,7 @@ ___ ▸ **fromConfig**(`config`: any): *[Connection](_connection_.connection.md)* -*Defined in [connection.ts:37](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/connection.ts#L37)* +*Defined in [connection.ts:37](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/connection.ts#L37)* **Parameters:** diff --git a/docs/nearlib/classes/_contract_.contract.md b/docs/nearlib/classes/_contract_.contract.md index 0e62f65407..9b51cad8a3 100644 --- a/docs/nearlib/classes/_contract_.contract.md +++ b/docs/nearlib/classes/_contract_.contract.md @@ -25,7 +25,7 @@ sidebar_label: "Contract" \+ **new Contract**(`account`: [Account](_account_.account.md), `contractId`: string, `options`: object): *[Contract](_contract_.contract.md)* -*Defined in [contract.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/contract.ts#L9)* +*Defined in [contract.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/contract.ts#L9)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **account**: *[Account](_account_.account.md)* -*Defined in [contract.ts:8](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/contract.ts#L8)* +*Defined in [contract.ts:8](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/contract.ts#L8)* ___ @@ -56,4 +56,4 @@ ___ • **contractId**: *string* -*Defined in [contract.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/contract.ts#L9)* +*Defined in [contract.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/contract.ts#L9)* diff --git a/docs/nearlib/classes/_key_stores_browser_local_storage_key_store_.browserlocalstoragekeystore.md b/docs/nearlib/classes/_key_stores_browser_local_storage_key_store_.browserlocalstoragekeystore.md index c596e6ca29..112075fa2b 100644 --- a/docs/nearlib/classes/_key_stores_browser_local_storage_key_store_.browserlocalstoragekeystore.md +++ b/docs/nearlib/classes/_key_stores_browser_local_storage_key_store_.browserlocalstoragekeystore.md @@ -38,7 +38,7 @@ sidebar_label: "BrowserLocalStorageKeyStore" \+ **new BrowserLocalStorageKeyStore**(`localStorage`: any, `prefix`: string): *[BrowserLocalStorageKeyStore](_key_stores_browser_local_storage_key_store_.browserlocalstoragekeystore.md)* -*Defined in [key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L10)* +*Defined in [key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L10)* **Parameters:** @@ -55,7 +55,7 @@ Name | Type | Default | • **localStorage**: *any* -*Defined in [key_stores/browser_local_storage_key_store.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L9)* +*Defined in [key_stores/browser_local_storage_key_store.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L9)* ___ @@ -63,7 +63,7 @@ ___ • **prefix**: *string* -*Defined in [key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L10)* +*Defined in [key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L10)* ## Methods @@ -73,7 +73,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[clear](_key_stores_keystore_.keystore.md#abstract-clear)* -*Defined in [key_stores/browser_local_storage_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L34)* +*Defined in [key_stores/browser_local_storage_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L34)* **Returns:** *Promise‹void›* @@ -85,7 +85,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getAccounts](_key_stores_keystore_.keystore.md#abstract-getaccounts)* -*Defined in [key_stores/browser_local_storage_key_store.ts:53](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L53)* +*Defined in [key_stores/browser_local_storage_key_store.ts:53](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L53)* **Parameters:** @@ -103,7 +103,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getKey](_key_stores_keystore_.keystore.md#abstract-getkey)* -*Defined in [key_stores/browser_local_storage_key_store.ts:22](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L22)* +*Defined in [key_stores/browser_local_storage_key_store.ts:22](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L22)* **Parameters:** @@ -122,7 +122,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getNetworks](_key_stores_keystore_.keystore.md#abstract-getnetworks)* -*Defined in [key_stores/browser_local_storage_key_store.ts:42](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L42)* +*Defined in [key_stores/browser_local_storage_key_store.ts:42](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L42)* **Returns:** *Promise‹string[]›* @@ -134,7 +134,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[removeKey](_key_stores_keystore_.keystore.md#abstract-removekey)* -*Defined in [key_stores/browser_local_storage_key_store.ts:30](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L30)* +*Defined in [key_stores/browser_local_storage_key_store.ts:30](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L30)* **Parameters:** @@ -153,7 +153,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[setKey](_key_stores_keystore_.keystore.md#abstract-setkey)* -*Defined in [key_stores/browser_local_storage_key_store.ts:18](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L18)* +*Defined in [key_stores/browser_local_storage_key_store.ts:18](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L18)* **Parameters:** @@ -171,7 +171,7 @@ ___ ▸ **storageKeyForSecretKey**(`networkId`: string, `accountId`: string): *string* -*Defined in [key_stores/browser_local_storage_key_store.ts:66](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L66)* +*Defined in [key_stores/browser_local_storage_key_store.ts:66](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L66)* **Parameters:** @@ -188,6 +188,6 @@ ___ ▸ **storageKeys**(): *IterableIterator‹string›* -*Defined in [key_stores/browser_local_storage_key_store.ts:70](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L70)* +*Defined in [key_stores/browser_local_storage_key_store.ts:70](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L70)* **Returns:** *IterableIterator‹string›* diff --git a/docs/nearlib/classes/_key_stores_in_memory_key_store_.inmemorykeystore.md b/docs/nearlib/classes/_key_stores_in_memory_key_store_.inmemorykeystore.md index 5999ec50eb..81355572c2 100644 --- a/docs/nearlib/classes/_key_stores_in_memory_key_store_.inmemorykeystore.md +++ b/docs/nearlib/classes/_key_stores_in_memory_key_store_.inmemorykeystore.md @@ -37,7 +37,7 @@ Simple in-memory keystore for testing purposes. \+ **new InMemoryKeyStore**(): *[InMemoryKeyStore](_key_stores_in_memory_key_store_.inmemorykeystore.md)* -*Defined in [key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L10)* +*Defined in [key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L10)* **Returns:** *[InMemoryKeyStore](_key_stores_in_memory_key_store_.inmemorykeystore.md)* @@ -47,7 +47,7 @@ Simple in-memory keystore for testing purposes. • **keys**: *object* -*Defined in [key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L10)* +*Defined in [key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L10)* #### Type declaration: @@ -61,7 +61,7 @@ Simple in-memory keystore for testing purposes. *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[clear](_key_stores_keystore_.keystore.md#abstract-clear)* -*Defined in [key_stores/in_memory_key_store.ts:33](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L33)* +*Defined in [key_stores/in_memory_key_store.ts:33](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L33)* **Returns:** *Promise‹void›* @@ -73,7 +73,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getAccounts](_key_stores_keystore_.keystore.md#abstract-getaccounts)* -*Defined in [key_stores/in_memory_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L46)* +*Defined in [key_stores/in_memory_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L46)* **Parameters:** @@ -91,7 +91,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getKey](_key_stores_keystore_.keystore.md#abstract-getkey)* -*Defined in [key_stores/in_memory_key_store.ts:21](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L21)* +*Defined in [key_stores/in_memory_key_store.ts:21](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L21)* **Parameters:** @@ -110,7 +110,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getNetworks](_key_stores_keystore_.keystore.md#abstract-getnetworks)* -*Defined in [key_stores/in_memory_key_store.ts:37](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L37)* +*Defined in [key_stores/in_memory_key_store.ts:37](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L37)* **Returns:** *Promise‹string[]›* @@ -122,7 +122,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[removeKey](_key_stores_keystore_.keystore.md#abstract-removekey)* -*Defined in [key_stores/in_memory_key_store.ts:29](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L29)* +*Defined in [key_stores/in_memory_key_store.ts:29](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L29)* **Parameters:** @@ -141,7 +141,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[setKey](_key_stores_keystore_.keystore.md#abstract-setkey)* -*Defined in [key_stores/in_memory_key_store.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/in_memory_key_store.ts#L17)* +*Defined in [key_stores/in_memory_key_store.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/in_memory_key_store.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_key_stores_keystore_.keystore.md b/docs/nearlib/classes/_key_stores_keystore_.keystore.md index 26afee19eb..63e33acf36 100644 --- a/docs/nearlib/classes/_key_stores_keystore_.keystore.md +++ b/docs/nearlib/classes/_key_stores_keystore_.keystore.md @@ -35,7 +35,7 @@ Key store interface for `InMemorySigner`. ▸ **clear**(): *Promise‹void›* -*Defined in [key_stores/keystore.ts:12](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/keystore.ts#L12)* +*Defined in [key_stores/keystore.ts:12](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/keystore.ts#L12)* **Returns:** *Promise‹void›* @@ -45,7 +45,7 @@ ___ ▸ **getAccounts**(`networkId`: string): *Promise‹string[]›* -*Defined in [key_stores/keystore.ts:14](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/keystore.ts#L14)* +*Defined in [key_stores/keystore.ts:14](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/keystore.ts#L14)* **Parameters:** @@ -61,7 +61,7 @@ ___ ▸ **getKey**(`networkId`: string, `accountId`: string): *Promise‹[KeyPair](_utils_key_pair_.keypair.md)›* -*Defined in [key_stores/keystore.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/keystore.ts#L10)* +*Defined in [key_stores/keystore.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/keystore.ts#L10)* **Parameters:** @@ -78,7 +78,7 @@ ___ ▸ **getNetworks**(): *Promise‹string[]›* -*Defined in [key_stores/keystore.ts:13](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/keystore.ts#L13)* +*Defined in [key_stores/keystore.ts:13](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/keystore.ts#L13)* **Returns:** *Promise‹string[]›* @@ -88,7 +88,7 @@ ___ ▸ **removeKey**(`networkId`: string, `accountId`: string): *Promise‹void›* -*Defined in [key_stores/keystore.ts:11](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/keystore.ts#L11)* +*Defined in [key_stores/keystore.ts:11](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/keystore.ts#L11)* **Parameters:** @@ -105,7 +105,7 @@ ___ ▸ **setKey**(`networkId`: string, `accountId`: string, `keyPair`: [KeyPair](_utils_key_pair_.keypair.md)): *Promise‹void›* -*Defined in [key_stores/keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/keystore.ts#L9)* +*Defined in [key_stores/keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/keystore.ts#L9)* **Parameters:** diff --git a/docs/nearlib/classes/_key_stores_merge_key_store_.mergekeystore.md b/docs/nearlib/classes/_key_stores_merge_key_store_.mergekeystore.md index 5375de8838..d62086341f 100644 --- a/docs/nearlib/classes/_key_stores_merge_key_store_.mergekeystore.md +++ b/docs/nearlib/classes/_key_stores_merge_key_store_.mergekeystore.md @@ -37,7 +37,7 @@ Keystore which can be used to merge multiple key stores into one virtual key sto \+ **new MergeKeyStore**(`keyStores`: [KeyStore](_key_stores_keystore_.keystore.md)[]): *[MergeKeyStore](_key_stores_merge_key_store_.mergekeystore.md)* -*Defined in [key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L10)* +*Defined in [key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L10)* **Parameters:** @@ -53,7 +53,7 @@ Name | Type | Description | • **keyStores**: *[KeyStore](_key_stores_keystore_.keystore.md)[]* -*Defined in [key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L10)* +*Defined in [key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L10)* ## Methods @@ -63,7 +63,7 @@ Name | Type | Description | *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[clear](_key_stores_keystore_.keystore.md#abstract-clear)* -*Defined in [key_stores/merge_key_store.ts:40](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L40)* +*Defined in [key_stores/merge_key_store.ts:40](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L40)* **Returns:** *Promise‹void›* @@ -75,7 +75,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getAccounts](_key_stores_keystore_.keystore.md#abstract-getaccounts)* -*Defined in [key_stores/merge_key_store.ts:56](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L56)* +*Defined in [key_stores/merge_key_store.ts:56](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L56)* **Parameters:** @@ -93,7 +93,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getKey](_key_stores_keystore_.keystore.md#abstract-getkey)* -*Defined in [key_stores/merge_key_store.ts:24](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L24)* +*Defined in [key_stores/merge_key_store.ts:24](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L24)* **Parameters:** @@ -112,7 +112,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getNetworks](_key_stores_keystore_.keystore.md#abstract-getnetworks)* -*Defined in [key_stores/merge_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L46)* +*Defined in [key_stores/merge_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L46)* **Returns:** *Promise‹string[]›* @@ -124,7 +124,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[removeKey](_key_stores_keystore_.keystore.md#abstract-removekey)* -*Defined in [key_stores/merge_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L34)* +*Defined in [key_stores/merge_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L34)* **Parameters:** @@ -143,7 +143,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[setKey](_key_stores_keystore_.keystore.md#abstract-setkey)* -*Defined in [key_stores/merge_key_store.ts:20](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/merge_key_store.ts#L20)* +*Defined in [key_stores/merge_key_store.ts:20](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/merge_key_store.ts#L20)* **Parameters:** diff --git a/docs/nearlib/classes/_key_stores_unencrypted_file_system_keystore_.unencryptedfilesystemkeystore.md b/docs/nearlib/classes/_key_stores_unencrypted_file_system_keystore_.unencryptedfilesystemkeystore.md index e628ea39ea..3c1408f623 100644 --- a/docs/nearlib/classes/_key_stores_unencrypted_file_system_keystore_.unencryptedfilesystemkeystore.md +++ b/docs/nearlib/classes/_key_stores_unencrypted_file_system_keystore_.unencryptedfilesystemkeystore.md @@ -36,7 +36,7 @@ sidebar_label: "UnencryptedFileSystemKeyStore" \+ **new UnencryptedFileSystemKeyStore**(`keyDir`: string): *[UnencryptedFileSystemKeyStore](_key_stores_unencrypted_file_system_keystore_.unencryptedfilesystemkeystore.md)* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L57)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L57)* **Parameters:** @@ -52,7 +52,7 @@ Name | Type | • **keyDir**: *string* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L57)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L57)* ## Methods @@ -62,7 +62,7 @@ Name | Type | *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[clear](_key_stores_keystore_.keystore.md#abstract-clear)* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:85](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L85)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:85](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L85)* **Returns:** *Promise‹void›* @@ -74,7 +74,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getAccounts](_key_stores_keystore_.keystore.md#abstract-getaccounts)* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:106](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L106)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:106](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L106)* **Parameters:** @@ -92,7 +92,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getKey](_key_stores_keystore_.keystore.md#abstract-getkey)* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:70](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L70)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:70](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L70)* **Parameters:** @@ -109,7 +109,7 @@ ___ ▸ **getKeyFilePath**(`networkId`: string, `accountId`: string): *string* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:93](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L93)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:93](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L93)* **Parameters:** @@ -128,7 +128,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[getNetworks](_key_stores_keystore_.keystore.md#abstract-getnetworks)* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:97](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L97)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:97](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L97)* **Returns:** *Promise‹string[]›* @@ -140,7 +140,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[removeKey](_key_stores_keystore_.keystore.md#abstract-removekey)* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:79](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L79)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:79](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L79)* **Parameters:** @@ -159,7 +159,7 @@ ___ *Overrides [KeyStore](_key_stores_keystore_.keystore.md).[setKey](_key_stores_keystore_.keystore.md#abstract-setkey)* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:64](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L64)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:64](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L64)* **Parameters:** diff --git a/docs/nearlib/classes/_near_.near.md b/docs/nearlib/classes/_near_.near.md index 6e8de8569c..f6a88cf1b0 100644 --- a/docs/nearlib/classes/_near_.near.md +++ b/docs/nearlib/classes/_near_.near.md @@ -33,7 +33,7 @@ sidebar_label: "Near" \+ **new Near**(`config`: any): *[Near](_near_.near.md)* -*Defined in [near.ts:14](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L14)* +*Defined in [near.ts:14](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L14)* **Parameters:** @@ -49,7 +49,7 @@ Name | Type | • **accountCreator**: *[AccountCreator](_account_creator_.accountcreator.md)* -*Defined in [near.ts:14](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L14)* +*Defined in [near.ts:14](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L14)* ___ @@ -57,7 +57,7 @@ ___ • **config**: *any* -*Defined in [near.ts:12](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L12)* +*Defined in [near.ts:12](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L12)* ___ @@ -65,7 +65,7 @@ ___ • **connection**: *[Connection](_connection_.connection.md)* -*Defined in [near.ts:13](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L13)* +*Defined in [near.ts:13](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L13)* ## Methods @@ -73,7 +73,7 @@ ___ ▸ **account**(`accountId`: string): *Promise‹[Account](_account_.account.md)›* -*Defined in [near.ts:33](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L33)* +*Defined in [near.ts:33](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L33)* **Parameters:** @@ -89,7 +89,7 @@ ___ ▸ **createAccount**(`accountId`: string, `publicKey`: [PublicKey](_utils_key_pair_.publickey.md)): *Promise‹[Account](_account_.account.md)›* -*Defined in [near.ts:39](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L39)* +*Defined in [near.ts:39](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L39)* **Parameters:** @@ -106,7 +106,7 @@ ___ ▸ **loadContract**(`contractId`: string, `options`: object): *Promise‹[Contract](_contract_.contract.md)›* -*Defined in [near.ts:52](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L52)* +*Defined in [near.ts:52](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L52)* Backwards compatibility method. Use `new nearlib.Contract(yourAccount, contractId, { viewMethods, changeMethods })` instead. @@ -130,7 +130,7 @@ ___ ▸ **sendTokens**(`amount`: BN, `originator`: string, `receiver`: string): *Promise‹string›* -*Defined in [near.ts:64](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L64)* +*Defined in [near.ts:64](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L64)* Backwards compatibility method. Use `yourAccount.sendMoney` instead. diff --git a/docs/nearlib/classes/_providers_json_rpc_provider_.jsonrpcprovider.md b/docs/nearlib/classes/_providers_json_rpc_provider_.jsonrpcprovider.md index a5902c75bc..a86dec6c88 100644 --- a/docs/nearlib/classes/_providers_json_rpc_provider_.jsonrpcprovider.md +++ b/docs/nearlib/classes/_providers_json_rpc_provider_.jsonrpcprovider.md @@ -36,7 +36,7 @@ sidebar_label: "JsonRpcProvider" \+ **new JsonRpcProvider**(`url?`: string, `network?`: [Network](../interfaces/_utils_network_.network.md)): *[JsonRpcProvider](_providers_json_rpc_provider_.jsonrpcprovider.md)* -*Defined in [providers/json-rpc-provider.ts:21](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L21)* +*Defined in [providers/json-rpc-provider.ts:21](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L21)* **Parameters:** @@ -53,7 +53,7 @@ Name | Type | • **connection**: *[ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md)* -*Defined in [providers/json-rpc-provider.ts:21](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L21)* +*Defined in [providers/json-rpc-provider.ts:21](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L21)* ## Methods @@ -63,7 +63,7 @@ Name | Type | *Overrides [Provider](_providers_provider_.provider.md).[block](_providers_provider_.provider.md#abstract-block)* -*Defined in [providers/json-rpc-provider.ts:58](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L58)* +*Defined in [providers/json-rpc-provider.ts:58](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L58)* **Parameters:** @@ -81,7 +81,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[getNetwork](_providers_provider_.provider.md#abstract-getnetwork)* -*Defined in [providers/json-rpc-provider.ts:30](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L30)* +*Defined in [providers/json-rpc-provider.ts:30](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L30)* **Returns:** *Promise‹[Network](../interfaces/_utils_network_.network.md)›* @@ -93,7 +93,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[query](_providers_provider_.provider.md#abstract-query)* -*Defined in [providers/json-rpc-provider.ts:50](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L50)* +*Defined in [providers/json-rpc-provider.ts:50](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L50)* **Parameters:** @@ -110,7 +110,7 @@ ___ ▸ **sendJsonRpc**(`method`: string, `params`: any[]): *Promise‹any›* -*Defined in [providers/json-rpc-provider.ts:62](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L62)* +*Defined in [providers/json-rpc-provider.ts:62](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L62)* **Parameters:** @@ -129,7 +129,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[sendTransaction](_providers_provider_.provider.md#abstract-sendtransaction)* -*Defined in [providers/json-rpc-provider.ts:41](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L41)* +*Defined in [providers/json-rpc-provider.ts:41](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L41)* **Parameters:** @@ -147,7 +147,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[status](_providers_provider_.provider.md#abstract-status)* -*Defined in [providers/json-rpc-provider.ts:37](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L37)* +*Defined in [providers/json-rpc-provider.ts:37](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L37)* **Returns:** *Promise‹[NodeStatusResult](../interfaces/_providers_provider_.nodestatusresult.md)›* @@ -159,7 +159,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[txStatus](_providers_provider_.provider.md#abstract-txstatus)* -*Defined in [providers/json-rpc-provider.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L46)* +*Defined in [providers/json-rpc-provider.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L46)* **Parameters:** diff --git a/docs/nearlib/classes/_providers_json_rpc_provider_.typederror.md b/docs/nearlib/classes/_providers_json_rpc_provider_.typederror.md index 1f1ba2da1e..301d709132 100644 --- a/docs/nearlib/classes/_providers_json_rpc_provider_.typederror.md +++ b/docs/nearlib/classes/_providers_json_rpc_provider_.typederror.md @@ -30,7 +30,7 @@ sidebar_label: "TypedError" \+ **new TypedError**(`message?`: string, `type?`: string): *[TypedError](_providers_json_rpc_provider_.typederror.md)* -*Defined in [providers/json-rpc-provider.ts:13](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L13)* +*Defined in [providers/json-rpc-provider.ts:13](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L13)* **Parameters:** @@ -79,7 +79,7 @@ ___ • **type**: *string* -*Defined in [providers/json-rpc-provider.ts:13](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L13)* +*Defined in [providers/json-rpc-provider.ts:13](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L13)* ___ diff --git a/docs/nearlib/classes/_providers_provider_.provider.md b/docs/nearlib/classes/_providers_provider_.provider.md index fa41b497f6..e55f2bfc80 100644 --- a/docs/nearlib/classes/_providers_provider_.provider.md +++ b/docs/nearlib/classes/_providers_provider_.provider.md @@ -27,7 +27,7 @@ sidebar_label: "Provider" ▸ **block**(`height`: number): *Promise‹[BlockResult](../interfaces/_providers_provider_.blockresult.md)›* -*Defined in [providers/provider.ts:223](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L223)* +*Defined in [providers/provider.ts:223](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L223)* **Parameters:** @@ -43,7 +43,7 @@ ___ ▸ **getNetwork**(): *Promise‹[Network](../interfaces/_utils_network_.network.md)›* -*Defined in [providers/provider.ts:217](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L217)* +*Defined in [providers/provider.ts:217](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L217)* **Returns:** *Promise‹[Network](../interfaces/_utils_network_.network.md)›* @@ -53,7 +53,7 @@ ___ ▸ **query**(`path`: string, `data`: string): *Promise‹any›* -*Defined in [providers/provider.ts:222](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L222)* +*Defined in [providers/provider.ts:222](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L222)* **Parameters:** @@ -70,7 +70,7 @@ ___ ▸ **sendTransaction**(`signedTransaction`: [SignedTransaction](_transaction_.signedtransaction.md)): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [providers/provider.ts:220](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L220)* +*Defined in [providers/provider.ts:220](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L220)* **Parameters:** @@ -86,7 +86,7 @@ ___ ▸ **status**(): *Promise‹[NodeStatusResult](../interfaces/_providers_provider_.nodestatusresult.md)›* -*Defined in [providers/provider.ts:218](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L218)* +*Defined in [providers/provider.ts:218](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L218)* **Returns:** *Promise‹[NodeStatusResult](../interfaces/_providers_provider_.nodestatusresult.md)›* @@ -96,7 +96,7 @@ ___ ▸ **txStatus**(`txHash`: Uint8Array): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [providers/provider.ts:221](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L221)* +*Defined in [providers/provider.ts:221](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L221)* **Parameters:** diff --git a/docs/nearlib/classes/_signer_.inmemorysigner.md b/docs/nearlib/classes/_signer_.inmemorysigner.md index 23d34ee381..802547f79b 100644 --- a/docs/nearlib/classes/_signer_.inmemorysigner.md +++ b/docs/nearlib/classes/_signer_.inmemorysigner.md @@ -35,7 +35,7 @@ Signs using in memory key store. \+ **new InMemorySigner**(`keyStore`: [KeyStore](_key_stores_keystore_.keystore.md)): *[InMemorySigner](_signer_.inmemorysigner.md)* -*Defined in [signer.ts:47](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L47)* +*Defined in [signer.ts:47](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L47)* **Parameters:** @@ -51,7 +51,7 @@ Name | Type | • **keyStore**: *[KeyStore](_key_stores_keystore_.keystore.md)* -*Defined in [signer.ts:47](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L47)* +*Defined in [signer.ts:47](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L47)* ## Methods @@ -61,7 +61,7 @@ Name | Type | *Overrides [Signer](_signer_.signer.md).[createKey](_signer_.signer.md#abstract-createkey)* -*Defined in [signer.ts:54](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L54)* +*Defined in [signer.ts:54](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L54)* **Parameters:** @@ -80,7 +80,7 @@ ___ *Overrides [Signer](_signer_.signer.md).[getPublicKey](_signer_.signer.md#abstract-getpublickey)* -*Defined in [signer.ts:60](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L60)* +*Defined in [signer.ts:60](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L60)* **Parameters:** @@ -99,7 +99,7 @@ ___ *Overrides [Signer](_signer_.signer.md).[signHash](_signer_.signer.md#abstract-signhash)* -*Defined in [signer.ts:68](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L68)* +*Defined in [signer.ts:68](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L68)* **Parameters:** @@ -119,7 +119,7 @@ ___ *Inherited from [Signer](_signer_.signer.md).[signMessage](_signer_.signer.md#signmessage)* -*Defined in [signer.ts:38](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L38)* +*Defined in [signer.ts:38](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L38)* Signs given message, by first hashing with sha256. diff --git a/docs/nearlib/classes/_signer_.signer.md b/docs/nearlib/classes/_signer_.signer.md index 0a90968c7d..20c89371be 100644 --- a/docs/nearlib/classes/_signer_.signer.md +++ b/docs/nearlib/classes/_signer_.signer.md @@ -27,7 +27,7 @@ General signing interface, can be used for in memory signing, RPC singing, exter ▸ **createKey**(`accountId`: string, `networkId?`: string): *Promise‹[PublicKey](_utils_key_pair_.publickey.md)›* -*Defined in [signer.ts:15](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L15)* +*Defined in [signer.ts:15](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L15)* Creates new key and returns public key. @@ -46,7 +46,7 @@ ___ ▸ **getPublicKey**(`accountId?`: string, `networkId?`: string): *Promise‹[PublicKey](_utils_key_pair_.publickey.md)›* -*Defined in [signer.ts:22](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L22)* +*Defined in [signer.ts:22](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L22)* Returns public key for given account / network. @@ -65,7 +65,7 @@ ___ ▸ **signHash**(`hash`: Uint8Array, `accountId?`: string, `networkId?`: string): *Promise‹[Signature](../interfaces/_utils_key_pair_.signature.md)›* -*Defined in [signer.ts:30](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L30)* +*Defined in [signer.ts:30](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L30)* Signs given hash. @@ -85,7 +85,7 @@ ___ ▸ **signMessage**(`message`: Uint8Array, `accountId?`: string, `networkId?`: string): *Promise‹[Signature](../interfaces/_utils_key_pair_.signature.md)›* -*Defined in [signer.ts:38](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/signer.ts#L38)* +*Defined in [signer.ts:38](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/signer.ts#L38)* Signs given message, by first hashing with sha256. diff --git a/docs/nearlib/classes/_transaction_.accesskey.md b/docs/nearlib/classes/_transaction_.accesskey.md index d8601c157f..cc81303e31 100644 --- a/docs/nearlib/classes/_transaction_.accesskey.md +++ b/docs/nearlib/classes/_transaction_.accesskey.md @@ -29,7 +29,7 @@ sidebar_label: "AccessKey" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -45,7 +45,7 @@ Name | Type | • **nonce**: *number* -*Defined in [transaction.ts:25](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L25)* +*Defined in [transaction.ts:25](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L25)* ___ @@ -53,4 +53,4 @@ ___ • **permission**: *[AccessKeyPermission](_transaction_.accesskeypermission.md)* -*Defined in [transaction.ts:26](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L26)* +*Defined in [transaction.ts:26](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L26)* diff --git a/docs/nearlib/classes/_transaction_.accesskeypermission.md b/docs/nearlib/classes/_transaction_.accesskeypermission.md index 9c67305565..3654550c6c 100644 --- a/docs/nearlib/classes/_transaction_.accesskeypermission.md +++ b/docs/nearlib/classes/_transaction_.accesskeypermission.md @@ -30,7 +30,7 @@ sidebar_label: "AccessKeyPermission" *Inherited from [Enum](_utils_enums_.enum.md).[constructor](_utils_enums_.enum.md#constructor)* -*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L4)* +*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L4)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | *Inherited from [Enum](_utils_enums_.enum.md).[enum](_utils_enums_.enum.md#enum)* -*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L4)* +*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L4)* ___ @@ -56,7 +56,7 @@ ___ • **fullAccess**: *[FullAccessPermission](_transaction_.fullaccesspermission.md)* -*Defined in [transaction.ts:21](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L21)* +*Defined in [transaction.ts:21](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L21)* ___ @@ -64,4 +64,4 @@ ___ • **functionCall**: *[FunctionCallPermission](_transaction_.functioncallpermission.md)* -*Defined in [transaction.ts:20](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L20)* +*Defined in [transaction.ts:20](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L20)* diff --git a/docs/nearlib/classes/_transaction_.action.md b/docs/nearlib/classes/_transaction_.action.md index bcd34eb649..4162733b11 100644 --- a/docs/nearlib/classes/_transaction_.action.md +++ b/docs/nearlib/classes/_transaction_.action.md @@ -36,7 +36,7 @@ sidebar_label: "Action" *Inherited from [Enum](_utils_enums_.enum.md).[constructor](_utils_enums_.enum.md#constructor)* -*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L4)* +*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L4)* **Parameters:** @@ -52,7 +52,7 @@ Name | Type | • **addKey**: *[AddKey](_transaction_.addkey.md)* -*Defined in [transaction.ts:114](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L114)* +*Defined in [transaction.ts:114](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L114)* ___ @@ -60,7 +60,7 @@ ___ • **createAccount**: *[CreateAccount](_transaction_.createaccount.md)* -*Defined in [transaction.ts:109](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L109)* +*Defined in [transaction.ts:109](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L109)* ___ @@ -68,7 +68,7 @@ ___ • **deleteAccount**: *[DeleteAccount](_transaction_.deleteaccount.md)* -*Defined in [transaction.ts:116](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L116)* +*Defined in [transaction.ts:116](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L116)* ___ @@ -76,7 +76,7 @@ ___ • **deleteKey**: *[DeleteKey](_transaction_.deletekey.md)* -*Defined in [transaction.ts:115](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L115)* +*Defined in [transaction.ts:115](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L115)* ___ @@ -84,7 +84,7 @@ ___ • **deployContract**: *[DeployContract](_transaction_.deploycontract.md)* -*Defined in [transaction.ts:110](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L110)* +*Defined in [transaction.ts:110](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L110)* ___ @@ -94,7 +94,7 @@ ___ *Inherited from [Enum](_utils_enums_.enum.md).[enum](_utils_enums_.enum.md#enum)* -*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L4)* +*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L4)* ___ @@ -102,7 +102,7 @@ ___ • **functionCall**: *[FunctionCall](_transaction_.functioncall.md)* -*Defined in [transaction.ts:111](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L111)* +*Defined in [transaction.ts:111](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L111)* ___ @@ -110,7 +110,7 @@ ___ • **stake**: *[Stake](_transaction_.stake.md)* -*Defined in [transaction.ts:113](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L113)* +*Defined in [transaction.ts:113](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L113)* ___ @@ -118,4 +118,4 @@ ___ • **transfer**: *[Transfer](_transaction_.transfer.md)* -*Defined in [transaction.ts:112](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L112)* +*Defined in [transaction.ts:112](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L112)* diff --git a/docs/nearlib/classes/_transaction_.addkey.md b/docs/nearlib/classes/_transaction_.addkey.md index bb09c74457..b11d36c75a 100644 --- a/docs/nearlib/classes/_transaction_.addkey.md +++ b/docs/nearlib/classes/_transaction_.addkey.md @@ -29,7 +29,7 @@ sidebar_label: "AddKey" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -45,7 +45,7 @@ Name | Type | • **accessKey**: *[AccessKey](_transaction_.accesskey.md)* -*Defined in [transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L44)* +*Defined in [transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L44)* ___ @@ -53,4 +53,4 @@ ___ • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L44)* +*Defined in [transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L44)* diff --git a/docs/nearlib/classes/_transaction_.createaccount.md b/docs/nearlib/classes/_transaction_.createaccount.md index ebe10c14ca..440b489269 100644 --- a/docs/nearlib/classes/_transaction_.createaccount.md +++ b/docs/nearlib/classes/_transaction_.createaccount.md @@ -24,7 +24,7 @@ sidebar_label: "CreateAccount" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.deleteaccount.md b/docs/nearlib/classes/_transaction_.deleteaccount.md index b9642b7a76..42bbe205ee 100644 --- a/docs/nearlib/classes/_transaction_.deleteaccount.md +++ b/docs/nearlib/classes/_transaction_.deleteaccount.md @@ -28,7 +28,7 @@ sidebar_label: "DeleteAccount" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **beneficiaryId**: *string* -*Defined in [transaction.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L46)* +*Defined in [transaction.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L46)* diff --git a/docs/nearlib/classes/_transaction_.deletekey.md b/docs/nearlib/classes/_transaction_.deletekey.md index cb00d9b388..5a1303981c 100644 --- a/docs/nearlib/classes/_transaction_.deletekey.md +++ b/docs/nearlib/classes/_transaction_.deletekey.md @@ -28,7 +28,7 @@ sidebar_label: "DeleteKey" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [transaction.ts:45](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L45)* +*Defined in [transaction.ts:45](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L45)* diff --git a/docs/nearlib/classes/_transaction_.deploycontract.md b/docs/nearlib/classes/_transaction_.deploycontract.md index 1f5a250036..b0f199a4df 100644 --- a/docs/nearlib/classes/_transaction_.deploycontract.md +++ b/docs/nearlib/classes/_transaction_.deploycontract.md @@ -28,7 +28,7 @@ sidebar_label: "DeployContract" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **code**: *Uint8Array* -*Defined in [transaction.ts:40](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L40)* +*Defined in [transaction.ts:40](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L40)* diff --git a/docs/nearlib/classes/_transaction_.fullaccesspermission.md b/docs/nearlib/classes/_transaction_.fullaccesspermission.md index 31583b666e..a2151c03f6 100644 --- a/docs/nearlib/classes/_transaction_.fullaccesspermission.md +++ b/docs/nearlib/classes/_transaction_.fullaccesspermission.md @@ -24,7 +24,7 @@ sidebar_label: "FullAccessPermission" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.functioncall.md b/docs/nearlib/classes/_transaction_.functioncall.md index 3aaaa2fa04..4b3e70a9e6 100644 --- a/docs/nearlib/classes/_transaction_.functioncall.md +++ b/docs/nearlib/classes/_transaction_.functioncall.md @@ -31,7 +31,7 @@ sidebar_label: "FunctionCall" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -47,7 +47,7 @@ Name | Type | • **args**: *Uint8Array* -*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L41)* +*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L41)* ___ @@ -55,7 +55,7 @@ ___ • **deposit**: *BN* -*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L41)* +*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L41)* ___ @@ -63,7 +63,7 @@ ___ • **gas**: *BN* -*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L41)* +*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L41)* ___ @@ -71,4 +71,4 @@ ___ • **methodName**: *string* -*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L41)* +*Defined in [transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L41)* diff --git a/docs/nearlib/classes/_transaction_.functioncallpermission.md b/docs/nearlib/classes/_transaction_.functioncallpermission.md index 11565c1eef..da1f437acb 100644 --- a/docs/nearlib/classes/_transaction_.functioncallpermission.md +++ b/docs/nearlib/classes/_transaction_.functioncallpermission.md @@ -30,7 +30,7 @@ sidebar_label: "FunctionCallPermission" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -46,7 +46,7 @@ Name | Type | • **allowance**? : *BN* -*Defined in [transaction.ts:12](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L12)* +*Defined in [transaction.ts:12](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L12)* ___ @@ -54,7 +54,7 @@ ___ • **methodNames**: *String[]* -*Defined in [transaction.ts:14](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L14)* +*Defined in [transaction.ts:14](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L14)* ___ @@ -62,4 +62,4 @@ ___ • **receiverId**: *string* -*Defined in [transaction.ts:13](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L13)* +*Defined in [transaction.ts:13](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L13)* diff --git a/docs/nearlib/classes/_transaction_.iaction.md b/docs/nearlib/classes/_transaction_.iaction.md index 48144f9f0f..ce882b9b9e 100644 --- a/docs/nearlib/classes/_transaction_.iaction.md +++ b/docs/nearlib/classes/_transaction_.iaction.md @@ -40,7 +40,7 @@ sidebar_label: "IAction" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.signature.md b/docs/nearlib/classes/_transaction_.signature.md index 632d27482c..24129768a1 100644 --- a/docs/nearlib/classes/_transaction_.signature.md +++ b/docs/nearlib/classes/_transaction_.signature.md @@ -25,7 +25,7 @@ sidebar_label: "Signature" \+ **new Signature**(`signature`: Uint8Array): *[Signature](_transaction_.signature.md)* -*Defined in [transaction.ts:82](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L82)* +*Defined in [transaction.ts:82](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L82)* **Parameters:** @@ -41,7 +41,7 @@ Name | Type | • **data**: *Uint8Array* -*Defined in [transaction.ts:82](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L82)* +*Defined in [transaction.ts:82](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L82)* ___ @@ -49,4 +49,4 @@ ___ • **keyType**: *[KeyType](../enums/_utils_key_pair_.keytype.md)* -*Defined in [transaction.ts:81](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L81)* +*Defined in [transaction.ts:81](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L81)* diff --git a/docs/nearlib/classes/_transaction_.signedtransaction.md b/docs/nearlib/classes/_transaction_.signedtransaction.md index 4becfb6076..baa9380da8 100644 --- a/docs/nearlib/classes/_transaction_.signedtransaction.md +++ b/docs/nearlib/classes/_transaction_.signedtransaction.md @@ -33,7 +33,7 @@ sidebar_label: "SignedTransaction" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -49,7 +49,7 @@ Name | Type | • **signature**: *[Signature](_transaction_.signature.md)* -*Defined in [transaction.ts:101](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L101)* +*Defined in [transaction.ts:101](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L101)* ___ @@ -57,7 +57,7 @@ ___ • **transaction**: *[Transaction](_transaction_.transaction.md)* -*Defined in [transaction.ts:100](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L100)* +*Defined in [transaction.ts:100](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L100)* ## Methods @@ -65,6 +65,6 @@ ___ ▸ **encode**(): *Uint8Array* -*Defined in [transaction.ts:103](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L103)* +*Defined in [transaction.ts:103](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L103)* **Returns:** *Uint8Array* diff --git a/docs/nearlib/classes/_transaction_.stake.md b/docs/nearlib/classes/_transaction_.stake.md index 1cc3a62ffe..4d7b5e44c2 100644 --- a/docs/nearlib/classes/_transaction_.stake.md +++ b/docs/nearlib/classes/_transaction_.stake.md @@ -29,7 +29,7 @@ sidebar_label: "Stake" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -45,7 +45,7 @@ Name | Type | • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L43)* +*Defined in [transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L43)* ___ @@ -53,4 +53,4 @@ ___ • **stake**: *BN* -*Defined in [transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L43)* +*Defined in [transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L43)* diff --git a/docs/nearlib/classes/_transaction_.transaction.md b/docs/nearlib/classes/_transaction_.transaction.md index 333591e6ca..374b087c1d 100644 --- a/docs/nearlib/classes/_transaction_.transaction.md +++ b/docs/nearlib/classes/_transaction_.transaction.md @@ -33,7 +33,7 @@ sidebar_label: "Transaction" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -49,7 +49,7 @@ Name | Type | • **actions**: *[Action](_transaction_.action.md)[]* -*Defined in [transaction.ts:95](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L95)* +*Defined in [transaction.ts:95](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L95)* ___ @@ -57,7 +57,7 @@ ___ • **blockHash**: *Uint8Array* -*Defined in [transaction.ts:96](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L96)* +*Defined in [transaction.ts:96](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L96)* ___ @@ -65,7 +65,7 @@ ___ • **nonce**: *number* -*Defined in [transaction.ts:93](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L93)* +*Defined in [transaction.ts:93](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L93)* ___ @@ -73,7 +73,7 @@ ___ • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [transaction.ts:92](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L92)* +*Defined in [transaction.ts:92](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L92)* ___ @@ -81,7 +81,7 @@ ___ • **receiverId**: *string* -*Defined in [transaction.ts:94](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L94)* +*Defined in [transaction.ts:94](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L94)* ___ @@ -89,4 +89,4 @@ ___ • **signerId**: *string* -*Defined in [transaction.ts:91](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L91)* +*Defined in [transaction.ts:91](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L91)* diff --git a/docs/nearlib/classes/_transaction_.transfer.md b/docs/nearlib/classes/_transaction_.transfer.md index 66aaeb3f7f..2cd9463589 100644 --- a/docs/nearlib/classes/_transaction_.transfer.md +++ b/docs/nearlib/classes/_transaction_.transfer.md @@ -28,7 +28,7 @@ sidebar_label: "Transfer" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **deposit**: *BN* -*Defined in [transaction.ts:42](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L42)* +*Defined in [transaction.ts:42](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L42)* diff --git a/docs/nearlib/classes/_utils_enums_.assignable.md b/docs/nearlib/classes/_utils_enums_.assignable.md index 3344528f31..00a0b03c71 100644 --- a/docs/nearlib/classes/_utils_enums_.assignable.md +++ b/docs/nearlib/classes/_utils_enums_.assignable.md @@ -32,7 +32,7 @@ sidebar_label: "Assignable" \+ **new Assignable**(`properties`: any): *[Assignable](_utils_enums_.assignable.md)* -*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L17)* +*Defined in [utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_enums_.enum.md b/docs/nearlib/classes/_utils_enums_.enum.md index 91e035083b..b75c53bca0 100644 --- a/docs/nearlib/classes/_utils_enums_.enum.md +++ b/docs/nearlib/classes/_utils_enums_.enum.md @@ -28,7 +28,7 @@ sidebar_label: "Enum" \+ **new Enum**(`properties`: any): *[Enum](_utils_enums_.enum.md)* -*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L4)* +*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L4)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **enum**: *string* -*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/enums.ts#L4)* +*Defined in [utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/enums.ts#L4)* diff --git a/docs/nearlib/classes/_utils_key_pair_.keypair.md b/docs/nearlib/classes/_utils_key_pair_.keypair.md index dcbb25e0f9..7f350866e4 100644 --- a/docs/nearlib/classes/_utils_key_pair_.keypair.md +++ b/docs/nearlib/classes/_utils_key_pair_.keypair.md @@ -27,7 +27,7 @@ sidebar_label: "KeyPair" ▸ **getPublicKey**(): *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [utils/key_pair.ts:71](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L71)* +*Defined in [utils/key_pair.ts:71](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L71)* **Returns:** *[PublicKey](_utils_key_pair_.publickey.md)* @@ -37,7 +37,7 @@ ___ ▸ **sign**(`message`: Uint8Array): *[Signature](../interfaces/_utils_key_pair_.signature.md)* -*Defined in [utils/key_pair.ts:68](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L68)* +*Defined in [utils/key_pair.ts:68](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L68)* **Parameters:** @@ -53,7 +53,7 @@ ___ ▸ **toString**(): *string* -*Defined in [utils/key_pair.ts:70](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L70)* +*Defined in [utils/key_pair.ts:70](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L70)* **Returns:** *string* @@ -63,7 +63,7 @@ ___ ▸ **verify**(`message`: Uint8Array, `signature`: Uint8Array): *boolean* -*Defined in [utils/key_pair.ts:69](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L69)* +*Defined in [utils/key_pair.ts:69](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L69)* **Parameters:** @@ -80,7 +80,7 @@ ___ ▸ **fromRandom**(`curve`: string): *[KeyPair](_utils_key_pair_.keypair.md)* -*Defined in [utils/key_pair.ts:73](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L73)* +*Defined in [utils/key_pair.ts:73](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L73)* **Parameters:** @@ -96,7 +96,7 @@ ___ ▸ **fromString**(`encodedKey`: string): *[KeyPair](_utils_key_pair_.keypair.md)* -*Defined in [utils/key_pair.ts:80](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L80)* +*Defined in [utils/key_pair.ts:80](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L80)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_key_pair_.keypaired25519.md b/docs/nearlib/classes/_utils_key_pair_.keypaired25519.md index a8a1751f5d..33419926f5 100644 --- a/docs/nearlib/classes/_utils_key_pair_.keypaired25519.md +++ b/docs/nearlib/classes/_utils_key_pair_.keypaired25519.md @@ -39,7 +39,7 @@ generating key pairs, encoding key pairs, signing and verifying. \+ **new KeyPairEd25519**(`secretKey`: string): *[KeyPairEd25519](_utils_key_pair_.keypaired25519.md)* -*Defined in [utils/key_pair.ts:101](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L101)* +*Defined in [utils/key_pair.ts:101](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L101)* Construct an instance of key pair given a secret key. It's generally assumed that these are encoded in base58. @@ -58,7 +58,7 @@ Name | Type | Description | • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [utils/key_pair.ts:100](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L100)* +*Defined in [utils/key_pair.ts:100](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L100)* ___ @@ -66,7 +66,7 @@ ___ • **secretKey**: *string* -*Defined in [utils/key_pair.ts:101](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L101)* +*Defined in [utils/key_pair.ts:101](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L101)* ## Methods @@ -76,7 +76,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[getPublicKey](_utils_key_pair_.keypair.md#abstract-getpublickey)* -*Defined in [utils/key_pair.ts:143](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L143)* +*Defined in [utils/key_pair.ts:143](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L143)* **Returns:** *[PublicKey](_utils_key_pair_.publickey.md)* @@ -88,7 +88,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[sign](_utils_key_pair_.keypair.md#abstract-sign)* -*Defined in [utils/key_pair.ts:130](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L130)* +*Defined in [utils/key_pair.ts:130](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L130)* **Parameters:** @@ -106,7 +106,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[toString](_utils_key_pair_.keypair.md#abstract-tostring)* -*Defined in [utils/key_pair.ts:139](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L139)* +*Defined in [utils/key_pair.ts:139](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L139)* **Returns:** *string* @@ -118,7 +118,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[verify](_utils_key_pair_.keypair.md#abstract-verify)* -*Defined in [utils/key_pair.ts:135](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L135)* +*Defined in [utils/key_pair.ts:135](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L135)* **Parameters:** @@ -137,7 +137,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[fromRandom](_utils_key_pair_.keypair.md#static-fromrandom)* -*Defined in [utils/key_pair.ts:125](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L125)* +*Defined in [utils/key_pair.ts:125](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L125)* Generate a new random keypair. @@ -159,7 +159,7 @@ ___ *Inherited from [KeyPair](_utils_key_pair_.keypair.md).[fromString](_utils_key_pair_.keypair.md#static-fromstring)* -*Defined in [utils/key_pair.ts:80](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L80)* +*Defined in [utils/key_pair.ts:80](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L80)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_key_pair_.publickey.md b/docs/nearlib/classes/_utils_key_pair_.publickey.md index 41b440e9c3..93f38d8471 100644 --- a/docs/nearlib/classes/_utils_key_pair_.publickey.md +++ b/docs/nearlib/classes/_utils_key_pair_.publickey.md @@ -33,7 +33,7 @@ PublicKey representation that has type and bytes of the key. \+ **new PublicKey**(`keyType`: [KeyType](../enums/_utils_key_pair_.keytype.md), `data`: Uint8Array): *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [utils/key_pair.ts:37](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L37)* +*Defined in [utils/key_pair.ts:37](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L37)* **Parameters:** @@ -50,7 +50,7 @@ Name | Type | • **data**: *Uint8Array* -*Defined in [utils/key_pair.ts:37](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L37)* +*Defined in [utils/key_pair.ts:37](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L37)* ___ @@ -58,7 +58,7 @@ ___ • **keyType**: *[KeyType](../enums/_utils_key_pair_.keytype.md)* -*Defined in [utils/key_pair.ts:36](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L36)* +*Defined in [utils/key_pair.ts:36](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L36)* ## Methods @@ -66,7 +66,7 @@ ___ ▸ **toString**(): *string* -*Defined in [utils/key_pair.ts:62](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L62)* +*Defined in [utils/key_pair.ts:62](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L62)* **Returns:** *string* @@ -76,7 +76,7 @@ ___ ▸ **from**(`value`: string | [PublicKey](_utils_key_pair_.publickey.md)): *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [utils/key_pair.ts:44](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L44)* +*Defined in [utils/key_pair.ts:44](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L44)* **Parameters:** @@ -92,7 +92,7 @@ ___ ▸ **fromString**(`encodedKey`: string): *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [utils/key_pair.ts:51](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L51)* +*Defined in [utils/key_pair.ts:51](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L51)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_serialize_.binaryreader.md b/docs/nearlib/classes/_utils_serialize_.binaryreader.md index 66a6d0270f..734de9db98 100644 --- a/docs/nearlib/classes/_utils_serialize_.binaryreader.md +++ b/docs/nearlib/classes/_utils_serialize_.binaryreader.md @@ -36,7 +36,7 @@ sidebar_label: "BinaryReader" \+ **new BinaryReader**(`buf`: Buffer): *[BinaryReader](_utils_serialize_.binaryreader.md)* -*Defined in [utils/serialize.ts:92](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L92)* +*Defined in [utils/serialize.ts:92](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L92)* **Parameters:** @@ -52,7 +52,7 @@ Name | Type | • **buf**: *Buffer* -*Defined in [utils/serialize.ts:91](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L91)* +*Defined in [utils/serialize.ts:91](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L91)* ___ @@ -60,7 +60,7 @@ ___ • **offset**: *number* -*Defined in [utils/serialize.ts:92](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L92)* +*Defined in [utils/serialize.ts:92](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L92)* ## Methods @@ -68,7 +68,7 @@ ___ ▸ **read_array**(`fn`: any): *any[]* -*Defined in [utils/serialize.ts:137](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L137)* +*Defined in [utils/serialize.ts:137](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L137)* **Parameters:** @@ -84,7 +84,7 @@ ___ ▸ **read_buffer**(`len`: number): *Buffer* -*Defined in [utils/serialize.ts:122](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L122)* +*Defined in [utils/serialize.ts:122](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L122)* **Parameters:** @@ -100,7 +100,7 @@ ___ ▸ **read_fixed_array**(`len`: number): *Uint8Array* -*Defined in [utils/serialize.ts:133](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L133)* +*Defined in [utils/serialize.ts:133](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L133)* **Parameters:** @@ -116,7 +116,7 @@ ___ ▸ **read_string**(): *string* -*Defined in [utils/serialize.ts:128](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L128)* +*Defined in [utils/serialize.ts:128](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L128)* **Returns:** *string* @@ -126,7 +126,7 @@ ___ ▸ **read_u128**(): *BN* -*Defined in [utils/serialize.ts:117](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L117)* +*Defined in [utils/serialize.ts:117](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L117)* **Returns:** *BN* @@ -136,7 +136,7 @@ ___ ▸ **read_u32**(): *number* -*Defined in [utils/serialize.ts:105](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L105)* +*Defined in [utils/serialize.ts:105](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L105)* **Returns:** *number* @@ -146,7 +146,7 @@ ___ ▸ **read_u64**(): *BN* -*Defined in [utils/serialize.ts:111](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L111)* +*Defined in [utils/serialize.ts:111](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L111)* **Returns:** *BN* @@ -156,6 +156,6 @@ ___ ▸ **read_u8**(): *number* -*Defined in [utils/serialize.ts:99](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L99)* +*Defined in [utils/serialize.ts:99](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L99)* **Returns:** *number* diff --git a/docs/nearlib/classes/_utils_serialize_.binarywriter.md b/docs/nearlib/classes/_utils_serialize_.binarywriter.md index 468a085ca4..c63d5c0ff5 100644 --- a/docs/nearlib/classes/_utils_serialize_.binarywriter.md +++ b/docs/nearlib/classes/_utils_serialize_.binarywriter.md @@ -38,7 +38,7 @@ sidebar_label: "BinaryWriter" \+ **new BinaryWriter**(): *[BinaryWriter](_utils_serialize_.binarywriter.md)* -*Defined in [utils/serialize.ts:24](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L24)* +*Defined in [utils/serialize.ts:24](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L24)* **Returns:** *[BinaryWriter](_utils_serialize_.binarywriter.md)* @@ -48,7 +48,7 @@ sidebar_label: "BinaryWriter" • **buf**: *Buffer* -*Defined in [utils/serialize.ts:23](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L23)* +*Defined in [utils/serialize.ts:23](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L23)* ___ @@ -56,7 +56,7 @@ ___ • **length**: *number* -*Defined in [utils/serialize.ts:24](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L24)* +*Defined in [utils/serialize.ts:24](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L24)* ## Methods @@ -64,7 +64,7 @@ ___ ▸ **maybe_resize**(): *void* -*Defined in [utils/serialize.ts:31](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L31)* +*Defined in [utils/serialize.ts:31](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L31)* **Returns:** *void* @@ -74,7 +74,7 @@ ___ ▸ **toArray**(): *Uint8Array* -*Defined in [utils/serialize.ts:85](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L85)* +*Defined in [utils/serialize.ts:85](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L85)* **Returns:** *Uint8Array* @@ -84,7 +84,7 @@ ___ ▸ **write_array**(`array`: any[], `fn`: any): *void* -*Defined in [utils/serialize.ts:76](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L76)* +*Defined in [utils/serialize.ts:76](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L76)* **Parameters:** @@ -101,7 +101,7 @@ ___ ▸ **write_buffer**(`buffer`: Buffer): *void* -*Defined in [utils/serialize.ts:59](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L59)* +*Defined in [utils/serialize.ts:59](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L59)* **Parameters:** @@ -117,7 +117,7 @@ ___ ▸ **write_fixed_array**(`array`: Uint8Array): *void* -*Defined in [utils/serialize.ts:72](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L72)* +*Defined in [utils/serialize.ts:72](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L72)* **Parameters:** @@ -133,7 +133,7 @@ ___ ▸ **write_string**(`str`: string): *void* -*Defined in [utils/serialize.ts:65](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L65)* +*Defined in [utils/serialize.ts:65](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L65)* **Parameters:** @@ -149,7 +149,7 @@ ___ ▸ **write_u128**(`value`: BN): *void* -*Defined in [utils/serialize.ts:54](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L54)* +*Defined in [utils/serialize.ts:54](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L54)* **Parameters:** @@ -165,7 +165,7 @@ ___ ▸ **write_u32**(`value`: number): *void* -*Defined in [utils/serialize.ts:43](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L43)* +*Defined in [utils/serialize.ts:43](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L43)* **Parameters:** @@ -181,7 +181,7 @@ ___ ▸ **write_u64**(`value`: BN): *void* -*Defined in [utils/serialize.ts:49](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L49)* +*Defined in [utils/serialize.ts:49](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L49)* **Parameters:** @@ -197,7 +197,7 @@ ___ ▸ **write_u8**(`value`: number): *void* -*Defined in [utils/serialize.ts:37](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L37)* +*Defined in [utils/serialize.ts:37](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L37)* **Parameters:** diff --git a/docs/nearlib/classes/_wallet_account_.walletaccount.md b/docs/nearlib/classes/_wallet_account_.walletaccount.md index 4f16579806..c801a69f51 100644 --- a/docs/nearlib/classes/_wallet_account_.walletaccount.md +++ b/docs/nearlib/classes/_wallet_account_.walletaccount.md @@ -37,7 +37,7 @@ sidebar_label: "WalletAccount" \+ **new WalletAccount**(`near`: [Near](_near_.near.md), `appKeyPrefix`: string | null): *[WalletAccount](_wallet_account_.walletaccount.md)* -*Defined in [wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L18)* +*Defined in [wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L18)* **Parameters:** @@ -54,7 +54,7 @@ Name | Type | • **_authData**: *any* -*Defined in [wallet-account.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L17)* +*Defined in [wallet-account.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L17)* ___ @@ -62,7 +62,7 @@ ___ • **_authDataKey**: *string* -*Defined in [wallet-account.ts:15](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L15)* +*Defined in [wallet-account.ts:15](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L15)* ___ @@ -70,7 +70,7 @@ ___ • **_keyStore**: *[KeyStore](_key_stores_keystore_.keystore.md)* -*Defined in [wallet-account.ts:16](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L16)* +*Defined in [wallet-account.ts:16](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L16)* ___ @@ -78,7 +78,7 @@ ___ • **_networkId**: *string* -*Defined in [wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L18)* +*Defined in [wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L18)* ___ @@ -86,7 +86,7 @@ ___ • **_walletBaseUrl**: *string* -*Defined in [wallet-account.ts:14](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L14)* +*Defined in [wallet-account.ts:14](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L14)* ## Methods @@ -94,7 +94,7 @@ ___ ▸ **_completeSignInWithAccessKey**(): *Promise‹void›* -*Defined in [wallet-account.ts:84](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L84)* +*Defined in [wallet-account.ts:84](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L84)* Complete sign in for a given account id and public key. To be invoked by the app when getting a callback from the wallet. @@ -106,7 +106,7 @@ ___ ▸ **_moveKeyFromTempToPermanent**(`accountId`: string, `publicKey`: string): *Promise‹void›* -*Defined in [wallet-account.ts:97](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L97)* +*Defined in [wallet-account.ts:97](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L97)* **Parameters:** @@ -123,7 +123,7 @@ ___ ▸ **getAccountId**(): *any* -*Defined in [wallet-account.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L46)* +*Defined in [wallet-account.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L46)* Returns authorized Account ID. @@ -138,7 +138,7 @@ ___ ▸ **isSignedIn**(): *boolean* -*Defined in [wallet-account.ts:37](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L37)* +*Defined in [wallet-account.ts:37](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L37)* Returns true, if this WalletAccount is authorized with the wallet. @@ -153,7 +153,7 @@ ___ ▸ **requestSignIn**(`contractId`: string, `title`: string, `successUrl`: string, `failureUrl`: string): *Promise‹void›* -*Defined in [wallet-account.ts:63](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L63)* +*Defined in [wallet-account.ts:63](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L63)* Redirects current page to the wallet authentication page. @@ -181,7 +181,7 @@ ___ ▸ **signOut**(): *void* -*Defined in [wallet-account.ts:108](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L108)* +*Defined in [wallet-account.ts:108](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L108)* Sign out from the current account diff --git a/docs/nearlib/enums/_providers_provider_.executionstatusbasic.md b/docs/nearlib/enums/_providers_provider_.executionstatusbasic.md index 823f931f03..0c6dd3565a 100644 --- a/docs/nearlib/enums/_providers_provider_.executionstatusbasic.md +++ b/docs/nearlib/enums/_providers_provider_.executionstatusbasic.md @@ -18,7 +18,7 @@ sidebar_label: "ExecutionStatusBasic" • **Failure**: = "Failure" -*Defined in [providers/provider.ts:24](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L24)* +*Defined in [providers/provider.ts:24](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L24)* ___ @@ -26,7 +26,7 @@ ___ • **Pending**: = "Pending" -*Defined in [providers/provider.ts:23](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L23)* +*Defined in [providers/provider.ts:23](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L23)* ___ @@ -34,4 +34,4 @@ ___ • **Unknown**: = "Unknown" -*Defined in [providers/provider.ts:22](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L22)* +*Defined in [providers/provider.ts:22](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L22)* diff --git a/docs/nearlib/enums/_providers_provider_.finalexecutionstatusbasic.md b/docs/nearlib/enums/_providers_provider_.finalexecutionstatusbasic.md index 29a6c67ac2..4cd25c2424 100644 --- a/docs/nearlib/enums/_providers_provider_.finalexecutionstatusbasic.md +++ b/docs/nearlib/enums/_providers_provider_.finalexecutionstatusbasic.md @@ -18,7 +18,7 @@ sidebar_label: "FinalExecutionStatusBasic" • **Failure**: = "Failure" -*Defined in [providers/provider.ts:36](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L36)* +*Defined in [providers/provider.ts:36](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L36)* ___ @@ -26,7 +26,7 @@ ___ • **NotStarted**: = "NotStarted" -*Defined in [providers/provider.ts:34](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L34)* +*Defined in [providers/provider.ts:34](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L34)* ___ @@ -34,4 +34,4 @@ ___ • **Started**: = "Started" -*Defined in [providers/provider.ts:35](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L35)* +*Defined in [providers/provider.ts:35](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L35)* diff --git a/docs/nearlib/enums/_providers_provider_.legacyfinaltransactionstatus.md b/docs/nearlib/enums/_providers_provider_.legacyfinaltransactionstatus.md index 6b52985a60..a0d2310c1d 100644 --- a/docs/nearlib/enums/_providers_provider_.legacyfinaltransactionstatus.md +++ b/docs/nearlib/enums/_providers_provider_.legacyfinaltransactionstatus.md @@ -19,7 +19,7 @@ sidebar_label: "LegacyFinalTransactionStatus" • **Completed**: = "Completed" -*Defined in [providers/provider.ts:109](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L109)* +*Defined in [providers/provider.ts:109](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L109)* ___ @@ -27,7 +27,7 @@ ___ • **Failed**: = "Failed" -*Defined in [providers/provider.ts:108](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L108)* +*Defined in [providers/provider.ts:108](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L108)* ___ @@ -35,7 +35,7 @@ ___ • **Started**: = "Started" -*Defined in [providers/provider.ts:107](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L107)* +*Defined in [providers/provider.ts:107](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L107)* ___ @@ -43,4 +43,4 @@ ___ • **Unknown**: = "Unknown" -*Defined in [providers/provider.ts:106](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L106)* +*Defined in [providers/provider.ts:106](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L106)* diff --git a/docs/nearlib/enums/_providers_provider_.legacytransactionstatus.md b/docs/nearlib/enums/_providers_provider_.legacytransactionstatus.md index 2a0a33f9f0..6e5caaf058 100644 --- a/docs/nearlib/enums/_providers_provider_.legacytransactionstatus.md +++ b/docs/nearlib/enums/_providers_provider_.legacytransactionstatus.md @@ -18,7 +18,7 @@ sidebar_label: "LegacyTransactionStatus" • **Completed**: = "Completed" -*Defined in [providers/provider.ts:115](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L115)* +*Defined in [providers/provider.ts:115](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L115)* ___ @@ -26,7 +26,7 @@ ___ • **Failed**: = "Failed" -*Defined in [providers/provider.ts:116](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L116)* +*Defined in [providers/provider.ts:116](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L116)* ___ @@ -34,4 +34,4 @@ ___ • **Unknown**: = "Unknown" -*Defined in [providers/provider.ts:114](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L114)* +*Defined in [providers/provider.ts:114](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L114)* diff --git a/docs/nearlib/enums/_utils_key_pair_.keytype.md b/docs/nearlib/enums/_utils_key_pair_.keytype.md index 4cf75ebb15..9a4fef937d 100644 --- a/docs/nearlib/enums/_utils_key_pair_.keytype.md +++ b/docs/nearlib/enums/_utils_key_pair_.keytype.md @@ -18,4 +18,4 @@ All supported key types • **ED25519**: = 0 -*Defined in [utils/key_pair.ts:15](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L15)* +*Defined in [utils/key_pair.ts:15](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L15)* diff --git a/docs/nearlib/interfaces/_account_.accountstate.md b/docs/nearlib/interfaces/_account_.accountstate.md index dd3537d70e..8f59218cf3 100644 --- a/docs/nearlib/interfaces/_account_.accountstate.md +++ b/docs/nearlib/interfaces/_account_.accountstate.md @@ -23,7 +23,7 @@ sidebar_label: "AccountState" • **account_id**: *string* -*Defined in [account.ts:31](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L31)* +*Defined in [account.ts:31](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L31)* ___ @@ -31,7 +31,7 @@ ___ • **amount**: *string* -*Defined in [account.ts:32](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L32)* +*Defined in [account.ts:32](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L32)* ___ @@ -39,7 +39,7 @@ ___ • **code_hash**: *string* -*Defined in [account.ts:34](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L34)* +*Defined in [account.ts:34](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L34)* ___ @@ -47,4 +47,4 @@ ___ • **staked**: *string* -*Defined in [account.ts:33](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L33)* +*Defined in [account.ts:33](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L33)* diff --git a/docs/nearlib/interfaces/_key_stores_unencrypted_file_system_keystore_.accountinfo.md b/docs/nearlib/interfaces/_key_stores_unencrypted_file_system_keystore_.accountinfo.md index b55278795f..a4f06d342c 100644 --- a/docs/nearlib/interfaces/_key_stores_unencrypted_file_system_keystore_.accountinfo.md +++ b/docs/nearlib/interfaces/_key_stores_unencrypted_file_system_keystore_.accountinfo.md @@ -23,7 +23,7 @@ Format of the account stored on disk. • **account_id**: *string* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:29](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L29)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:29](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L29)* ___ @@ -31,4 +31,4 @@ ___ • **private_key**: *string* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:30](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L30)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:30](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L30)* diff --git a/docs/nearlib/interfaces/_providers_provider_.blockheader.md b/docs/nearlib/interfaces/_providers_provider_.blockheader.md index 25160cf843..6c0011a3ac 100644 --- a/docs/nearlib/interfaces/_providers_provider_.blockheader.md +++ b/docs/nearlib/interfaces/_providers_provider_.blockheader.md @@ -28,7 +28,7 @@ sidebar_label: "BlockHeader" • **approval_mask**: *string* -*Defined in [providers/provider.ts:72](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L72)* +*Defined in [providers/provider.ts:72](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L72)* ___ @@ -36,7 +36,7 @@ ___ • **approval_sigs**: *string* -*Defined in [providers/provider.ts:73](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L73)* +*Defined in [providers/provider.ts:73](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L73)* ___ @@ -44,7 +44,7 @@ ___ • **hash**: *string* -*Defined in [providers/provider.ts:74](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L74)* +*Defined in [providers/provider.ts:74](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L74)* ___ @@ -52,7 +52,7 @@ ___ • **height**: *number* -*Defined in [providers/provider.ts:75](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L75)* +*Defined in [providers/provider.ts:75](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L75)* ___ @@ -60,7 +60,7 @@ ___ • **prev_hash**: *string* -*Defined in [providers/provider.ts:76](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L76)* +*Defined in [providers/provider.ts:76](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L76)* ___ @@ -68,7 +68,7 @@ ___ • **prev_state_root**: *string* -*Defined in [providers/provider.ts:77](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L77)* +*Defined in [providers/provider.ts:77](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L77)* ___ @@ -76,7 +76,7 @@ ___ • **timestamp**: *number* -*Defined in [providers/provider.ts:78](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L78)* +*Defined in [providers/provider.ts:78](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L78)* ___ @@ -84,7 +84,7 @@ ___ • **total_weight**: *[TotalWeight](_providers_provider_.totalweight.md)* -*Defined in [providers/provider.ts:79](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L79)* +*Defined in [providers/provider.ts:79](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L79)* ___ @@ -92,4 +92,4 @@ ___ • **tx_root**: *string* -*Defined in [providers/provider.ts:80](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L80)* +*Defined in [providers/provider.ts:80](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L80)* diff --git a/docs/nearlib/interfaces/_providers_provider_.blockresult.md b/docs/nearlib/interfaces/_providers_provider_.blockresult.md index 0a0e375d84..61b1ee5832 100644 --- a/docs/nearlib/interfaces/_providers_provider_.blockresult.md +++ b/docs/nearlib/interfaces/_providers_provider_.blockresult.md @@ -21,7 +21,7 @@ sidebar_label: "BlockResult" • **header**: *[BlockHeader](_providers_provider_.blockheader.md)* -*Defined in [providers/provider.ts:126](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L126)* +*Defined in [providers/provider.ts:126](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L126)* ___ @@ -29,4 +29,4 @@ ___ • **transactions**: *[Transaction](_providers_provider_.transaction.md)[]* -*Defined in [providers/provider.ts:127](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L127)* +*Defined in [providers/provider.ts:127](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L127)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionerror.md b/docs/nearlib/interfaces/_providers_provider_.executionerror.md index 799ace9d93..bc917cef45 100644 --- a/docs/nearlib/interfaces/_providers_provider_.executionerror.md +++ b/docs/nearlib/interfaces/_providers_provider_.executionerror.md @@ -21,7 +21,7 @@ sidebar_label: "ExecutionError" • **error_message**: *string* -*Defined in [providers/provider.ts:40](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L40)* +*Defined in [providers/provider.ts:40](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L40)* ___ @@ -29,4 +29,4 @@ ___ • **error_type**: *string* -*Defined in [providers/provider.ts:41](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L41)* +*Defined in [providers/provider.ts:41](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L41)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionoutcome.md b/docs/nearlib/interfaces/_providers_provider_.executionoutcome.md index f38a4375f7..3d2b0d5736 100644 --- a/docs/nearlib/interfaces/_providers_provider_.executionoutcome.md +++ b/docs/nearlib/interfaces/_providers_provider_.executionoutcome.md @@ -23,7 +23,7 @@ sidebar_label: "ExecutionOutcome" • **gas_burnt**: *number* -*Defined in [providers/provider.ts:58](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L58)* +*Defined in [providers/provider.ts:58](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L58)* ___ @@ -31,7 +31,7 @@ ___ • **logs**: *string[]* -*Defined in [providers/provider.ts:56](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L56)* +*Defined in [providers/provider.ts:56](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L56)* ___ @@ -39,7 +39,7 @@ ___ • **receipt_ids**: *string[]* -*Defined in [providers/provider.ts:57](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L57)* +*Defined in [providers/provider.ts:57](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L57)* ___ @@ -47,4 +47,4 @@ ___ • **status**: *[ExecutionStatus](_providers_provider_.executionstatus.md) | [ExecutionStatusBasic](../enums/_providers_provider_.executionstatusbasic.md)* -*Defined in [providers/provider.ts:55](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L55)* +*Defined in [providers/provider.ts:55](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L55)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionoutcomewithid.md b/docs/nearlib/interfaces/_providers_provider_.executionoutcomewithid.md index f2592eba61..5107599195 100644 --- a/docs/nearlib/interfaces/_providers_provider_.executionoutcomewithid.md +++ b/docs/nearlib/interfaces/_providers_provider_.executionoutcomewithid.md @@ -21,7 +21,7 @@ sidebar_label: "ExecutionOutcomeWithId" • **id**: *string* -*Defined in [providers/provider.ts:50](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L50)* +*Defined in [providers/provider.ts:50](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L50)* ___ @@ -29,4 +29,4 @@ ___ • **outcome**: *[ExecutionOutcome](_providers_provider_.executionoutcome.md)* -*Defined in [providers/provider.ts:51](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L51)* +*Defined in [providers/provider.ts:51](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L51)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionstatus.md b/docs/nearlib/interfaces/_providers_provider_.executionstatus.md index de82f2a285..920b4c1436 100644 --- a/docs/nearlib/interfaces/_providers_provider_.executionstatus.md +++ b/docs/nearlib/interfaces/_providers_provider_.executionstatus.md @@ -22,7 +22,7 @@ sidebar_label: "ExecutionStatus" • **Failure**? : *[ExecutionError](_providers_provider_.executionerror.md)* -*Defined in [providers/provider.ts:30](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L30)* +*Defined in [providers/provider.ts:30](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L30)* ___ @@ -30,7 +30,7 @@ ___ • **SuccessReceiptId**? : *string* -*Defined in [providers/provider.ts:29](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L29)* +*Defined in [providers/provider.ts:29](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L29)* ___ @@ -38,4 +38,4 @@ ___ • **SuccessValue**? : *string* -*Defined in [providers/provider.ts:28](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L28)* +*Defined in [providers/provider.ts:28](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L28)* diff --git a/docs/nearlib/interfaces/_providers_provider_.finalexecutionoutcome.md b/docs/nearlib/interfaces/_providers_provider_.finalexecutionoutcome.md index e30ee2016e..2f741482ad 100644 --- a/docs/nearlib/interfaces/_providers_provider_.finalexecutionoutcome.md +++ b/docs/nearlib/interfaces/_providers_provider_.finalexecutionoutcome.md @@ -22,7 +22,7 @@ sidebar_label: "FinalExecutionOutcome" • **receipts**: *[ExecutionOutcomeWithId](_providers_provider_.executionoutcomewithid.md)[]* -*Defined in [providers/provider.ts:64](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L64)* +*Defined in [providers/provider.ts:64](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L64)* ___ @@ -30,7 +30,7 @@ ___ • **status**: *[FinalExecutionStatus](_providers_provider_.finalexecutionstatus.md) | [FinalExecutionStatusBasic](../enums/_providers_provider_.finalexecutionstatusbasic.md)* -*Defined in [providers/provider.ts:62](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L62)* +*Defined in [providers/provider.ts:62](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L62)* ___ @@ -38,4 +38,4 @@ ___ • **transaction**: *[ExecutionOutcomeWithId](_providers_provider_.executionoutcomewithid.md)* -*Defined in [providers/provider.ts:63](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L63)* +*Defined in [providers/provider.ts:63](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L63)* diff --git a/docs/nearlib/interfaces/_providers_provider_.finalexecutionstatus.md b/docs/nearlib/interfaces/_providers_provider_.finalexecutionstatus.md index 31b1c596a6..6982254cfb 100644 --- a/docs/nearlib/interfaces/_providers_provider_.finalexecutionstatus.md +++ b/docs/nearlib/interfaces/_providers_provider_.finalexecutionstatus.md @@ -21,7 +21,7 @@ sidebar_label: "FinalExecutionStatus" • **Failure**? : *[ExecutionError](_providers_provider_.executionerror.md)* -*Defined in [providers/provider.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L46)* +*Defined in [providers/provider.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L46)* ___ @@ -29,4 +29,4 @@ ___ • **SuccessValue**? : *string* -*Defined in [providers/provider.ts:45](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L45)* +*Defined in [providers/provider.ts:45](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L45)* diff --git a/docs/nearlib/interfaces/_providers_provider_.legacyfinaltransactionresult.md b/docs/nearlib/interfaces/_providers_provider_.legacyfinaltransactionresult.md index 46d6cc7ca2..53fb0572db 100644 --- a/docs/nearlib/interfaces/_providers_provider_.legacyfinaltransactionresult.md +++ b/docs/nearlib/interfaces/_providers_provider_.legacyfinaltransactionresult.md @@ -21,7 +21,7 @@ sidebar_label: "LegacyFinalTransactionResult" • **status**: *[LegacyFinalTransactionStatus](../enums/_providers_provider_.legacyfinaltransactionstatus.md)* -*Defined in [providers/provider.ts:121](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L121)* +*Defined in [providers/provider.ts:121](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L121)* ___ @@ -29,4 +29,4 @@ ___ • **transactions**: *[LegacyTransactionLog](_providers_provider_.legacytransactionlog.md)[]* -*Defined in [providers/provider.ts:122](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L122)* +*Defined in [providers/provider.ts:122](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L122)* diff --git a/docs/nearlib/interfaces/_providers_provider_.legacytransactionlog.md b/docs/nearlib/interfaces/_providers_provider_.legacytransactionlog.md index e4867eefba..4712b3879a 100644 --- a/docs/nearlib/interfaces/_providers_provider_.legacytransactionlog.md +++ b/docs/nearlib/interfaces/_providers_provider_.legacytransactionlog.md @@ -21,7 +21,7 @@ sidebar_label: "LegacyTransactionLog" • **hash**: *string* -*Defined in [providers/provider.ts:92](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L92)* +*Defined in [providers/provider.ts:92](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L92)* ___ @@ -29,4 +29,4 @@ ___ • **result**: *[LegacyTransactionResult](_providers_provider_.legacytransactionresult.md)* -*Defined in [providers/provider.ts:93](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L93)* +*Defined in [providers/provider.ts:93](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L93)* diff --git a/docs/nearlib/interfaces/_providers_provider_.legacytransactionresult.md b/docs/nearlib/interfaces/_providers_provider_.legacytransactionresult.md index 5b14b9f04e..adad0adadd 100644 --- a/docs/nearlib/interfaces/_providers_provider_.legacytransactionresult.md +++ b/docs/nearlib/interfaces/_providers_provider_.legacytransactionresult.md @@ -23,7 +23,7 @@ sidebar_label: "LegacyTransactionResult" • **logs**: *string[]* -*Defined in [providers/provider.ts:99](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L99)* +*Defined in [providers/provider.ts:99](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L99)* ___ @@ -31,7 +31,7 @@ ___ • **receipts**: *string[]* -*Defined in [providers/provider.ts:100](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L100)* +*Defined in [providers/provider.ts:100](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L100)* ___ @@ -39,7 +39,7 @@ ___ • **result**? : *string* -*Defined in [providers/provider.ts:101](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L101)* +*Defined in [providers/provider.ts:101](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L101)* ___ @@ -47,4 +47,4 @@ ___ • **status**: *[LegacyTransactionStatus](../enums/_providers_provider_.legacytransactionstatus.md)* -*Defined in [providers/provider.ts:98](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L98)* +*Defined in [providers/provider.ts:98](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L98)* diff --git a/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md b/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md index 711362ff2f..5c3e31f2df 100644 --- a/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md +++ b/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md @@ -23,7 +23,7 @@ sidebar_label: "NodeStatusResult" • **chain_id**: *string* -*Defined in [providers/provider.ts:15](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L15)* +*Defined in [providers/provider.ts:15](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L15)* ___ @@ -31,7 +31,7 @@ ___ • **rpc_addr**: *string* -*Defined in [providers/provider.ts:16](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L16)* +*Defined in [providers/provider.ts:16](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L16)* ___ @@ -39,7 +39,7 @@ ___ • **sync_info**: *[SyncInfo](_providers_provider_.syncinfo.md)* -*Defined in [providers/provider.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L17)* +*Defined in [providers/provider.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L17)* ___ @@ -47,4 +47,4 @@ ___ • **validators**: *string[]* -*Defined in [providers/provider.ts:18](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L18)* +*Defined in [providers/provider.ts:18](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L18)* diff --git a/docs/nearlib/interfaces/_providers_provider_.syncinfo.md b/docs/nearlib/interfaces/_providers_provider_.syncinfo.md index 1a7d172c16..0c383a7983 100644 --- a/docs/nearlib/interfaces/_providers_provider_.syncinfo.md +++ b/docs/nearlib/interfaces/_providers_provider_.syncinfo.md @@ -24,7 +24,7 @@ sidebar_label: "SyncInfo" • **latest_block_hash**: *string* -*Defined in [providers/provider.ts:7](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L7)* +*Defined in [providers/provider.ts:7](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L7)* ___ @@ -32,7 +32,7 @@ ___ • **latest_block_height**: *number* -*Defined in [providers/provider.ts:8](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L8)* +*Defined in [providers/provider.ts:8](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L8)* ___ @@ -40,7 +40,7 @@ ___ • **latest_block_time**: *string* -*Defined in [providers/provider.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L9)* +*Defined in [providers/provider.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L9)* ___ @@ -48,7 +48,7 @@ ___ • **latest_state_root**: *string* -*Defined in [providers/provider.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L10)* +*Defined in [providers/provider.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L10)* ___ @@ -56,4 +56,4 @@ ___ • **syncing**: *boolean* -*Defined in [providers/provider.ts:11](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L11)* +*Defined in [providers/provider.ts:11](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L11)* diff --git a/docs/nearlib/interfaces/_providers_provider_.totalweight.md b/docs/nearlib/interfaces/_providers_provider_.totalweight.md index 4690b5794a..fe89f92b5d 100644 --- a/docs/nearlib/interfaces/_providers_provider_.totalweight.md +++ b/docs/nearlib/interfaces/_providers_provider_.totalweight.md @@ -20,4 +20,4 @@ sidebar_label: "TotalWeight" • **num**: *number* -*Defined in [providers/provider.ts:68](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L68)* +*Defined in [providers/provider.ts:68](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L68)* diff --git a/docs/nearlib/interfaces/_providers_provider_.transaction.md b/docs/nearlib/interfaces/_providers_provider_.transaction.md index 6020abc0e0..ffa8df3143 100644 --- a/docs/nearlib/interfaces/_providers_provider_.transaction.md +++ b/docs/nearlib/interfaces/_providers_provider_.transaction.md @@ -23,7 +23,7 @@ sidebar_label: "Transaction" • **body**: *any* -*Defined in [providers/provider.ts:87](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L87)* +*Defined in [providers/provider.ts:87](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L87)* ___ @@ -31,7 +31,7 @@ ___ • **hash**: *string* -*Defined in [providers/provider.ts:84](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L84)* +*Defined in [providers/provider.ts:84](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L84)* ___ @@ -39,7 +39,7 @@ ___ • **public_key**: *string* -*Defined in [providers/provider.ts:85](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L85)* +*Defined in [providers/provider.ts:85](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L85)* ___ @@ -47,4 +47,4 @@ ___ • **signature**: *string* -*Defined in [providers/provider.ts:86](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L86)* +*Defined in [providers/provider.ts:86](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L86)* diff --git a/docs/nearlib/interfaces/_utils_key_pair_.signature.md b/docs/nearlib/interfaces/_utils_key_pair_.signature.md index 9f13129a5a..1916e1135d 100644 --- a/docs/nearlib/interfaces/_utils_key_pair_.signature.md +++ b/docs/nearlib/interfaces/_utils_key_pair_.signature.md @@ -21,7 +21,7 @@ sidebar_label: "Signature" • **publicKey**: *[PublicKey](../classes/_utils_key_pair_.publickey.md)* -*Defined in [utils/key_pair.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L10)* +*Defined in [utils/key_pair.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L10)* ___ @@ -29,4 +29,4 @@ ___ • **signature**: *Uint8Array* -*Defined in [utils/key_pair.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L9)* +*Defined in [utils/key_pair.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L9)* diff --git a/docs/nearlib/interfaces/_utils_network_.network.md b/docs/nearlib/interfaces/_utils_network_.network.md index d8b62714b1..0ea62d14e0 100644 --- a/docs/nearlib/interfaces/_utils_network_.network.md +++ b/docs/nearlib/interfaces/_utils_network_.network.md @@ -22,7 +22,7 @@ sidebar_label: "Network" • **_defaultProvider**? : *function* -*Defined in [utils/network.ts:6](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/network.ts#L6)* +*Defined in [utils/network.ts:6](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/network.ts#L6)* #### Type declaration: @@ -40,7 +40,7 @@ ___ • **chainId**: *string* -*Defined in [utils/network.ts:5](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/network.ts#L5)* +*Defined in [utils/network.ts:5](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/network.ts#L5)* ___ @@ -48,4 +48,4 @@ ___ • **name**: *string* -*Defined in [utils/network.ts:4](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/network.ts#L4)* +*Defined in [utils/network.ts:4](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/network.ts#L4)* diff --git a/docs/nearlib/interfaces/_utils_web_.connectioninfo.md b/docs/nearlib/interfaces/_utils_web_.connectioninfo.md index 43692c554b..6a50be75cb 100644 --- a/docs/nearlib/interfaces/_utils_web_.connectioninfo.md +++ b/docs/nearlib/interfaces/_utils_web_.connectioninfo.md @@ -25,7 +25,7 @@ sidebar_label: "ConnectionInfo" • **allowInsecure**? : *boolean* -*Defined in [utils/web.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L9)* +*Defined in [utils/web.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L9)* ___ @@ -33,7 +33,7 @@ ___ • **headers**? : *object* -*Defined in [utils/web.ts:11](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L11)* +*Defined in [utils/web.ts:11](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L11)* #### Type declaration: @@ -45,7 +45,7 @@ ___ • **password**? : *string* -*Defined in [utils/web.ts:8](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L8)* +*Defined in [utils/web.ts:8](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L8)* ___ @@ -53,7 +53,7 @@ ___ • **timeout**? : *number* -*Defined in [utils/web.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L10)* +*Defined in [utils/web.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L10)* ___ @@ -61,7 +61,7 @@ ___ • **url**: *string* -*Defined in [utils/web.ts:6](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L6)* +*Defined in [utils/web.ts:6](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L6)* ___ @@ -69,4 +69,4 @@ ___ • **user**? : *string* -*Defined in [utils/web.ts:7](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L7)* +*Defined in [utils/web.ts:7](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L7)* diff --git a/docs/nearlib/modules/_account_.md b/docs/nearlib/modules/_account_.md index 11b5ce5689..1b843fc3cd 100644 --- a/docs/nearlib/modules/_account_.md +++ b/docs/nearlib/modules/_account_.md @@ -31,7 +31,7 @@ sidebar_label: "account" • **DEFAULT_FUNC_CALL_AMOUNT**: *2000000* = 2000000 -*Defined in [account.ts:14](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L14)* +*Defined in [account.ts:14](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L14)* ___ @@ -39,7 +39,7 @@ ___ • **TX_STATUS_RETRY_NUMBER**: *10* = 10 -*Defined in [account.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L17)* +*Defined in [account.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L17)* ___ @@ -47,7 +47,7 @@ ___ • **TX_STATUS_RETRY_WAIT**: *500* = 500 -*Defined in [account.ts:20](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L20)* +*Defined in [account.ts:20](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L20)* ___ @@ -55,7 +55,7 @@ ___ • **TX_STATUS_RETRY_WAIT_BACKOFF**: *1.5* = 1.5 -*Defined in [account.ts:23](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L23)* +*Defined in [account.ts:23](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L23)* ## Functions @@ -63,7 +63,7 @@ ___ ▸ **sleep**(`millis`: number): *Promise‹any›* -*Defined in [account.ts:26](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/account.ts#L26)* +*Defined in [account.ts:26](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/account.ts#L26)* **Parameters:** diff --git a/docs/nearlib/modules/_connection_.md b/docs/nearlib/modules/_connection_.md index f0e9924b94..6fa567f6d4 100644 --- a/docs/nearlib/modules/_connection_.md +++ b/docs/nearlib/modules/_connection_.md @@ -21,7 +21,7 @@ sidebar_label: "connection" ▸ **getProvider**(`config`: any): *[Provider](../classes/_providers_provider_.provider.md)* -*Defined in [connection.ts:6](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/connection.ts#L6)* +*Defined in [connection.ts:6](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/connection.ts#L6)* **Parameters:** @@ -37,7 +37,7 @@ ___ ▸ **getSigner**(`config`: any): *[Signer](../classes/_signer_.signer.md)* -*Defined in [connection.ts:15](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/connection.ts#L15)* +*Defined in [connection.ts:15](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/connection.ts#L15)* **Parameters:** diff --git a/docs/nearlib/modules/_key_stores_browser_local_storage_key_store_.md b/docs/nearlib/modules/_key_stores_browser_local_storage_key_store_.md index e9a2ea3477..993acf6448 100644 --- a/docs/nearlib/modules/_key_stores_browser_local_storage_key_store_.md +++ b/docs/nearlib/modules/_key_stores_browser_local_storage_key_store_.md @@ -20,4 +20,4 @@ sidebar_label: "key_stores/browser_local_storage_key_store" • **LOCAL_STORAGE_KEY_PREFIX**: *"nearlib:keystore:"* = "nearlib:keystore:" -*Defined in [key_stores/browser_local_storage_key_store.ts:6](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/browser_local_storage_key_store.ts#L6)* +*Defined in [key_stores/browser_local_storage_key_store.ts:6](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/browser_local_storage_key_store.ts#L6)* diff --git a/docs/nearlib/modules/_key_stores_unencrypted_file_system_keystore_.md b/docs/nearlib/modules/_key_stores_unencrypted_file_system_keystore_.md index 1fa806cadc..94cf128991 100644 --- a/docs/nearlib/modules/_key_stores_unencrypted_file_system_keystore_.md +++ b/docs/nearlib/modules/_key_stores_unencrypted_file_system_keystore_.md @@ -36,7 +36,7 @@ sidebar_label: "key_stores/unencrypted_file_system_keystore" • **exists**: *Function* = promisify(fs.exists) -*Defined in [key_stores/unencrypted_file_system_keystore.ts:18](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L18)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:18](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L18)* ___ @@ -44,7 +44,7 @@ ___ • **mkdir**: *Function* = promisify(fs.mkdir) -*Defined in [key_stores/unencrypted_file_system_keystore.ts:23](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L23)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:23](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L23)* ___ @@ -52,7 +52,7 @@ ___ • **readFile**: *Function* = promisify(fs.readFile) -*Defined in [key_stores/unencrypted_file_system_keystore.ts:19](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L19)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:19](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L19)* ___ @@ -60,7 +60,7 @@ ___ • **readdir**: *Function* = promisify(fs.readdir) -*Defined in [key_stores/unencrypted_file_system_keystore.ts:22](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L22)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:22](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L22)* ___ @@ -68,7 +68,7 @@ ___ • **unlink**: *Function* = promisify(fs.unlink) -*Defined in [key_stores/unencrypted_file_system_keystore.ts:21](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L21)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:21](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L21)* ___ @@ -76,7 +76,7 @@ ___ • **writeFile**: *Function* = promisify(fs.writeFile) -*Defined in [key_stores/unencrypted_file_system_keystore.ts:20](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L20)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:20](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L20)* ## Functions @@ -84,7 +84,7 @@ ___ ▸ **ensureDir**(`path`: string): *Promise‹void›* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:38](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L38)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:38](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L38)* **Parameters:** @@ -100,7 +100,7 @@ ___ ▸ **loadJsonFile**(`path`: string): *Promise‹any›* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:33](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L33)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:33](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L33)* **Parameters:** @@ -116,7 +116,7 @@ ___ ▸ **promisify**(`fn`: any): *Function* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L9)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L9)* **Parameters:** @@ -132,7 +132,7 @@ ___ ▸ **readKeyFile**(`path`: string): *Promise‹[string, [KeyPair](../classes/_utils_key_pair_.keypair.md)]›* -*Defined in [key_stores/unencrypted_file_system_keystore.ts:46](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/key_stores/unencrypted_file_system_keystore.ts#L46)* +*Defined in [key_stores/unencrypted_file_system_keystore.ts:46](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/key_stores/unencrypted_file_system_keystore.ts#L46)* **Parameters:** diff --git a/docs/nearlib/modules/_near_.md b/docs/nearlib/modules/_near_.md index 93ec63e4ea..9a173b1afb 100644 --- a/docs/nearlib/modules/_near_.md +++ b/docs/nearlib/modules/_near_.md @@ -20,7 +20,7 @@ sidebar_label: "near" ▸ **connect**(`config`: any): *Promise‹[Near](../classes/_near_.near.md)›* -*Defined in [near.ts:72](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/near.ts#L72)* +*Defined in [near.ts:72](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/near.ts#L72)* **Parameters:** diff --git a/docs/nearlib/modules/_providers_json_rpc_provider_.md b/docs/nearlib/modules/_providers_json_rpc_provider_.md index b8103b2660..6ea8732e2d 100644 --- a/docs/nearlib/modules/_providers_json_rpc_provider_.md +++ b/docs/nearlib/modules/_providers_json_rpc_provider_.md @@ -21,4 +21,4 @@ sidebar_label: "providers/json-rpc-provider" • **_nextId**: *number* = 123 -*Defined in [providers/json-rpc-provider.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/json-rpc-provider.ts#L10)* +*Defined in [providers/json-rpc-provider.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/json-rpc-provider.ts#L10)* diff --git a/docs/nearlib/modules/_providers_provider_.md b/docs/nearlib/modules/_providers_provider_.md index edac95280b..e5a16eb537 100644 --- a/docs/nearlib/modules/_providers_provider_.md +++ b/docs/nearlib/modules/_providers_provider_.md @@ -48,7 +48,7 @@ sidebar_label: "providers/provider" ▸ **adaptTransactionResult**(`txResult`: [FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md) | [LegacyFinalTransactionResult](../interfaces/_providers_provider_.legacyfinaltransactionresult.md)): *[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)* -*Defined in [providers/provider.ts:168](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L168)* +*Defined in [providers/provider.ts:168](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L168)* **Parameters:** @@ -64,7 +64,7 @@ ___ ▸ **fixLegacyBasicExecutionOutcomeFailure**(`t`: [ExecutionOutcomeWithId](../interfaces/_providers_provider_.executionoutcomewithid.md)): *[ExecutionOutcomeWithId](../interfaces/_providers_provider_.executionoutcomewithid.md)* -*Defined in [providers/provider.ts:154](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L154)* +*Defined in [providers/provider.ts:154](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L154)* **Parameters:** @@ -80,7 +80,7 @@ ___ ▸ **getTransactionLastResult**(`txResult`: [FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)): *any* -*Defined in [providers/provider.ts:226](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L226)* +*Defined in [providers/provider.ts:226](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L226)* **Parameters:** @@ -96,7 +96,7 @@ ___ ▸ **mapLegacyTransactionLog**(`tl`: [LegacyTransactionLog](../interfaces/_providers_provider_.legacytransactionlog.md)): *[ExecutionOutcomeWithId](../interfaces/_providers_provider_.executionoutcomewithid.md)* -*Defined in [providers/provider.ts:131](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/providers/provider.ts#L131)* +*Defined in [providers/provider.ts:131](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/providers/provider.ts#L131)* **Parameters:** diff --git a/docs/nearlib/modules/_transaction_.md b/docs/nearlib/modules/_transaction_.md index 6ac3e83dc8..77d5506cf7 100644 --- a/docs/nearlib/modules/_transaction_.md +++ b/docs/nearlib/modules/_transaction_.md @@ -122,7 +122,7 @@ sidebar_label: "transaction" ]}], ]) -*Defined in [transaction.ts:119](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L119)* +*Defined in [transaction.ts:119](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L119)* ## Functions @@ -130,7 +130,7 @@ sidebar_label: "transaction" ▸ **addKey**(`publicKey`: [PublicKey](../classes/_utils_key_pair_.publickey.md), `accessKey`: [AccessKey](../classes/_transaction_.accesskey.md)): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:68](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L68)* +*Defined in [transaction.ts:68](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L68)* **Parameters:** @@ -147,7 +147,7 @@ ___ ▸ **createAccount**(): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:48](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L48)* +*Defined in [transaction.ts:48](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L48)* **Returns:** *[Action](../classes/_transaction_.action.md)* @@ -157,7 +157,7 @@ ___ ▸ **deleteAccount**(`beneficiaryId`: string): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:76](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L76)* +*Defined in [transaction.ts:76](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L76)* **Parameters:** @@ -173,7 +173,7 @@ ___ ▸ **deleteKey**(`publicKey`: [PublicKey](../classes/_utils_key_pair_.publickey.md)): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:72](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L72)* +*Defined in [transaction.ts:72](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L72)* **Parameters:** @@ -189,7 +189,7 @@ ___ ▸ **deployContract**(`code`: Uint8Array): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:52](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L52)* +*Defined in [transaction.ts:52](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L52)* **Parameters:** @@ -205,7 +205,7 @@ ___ ▸ **fullAccessKey**(): *[AccessKey](../classes/_transaction_.accesskey.md)* -*Defined in [transaction.ts:29](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L29)* +*Defined in [transaction.ts:29](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L29)* **Returns:** *[AccessKey](../classes/_transaction_.accesskey.md)* @@ -215,7 +215,7 @@ ___ ▸ **functionCall**(`methodName`: string, `args`: Uint8Array, `gas`: number, `deposit`: BN): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:56](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L56)* +*Defined in [transaction.ts:56](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L56)* **Parameters:** @@ -234,7 +234,7 @@ ___ ▸ **functionCallAccessKey**(`receiverId`: string, `methodNames`: String[], `allowance?`: BN): *[AccessKey](../classes/_transaction_.accesskey.md)* -*Defined in [transaction.ts:33](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L33)* +*Defined in [transaction.ts:33](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L33)* **Parameters:** @@ -252,7 +252,7 @@ ___ ▸ **signTransaction**(`receiverId`: string, `nonce`: number, `actions`: [Action](../classes/_transaction_.action.md)[], `blockHash`: Uint8Array, `signer`: [Signer](../classes/_signer_.signer.md), `accountId?`: string, `networkId?`: string): *Promise‹[Uint8Array, [SignedTransaction](../classes/_transaction_.signedtransaction.md)]›* -*Defined in [transaction.ts:193](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L193)* +*Defined in [transaction.ts:193](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L193)* **Parameters:** @@ -274,7 +274,7 @@ ___ ▸ **stake**(`stake`: BN, `publicKey`: [PublicKey](../classes/_utils_key_pair_.publickey.md)): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:64](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L64)* +*Defined in [transaction.ts:64](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L64)* **Parameters:** @@ -291,7 +291,7 @@ ___ ▸ **transfer**(`deposit`: BN): *[Action](../classes/_transaction_.action.md)* -*Defined in [transaction.ts:60](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/transaction.ts#L60)* +*Defined in [transaction.ts:60](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/transaction.ts#L60)* **Parameters:** diff --git a/docs/nearlib/modules/_utils_key_pair_.md b/docs/nearlib/modules/_utils_key_pair_.md index ed005c4952..404fbac7a3 100644 --- a/docs/nearlib/modules/_utils_key_pair_.md +++ b/docs/nearlib/modules/_utils_key_pair_.md @@ -35,7 +35,7 @@ sidebar_label: "utils/key_pair" Ƭ **Arrayish**: *string | ArrayLike‹number›* -*Defined in [utils/key_pair.ts:6](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L6)* +*Defined in [utils/key_pair.ts:6](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L6)* ## Functions @@ -43,7 +43,7 @@ sidebar_label: "utils/key_pair" ▸ **key_type_to_str**(`keyType`: [KeyType](../enums/_utils_key_pair_.keytype.md)): *String* -*Defined in [utils/key_pair.ts:18](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L18)* +*Defined in [utils/key_pair.ts:18](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L18)* **Parameters:** @@ -59,7 +59,7 @@ ___ ▸ **str_to_key_type**(`keyType`: string): *[KeyType](../enums/_utils_key_pair_.keytype.md)* -*Defined in [utils/key_pair.ts:25](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/key_pair.ts#L25)* +*Defined in [utils/key_pair.ts:25](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/key_pair.ts#L25)* **Parameters:** diff --git a/docs/nearlib/modules/_utils_serialize_.md b/docs/nearlib/modules/_utils_serialize_.md index 1deed67434..ab030d0c3a 100644 --- a/docs/nearlib/modules/_utils_serialize_.md +++ b/docs/nearlib/modules/_utils_serialize_.md @@ -36,7 +36,7 @@ sidebar_label: "utils/serialize" Ƭ **Schema**: *Map‹Function, any›* -*Defined in [utils/serialize.ts:19](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L19)* +*Defined in [utils/serialize.ts:19](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L19)* ## Variables @@ -44,7 +44,7 @@ sidebar_label: "utils/serialize" • **INITIAL_LENGTH**: *1024* = 1024 -*Defined in [utils/serialize.ts:17](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L17)* +*Defined in [utils/serialize.ts:17](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L17)* ## Functions @@ -52,7 +52,7 @@ sidebar_label: "utils/serialize" ▸ **base_decode**(`value`: string): *Uint8Array* -*Defined in [utils/serialize.ts:13](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L13)* +*Defined in [utils/serialize.ts:13](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L13)* **Parameters:** @@ -68,7 +68,7 @@ ___ ▸ **base_encode**(`value`: Uint8Array | string): *string* -*Defined in [utils/serialize.ts:6](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L6)* +*Defined in [utils/serialize.ts:6](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L6)* **Parameters:** @@ -84,7 +84,7 @@ ___ ▸ **deserialize**(`schema`: [Schema](_utils_serialize_.md#schema), `classType`: any, `buffer`: Buffer): *any* -*Defined in [utils/serialize.ts:228](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L228)* +*Defined in [utils/serialize.ts:228](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L228)* **Parameters:** @@ -102,7 +102,7 @@ ___ ▸ **deserializeField**(`schema`: [Schema](_utils_serialize_.md#schema), `fieldType`: any, `reader`: any): *any* -*Defined in [utils/serialize.ts:206](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L206)* +*Defined in [utils/serialize.ts:206](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L206)* **Parameters:** @@ -120,7 +120,7 @@ ___ ▸ **deserializeStruct**(`schema`: [Schema](_utils_serialize_.md#schema), `classType`: any, `reader`: any): *any* -*Defined in [utils/serialize.ts:220](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L220)* +*Defined in [utils/serialize.ts:220](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L220)* **Parameters:** @@ -138,7 +138,7 @@ ___ ▸ **serialize**(`schema`: [Schema](_utils_serialize_.md#schema), `obj`: any): *Uint8Array* -*Defined in [utils/serialize.ts:200](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L200)* +*Defined in [utils/serialize.ts:200](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L200)* **Parameters:** @@ -155,7 +155,7 @@ ___ ▸ **serializeField**(`schema`: [Schema](_utils_serialize_.md#schema), `value`: any, `fieldType`: any, `writer`: any): *void* -*Defined in [utils/serialize.ts:147](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L147)* +*Defined in [utils/serialize.ts:147](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L147)* **Parameters:** @@ -174,7 +174,7 @@ ___ ▸ **serializeStruct**(`schema`: [Schema](_utils_serialize_.md#schema), `obj`: any, `writer`: any): *void* -*Defined in [utils/serialize.ts:174](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/serialize.ts#L174)* +*Defined in [utils/serialize.ts:174](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/serialize.ts#L174)* **Parameters:** diff --git a/docs/nearlib/modules/_utils_web_.md b/docs/nearlib/modules/_utils_web_.md index 4a091c05dd..3d7e014617 100644 --- a/docs/nearlib/modules/_utils_web_.md +++ b/docs/nearlib/modules/_utils_web_.md @@ -24,7 +24,7 @@ sidebar_label: "utils/web" • **fetch**: *any* -*Defined in [utils/web.ts:15](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L15)* +*Defined in [utils/web.ts:15](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L15)* ## Functions @@ -32,7 +32,7 @@ sidebar_label: "utils/web" ▸ **fetchJson**(`connection`: string | [ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md), `json?`: string): *Promise‹any›* -*Defined in [utils/web.ts:39](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/utils/web.ts#L39)* +*Defined in [utils/web.ts:39](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/utils/web.ts#L39)* **Parameters:** diff --git a/docs/nearlib/modules/_wallet_account_.md b/docs/nearlib/modules/_wallet_account_.md index 3aa6af99e1..03768196a6 100644 --- a/docs/nearlib/modules/_wallet_account_.md +++ b/docs/nearlib/modules/_wallet_account_.md @@ -22,7 +22,7 @@ sidebar_label: "wallet-account" • **LOCAL_STORAGE_KEY_SUFFIX**: *"_wallet_auth_key"* = "_wallet_auth_key" -*Defined in [wallet-account.ts:10](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L10)* +*Defined in [wallet-account.ts:10](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L10)* ___ @@ -30,7 +30,7 @@ ___ • **LOGIN_WALLET_URL_SUFFIX**: *"/login/"* = "/login/" -*Defined in [wallet-account.ts:8](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L8)* +*Defined in [wallet-account.ts:8](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L8)* ___ @@ -38,4 +38,4 @@ ___ • **PENDING_ACCESS_KEY_PREFIX**: *"pending_key"* = "pending_key" -*Defined in [wallet-account.ts:11](https://github.com/nearprotocol/nearlib/blob/8f79950/src.ts/wallet-account.ts#L11)* +*Defined in [wallet-account.ts:11](https://github.com/nearprotocol/nearlib/blob/a0bd9b2/src.ts/wallet-account.ts#L11)* diff --git a/lib/providers/json-rpc-provider.js b/lib/providers/json-rpc-provider.js index a8419db690..80ae635b75 100644 --- a/lib/providers/json-rpc-provider.js +++ b/lib/providers/json-rpc-provider.js @@ -58,7 +58,7 @@ class JsonRpcProvider extends provider_1.Provider { } else { const errorMessage = `[${response.error.code}] ${response.error.message}: ${response.error.data}`; - if (errorMessage === '[-32000] Server error: ') { + if (errorMessage === '[-32000] Server error: send_tx_commit has timed out.') { throw new TypedError('send_tx_commit has timed out.', 'TimeoutError'); } else { diff --git a/src.ts/providers/json-rpc-provider.ts b/src.ts/providers/json-rpc-provider.ts index 0d54c7fbd7..e30d510d3a 100644 --- a/src.ts/providers/json-rpc-provider.ts +++ b/src.ts/providers/json-rpc-provider.ts @@ -72,7 +72,7 @@ export class JsonRpcProvider extends Provider { throw new TypedError(response.error.data.error_message, response.error.data.error_type); } else { const errorMessage = `[${response.error.code}] ${response.error.message}: ${response.error.data}`; - if (errorMessage === '[-32000] Server error: ') { + if (errorMessage === '[-32000] Server error: send_tx_commit has timed out.') { throw new TypedError('send_tx_commit has timed out.', 'TimeoutError'); } else { throw new TypedError(errorMessage);