diff --git a/dist/nearlib.js b/dist/nearlib.js index 4b835367bf..12b906057b 100644 --- a/dist/nearlib.js +++ b/dist/nearlib.js @@ -1261,7 +1261,7 @@ const BN = require('bn.js'); /** * Exponent for calculating how many indivisible units are there in one NEAR. See {@link NEAR_NOMINATION}. */ -exports.NEAR_NOMINATION_EXP = 18; +exports.NEAR_NOMINATION_EXP = 24; /** * Number of indivisible units in one NEAR. Derived from {@link NEAR_NOMINATION_EXP}. */ diff --git a/dist/nearlib.min.js b/dist/nearlib.min.js index dce9d49762..829a64e765 100644 --- a/dist/nearlib.min.js +++ b/dist/nearlib.min.js @@ -67,7 +67,7 @@ require("error-polyfill"),window.nearlib=require("./lib/index"),window.Buffer=Bu "use strict";Object.defineProperty(exports,"__esModule",{value:!0});class PositionalArgsError extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}}exports.PositionalArgsError=PositionalArgsError;class ArgumentTypeError extends Error{constructor(r,e,t){super(`Expected ${e} for '${r}' argument, but got '${JSON.stringify(t)}'`)}}exports.ArgumentTypeError=ArgumentTypeError; },{}],21:[function(require,module,exports){ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const BN=require("bn.js");exports.NEAR_NOMINATION_EXP=18,exports.NEAR_NOMINATION=new BN("10",10).pow(new BN(exports.NEAR_NOMINATION_EXP,10));const ROUNDING_OFFSETS=[],BN10=new BN(10);for(let N=0,t=new BN(5);N0&&r.iadd(ROUNDING_OFFSETS[N])}const e=(N=r.toString()).substring(0,N.length-exports.NEAR_NOMINATION_EXP)||"0",n=N.substring(N.length-exports.NEAR_NOMINATION_EXP).padStart(exports.NEAR_NOMINATION_EXP,"0").substring(0,t);return trimTrailingZeroes(`${formatWithCommas(e)}.${n}`)}function parseNearAmount(N){if(!N)return N;const t=(N=N.trim()).split(".");if(1===t.length)return`${N.padEnd(exports.NEAR_NOMINATION_EXP+1,"0")}`;if(t.length>2||t[1].length>exports.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${N}' as NEAR amount`);const r=new BN(t[0],10).mul(exports.NEAR_NOMINATION),e=new BN(t[1].padEnd(exports.NEAR_NOMINATION_EXP,"0"),10);return`${r.add(e).toString(10,0)}`}function trimTrailingZeroes(N){return N.replace(/\.?0*$/,"")}function formatWithCommas(N){const t=/(-?\d+)(\d{3})/;for(;t.test(N);)N=N.replace(t,"$1,$2");return N}exports.formatNearAmount=formatNearAmount,exports.parseNearAmount=parseNearAmount; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const BN=require("bn.js");exports.NEAR_NOMINATION_EXP=24,exports.NEAR_NOMINATION=new BN("10",10).pow(new BN(exports.NEAR_NOMINATION_EXP,10));const ROUNDING_OFFSETS=[],BN10=new BN(10);for(let N=0,t=new BN(5);N0&&r.iadd(ROUNDING_OFFSETS[N])}const e=(N=r.toString()).substring(0,N.length-exports.NEAR_NOMINATION_EXP)||"0",n=N.substring(N.length-exports.NEAR_NOMINATION_EXP).padStart(exports.NEAR_NOMINATION_EXP,"0").substring(0,t);return trimTrailingZeroes(`${formatWithCommas(e)}.${n}`)}function parseNearAmount(N){if(!N)return N;const t=(N=N.trim()).split(".");if(1===t.length)return`${N.padEnd(exports.NEAR_NOMINATION_EXP+1,"0")}`;if(t.length>2||t[1].length>exports.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${N}' as NEAR amount`);const r=new BN(t[0],10).mul(exports.NEAR_NOMINATION),e=new BN(t[1].padEnd(exports.NEAR_NOMINATION_EXP,"0"),10);return`${r.add(e).toString(10,0)}`}function trimTrailingZeroes(N){return N.replace(/\.?0*$/,"")}function formatWithCommas(N){const t=/(-?\d+)(\d{3})/;for(;t.test(N);)N=N.replace(t,"$1,$2");return N}exports.formatNearAmount=formatNearAmount,exports.parseNearAmount=parseNearAmount; },{"bn.js":30}],22:[function(require,module,exports){ "use strict";var __importStar=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(null!=r)for(var t in r)Object.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e};Object.defineProperty(exports,"__esModule",{value:!0});const key_pair=__importStar(require("./key_pair"));exports.key_pair=key_pair;const network=__importStar(require("./network"));exports.network=network;const serialize=__importStar(require("./serialize"));exports.serialize=serialize;const web=__importStar(require("./web"));exports.web=web;const enums=__importStar(require("./enums"));exports.enums=enums;const format=__importStar(require("./format"));exports.format=format;const key_pair_1=require("./key_pair");exports.PublicKey=key_pair_1.PublicKey,exports.KeyPair=key_pair_1.KeyPair,exports.KeyPairEd25519=key_pair_1.KeyPairEd25519; diff --git a/docs/nearlib/classes/_account_.account.md b/docs/nearlib/classes/_account_.account.md index 521fbe5bbe..8ac9f443c2 100644 --- a/docs/nearlib/classes/_account_.account.md +++ b/docs/nearlib/classes/_account_.account.md @@ -53,7 +53,7 @@ sidebar_label: "Account" \+ **new Account**(`connection`: [Connection](_connection_.connection.md), `accountId`: string): *[Account](_account_.account.md)* -*Defined in [src.ts/account.ts:47](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L47)* +*Defined in [src.ts/account.ts:47](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L47)* **Parameters:** @@ -70,7 +70,7 @@ Name | Type | • **_accessKey**: *[AccessKey](_transaction_.accesskey.md)* -*Defined in [src.ts/account.ts:42](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L42)* +*Defined in [src.ts/account.ts:42](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L42)* ___ @@ -78,7 +78,7 @@ ___ • **_ready**: *Promise‹void›* -*Defined in [src.ts/account.ts:44](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L44)* +*Defined in [src.ts/account.ts:44](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L44)* ___ @@ -86,7 +86,7 @@ ___ • **_state**: *[AccountState](../interfaces/_account_.accountstate.md)* -*Defined in [src.ts/account.ts:41](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L41)* +*Defined in [src.ts/account.ts:41](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L41)* ___ @@ -94,7 +94,7 @@ ___ • **accountId**: *string* -*Defined in [src.ts/account.ts:40](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L40)* +*Defined in [src.ts/account.ts:40](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L40)* ___ @@ -102,7 +102,7 @@ ___ • **connection**: *[Connection](_connection_.connection.md)* -*Defined in [src.ts/account.ts:39](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L39)* +*Defined in [src.ts/account.ts:39](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L39)* ## Accessors @@ -110,7 +110,7 @@ ___ • **get ready**(): *Promise‹void›* -*Defined in [src.ts/account.ts:45](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L45)* +*Defined in [src.ts/account.ts:45](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L45)* **Returns:** *Promise‹void›* @@ -120,7 +120,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 [src.ts/account.ts:161](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L161)* +*Defined in [src.ts/account.ts:161](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L161)* **Parameters:** @@ -139,7 +139,7 @@ ___ ▸ **createAccount**(`newAccountId`: string, `publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md), `amount`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:141](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L141)* +*Defined in [src.ts/account.ts:141](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L141)* **Parameters:** @@ -157,7 +157,7 @@ ___ ▸ **createAndDeployContract**(`contractId`: string, `publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md), `data`: Uint8Array, `amount`: BN): *Promise‹[Account](_account_.account.md)›* -*Defined in [src.ts/account.ts:130](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L130)* +*Defined in [src.ts/account.ts:130](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L130)* **Parameters:** @@ -176,7 +176,7 @@ ___ ▸ **deleteAccount**(`beneficiaryId`: string): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:146](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L146)* +*Defined in [src.ts/account.ts:146](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L146)* **Parameters:** @@ -192,7 +192,7 @@ ___ ▸ **deleteKey**(`publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md)): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:171](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L171)* +*Defined in [src.ts/account.ts:171](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L171)* **Parameters:** @@ -208,7 +208,7 @@ ___ ▸ **deployContract**(`data`: Uint8Array): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:150](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L150)* +*Defined in [src.ts/account.ts:150](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L150)* **Parameters:** @@ -224,7 +224,7 @@ ___ ▸ **fetchState**(): *Promise‹void›* -*Defined in [src.ts/account.ts:54](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L54)* +*Defined in [src.ts/account.ts:54](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L54)* **Returns:** *Promise‹void›* @@ -234,7 +234,7 @@ ___ ▸ **functionCall**(`contractId`: string, `methodName`: string, `args`: any, `gas`: number, `amount?`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:154](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L154)* +*Defined in [src.ts/account.ts:154](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L154)* **Parameters:** @@ -254,7 +254,7 @@ ___ ▸ **getAccessKeys**(): *Promise‹any›* -*Defined in [src.ts/account.ts:196](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L196)* +*Defined in [src.ts/account.ts:196](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L196)* **Returns:** *Promise‹any›* @@ -264,7 +264,7 @@ ___ ▸ **getAccountDetails**(): *Promise‹any›* -*Defined in [src.ts/account.ts:207](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L207)* +*Defined in [src.ts/account.ts:207](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L207)* **Returns:** *Promise‹any›* @@ -274,7 +274,7 @@ ___ ▸ **printLogs**(`contractId`: string, `logs`: string[]): *void* -*Defined in [src.ts/account.ts:72](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L72)* +*Defined in [src.ts/account.ts:72](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L72)* **Parameters:** @@ -291,7 +291,7 @@ ___ ▸ **retryTxResult**(`txHash`: Uint8Array, `accountId`: string): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:78](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L78)* +*Defined in [src.ts/account.ts:78](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L78)* **Parameters:** @@ -308,7 +308,7 @@ ___ ▸ **sendMoney**(`receiverId`: string, `amount`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:137](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L137)* +*Defined in [src.ts/account.ts:137](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L137)* **Parameters:** @@ -325,7 +325,7 @@ ___ ▸ **signAndSendTransaction**(`receiverId`: string, `actions`: [Action](_transaction_.action.md)[]): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:94](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L94)* +*Defined in [src.ts/account.ts:94](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L94)* **Parameters:** @@ -342,7 +342,7 @@ ___ ▸ **stake**(`publicKey`: string | [PublicKey](_utils_key_pair_.publickey.md), `amount`: BN): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/account.ts:175](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L175)* +*Defined in [src.ts/account.ts:175](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L175)* **Parameters:** @@ -359,7 +359,7 @@ ___ ▸ **state**(): *Promise‹[AccountState](../interfaces/_account_.accountstate.md)›* -*Defined in [src.ts/account.ts:67](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L67)* +*Defined in [src.ts/account.ts:67](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L67)* **Returns:** *Promise‹[AccountState](../interfaces/_account_.accountstate.md)›* @@ -369,7 +369,7 @@ ___ ▸ **validateArgs**(`args`: any): *void* -*Defined in [src.ts/account.ts:179](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L179)* +*Defined in [src.ts/account.ts:179](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L179)* **Parameters:** @@ -385,7 +385,7 @@ ___ ▸ **viewFunction**(`contractId`: string, `methodName`: string, `args`: any): *Promise‹any›* -*Defined in [src.ts/account.ts:185](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L185)* +*Defined in [src.ts/account.ts:185](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L185)* **Parameters:** diff --git a/docs/nearlib/classes/_account_creator_.accountcreator.md b/docs/nearlib/classes/_account_creator_.accountcreator.md index 8f486b1713..fbefc7ea37 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 [src.ts/account_creator.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L11)* +*Defined in [src.ts/account_creator.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/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 fa211d6c3a..5b9291a602 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 [src.ts/account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L16)* +*Defined in [src.ts/account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account_creator.ts#L16)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **initialBalance**: *BN* -*Defined in [src.ts/account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L16)* +*Defined in [src.ts/account_creator.ts:16](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account_creator.ts#L16)* ___ @@ -56,7 +56,7 @@ ___ • **masterAccount**: *[Account](_account_.account.md)* -*Defined in [src.ts/account_creator.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L15)* +*Defined in [src.ts/account_creator.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/account_creator.ts:24](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L24)* +*Defined in [src.ts/account_creator.ts:24](https://github.com/nearprotocol/nearlib/blob/d578981/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 446cf99f93..fd68839e7f 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 [src.ts/account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L32)* +*Defined in [src.ts/account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account_creator.ts#L32)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **connection**: *[Connection](_connection_.connection.md)* -*Defined in [src.ts/account_creator.ts:31](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L31)* +*Defined in [src.ts/account_creator.ts:31](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account_creator.ts#L31)* ___ @@ -56,7 +56,7 @@ ___ • **helperConnection**: *[ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md)* -*Defined in [src.ts/account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L32)* +*Defined in [src.ts/account_creator.ts:32](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/account_creator.ts:40](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account_creator.ts#L40)* +*Defined in [src.ts/account_creator.ts:40](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account_creator.ts#L40)* **Parameters:** diff --git a/docs/nearlib/classes/_connection_.connection.md b/docs/nearlib/classes/_connection_.connection.md index c96f3d9891..86bba902b9 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 [src.ts/connection.ts:29](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/connection.ts#L29)* +*Defined in [src.ts/connection.ts:29](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/connection.ts#L29)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **networkId**: *string* -*Defined in [src.ts/connection.ts:27](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/connection.ts#L27)* +*Defined in [src.ts/connection.ts:27](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/connection.ts#L27)* ___ @@ -56,7 +56,7 @@ ___ • **provider**: *[Provider](_providers_provider_.provider.md)* -*Defined in [src.ts/connection.ts:28](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/connection.ts#L28)* +*Defined in [src.ts/connection.ts:28](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/connection.ts#L28)* ___ @@ -64,7 +64,7 @@ ___ • **signer**: *[Signer](_signer_.signer.md)* -*Defined in [src.ts/connection.ts:29](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/connection.ts#L29)* +*Defined in [src.ts/connection.ts:29](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/connection.ts#L29)* ## Methods @@ -72,7 +72,7 @@ ___ ▸ **fromConfig**(`config`: any): *[Connection](_connection_.connection.md)* -*Defined in [src.ts/connection.ts:37](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/connection.ts#L37)* +*Defined in [src.ts/connection.ts:37](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/connection.ts#L37)* **Parameters:** diff --git a/docs/nearlib/classes/_contract_.contract.md b/docs/nearlib/classes/_contract_.contract.md index 11ef5cc527..decb588e43 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 [src.ts/contract.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/contract.ts#L10)* +*Defined in [src.ts/contract.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/contract.ts#L10)* **Parameters:** @@ -48,7 +48,7 @@ Name | Type | • **account**: *[Account](_account_.account.md)* -*Defined in [src.ts/contract.ts:9](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/contract.ts#L9)* +*Defined in [src.ts/contract.ts:9](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/contract.ts#L9)* ___ @@ -56,4 +56,4 @@ ___ • **contractId**: *string* -*Defined in [src.ts/contract.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/contract.ts#L10)* +*Defined in [src.ts/contract.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/contract.ts#L10)* 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 9ef5c99d09..a833f4d5a2 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 [src.ts/key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L10)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/browser_local_storage_key_store.ts#L10)* **Parameters:** @@ -55,7 +55,7 @@ Name | Type | Default | • **localStorage**: *any* -*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:9](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L9)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:9](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/browser_local_storage_key_store.ts#L9)* ___ @@ -63,7 +63,7 @@ ___ • **prefix**: *string* -*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L10)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/browser_local_storage_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L34)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/browser_local_storage_key_store.ts:53](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L53)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:53](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/browser_local_storage_key_store.ts:22](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L22)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:22](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/browser_local_storage_key_store.ts:42](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L42)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:42](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/browser_local_storage_key_store.ts:30](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L30)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:30](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/browser_local_storage_key_store.ts:18](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L18)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:18](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/browser_local_storage_key_store.ts#L18)* **Parameters:** @@ -171,7 +171,7 @@ ___ ▸ **storageKeyForSecretKey**(`networkId`: string, `accountId`: string): *string* -*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:66](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L66)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:66](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/browser_local_storage_key_store.ts#L66)* **Parameters:** @@ -188,6 +188,6 @@ ___ ▸ **storageKeys**(): *IterableIterator‹string›* -*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:70](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L70)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:70](https://github.com/nearprotocol/nearlib/blob/d578981/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 a3df5130e9..70a7427dcf 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 [src.ts/key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L10)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L10)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/in_memory_key_store.ts:33](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L33)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:33](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/in_memory_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L46)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/in_memory_key_store.ts:21](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L21)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:21](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/in_memory_key_store.ts:37](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L37)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:37](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/in_memory_key_store.ts:29](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L29)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:29](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/in_memory_key_store.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/in_memory_key_store.ts#L17)* +*Defined in [src.ts/key_stores/in_memory_key_store.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/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 81ddffe735..0741274a2b 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 [src.ts/key_stores/keystore.ts:12](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/keystore.ts#L12)* +*Defined in [src.ts/key_stores/keystore.ts:12](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/keystore.ts#L12)* **Returns:** *Promise‹void›* @@ -45,7 +45,7 @@ ___ ▸ **getAccounts**(`networkId`: string): *Promise‹string[]›* -*Defined in [src.ts/key_stores/keystore.ts:14](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/keystore.ts#L14)* +*Defined in [src.ts/key_stores/keystore.ts:14](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/keystore.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/keystore.ts#L10)* +*Defined in [src.ts/key_stores/keystore.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/keystore.ts#L10)* **Parameters:** @@ -78,7 +78,7 @@ ___ ▸ **getNetworks**(): *Promise‹string[]›* -*Defined in [src.ts/key_stores/keystore.ts:13](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/keystore.ts#L13)* +*Defined in [src.ts/key_stores/keystore.ts:13](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/keystore.ts#L13)* **Returns:** *Promise‹string[]›* @@ -88,7 +88,7 @@ ___ ▸ **removeKey**(`networkId`: string, `accountId`: string): *Promise‹void›* -*Defined in [src.ts/key_stores/keystore.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/keystore.ts#L11)* +*Defined in [src.ts/key_stores/keystore.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/keystore.ts#L9)* +*Defined in [src.ts/key_stores/keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/d578981/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 c61ec799f3..55325aa925 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 [src.ts/key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L10)* +*Defined in [src.ts/key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L10)* +*Defined in [src.ts/key_stores/merge_key_store.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/merge_key_store.ts:40](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L40)* +*Defined in [src.ts/key_stores/merge_key_store.ts:40](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/merge_key_store.ts:56](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L56)* +*Defined in [src.ts/key_stores/merge_key_store.ts:56](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/merge_key_store.ts:24](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L24)* +*Defined in [src.ts/key_stores/merge_key_store.ts:24](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/merge_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L46)* +*Defined in [src.ts/key_stores/merge_key_store.ts:46](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/merge_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L34)* +*Defined in [src.ts/key_stores/merge_key_store.ts:34](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/merge_key_store.ts:20](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/merge_key_store.ts#L20)* +*Defined in [src.ts/key_stores/merge_key_store.ts:20](https://github.com/nearprotocol/nearlib/blob/d578981/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 f009092f69..7edfb3d77c 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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L57)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L57)* **Parameters:** @@ -52,7 +52,7 @@ Name | Type | • **keyDir**: *string* -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L57)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:57](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:85](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L85)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:85](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:106](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L106)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:106](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:70](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L70)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:70](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L70)* **Parameters:** @@ -109,7 +109,7 @@ ___ ▸ **getKeyFilePath**(`networkId`: string, `accountId`: string): *string* -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:93](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L93)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:93](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:97](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L97)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:97](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:79](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L79)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:79](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:64](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L64)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:64](https://github.com/nearprotocol/nearlib/blob/d578981/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 c629f3e4a1..2c7b811d48 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 [src.ts/near.ts:14](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L14)* +*Defined in [src.ts/near.ts:14](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/near.ts#L14)* **Parameters:** @@ -49,7 +49,7 @@ Name | Type | • **accountCreator**: *[AccountCreator](_account_creator_.accountcreator.md)* -*Defined in [src.ts/near.ts:14](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L14)* +*Defined in [src.ts/near.ts:14](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/near.ts#L14)* ___ @@ -57,7 +57,7 @@ ___ • **config**: *any* -*Defined in [src.ts/near.ts:12](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L12)* +*Defined in [src.ts/near.ts:12](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/near.ts#L12)* ___ @@ -65,7 +65,7 @@ ___ • **connection**: *[Connection](_connection_.connection.md)* -*Defined in [src.ts/near.ts:13](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L13)* +*Defined in [src.ts/near.ts:13](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/near.ts#L13)* ## Methods @@ -73,7 +73,7 @@ ___ ▸ **account**(`accountId`: string): *Promise‹[Account](_account_.account.md)›* -*Defined in [src.ts/near.ts:33](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L33)* +*Defined in [src.ts/near.ts:33](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/near.ts:39](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L39)* +*Defined in [src.ts/near.ts:39](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/near.ts#L39)* **Parameters:** @@ -106,7 +106,7 @@ ___ ▸ **loadContract**(`contractId`: string, `options`: object): *Promise‹[Contract](_contract_.contract.md)›* -*Defined in [src.ts/near.ts:52](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L52)* +*Defined in [src.ts/near.ts:52](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/near.ts:64](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L64)* +*Defined in [src.ts/near.ts:64](https://github.com/nearprotocol/nearlib/blob/d578981/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 ef77c05315..66c0a31bf0 100644 --- a/docs/nearlib/classes/_providers_json_rpc_provider_.jsonrpcprovider.md +++ b/docs/nearlib/classes/_providers_json_rpc_provider_.jsonrpcprovider.md @@ -37,7 +37,7 @@ sidebar_label: "JsonRpcProvider" \+ **new JsonRpcProvider**(`url?`: string, `network?`: [Network](../interfaces/_utils_network_.network.md)): *[JsonRpcProvider](_providers_json_rpc_provider_.jsonrpcprovider.md)* -*Defined in [src.ts/providers/json-rpc-provider.ts:24](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L24)* +*Defined in [src.ts/providers/json-rpc-provider.ts:24](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L24)* **Parameters:** @@ -54,7 +54,7 @@ Name | Type | • **connection**: *[ConnectionInfo](../interfaces/_utils_web_.connectioninfo.md)* -*Defined in [src.ts/providers/json-rpc-provider.ts:24](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L24)* +*Defined in [src.ts/providers/json-rpc-provider.ts:24](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L24)* ## Methods @@ -64,7 +64,7 @@ Name | Type | *Overrides [Provider](_providers_provider_.provider.md).[block](_providers_provider_.provider.md#abstract-block)* -*Defined in [src.ts/providers/json-rpc-provider.ts:61](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L61)* +*Defined in [src.ts/providers/json-rpc-provider.ts:61](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L61)* **Parameters:** @@ -82,7 +82,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[chunk](_providers_provider_.provider.md#abstract-chunk)* -*Defined in [src.ts/providers/json-rpc-provider.ts:65](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L65)* +*Defined in [src.ts/providers/json-rpc-provider.ts:65](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L65)* **Parameters:** @@ -100,7 +100,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[getNetwork](_providers_provider_.provider.md#abstract-getnetwork)* -*Defined in [src.ts/providers/json-rpc-provider.ts:33](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L33)* +*Defined in [src.ts/providers/json-rpc-provider.ts:33](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L33)* **Returns:** *Promise‹[Network](../interfaces/_utils_network_.network.md)›* @@ -112,7 +112,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[query](_providers_provider_.provider.md#abstract-query)* -*Defined in [src.ts/providers/json-rpc-provider.ts:53](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L53)* +*Defined in [src.ts/providers/json-rpc-provider.ts:53](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L53)* **Parameters:** @@ -129,7 +129,7 @@ ___ ▸ **sendJsonRpc**(`method`: string, `params`: any[]): *Promise‹any›* -*Defined in [src.ts/providers/json-rpc-provider.ts:69](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L69)* +*Defined in [src.ts/providers/json-rpc-provider.ts:69](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L69)* **Parameters:** @@ -148,7 +148,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[sendTransaction](_providers_provider_.provider.md#abstract-sendtransaction)* -*Defined in [src.ts/providers/json-rpc-provider.ts:44](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L44)* +*Defined in [src.ts/providers/json-rpc-provider.ts:44](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L44)* **Parameters:** @@ -166,7 +166,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[status](_providers_provider_.provider.md#abstract-status)* -*Defined in [src.ts/providers/json-rpc-provider.ts:40](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L40)* +*Defined in [src.ts/providers/json-rpc-provider.ts:40](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L40)* **Returns:** *Promise‹[NodeStatusResult](../interfaces/_providers_provider_.nodestatusresult.md)›* @@ -178,7 +178,7 @@ ___ *Overrides [Provider](_providers_provider_.provider.md).[txStatus](_providers_provider_.provider.md#abstract-txstatus)* -*Defined in [src.ts/providers/json-rpc-provider.ts:49](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L49)* +*Defined in [src.ts/providers/json-rpc-provider.ts:49](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L49)* **Parameters:** diff --git a/docs/nearlib/classes/_providers_json_rpc_provider_.typederror.md b/docs/nearlib/classes/_providers_json_rpc_provider_.typederror.md index 88829de07e..9671a30317 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 [src.ts/providers/json-rpc-provider.ts:16](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L16)* +*Defined in [src.ts/providers/json-rpc-provider.ts:16](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L16)* **Parameters:** @@ -79,7 +79,7 @@ ___ • **type**: *string* -*Defined in [src.ts/providers/json-rpc-provider.ts:16](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L16)* +*Defined in [src.ts/providers/json-rpc-provider.ts:16](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L16)* ___ diff --git a/docs/nearlib/classes/_providers_provider_.provider.md b/docs/nearlib/classes/_providers_provider_.provider.md index 6496a9c691..761477bd6b 100644 --- a/docs/nearlib/classes/_providers_provider_.provider.md +++ b/docs/nearlib/classes/_providers_provider_.provider.md @@ -28,7 +28,7 @@ sidebar_label: "Provider" ▸ **block**(`blockId`: [BlockId](../modules/_providers_provider_.md#blockid)): *Promise‹[BlockResult](../interfaces/_providers_provider_.blockresult.md)›* -*Defined in [src.ts/providers/provider.ts:265](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L265)* +*Defined in [src.ts/providers/provider.ts:265](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L265)* **Parameters:** @@ -44,7 +44,7 @@ ___ ▸ **chunk**(`chunkId`: [ChunkId](../modules/_providers_provider_.md#chunkid)): *Promise‹[ChunkResult](../interfaces/_providers_provider_.chunkresult.md)›* -*Defined in [src.ts/providers/provider.ts:266](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L266)* +*Defined in [src.ts/providers/provider.ts:266](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L266)* **Parameters:** @@ -60,7 +60,7 @@ ___ ▸ **getNetwork**(): *Promise‹[Network](../interfaces/_utils_network_.network.md)›* -*Defined in [src.ts/providers/provider.ts:259](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L259)* +*Defined in [src.ts/providers/provider.ts:259](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L259)* **Returns:** *Promise‹[Network](../interfaces/_utils_network_.network.md)›* @@ -70,7 +70,7 @@ ___ ▸ **query**(`path`: string, `data`: string): *Promise‹any›* -*Defined in [src.ts/providers/provider.ts:264](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L264)* +*Defined in [src.ts/providers/provider.ts:264](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L264)* **Parameters:** @@ -87,7 +87,7 @@ ___ ▸ **sendTransaction**(`signedTransaction`: [SignedTransaction](_transaction_.signedtransaction.md)): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/providers/provider.ts:262](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L262)* +*Defined in [src.ts/providers/provider.ts:262](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L262)* **Parameters:** @@ -103,7 +103,7 @@ ___ ▸ **status**(): *Promise‹[NodeStatusResult](../interfaces/_providers_provider_.nodestatusresult.md)›* -*Defined in [src.ts/providers/provider.ts:260](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L260)* +*Defined in [src.ts/providers/provider.ts:260](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L260)* **Returns:** *Promise‹[NodeStatusResult](../interfaces/_providers_provider_.nodestatusresult.md)›* @@ -113,7 +113,7 @@ ___ ▸ **txStatus**(`txHash`: Uint8Array, `accountId`: string): *Promise‹[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)›* -*Defined in [src.ts/providers/provider.ts:263](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L263)* +*Defined in [src.ts/providers/provider.ts:263](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L263)* **Parameters:** diff --git a/docs/nearlib/classes/_signer_.inmemorysigner.md b/docs/nearlib/classes/_signer_.inmemorysigner.md index e4fa4a001a..a27945739d 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 [src.ts/signer.ts:47](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L47)* +*Defined in [src.ts/signer.ts:47](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/signer.ts#L47)* **Parameters:** @@ -51,7 +51,7 @@ Name | Type | • **keyStore**: *[KeyStore](_key_stores_keystore_.keystore.md)* -*Defined in [src.ts/signer.ts:47](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L47)* +*Defined in [src.ts/signer.ts:47](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/signer.ts:54](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L54)* +*Defined in [src.ts/signer.ts:54](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/signer.ts#L54)* **Parameters:** @@ -80,7 +80,7 @@ ___ *Overrides [Signer](_signer_.signer.md).[getPublicKey](_signer_.signer.md#abstract-getpublickey)* -*Defined in [src.ts/signer.ts:60](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L60)* +*Defined in [src.ts/signer.ts:60](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/signer.ts#L60)* **Parameters:** @@ -99,7 +99,7 @@ ___ *Overrides [Signer](_signer_.signer.md).[signHash](_signer_.signer.md#abstract-signhash)* -*Defined in [src.ts/signer.ts:68](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L68)* +*Defined in [src.ts/signer.ts:68](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/signer.ts#L68)* **Parameters:** @@ -119,7 +119,7 @@ ___ *Inherited from [Signer](_signer_.signer.md).[signMessage](_signer_.signer.md#signmessage)* -*Defined in [src.ts/signer.ts:38](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L38)* +*Defined in [src.ts/signer.ts:38](https://github.com/nearprotocol/nearlib/blob/d578981/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 6aac3e2e17..24d1082bb4 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 [src.ts/signer.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L15)* +*Defined in [src.ts/signer.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/signer.ts:22](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L22)* +*Defined in [src.ts/signer.ts:22](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/signer.ts:30](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L30)* +*Defined in [src.ts/signer.ts:30](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/signer.ts:38](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/signer.ts#L38)* +*Defined in [src.ts/signer.ts:38](https://github.com/nearprotocol/nearlib/blob/d578981/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 5534e23a35..c12b5c032b 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -45,7 +45,7 @@ Name | Type | • **nonce**: *number* -*Defined in [src.ts/transaction.ts:25](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L25)* +*Defined in [src.ts/transaction.ts:25](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L25)* ___ @@ -53,4 +53,4 @@ ___ • **permission**: *[AccessKeyPermission](_transaction_.accesskeypermission.md)* -*Defined in [src.ts/transaction.ts:26](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L26)* +*Defined in [src.ts/transaction.ts:26](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L26)* diff --git a/docs/nearlib/classes/_transaction_.accesskeypermission.md b/docs/nearlib/classes/_transaction_.accesskeypermission.md index fdba282c5b..2dde4773ca 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 [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L4)* +*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L4)* +*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L4)* ___ @@ -56,7 +56,7 @@ ___ • **fullAccess**: *[FullAccessPermission](_transaction_.fullaccesspermission.md)* -*Defined in [src.ts/transaction.ts:21](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L21)* +*Defined in [src.ts/transaction.ts:21](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L21)* ___ @@ -64,4 +64,4 @@ ___ • **functionCall**: *[FunctionCallPermission](_transaction_.functioncallpermission.md)* -*Defined in [src.ts/transaction.ts:20](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L20)* +*Defined in [src.ts/transaction.ts:20](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L20)* diff --git a/docs/nearlib/classes/_transaction_.action.md b/docs/nearlib/classes/_transaction_.action.md index 09ada9a03f..ed1e6a5c8d 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 [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L4)* +*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L4)* **Parameters:** @@ -52,7 +52,7 @@ Name | Type | • **addKey**: *[AddKey](_transaction_.addkey.md)* -*Defined in [src.ts/transaction.ts:121](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L121)* +*Defined in [src.ts/transaction.ts:121](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L121)* ___ @@ -60,7 +60,7 @@ ___ • **createAccount**: *[CreateAccount](_transaction_.createaccount.md)* -*Defined in [src.ts/transaction.ts:116](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L116)* +*Defined in [src.ts/transaction.ts:116](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L116)* ___ @@ -68,7 +68,7 @@ ___ • **deleteAccount**: *[DeleteAccount](_transaction_.deleteaccount.md)* -*Defined in [src.ts/transaction.ts:123](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L123)* +*Defined in [src.ts/transaction.ts:123](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L123)* ___ @@ -76,7 +76,7 @@ ___ • **deleteKey**: *[DeleteKey](_transaction_.deletekey.md)* -*Defined in [src.ts/transaction.ts:122](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L122)* +*Defined in [src.ts/transaction.ts:122](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L122)* ___ @@ -84,7 +84,7 @@ ___ • **deployContract**: *[DeployContract](_transaction_.deploycontract.md)* -*Defined in [src.ts/transaction.ts:117](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L117)* +*Defined in [src.ts/transaction.ts:117](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L117)* ___ @@ -94,7 +94,7 @@ ___ *Inherited from [Enum](_utils_enums_.enum.md).[enum](_utils_enums_.enum.md#enum)* -*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L4)* +*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L4)* ___ @@ -102,7 +102,7 @@ ___ • **functionCall**: *[FunctionCall](_transaction_.functioncall.md)* -*Defined in [src.ts/transaction.ts:118](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L118)* +*Defined in [src.ts/transaction.ts:118](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L118)* ___ @@ -110,7 +110,7 @@ ___ • **stake**: *[Stake](_transaction_.stake.md)* -*Defined in [src.ts/transaction.ts:120](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L120)* +*Defined in [src.ts/transaction.ts:120](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L120)* ___ @@ -118,4 +118,4 @@ ___ • **transfer**: *[Transfer](_transaction_.transfer.md)* -*Defined in [src.ts/transaction.ts:119](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L119)* +*Defined in [src.ts/transaction.ts:119](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L119)* diff --git a/docs/nearlib/classes/_transaction_.addkey.md b/docs/nearlib/classes/_transaction_.addkey.md index ee93efaa02..df4fd875fd 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -45,7 +45,7 @@ Name | Type | • **accessKey**: *[AccessKey](_transaction_.accesskey.md)* -*Defined in [src.ts/transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L44)* +*Defined in [src.ts/transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L44)* ___ @@ -53,4 +53,4 @@ ___ • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [src.ts/transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L44)* +*Defined in [src.ts/transaction.ts:44](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L44)* diff --git a/docs/nearlib/classes/_transaction_.createaccount.md b/docs/nearlib/classes/_transaction_.createaccount.md index 98b3fec22b..3c1e978b59 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.deleteaccount.md b/docs/nearlib/classes/_transaction_.deleteaccount.md index 0fd0f6f6e5..ce55c80860 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **beneficiaryId**: *string* -*Defined in [src.ts/transaction.ts:46](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L46)* +*Defined in [src.ts/transaction.ts:46](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L46)* diff --git a/docs/nearlib/classes/_transaction_.deletekey.md b/docs/nearlib/classes/_transaction_.deletekey.md index e7861524f6..a03df7b4a1 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [src.ts/transaction.ts:45](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L45)* +*Defined in [src.ts/transaction.ts:45](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L45)* diff --git a/docs/nearlib/classes/_transaction_.deploycontract.md b/docs/nearlib/classes/_transaction_.deploycontract.md index 11bd11dec3..9dca4c1706 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **code**: *Uint8Array* -*Defined in [src.ts/transaction.ts:40](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L40)* +*Defined in [src.ts/transaction.ts:40](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L40)* diff --git a/docs/nearlib/classes/_transaction_.fullaccesspermission.md b/docs/nearlib/classes/_transaction_.fullaccesspermission.md index 5ead30cac8..305c73b665 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.functioncall.md b/docs/nearlib/classes/_transaction_.functioncall.md index 449c1e3497..d75aef4e59 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -47,7 +47,7 @@ Name | Type | • **args**: *Uint8Array* -*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L41)* +*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L41)* ___ @@ -55,7 +55,7 @@ ___ • **deposit**: *BN* -*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L41)* +*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L41)* ___ @@ -63,7 +63,7 @@ ___ • **gas**: *BN* -*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L41)* +*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L41)* ___ @@ -71,4 +71,4 @@ ___ • **methodName**: *string* -*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L41)* +*Defined in [src.ts/transaction.ts:41](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L41)* diff --git a/docs/nearlib/classes/_transaction_.functioncallpermission.md b/docs/nearlib/classes/_transaction_.functioncallpermission.md index c191c0c85b..d49d08bf8b 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -46,7 +46,7 @@ Name | Type | • **allowance**? : *BN* -*Defined in [src.ts/transaction.ts:12](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L12)* +*Defined in [src.ts/transaction.ts:12](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L12)* ___ @@ -54,7 +54,7 @@ ___ • **methodNames**: *String[]* -*Defined in [src.ts/transaction.ts:14](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L14)* +*Defined in [src.ts/transaction.ts:14](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L14)* ___ @@ -62,4 +62,4 @@ ___ • **receiverId**: *string* -*Defined in [src.ts/transaction.ts:13](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L13)* +*Defined in [src.ts/transaction.ts:13](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L13)* diff --git a/docs/nearlib/classes/_transaction_.iaction.md b/docs/nearlib/classes/_transaction_.iaction.md index 2b7e4bb2e0..f656e3a4e3 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.signature.md b/docs/nearlib/classes/_transaction_.signature.md index a9d613693d..2b32b46715 100644 --- a/docs/nearlib/classes/_transaction_.signature.md +++ b/docs/nearlib/classes/_transaction_.signature.md @@ -29,7 +29,7 @@ sidebar_label: "Signature" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -45,7 +45,7 @@ Name | Type | • **data**: *Uint8Array* -*Defined in [src.ts/transaction.ts:82](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L82)* +*Defined in [src.ts/transaction.ts:82](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L82)* ___ @@ -53,4 +53,4 @@ ___ • **keyType**: *[KeyType](../enums/_utils_key_pair_.keytype.md)* -*Defined in [src.ts/transaction.ts:81](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L81)* +*Defined in [src.ts/transaction.ts:81](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L81)* diff --git a/docs/nearlib/classes/_transaction_.signedtransaction.md b/docs/nearlib/classes/_transaction_.signedtransaction.md index 3bc108f0dd..758b786270 100644 --- a/docs/nearlib/classes/_transaction_.signedtransaction.md +++ b/docs/nearlib/classes/_transaction_.signedtransaction.md @@ -34,7 +34,7 @@ sidebar_label: "SignedTransaction" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -50,7 +50,7 @@ Name | Type | • **signature**: *[Signature](_transaction_.signature.md)* -*Defined in [src.ts/transaction.ts:104](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L104)* +*Defined in [src.ts/transaction.ts:104](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L104)* ___ @@ -58,7 +58,7 @@ ___ • **transaction**: *[Transaction](_transaction_.transaction.md)* -*Defined in [src.ts/transaction.ts:103](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L103)* +*Defined in [src.ts/transaction.ts:103](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L103)* ## Methods @@ -66,7 +66,7 @@ ___ ▸ **encode**(): *Uint8Array* -*Defined in [src.ts/transaction.ts:106](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L106)* +*Defined in [src.ts/transaction.ts:106](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L106)* **Returns:** *Uint8Array* @@ -76,7 +76,7 @@ ___ ▸ **decode**(`bytes`: Buffer): *[SignedTransaction](_transaction_.signedtransaction.md)* -*Defined in [src.ts/transaction.ts:110](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L110)* +*Defined in [src.ts/transaction.ts:110](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L110)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.stake.md b/docs/nearlib/classes/_transaction_.stake.md index 3a6972ed2e..23aefeb638 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -45,7 +45,7 @@ Name | Type | • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [src.ts/transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L43)* +*Defined in [src.ts/transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L43)* ___ @@ -53,4 +53,4 @@ ___ • **stake**: *BN* -*Defined in [src.ts/transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L43)* +*Defined in [src.ts/transaction.ts:43](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L43)* diff --git a/docs/nearlib/classes/_transaction_.transaction.md b/docs/nearlib/classes/_transaction_.transaction.md index 6a88d9fc79..befa19909d 100644 --- a/docs/nearlib/classes/_transaction_.transaction.md +++ b/docs/nearlib/classes/_transaction_.transaction.md @@ -38,7 +38,7 @@ sidebar_label: "Transaction" *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -54,7 +54,7 @@ Name | Type | • **actions**: *[Action](_transaction_.action.md)[]* -*Defined in [src.ts/transaction.ts:90](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L90)* +*Defined in [src.ts/transaction.ts:90](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L90)* ___ @@ -62,7 +62,7 @@ ___ • **blockHash**: *Uint8Array* -*Defined in [src.ts/transaction.ts:91](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L91)* +*Defined in [src.ts/transaction.ts:91](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L91)* ___ @@ -70,7 +70,7 @@ ___ • **nonce**: *number* -*Defined in [src.ts/transaction.ts:88](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L88)* +*Defined in [src.ts/transaction.ts:88](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L88)* ___ @@ -78,7 +78,7 @@ ___ • **publicKey**: *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [src.ts/transaction.ts:87](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L87)* +*Defined in [src.ts/transaction.ts:87](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L87)* ___ @@ -86,7 +86,7 @@ ___ • **receiverId**: *string* -*Defined in [src.ts/transaction.ts:89](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L89)* +*Defined in [src.ts/transaction.ts:89](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L89)* ___ @@ -94,7 +94,7 @@ ___ • **signerId**: *string* -*Defined in [src.ts/transaction.ts:86](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L86)* +*Defined in [src.ts/transaction.ts:86](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L86)* ## Methods @@ -102,7 +102,7 @@ ___ ▸ **encode**(): *Uint8Array* -*Defined in [src.ts/transaction.ts:93](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L93)* +*Defined in [src.ts/transaction.ts:93](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L93)* **Returns:** *Uint8Array* @@ -112,7 +112,7 @@ ___ ▸ **decode**(`bytes`: Buffer): *[Transaction](_transaction_.transaction.md)* -*Defined in [src.ts/transaction.ts:97](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L97)* +*Defined in [src.ts/transaction.ts:97](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L97)* **Parameters:** diff --git a/docs/nearlib/classes/_transaction_.transfer.md b/docs/nearlib/classes/_transaction_.transfer.md index a5db92032c..18a170db88 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 [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **deposit**: *BN* -*Defined in [src.ts/transaction.ts:42](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L42)* +*Defined in [src.ts/transaction.ts:42](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L42)* diff --git a/docs/nearlib/classes/_utils_enums_.assignable.md b/docs/nearlib/classes/_utils_enums_.assignable.md index 0fa1828ad1..72e5c4939a 100644 --- a/docs/nearlib/classes/_utils_enums_.assignable.md +++ b/docs/nearlib/classes/_utils_enums_.assignable.md @@ -36,7 +36,7 @@ sidebar_label: "Assignable" \+ **new Assignable**(`properties`: any): *[Assignable](_utils_enums_.assignable.md)* -*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/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 f45bd08e16..8c4f61c6d7 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 [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L4)* +*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L4)* **Parameters:** @@ -44,4 +44,4 @@ Name | Type | • **enum**: *string* -*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L4)* +*Defined in [src.ts/utils/enums.ts:4](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L4)* diff --git a/docs/nearlib/classes/_utils_errors_.argumenttypeerror.md b/docs/nearlib/classes/_utils_errors_.argumenttypeerror.md index 87abacea75..afa9965bf2 100644 --- a/docs/nearlib/classes/_utils_errors_.argumenttypeerror.md +++ b/docs/nearlib/classes/_utils_errors_.argumenttypeerror.md @@ -29,7 +29,7 @@ sidebar_label: "ArgumentTypeError" \+ **new ArgumentTypeError**(`argName`: string, `argType`: string, `argValue`: any): *[ArgumentTypeError](_utils_errors_.argumenttypeerror.md)* -*Defined in [src.ts/utils/errors.ts:7](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/errors.ts#L7)* +*Defined in [src.ts/utils/errors.ts:7](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/errors.ts#L7)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_errors_.positionalargserror.md b/docs/nearlib/classes/_utils_errors_.positionalargserror.md index 9098a14026..3e000aeda4 100644 --- a/docs/nearlib/classes/_utils_errors_.positionalargserror.md +++ b/docs/nearlib/classes/_utils_errors_.positionalargserror.md @@ -29,7 +29,7 @@ sidebar_label: "PositionalArgsError" \+ **new PositionalArgsError**(): *[PositionalArgsError](_utils_errors_.positionalargserror.md)* -*Defined in [src.ts/utils/errors.ts:1](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/errors.ts#L1)* +*Defined in [src.ts/utils/errors.ts:1](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/errors.ts#L1)* **Returns:** *[PositionalArgsError](_utils_errors_.positionalargserror.md)* diff --git a/docs/nearlib/classes/_utils_key_pair_.keypair.md b/docs/nearlib/classes/_utils_key_pair_.keypair.md index b42622a3a2..37fe97f657 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 [src.ts/utils/key_pair.ts:67](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L67)* +*Defined in [src.ts/utils/key_pair.ts:67](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L67)* **Returns:** *[PublicKey](_utils_key_pair_.publickey.md)* @@ -37,7 +37,7 @@ ___ ▸ **sign**(`message`: Uint8Array): *[Signature](../interfaces/_utils_key_pair_.signature.md)* -*Defined in [src.ts/utils/key_pair.ts:64](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L64)* +*Defined in [src.ts/utils/key_pair.ts:64](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L64)* **Parameters:** @@ -53,7 +53,7 @@ ___ ▸ **toString**(): *string* -*Defined in [src.ts/utils/key_pair.ts:66](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L66)* +*Defined in [src.ts/utils/key_pair.ts:66](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L66)* **Returns:** *string* @@ -63,7 +63,7 @@ ___ ▸ **verify**(`message`: Uint8Array, `signature`: Uint8Array): *boolean* -*Defined in [src.ts/utils/key_pair.ts:65](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L65)* +*Defined in [src.ts/utils/key_pair.ts:65](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L65)* **Parameters:** @@ -80,7 +80,7 @@ ___ ▸ **fromRandom**(`curve`: string): *[KeyPair](_utils_key_pair_.keypair.md)* -*Defined in [src.ts/utils/key_pair.ts:69](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L69)* +*Defined in [src.ts/utils/key_pair.ts:69](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L69)* **Parameters:** @@ -96,7 +96,7 @@ ___ ▸ **fromString**(`encodedKey`: string): *[KeyPair](_utils_key_pair_.keypair.md)* -*Defined in [src.ts/utils/key_pair.ts:76](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L76)* +*Defined in [src.ts/utils/key_pair.ts:76](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L76)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_key_pair_.keypaired25519.md b/docs/nearlib/classes/_utils_key_pair_.keypaired25519.md index ef5f563cdb..82767afa64 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 [src.ts/utils/key_pair.ts:97](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L97)* +*Defined in [src.ts/utils/key_pair.ts:97](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L97)* 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 [src.ts/utils/key_pair.ts:96](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L96)* +*Defined in [src.ts/utils/key_pair.ts:96](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L96)* ___ @@ -66,7 +66,7 @@ ___ • **secretKey**: *string* -*Defined in [src.ts/utils/key_pair.ts:97](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L97)* +*Defined in [src.ts/utils/key_pair.ts:97](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L97)* ## Methods @@ -76,7 +76,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[getPublicKey](_utils_key_pair_.keypair.md#abstract-getpublickey)* -*Defined in [src.ts/utils/key_pair.ts:139](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L139)* +*Defined in [src.ts/utils/key_pair.ts:139](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L139)* **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 [src.ts/utils/key_pair.ts:126](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L126)* +*Defined in [src.ts/utils/key_pair.ts:126](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L126)* **Parameters:** @@ -106,7 +106,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[toString](_utils_key_pair_.keypair.md#abstract-tostring)* -*Defined in [src.ts/utils/key_pair.ts:135](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L135)* +*Defined in [src.ts/utils/key_pair.ts:135](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L135)* **Returns:** *string* @@ -118,7 +118,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[verify](_utils_key_pair_.keypair.md#abstract-verify)* -*Defined in [src.ts/utils/key_pair.ts:131](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L131)* +*Defined in [src.ts/utils/key_pair.ts:131](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L131)* **Parameters:** @@ -137,7 +137,7 @@ ___ *Overrides [KeyPair](_utils_key_pair_.keypair.md).[fromRandom](_utils_key_pair_.keypair.md#static-fromrandom)* -*Defined in [src.ts/utils/key_pair.ts:121](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L121)* +*Defined in [src.ts/utils/key_pair.ts:121](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L121)* 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 [src.ts/utils/key_pair.ts:76](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L76)* +*Defined in [src.ts/utils/key_pair.ts:76](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L76)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_key_pair_.publickey.md b/docs/nearlib/classes/_utils_key_pair_.publickey.md index 011bc06498..fdc0af5448 100644 --- a/docs/nearlib/classes/_utils_key_pair_.publickey.md +++ b/docs/nearlib/classes/_utils_key_pair_.publickey.md @@ -37,7 +37,7 @@ PublicKey representation that has type and bytes of the key. *Inherited from [Assignable](_utils_enums_.assignable.md).[constructor](_utils_enums_.assignable.md#constructor)* -*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/enums.ts#L17)* +*Defined in [src.ts/utils/enums.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/enums.ts#L17)* **Parameters:** @@ -53,7 +53,7 @@ Name | Type | • **data**: *Uint8Array* -*Defined in [src.ts/utils/key_pair.ts:38](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L38)* +*Defined in [src.ts/utils/key_pair.ts:38](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L38)* ___ @@ -61,7 +61,7 @@ ___ • **keyType**: *[KeyType](../enums/_utils_key_pair_.keytype.md)* -*Defined in [src.ts/utils/key_pair.ts:37](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L37)* +*Defined in [src.ts/utils/key_pair.ts:37](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L37)* ## Methods @@ -69,7 +69,7 @@ ___ ▸ **toString**(): *string* -*Defined in [src.ts/utils/key_pair.ts:58](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L58)* +*Defined in [src.ts/utils/key_pair.ts:58](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L58)* **Returns:** *string* @@ -79,7 +79,7 @@ ___ ▸ **from**(`value`: string | [PublicKey](_utils_key_pair_.publickey.md)): *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [src.ts/utils/key_pair.ts:40](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L40)* +*Defined in [src.ts/utils/key_pair.ts:40](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L40)* **Parameters:** @@ -95,7 +95,7 @@ ___ ▸ **fromString**(`encodedKey`: string): *[PublicKey](_utils_key_pair_.publickey.md)* -*Defined in [src.ts/utils/key_pair.ts:47](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L47)* +*Defined in [src.ts/utils/key_pair.ts:47](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L47)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_serialize_.binaryreader.md b/docs/nearlib/classes/_utils_serialize_.binaryreader.md index 546434f288..7cb4fa0706 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 [src.ts/utils/serialize.ts:130](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L130)* +*Defined in [src.ts/utils/serialize.ts:130](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L130)* **Parameters:** @@ -52,7 +52,7 @@ Name | Type | • **buf**: *Buffer* -*Defined in [src.ts/utils/serialize.ts:129](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L129)* +*Defined in [src.ts/utils/serialize.ts:129](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L129)* ___ @@ -60,7 +60,7 @@ ___ • **offset**: *number* -*Defined in [src.ts/utils/serialize.ts:130](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L130)* +*Defined in [src.ts/utils/serialize.ts:130](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L130)* ## Methods @@ -68,7 +68,7 @@ ___ ▸ **read_array**(`fn`: any): *any[]* -*Defined in [src.ts/utils/serialize.ts:190](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L190)* +*Defined in [src.ts/utils/serialize.ts:190](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L190)* **Parameters:** @@ -84,7 +84,7 @@ ___ ▸ **read_buffer**(`len`: number): *Buffer* -*Defined in [src.ts/utils/serialize.ts:163](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L163)* +*Defined in [src.ts/utils/serialize.ts:163](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L163)* **Parameters:** @@ -100,7 +100,7 @@ ___ ▸ **read_fixed_array**(`len`: number): *Uint8Array* -*Defined in [src.ts/utils/serialize.ts:185](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L185)* +*Defined in [src.ts/utils/serialize.ts:185](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L185)* **Parameters:** @@ -116,7 +116,7 @@ ___ ▸ **read_string**(): *string* -*Defined in [src.ts/utils/serialize.ts:173](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L173)* +*Defined in [src.ts/utils/serialize.ts:173](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L173)* **Returns:** *string* @@ -126,7 +126,7 @@ ___ ▸ **read_u128**(): *BN* -*Defined in [src.ts/utils/serialize.ts:158](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L158)* +*Defined in [src.ts/utils/serialize.ts:158](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L158)* **Returns:** *BN* @@ -136,7 +136,7 @@ ___ ▸ **read_u32**(): *number* -*Defined in [src.ts/utils/serialize.ts:145](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L145)* +*Defined in [src.ts/utils/serialize.ts:145](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L145)* **Returns:** *number* @@ -146,7 +146,7 @@ ___ ▸ **read_u64**(): *BN* -*Defined in [src.ts/utils/serialize.ts:152](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L152)* +*Defined in [src.ts/utils/serialize.ts:152](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L152)* **Returns:** *BN* @@ -156,6 +156,6 @@ ___ ▸ **read_u8**(): *number* -*Defined in [src.ts/utils/serialize.ts:138](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L138)* +*Defined in [src.ts/utils/serialize.ts:138](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L138)* **Returns:** *number* diff --git a/docs/nearlib/classes/_utils_serialize_.binarywriter.md b/docs/nearlib/classes/_utils_serialize_.binarywriter.md index 48f461991e..cf0553cd17 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 [src.ts/utils/serialize.ts:45](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L45)* +*Defined in [src.ts/utils/serialize.ts:45](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L45)* **Returns:** *[BinaryWriter](_utils_serialize_.binarywriter.md)* @@ -48,7 +48,7 @@ sidebar_label: "BinaryWriter" • **buf**: *Buffer* -*Defined in [src.ts/utils/serialize.ts:44](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L44)* +*Defined in [src.ts/utils/serialize.ts:44](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L44)* ___ @@ -56,7 +56,7 @@ ___ • **length**: *number* -*Defined in [src.ts/utils/serialize.ts:45](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L45)* +*Defined in [src.ts/utils/serialize.ts:45](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L45)* ## Methods @@ -64,7 +64,7 @@ ___ ▸ **maybe_resize**(): *void* -*Defined in [src.ts/utils/serialize.ts:52](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L52)* +*Defined in [src.ts/utils/serialize.ts:52](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L52)* **Returns:** *void* @@ -74,7 +74,7 @@ ___ ▸ **toArray**(): *Uint8Array* -*Defined in [src.ts/utils/serialize.ts:106](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L106)* +*Defined in [src.ts/utils/serialize.ts:106](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L106)* **Returns:** *Uint8Array* @@ -84,7 +84,7 @@ ___ ▸ **write_array**(`array`: any[], `fn`: any): *void* -*Defined in [src.ts/utils/serialize.ts:97](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L97)* +*Defined in [src.ts/utils/serialize.ts:97](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L97)* **Parameters:** @@ -101,7 +101,7 @@ ___ ▸ **write_buffer**(`buffer`: Buffer): *void* -*Defined in [src.ts/utils/serialize.ts:80](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L80)* +*Defined in [src.ts/utils/serialize.ts:80](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L80)* **Parameters:** @@ -117,7 +117,7 @@ ___ ▸ **write_fixed_array**(`array`: Uint8Array): *void* -*Defined in [src.ts/utils/serialize.ts:93](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L93)* +*Defined in [src.ts/utils/serialize.ts:93](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L93)* **Parameters:** @@ -133,7 +133,7 @@ ___ ▸ **write_string**(`str`: string): *void* -*Defined in [src.ts/utils/serialize.ts:86](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L86)* +*Defined in [src.ts/utils/serialize.ts:86](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L86)* **Parameters:** @@ -149,7 +149,7 @@ ___ ▸ **write_u128**(`value`: BN): *void* -*Defined in [src.ts/utils/serialize.ts:75](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L75)* +*Defined in [src.ts/utils/serialize.ts:75](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L75)* **Parameters:** @@ -165,7 +165,7 @@ ___ ▸ **write_u32**(`value`: number): *void* -*Defined in [src.ts/utils/serialize.ts:64](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L64)* +*Defined in [src.ts/utils/serialize.ts:64](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L64)* **Parameters:** @@ -181,7 +181,7 @@ ___ ▸ **write_u64**(`value`: BN): *void* -*Defined in [src.ts/utils/serialize.ts:70](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L70)* +*Defined in [src.ts/utils/serialize.ts:70](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L70)* **Parameters:** @@ -197,7 +197,7 @@ ___ ▸ **write_u8**(`value`: number): *void* -*Defined in [src.ts/utils/serialize.ts:58](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L58)* +*Defined in [src.ts/utils/serialize.ts:58](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L58)* **Parameters:** diff --git a/docs/nearlib/classes/_utils_serialize_.borsherror.md b/docs/nearlib/classes/_utils_serialize_.borsherror.md index 9830d45da7..568b460baf 100644 --- a/docs/nearlib/classes/_utils_serialize_.borsherror.md +++ b/docs/nearlib/classes/_utils_serialize_.borsherror.md @@ -35,7 +35,7 @@ sidebar_label: "BorshError" \+ **new BorshError**(`message`: string): *[BorshError](_utils_serialize_.borsherror.md)* -*Defined in [src.ts/utils/serialize.ts:28](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L28)* +*Defined in [src.ts/utils/serialize.ts:28](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L28)* **Parameters:** @@ -51,7 +51,7 @@ Name | Type | • **fieldPath**: *string[]* = [] -*Defined in [src.ts/utils/serialize.ts:28](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L28)* +*Defined in [src.ts/utils/serialize.ts:28](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L28)* ___ @@ -79,7 +79,7 @@ ___ • **originalMessage**: *string* -*Defined in [src.ts/utils/serialize.ts:27](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L27)* +*Defined in [src.ts/utils/serialize.ts:27](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L27)* ___ @@ -107,7 +107,7 @@ Defined in node_modules/typescript/lib/lib.es5.d.ts:984 ▸ **addToFieldPath**(`fieldName`: string): *void* -*Defined in [src.ts/utils/serialize.ts:35](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L35)* +*Defined in [src.ts/utils/serialize.ts:35](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L35)* **Parameters:** diff --git a/docs/nearlib/classes/_wallet_account_.walletaccount.md b/docs/nearlib/classes/_wallet_account_.walletaccount.md index 20a247a739..fa3c01ebf5 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 [src.ts/wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L18)* +*Defined in [src.ts/wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L18)* **Parameters:** @@ -54,7 +54,7 @@ Name | Type | • **_authData**: *any* -*Defined in [src.ts/wallet-account.ts:17](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L17)* +*Defined in [src.ts/wallet-account.ts:17](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L17)* ___ @@ -62,7 +62,7 @@ ___ • **_authDataKey**: *string* -*Defined in [src.ts/wallet-account.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L15)* +*Defined in [src.ts/wallet-account.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L15)* ___ @@ -70,7 +70,7 @@ ___ • **_keyStore**: *[KeyStore](_key_stores_keystore_.keystore.md)* -*Defined in [src.ts/wallet-account.ts:16](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L16)* +*Defined in [src.ts/wallet-account.ts:16](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L16)* ___ @@ -78,7 +78,7 @@ ___ • **_networkId**: *string* -*Defined in [src.ts/wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L18)* +*Defined in [src.ts/wallet-account.ts:18](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L18)* ___ @@ -86,7 +86,7 @@ ___ • **_walletBaseUrl**: *string* -*Defined in [src.ts/wallet-account.ts:14](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L14)* +*Defined in [src.ts/wallet-account.ts:14](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L14)* ## Methods @@ -94,7 +94,7 @@ ___ ▸ **_completeSignInWithAccessKey**(): *Promise‹void›* -*Defined in [src.ts/wallet-account.ts:84](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L84)* +*Defined in [src.ts/wallet-account.ts:84](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/wallet-account.ts:100](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L100)* +*Defined in [src.ts/wallet-account.ts:100](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L100)* **Parameters:** @@ -123,7 +123,7 @@ ___ ▸ **getAccountId**(): *any* -*Defined in [src.ts/wallet-account.ts:46](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L46)* +*Defined in [src.ts/wallet-account.ts:46](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L46)* Returns authorized Account ID. @@ -138,7 +138,7 @@ ___ ▸ **isSignedIn**(): *boolean* -*Defined in [src.ts/wallet-account.ts:37](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L37)* +*Defined in [src.ts/wallet-account.ts:37](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/wallet-account.ts:63](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L63)* +*Defined in [src.ts/wallet-account.ts:63](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L63)* Redirects current page to the wallet authentication page. @@ -181,7 +181,7 @@ ___ ▸ **signOut**(): *void* -*Defined in [src.ts/wallet-account.ts:111](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L111)* +*Defined in [src.ts/wallet-account.ts:111](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L111)* 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 6cbe421f4d..c243744ae9 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 [src.ts/providers/provider.ts:34](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L34)* +*Defined in [src.ts/providers/provider.ts:34](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L34)* ___ @@ -26,7 +26,7 @@ ___ • **Pending**: = "Pending" -*Defined in [src.ts/providers/provider.ts:33](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L33)* +*Defined in [src.ts/providers/provider.ts:33](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L33)* ___ @@ -34,4 +34,4 @@ ___ • **Unknown**: = "Unknown" -*Defined in [src.ts/providers/provider.ts:32](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L32)* +*Defined in [src.ts/providers/provider.ts:32](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L32)* diff --git a/docs/nearlib/enums/_providers_provider_.finalexecutionstatusbasic.md b/docs/nearlib/enums/_providers_provider_.finalexecutionstatusbasic.md index 21433bf07c..97e4dacf34 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 [src.ts/providers/provider.ts:46](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L46)* +*Defined in [src.ts/providers/provider.ts:46](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L46)* ___ @@ -26,7 +26,7 @@ ___ • **NotStarted**: = "NotStarted" -*Defined in [src.ts/providers/provider.ts:44](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L44)* +*Defined in [src.ts/providers/provider.ts:44](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L44)* ___ @@ -34,4 +34,4 @@ ___ • **Started**: = "Started" -*Defined in [src.ts/providers/provider.ts:45](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L45)* +*Defined in [src.ts/providers/provider.ts:45](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L45)* diff --git a/docs/nearlib/enums/_providers_provider_.legacyfinaltransactionstatus.md b/docs/nearlib/enums/_providers_provider_.legacyfinaltransactionstatus.md index 379f822255..7dc0564982 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 [src.ts/providers/provider.ts:151](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L151)* +*Defined in [src.ts/providers/provider.ts:151](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L151)* ___ @@ -27,7 +27,7 @@ ___ • **Failed**: = "Failed" -*Defined in [src.ts/providers/provider.ts:150](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L150)* +*Defined in [src.ts/providers/provider.ts:150](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L150)* ___ @@ -35,7 +35,7 @@ ___ • **Started**: = "Started" -*Defined in [src.ts/providers/provider.ts:149](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L149)* +*Defined in [src.ts/providers/provider.ts:149](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L149)* ___ @@ -43,4 +43,4 @@ ___ • **Unknown**: = "Unknown" -*Defined in [src.ts/providers/provider.ts:148](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L148)* +*Defined in [src.ts/providers/provider.ts:148](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L148)* diff --git a/docs/nearlib/enums/_providers_provider_.legacytransactionstatus.md b/docs/nearlib/enums/_providers_provider_.legacytransactionstatus.md index 3269c75cf7..7eb9a02c12 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 [src.ts/providers/provider.ts:157](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L157)* +*Defined in [src.ts/providers/provider.ts:157](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L157)* ___ @@ -26,7 +26,7 @@ ___ • **Failed**: = "Failed" -*Defined in [src.ts/providers/provider.ts:158](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L158)* +*Defined in [src.ts/providers/provider.ts:158](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L158)* ___ @@ -34,4 +34,4 @@ ___ • **Unknown**: = "Unknown" -*Defined in [src.ts/providers/provider.ts:156](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L156)* +*Defined in [src.ts/providers/provider.ts:156](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L156)* diff --git a/docs/nearlib/enums/_utils_key_pair_.keytype.md b/docs/nearlib/enums/_utils_key_pair_.keytype.md index d1f7684d85..e0c47509a5 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 [src.ts/utils/key_pair.ts:16](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L16)* +*Defined in [src.ts/utils/key_pair.ts:16](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L16)* diff --git a/docs/nearlib/interfaces/_account_.accountstate.md b/docs/nearlib/interfaces/_account_.accountstate.md index 73b2cb4a65..741ff00b36 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 [src.ts/account.ts:32](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L32)* +*Defined in [src.ts/account.ts:32](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L32)* ___ @@ -31,7 +31,7 @@ ___ • **amount**: *string* -*Defined in [src.ts/account.ts:33](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L33)* +*Defined in [src.ts/account.ts:33](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L33)* ___ @@ -39,7 +39,7 @@ ___ • **code_hash**: *string* -*Defined in [src.ts/account.ts:35](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L35)* +*Defined in [src.ts/account.ts:35](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L35)* ___ @@ -47,4 +47,4 @@ ___ • **staked**: *string* -*Defined in [src.ts/account.ts:34](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L34)* +*Defined in [src.ts/account.ts:34](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L34)* 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 9c33fdb5ad..7897674b1e 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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:29](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L29)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:29](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L29)* ___ @@ -31,4 +31,4 @@ ___ • **private_key**: *string* -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:30](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L30)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:30](https://github.com/nearprotocol/nearlib/blob/d578981/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 2bee55597d..feacff97a9 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 [src.ts/providers/provider.ts:82](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L82)* +*Defined in [src.ts/providers/provider.ts:82](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L82)* ___ @@ -36,7 +36,7 @@ ___ • **approval_sigs**: *string* -*Defined in [src.ts/providers/provider.ts:83](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L83)* +*Defined in [src.ts/providers/provider.ts:83](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L83)* ___ @@ -44,7 +44,7 @@ ___ • **hash**: *string* -*Defined in [src.ts/providers/provider.ts:84](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L84)* +*Defined in [src.ts/providers/provider.ts:84](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L84)* ___ @@ -52,7 +52,7 @@ ___ • **height**: *number* -*Defined in [src.ts/providers/provider.ts:85](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L85)* +*Defined in [src.ts/providers/provider.ts:85](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L85)* ___ @@ -60,7 +60,7 @@ ___ • **prev_hash**: *string* -*Defined in [src.ts/providers/provider.ts:86](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L86)* +*Defined in [src.ts/providers/provider.ts:86](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L86)* ___ @@ -68,7 +68,7 @@ ___ • **prev_state_root**: *string* -*Defined in [src.ts/providers/provider.ts:87](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L87)* +*Defined in [src.ts/providers/provider.ts:87](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L87)* ___ @@ -76,7 +76,7 @@ ___ • **timestamp**: *number* -*Defined in [src.ts/providers/provider.ts:88](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L88)* +*Defined in [src.ts/providers/provider.ts:88](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L88)* ___ @@ -84,7 +84,7 @@ ___ • **total_weight**: *[TotalWeight](_providers_provider_.totalweight.md)* -*Defined in [src.ts/providers/provider.ts:89](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L89)* +*Defined in [src.ts/providers/provider.ts:89](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L89)* ___ @@ -92,4 +92,4 @@ ___ • **tx_root**: *string* -*Defined in [src.ts/providers/provider.ts:90](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L90)* +*Defined in [src.ts/providers/provider.ts:90](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L90)* diff --git a/docs/nearlib/interfaces/_providers_provider_.blockresult.md b/docs/nearlib/interfaces/_providers_provider_.blockresult.md index eeb30c4d74..43423b936c 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 [src.ts/providers/provider.ts:168](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L168)* +*Defined in [src.ts/providers/provider.ts:168](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L168)* ___ @@ -29,4 +29,4 @@ ___ • **transactions**: *[Transaction](_providers_provider_.transaction.md)[]* -*Defined in [src.ts/providers/provider.ts:169](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L169)* +*Defined in [src.ts/providers/provider.ts:169](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L169)* diff --git a/docs/nearlib/interfaces/_providers_provider_.chunkheader.md b/docs/nearlib/interfaces/_providers_provider_.chunkheader.md index ab8529698a..c593ebce9b 100644 --- a/docs/nearlib/interfaces/_providers_provider_.chunkheader.md +++ b/docs/nearlib/interfaces/_providers_provider_.chunkheader.md @@ -37,7 +37,7 @@ sidebar_label: "ChunkHeader" • **balance_burnt**: *string* -*Defined in [src.ts/providers/provider.ts:99](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L99)* +*Defined in [src.ts/providers/provider.ts:99](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L99)* ___ @@ -45,7 +45,7 @@ ___ • **chunk_hash**: *[ChunkHash](../modules/_providers_provider_.md#chunkhash)* -*Defined in [src.ts/providers/provider.ts:100](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L100)* +*Defined in [src.ts/providers/provider.ts:100](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L100)* ___ @@ -53,7 +53,7 @@ ___ • **encoded_length**: *number* -*Defined in [src.ts/providers/provider.ts:101](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L101)* +*Defined in [src.ts/providers/provider.ts:101](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L101)* ___ @@ -61,7 +61,7 @@ ___ • **encoded_merkle_root**: *string* -*Defined in [src.ts/providers/provider.ts:102](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L102)* +*Defined in [src.ts/providers/provider.ts:102](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L102)* ___ @@ -69,7 +69,7 @@ ___ • **gas_limit**: *number* -*Defined in [src.ts/providers/provider.ts:103](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L103)* +*Defined in [src.ts/providers/provider.ts:103](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L103)* ___ @@ -77,7 +77,7 @@ ___ • **gas_used**: *number* -*Defined in [src.ts/providers/provider.ts:104](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L104)* +*Defined in [src.ts/providers/provider.ts:104](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L104)* ___ @@ -85,7 +85,7 @@ ___ • **height_created**: *number* -*Defined in [src.ts/providers/provider.ts:105](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L105)* +*Defined in [src.ts/providers/provider.ts:105](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L105)* ___ @@ -93,7 +93,7 @@ ___ • **height_included**: *number* -*Defined in [src.ts/providers/provider.ts:106](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L106)* +*Defined in [src.ts/providers/provider.ts:106](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L106)* ___ @@ -101,7 +101,7 @@ ___ • **outgoing_receipts_root**: *string* -*Defined in [src.ts/providers/provider.ts:107](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L107)* +*Defined in [src.ts/providers/provider.ts:107](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L107)* ___ @@ -109,7 +109,7 @@ ___ • **prev_block_hash**: *string* -*Defined in [src.ts/providers/provider.ts:108](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L108)* +*Defined in [src.ts/providers/provider.ts:108](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L108)* ___ @@ -117,7 +117,7 @@ ___ • **prev_state_num_parts**: *number* -*Defined in [src.ts/providers/provider.ts:109](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L109)* +*Defined in [src.ts/providers/provider.ts:109](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L109)* ___ @@ -125,7 +125,7 @@ ___ • **prev_state_root_hash**: *string* -*Defined in [src.ts/providers/provider.ts:110](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L110)* +*Defined in [src.ts/providers/provider.ts:110](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L110)* ___ @@ -133,7 +133,7 @@ ___ • **rent_paid**: *string* -*Defined in [src.ts/providers/provider.ts:111](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L111)* +*Defined in [src.ts/providers/provider.ts:111](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L111)* ___ @@ -141,7 +141,7 @@ ___ • **shard_id**: *number* -*Defined in [src.ts/providers/provider.ts:112](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L112)* +*Defined in [src.ts/providers/provider.ts:112](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L112)* ___ @@ -149,7 +149,7 @@ ___ • **signature**: *string* -*Defined in [src.ts/providers/provider.ts:113](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L113)* +*Defined in [src.ts/providers/provider.ts:113](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L113)* ___ @@ -157,7 +157,7 @@ ___ • **tx_root**: *string* -*Defined in [src.ts/providers/provider.ts:114](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L114)* +*Defined in [src.ts/providers/provider.ts:114](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L114)* ___ @@ -165,7 +165,7 @@ ___ • **validator_proposals**: *any[]* -*Defined in [src.ts/providers/provider.ts:115](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L115)* +*Defined in [src.ts/providers/provider.ts:115](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L115)* ___ @@ -173,4 +173,4 @@ ___ • **validator_reward**: *string* -*Defined in [src.ts/providers/provider.ts:116](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L116)* +*Defined in [src.ts/providers/provider.ts:116](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L116)* diff --git a/docs/nearlib/interfaces/_providers_provider_.chunkresult.md b/docs/nearlib/interfaces/_providers_provider_.chunkresult.md index 49649df2c3..5d7f203559 100644 --- a/docs/nearlib/interfaces/_providers_provider_.chunkresult.md +++ b/docs/nearlib/interfaces/_providers_provider_.chunkresult.md @@ -22,7 +22,7 @@ sidebar_label: "ChunkResult" • **header**: *[ChunkHeader](_providers_provider_.chunkheader.md)* -*Defined in [src.ts/providers/provider.ts:120](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L120)* +*Defined in [src.ts/providers/provider.ts:120](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L120)* ___ @@ -30,7 +30,7 @@ ___ • **receipts**: *any[]* -*Defined in [src.ts/providers/provider.ts:121](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L121)* +*Defined in [src.ts/providers/provider.ts:121](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L121)* ___ @@ -38,4 +38,4 @@ ___ • **transactions**: *[Transaction](_providers_provider_.transaction.md)[]* -*Defined in [src.ts/providers/provider.ts:122](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L122)* +*Defined in [src.ts/providers/provider.ts:122](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L122)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionerror.md b/docs/nearlib/interfaces/_providers_provider_.executionerror.md index 9713e94ffb..e02749dff5 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 [src.ts/providers/provider.ts:50](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L50)* +*Defined in [src.ts/providers/provider.ts:50](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L50)* ___ @@ -29,4 +29,4 @@ ___ • **error_type**: *string* -*Defined in [src.ts/providers/provider.ts:51](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L51)* +*Defined in [src.ts/providers/provider.ts:51](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L51)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionoutcome.md b/docs/nearlib/interfaces/_providers_provider_.executionoutcome.md index b546243744..90aead88f7 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 [src.ts/providers/provider.ts:68](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L68)* +*Defined in [src.ts/providers/provider.ts:68](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L68)* ___ @@ -31,7 +31,7 @@ ___ • **logs**: *string[]* -*Defined in [src.ts/providers/provider.ts:66](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L66)* +*Defined in [src.ts/providers/provider.ts:66](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L66)* ___ @@ -39,7 +39,7 @@ ___ • **receipt_ids**: *string[]* -*Defined in [src.ts/providers/provider.ts:67](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L67)* +*Defined in [src.ts/providers/provider.ts:67](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L67)* ___ @@ -47,4 +47,4 @@ ___ • **status**: *[ExecutionStatus](_providers_provider_.executionstatus.md) | [ExecutionStatusBasic](../enums/_providers_provider_.executionstatusbasic.md)* -*Defined in [src.ts/providers/provider.ts:65](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L65)* +*Defined in [src.ts/providers/provider.ts:65](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L65)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionoutcomewithid.md b/docs/nearlib/interfaces/_providers_provider_.executionoutcomewithid.md index 263278bfc2..576c35aeba 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 [src.ts/providers/provider.ts:60](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L60)* +*Defined in [src.ts/providers/provider.ts:60](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L60)* ___ @@ -29,4 +29,4 @@ ___ • **outcome**: *[ExecutionOutcome](_providers_provider_.executionoutcome.md)* -*Defined in [src.ts/providers/provider.ts:61](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L61)* +*Defined in [src.ts/providers/provider.ts:61](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L61)* diff --git a/docs/nearlib/interfaces/_providers_provider_.executionstatus.md b/docs/nearlib/interfaces/_providers_provider_.executionstatus.md index 9e55e7ba9a..69017dfae9 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 [src.ts/providers/provider.ts:40](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L40)* +*Defined in [src.ts/providers/provider.ts:40](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L40)* ___ @@ -30,7 +30,7 @@ ___ • **SuccessReceiptId**? : *string* -*Defined in [src.ts/providers/provider.ts:39](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L39)* +*Defined in [src.ts/providers/provider.ts:39](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L39)* ___ @@ -38,4 +38,4 @@ ___ • **SuccessValue**? : *string* -*Defined in [src.ts/providers/provider.ts:38](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L38)* +*Defined in [src.ts/providers/provider.ts:38](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L38)* diff --git a/docs/nearlib/interfaces/_providers_provider_.finalexecutionoutcome.md b/docs/nearlib/interfaces/_providers_provider_.finalexecutionoutcome.md index 010fed928c..645a0fdeba 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 [src.ts/providers/provider.ts:74](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L74)* +*Defined in [src.ts/providers/provider.ts:74](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L74)* ___ @@ -30,7 +30,7 @@ ___ • **status**: *[FinalExecutionStatus](_providers_provider_.finalexecutionstatus.md) | [FinalExecutionStatusBasic](../enums/_providers_provider_.finalexecutionstatusbasic.md)* -*Defined in [src.ts/providers/provider.ts:72](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L72)* +*Defined in [src.ts/providers/provider.ts:72](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L72)* ___ @@ -38,4 +38,4 @@ ___ • **transaction**: *[ExecutionOutcomeWithId](_providers_provider_.executionoutcomewithid.md)* -*Defined in [src.ts/providers/provider.ts:73](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L73)* +*Defined in [src.ts/providers/provider.ts:73](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L73)* diff --git a/docs/nearlib/interfaces/_providers_provider_.finalexecutionstatus.md b/docs/nearlib/interfaces/_providers_provider_.finalexecutionstatus.md index d30aaae3aa..bf50f8d1d8 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 [src.ts/providers/provider.ts:56](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L56)* +*Defined in [src.ts/providers/provider.ts:56](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L56)* ___ @@ -29,4 +29,4 @@ ___ • **SuccessValue**? : *string* -*Defined in [src.ts/providers/provider.ts:55](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L55)* +*Defined in [src.ts/providers/provider.ts:55](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L55)* diff --git a/docs/nearlib/interfaces/_providers_provider_.legacyfinaltransactionresult.md b/docs/nearlib/interfaces/_providers_provider_.legacyfinaltransactionresult.md index 5cd19e973a..41c8e9e96a 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 [src.ts/providers/provider.ts:163](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L163)* +*Defined in [src.ts/providers/provider.ts:163](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L163)* ___ @@ -29,4 +29,4 @@ ___ • **transactions**: *[LegacyTransactionLog](_providers_provider_.legacytransactionlog.md)[]* -*Defined in [src.ts/providers/provider.ts:164](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L164)* +*Defined in [src.ts/providers/provider.ts:164](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L164)* diff --git a/docs/nearlib/interfaces/_providers_provider_.legacytransactionlog.md b/docs/nearlib/interfaces/_providers_provider_.legacytransactionlog.md index 09e02dce76..0a4abd8b5b 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 [src.ts/providers/provider.ts:134](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L134)* +*Defined in [src.ts/providers/provider.ts:134](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L134)* ___ @@ -29,4 +29,4 @@ ___ • **result**: *[LegacyTransactionResult](_providers_provider_.legacytransactionresult.md)* -*Defined in [src.ts/providers/provider.ts:135](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L135)* +*Defined in [src.ts/providers/provider.ts:135](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L135)* diff --git a/docs/nearlib/interfaces/_providers_provider_.legacytransactionresult.md b/docs/nearlib/interfaces/_providers_provider_.legacytransactionresult.md index 2f241479db..0d77882e29 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 [src.ts/providers/provider.ts:141](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L141)* +*Defined in [src.ts/providers/provider.ts:141](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L141)* ___ @@ -31,7 +31,7 @@ ___ • **receipts**: *string[]* -*Defined in [src.ts/providers/provider.ts:142](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L142)* +*Defined in [src.ts/providers/provider.ts:142](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L142)* ___ @@ -39,7 +39,7 @@ ___ • **result**? : *string* -*Defined in [src.ts/providers/provider.ts:143](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L143)* +*Defined in [src.ts/providers/provider.ts:143](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L143)* ___ @@ -47,4 +47,4 @@ ___ • **status**: *[LegacyTransactionStatus](../enums/_providers_provider_.legacytransactionstatus.md)* -*Defined in [src.ts/providers/provider.ts:140](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L140)* +*Defined in [src.ts/providers/provider.ts:140](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L140)* diff --git a/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md b/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md index c32a2ee047..78bcad04a5 100644 --- a/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md +++ b/docs/nearlib/interfaces/_providers_provider_.nodestatusresult.md @@ -24,7 +24,7 @@ sidebar_label: "NodeStatusResult" • **chain_id**: *string* -*Defined in [src.ts/providers/provider.ts:20](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L20)* +*Defined in [src.ts/providers/provider.ts:20](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L20)* ___ @@ -32,7 +32,7 @@ ___ • **rpc_addr**: *string* -*Defined in [src.ts/providers/provider.ts:21](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L21)* +*Defined in [src.ts/providers/provider.ts:21](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L21)* ___ @@ -40,7 +40,7 @@ ___ • **sync_info**: *[SyncInfo](_providers_provider_.syncinfo.md)* -*Defined in [src.ts/providers/provider.ts:22](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L22)* +*Defined in [src.ts/providers/provider.ts:22](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L22)* ___ @@ -48,7 +48,7 @@ ___ • **validators**: *string[]* -*Defined in [src.ts/providers/provider.ts:23](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L23)* +*Defined in [src.ts/providers/provider.ts:23](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L23)* ___ @@ -56,4 +56,4 @@ ___ • **version**: *[Version](_providers_provider_.version.md)* -*Defined in [src.ts/providers/provider.ts:24](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L24)* +*Defined in [src.ts/providers/provider.ts:24](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L24)* diff --git a/docs/nearlib/interfaces/_providers_provider_.syncinfo.md b/docs/nearlib/interfaces/_providers_provider_.syncinfo.md index a6ea16324f..2053e69f71 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 [src.ts/providers/provider.ts:7](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L7)* +*Defined in [src.ts/providers/provider.ts:7](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L7)* ___ @@ -32,7 +32,7 @@ ___ • **latest_block_height**: *number* -*Defined in [src.ts/providers/provider.ts:8](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L8)* +*Defined in [src.ts/providers/provider.ts:8](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L8)* ___ @@ -40,7 +40,7 @@ ___ • **latest_block_time**: *string* -*Defined in [src.ts/providers/provider.ts:9](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L9)* +*Defined in [src.ts/providers/provider.ts:9](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L9)* ___ @@ -48,7 +48,7 @@ ___ • **latest_state_root**: *string* -*Defined in [src.ts/providers/provider.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L10)* +*Defined in [src.ts/providers/provider.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L10)* ___ @@ -56,4 +56,4 @@ ___ • **syncing**: *boolean* -*Defined in [src.ts/providers/provider.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L11)* +*Defined in [src.ts/providers/provider.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/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 19eb336eaa..78c1778da0 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 [src.ts/providers/provider.ts:78](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L78)* +*Defined in [src.ts/providers/provider.ts:78](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L78)* diff --git a/docs/nearlib/interfaces/_providers_provider_.transaction.md b/docs/nearlib/interfaces/_providers_provider_.transaction.md index b26937410a..1c13b270f6 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 [src.ts/providers/provider.ts:129](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L129)* +*Defined in [src.ts/providers/provider.ts:129](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L129)* ___ @@ -31,7 +31,7 @@ ___ • **hash**: *string* -*Defined in [src.ts/providers/provider.ts:126](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L126)* +*Defined in [src.ts/providers/provider.ts:126](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L126)* ___ @@ -39,7 +39,7 @@ ___ • **public_key**: *string* -*Defined in [src.ts/providers/provider.ts:127](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L127)* +*Defined in [src.ts/providers/provider.ts:127](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L127)* ___ @@ -47,4 +47,4 @@ ___ • **signature**: *string* -*Defined in [src.ts/providers/provider.ts:128](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L128)* +*Defined in [src.ts/providers/provider.ts:128](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L128)* diff --git a/docs/nearlib/interfaces/_providers_provider_.version.md b/docs/nearlib/interfaces/_providers_provider_.version.md index af7a5a1e1e..349d1984ce 100644 --- a/docs/nearlib/interfaces/_providers_provider_.version.md +++ b/docs/nearlib/interfaces/_providers_provider_.version.md @@ -21,7 +21,7 @@ sidebar_label: "Version" • **build**: *string* -*Defined in [src.ts/providers/provider.ts:16](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L16)* +*Defined in [src.ts/providers/provider.ts:16](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L16)* ___ @@ -29,4 +29,4 @@ ___ • **version**: *string* -*Defined in [src.ts/providers/provider.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L15)* +*Defined in [src.ts/providers/provider.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L15)* diff --git a/docs/nearlib/interfaces/_utils_key_pair_.signature.md b/docs/nearlib/interfaces/_utils_key_pair_.signature.md index 01fac99773..248ce01291 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 [src.ts/utils/key_pair.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L11)* +*Defined in [src.ts/utils/key_pair.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L11)* ___ @@ -29,4 +29,4 @@ ___ • **signature**: *Uint8Array* -*Defined in [src.ts/utils/key_pair.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L10)* +*Defined in [src.ts/utils/key_pair.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L10)* diff --git a/docs/nearlib/interfaces/_utils_network_.network.md b/docs/nearlib/interfaces/_utils_network_.network.md index ac448e6996..fc5e49de40 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 [src.ts/utils/network.ts:6](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/network.ts#L6)* +*Defined in [src.ts/utils/network.ts:6](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/network.ts#L6)* #### Type declaration: @@ -40,7 +40,7 @@ ___ • **chainId**: *string* -*Defined in [src.ts/utils/network.ts:5](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/network.ts#L5)* +*Defined in [src.ts/utils/network.ts:5](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/network.ts#L5)* ___ @@ -48,4 +48,4 @@ ___ • **name**: *string* -*Defined in [src.ts/utils/network.ts:4](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/network.ts#L4)* +*Defined in [src.ts/utils/network.ts:4](https://github.com/nearprotocol/nearlib/blob/d578981/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 7e4b090a9d..668e4c93a6 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 [src.ts/utils/web.ts:9](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L9)* +*Defined in [src.ts/utils/web.ts:9](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/web.ts#L9)* ___ @@ -33,7 +33,7 @@ ___ • **headers**? : *object* -*Defined in [src.ts/utils/web.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L11)* +*Defined in [src.ts/utils/web.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/web.ts#L11)* #### Type declaration: @@ -45,7 +45,7 @@ ___ • **password**? : *string* -*Defined in [src.ts/utils/web.ts:8](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L8)* +*Defined in [src.ts/utils/web.ts:8](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/web.ts#L8)* ___ @@ -53,7 +53,7 @@ ___ • **timeout**? : *number* -*Defined in [src.ts/utils/web.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L10)* +*Defined in [src.ts/utils/web.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/web.ts#L10)* ___ @@ -61,7 +61,7 @@ ___ • **url**: *string* -*Defined in [src.ts/utils/web.ts:6](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L6)* +*Defined in [src.ts/utils/web.ts:6](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/web.ts#L6)* ___ @@ -69,4 +69,4 @@ ___ • **user**? : *string* -*Defined in [src.ts/utils/web.ts:7](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L7)* +*Defined in [src.ts/utils/web.ts:7](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/web.ts#L7)* diff --git a/docs/nearlib/modules/_account_.md b/docs/nearlib/modules/_account_.md index 6fa09f76fa..4ce2154d58 100644 --- a/docs/nearlib/modules/_account_.md +++ b/docs/nearlib/modules/_account_.md @@ -31,7 +31,7 @@ sidebar_label: "account" • **DEFAULT_FUNC_CALL_AMOUNT**: *number* = 2000000 * 1000000 -*Defined in [src.ts/account.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L15)* +*Defined in [src.ts/account.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L15)* ___ @@ -39,7 +39,7 @@ ___ • **TX_STATUS_RETRY_NUMBER**: *10* = 10 -*Defined in [src.ts/account.ts:18](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L18)* +*Defined in [src.ts/account.ts:18](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L18)* ___ @@ -47,7 +47,7 @@ ___ • **TX_STATUS_RETRY_WAIT**: *500* = 500 -*Defined in [src.ts/account.ts:21](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L21)* +*Defined in [src.ts/account.ts:21](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L21)* ___ @@ -55,7 +55,7 @@ ___ • **TX_STATUS_RETRY_WAIT_BACKOFF**: *1.5* = 1.5 -*Defined in [src.ts/account.ts:24](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L24)* +*Defined in [src.ts/account.ts:24](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L24)* ## Functions @@ -63,7 +63,7 @@ ___ ▸ **sleep**(`millis`: number): *Promise‹any›* -*Defined in [src.ts/account.ts:27](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/account.ts#L27)* +*Defined in [src.ts/account.ts:27](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/account.ts#L27)* **Parameters:** diff --git a/docs/nearlib/modules/_connection_.md b/docs/nearlib/modules/_connection_.md index d5a90c49e3..51581de630 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 [src.ts/connection.ts:6](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/connection.ts#L6)* +*Defined in [src.ts/connection.ts:6](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/connection.ts#L6)* **Parameters:** @@ -37,7 +37,7 @@ ___ ▸ **getSigner**(`config`: any): *[Signer](../classes/_signer_.signer.md)* -*Defined in [src.ts/connection.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/connection.ts#L15)* +*Defined in [src.ts/connection.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/connection.ts#L15)* **Parameters:** diff --git a/docs/nearlib/modules/_contract_.md b/docs/nearlib/modules/_contract_.md index 47dc71c945..cd0c8cc2fa 100644 --- a/docs/nearlib/modules/_contract_.md +++ b/docs/nearlib/modules/_contract_.md @@ -20,7 +20,7 @@ sidebar_label: "contract" ▸ **validateBNLike**(`argMap`: object): *void* -*Defined in [src.ts/contract.ts:44](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/contract.ts#L44)* +*Defined in [src.ts/contract.ts:44](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/contract.ts#L44)* **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 0978da76fc..b9f3e4b10c 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 [src.ts/key_stores/browser_local_storage_key_store.ts:6](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/browser_local_storage_key_store.ts#L6)* +*Defined in [src.ts/key_stores/browser_local_storage_key_store.ts:6](https://github.com/nearprotocol/nearlib/blob/d578981/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 45ce56631e..24c1d2b1c1 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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:18](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L18)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:18](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L18)* ___ @@ -44,7 +44,7 @@ ___ • **mkdir**: *Function* = promisify(fs.mkdir) -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:23](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L23)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:23](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L23)* ___ @@ -52,7 +52,7 @@ ___ • **readFile**: *Function* = promisify(fs.readFile) -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:19](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L19)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:19](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L19)* ___ @@ -60,7 +60,7 @@ ___ • **readdir**: *Function* = promisify(fs.readdir) -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:22](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L22)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:22](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L22)* ___ @@ -68,7 +68,7 @@ ___ • **unlink**: *Function* = promisify(fs.unlink) -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:21](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L21)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:21](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L21)* ___ @@ -76,7 +76,7 @@ ___ • **writeFile**: *Function* = promisify(fs.writeFile) -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:20](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L20)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:20](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L20)* ## Functions @@ -84,7 +84,7 @@ ___ ▸ **ensureDir**(`path`: string): *Promise‹void›* -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:38](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L38)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:38](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L38)* **Parameters:** @@ -100,7 +100,7 @@ ___ ▸ **loadJsonFile**(`path`: string): *Promise‹any›* -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:33](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L33)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:33](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/key_stores/unencrypted_file_system_keystore.ts#L33)* **Parameters:** @@ -116,7 +116,7 @@ ___ ▸ **promisify**(`fn`: any): *Function* -*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L9)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:9](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/key_stores/unencrypted_file_system_keystore.ts:46](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/key_stores/unencrypted_file_system_keystore.ts#L46)* +*Defined in [src.ts/key_stores/unencrypted_file_system_keystore.ts:46](https://github.com/nearprotocol/nearlib/blob/d578981/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 a8f112f281..5c08e06745 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 [src.ts/near.ts:72](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/near.ts#L72)* +*Defined in [src.ts/near.ts:72](https://github.com/nearprotocol/nearlib/blob/d578981/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 d7e00a4759..add1f7e979 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 [src.ts/providers/json-rpc-provider.ts:13](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/json-rpc-provider.ts#L13)* +*Defined in [src.ts/providers/json-rpc-provider.ts:13](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/json-rpc-provider.ts#L13)* diff --git a/docs/nearlib/modules/_providers_provider_.md b/docs/nearlib/modules/_providers_provider_.md index b2c480d9cf..057a3de9c7 100644 --- a/docs/nearlib/modules/_providers_provider_.md +++ b/docs/nearlib/modules/_providers_provider_.md @@ -61,7 +61,7 @@ sidebar_label: "providers/provider" Ƭ **BlockHash**: *string* -*Defined in [src.ts/providers/provider.ts:27](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L27)* +*Defined in [src.ts/providers/provider.ts:27](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L27)* ___ @@ -69,7 +69,7 @@ ___ Ƭ **BlockHeight**: *number* -*Defined in [src.ts/providers/provider.ts:28](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L28)* +*Defined in [src.ts/providers/provider.ts:28](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L28)* ___ @@ -77,7 +77,7 @@ ___ Ƭ **BlockId**: *[BlockHash](_providers_provider_.md#blockhash) | [BlockHeight](_providers_provider_.md#blockheight)* -*Defined in [src.ts/providers/provider.ts:29](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L29)* +*Defined in [src.ts/providers/provider.ts:29](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L29)* ___ @@ -85,7 +85,7 @@ ___ Ƭ **BlockShardId**: *[[BlockId](_providers_provider_.md#blockid), [ShardId](_providers_provider_.md#shardid)]* -*Defined in [src.ts/providers/provider.ts:95](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L95)* +*Defined in [src.ts/providers/provider.ts:95](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L95)* ___ @@ -93,7 +93,7 @@ ___ Ƭ **ChunkHash**: *string* -*Defined in [src.ts/providers/provider.ts:93](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L93)* +*Defined in [src.ts/providers/provider.ts:93](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L93)* ___ @@ -101,7 +101,7 @@ ___ Ƭ **ChunkId**: *[ChunkHash](_providers_provider_.md#chunkhash) | [BlockShardId](_providers_provider_.md#blockshardid)* -*Defined in [src.ts/providers/provider.ts:96](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L96)* +*Defined in [src.ts/providers/provider.ts:96](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L96)* ___ @@ -109,7 +109,7 @@ ___ Ƭ **ShardId**: *number* -*Defined in [src.ts/providers/provider.ts:94](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L94)* +*Defined in [src.ts/providers/provider.ts:94](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L94)* ## Functions @@ -117,7 +117,7 @@ ___ ▸ **adaptTransactionResult**(`txResult`: [FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md) | [LegacyFinalTransactionResult](../interfaces/_providers_provider_.legacyfinaltransactionresult.md)): *[FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)* -*Defined in [src.ts/providers/provider.ts:210](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L210)* +*Defined in [src.ts/providers/provider.ts:210](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L210)* **Parameters:** @@ -133,7 +133,7 @@ ___ ▸ **fixLegacyBasicExecutionOutcomeFailure**(`t`: [ExecutionOutcomeWithId](../interfaces/_providers_provider_.executionoutcomewithid.md)): *[ExecutionOutcomeWithId](../interfaces/_providers_provider_.executionoutcomewithid.md)* -*Defined in [src.ts/providers/provider.ts:196](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L196)* +*Defined in [src.ts/providers/provider.ts:196](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L196)* **Parameters:** @@ -149,7 +149,7 @@ ___ ▸ **getTransactionLastResult**(`txResult`: [FinalExecutionOutcome](../interfaces/_providers_provider_.finalexecutionoutcome.md)): *any* -*Defined in [src.ts/providers/provider.ts:269](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L269)* +*Defined in [src.ts/providers/provider.ts:269](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L269)* **Parameters:** @@ -165,7 +165,7 @@ ___ ▸ **mapLegacyTransactionLog**(`tl`: [LegacyTransactionLog](../interfaces/_providers_provider_.legacytransactionlog.md)): *[ExecutionOutcomeWithId](../interfaces/_providers_provider_.executionoutcomewithid.md)* -*Defined in [src.ts/providers/provider.ts:173](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/providers/provider.ts#L173)* +*Defined in [src.ts/providers/provider.ts:173](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/providers/provider.ts#L173)* **Parameters:** diff --git a/docs/nearlib/modules/_transaction_.md b/docs/nearlib/modules/_transaction_.md index ebc8ae0269..a3209770c3 100644 --- a/docs/nearlib/modules/_transaction_.md +++ b/docs/nearlib/modules/_transaction_.md @@ -123,7 +123,7 @@ sidebar_label: "transaction" ]}], ]) -*Defined in [src.ts/transaction.ts:126](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L126)* +*Defined in [src.ts/transaction.ts:126](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L126)* ## Functions @@ -131,7 +131,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 [src.ts/transaction.ts:68](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L68)* +*Defined in [src.ts/transaction.ts:68](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L68)* **Parameters:** @@ -148,7 +148,7 @@ ___ ▸ **createAccount**(): *[Action](../classes/_transaction_.action.md)* -*Defined in [src.ts/transaction.ts:48](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L48)* +*Defined in [src.ts/transaction.ts:48](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L48)* **Returns:** *[Action](../classes/_transaction_.action.md)* @@ -158,7 +158,7 @@ ___ ▸ **createTransaction**(`signerId`: string, `publicKey`: [PublicKey](../classes/_utils_key_pair_.publickey.md), `receiverId`: string, `nonce`: number, `actions`: [Action](../classes/_transaction_.action.md)[], `blockHash`: Uint8Array): *[Transaction](../classes/_transaction_.transaction.md)* -*Defined in [src.ts/transaction.ts:200](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L200)* +*Defined in [src.ts/transaction.ts:200](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L200)* **Parameters:** @@ -179,7 +179,7 @@ ___ ▸ **deleteAccount**(`beneficiaryId`: string): *[Action](../classes/_transaction_.action.md)* -*Defined in [src.ts/transaction.ts:76](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L76)* +*Defined in [src.ts/transaction.ts:76](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L76)* **Parameters:** @@ -195,7 +195,7 @@ ___ ▸ **deleteKey**(`publicKey`: [PublicKey](../classes/_utils_key_pair_.publickey.md)): *[Action](../classes/_transaction_.action.md)* -*Defined in [src.ts/transaction.ts:72](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L72)* +*Defined in [src.ts/transaction.ts:72](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L72)* **Parameters:** @@ -211,7 +211,7 @@ ___ ▸ **deployContract**(`code`: Uint8Array): *[Action](../classes/_transaction_.action.md)* -*Defined in [src.ts/transaction.ts:52](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L52)* +*Defined in [src.ts/transaction.ts:52](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L52)* **Parameters:** @@ -227,7 +227,7 @@ ___ ▸ **fullAccessKey**(): *[AccessKey](../classes/_transaction_.accesskey.md)* -*Defined in [src.ts/transaction.ts:29](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L29)* +*Defined in [src.ts/transaction.ts:29](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L29)* **Returns:** *[AccessKey](../classes/_transaction_.accesskey.md)* @@ -237,7 +237,7 @@ ___ ▸ **functionCall**(`methodName`: string, `args`: Uint8Array, `gas`: number, `deposit`: BN): *[Action](../classes/_transaction_.action.md)* -*Defined in [src.ts/transaction.ts:56](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L56)* +*Defined in [src.ts/transaction.ts:56](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L56)* **Parameters:** @@ -256,7 +256,7 @@ ___ ▸ **functionCallAccessKey**(`receiverId`: string, `methodNames`: String[], `allowance?`: BN): *[AccessKey](../classes/_transaction_.accesskey.md)* -*Defined in [src.ts/transaction.ts:33](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L33)* +*Defined in [src.ts/transaction.ts:33](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L33)* **Parameters:** @@ -274,7 +274,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 [src.ts/transaction.ts:204](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L204)* +*Defined in [src.ts/transaction.ts:204](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L204)* **Parameters:** @@ -296,7 +296,7 @@ ___ ▸ **stake**(`stake`: BN, `publicKey`: [PublicKey](../classes/_utils_key_pair_.publickey.md)): *[Action](../classes/_transaction_.action.md)* -*Defined in [src.ts/transaction.ts:64](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L64)* +*Defined in [src.ts/transaction.ts:64](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L64)* **Parameters:** @@ -313,7 +313,7 @@ ___ ▸ **transfer**(`deposit`: BN): *[Action](../classes/_transaction_.action.md)* -*Defined in [src.ts/transaction.ts:60](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/transaction.ts#L60)* +*Defined in [src.ts/transaction.ts:60](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/transaction.ts#L60)* **Parameters:** diff --git a/docs/nearlib/modules/_utils_format_.md b/docs/nearlib/modules/_utils_format_.md index da9183abbf..4f51672380 100644 --- a/docs/nearlib/modules/_utils_format_.md +++ b/docs/nearlib/modules/_utils_format_.md @@ -27,7 +27,7 @@ sidebar_label: "utils/format" • **BN**: *any* = require ('bn.js') -*Defined in [src.ts/utils/format.ts:1](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L1)* +*Defined in [src.ts/utils/format.ts:1](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L1)* ___ @@ -35,7 +35,7 @@ ___ • **BN10**: *any* = new BN(10) -*Defined in [src.ts/utils/format.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L15)* +*Defined in [src.ts/utils/format.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L15)* ___ @@ -43,7 +43,7 @@ ___ • **NEAR_NOMINATION**: *any* = new BN('10', 10).pow(new BN(NEAR_NOMINATION_EXP, 10)) -*Defined in [src.ts/utils/format.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L11)* +*Defined in [src.ts/utils/format.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L11)* Number of indivisible units in one NEAR. Derived from [NEAR_NOMINATION_EXP](_utils_format_.md#const-near_nomination_exp). @@ -51,9 +51,9 @@ ___ ### `Const` NEAR_NOMINATION_EXP -• **NEAR_NOMINATION_EXP**: *18* = 18 +• **NEAR_NOMINATION_EXP**: *24* = 24 -*Defined in [src.ts/utils/format.ts:6](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L6)* +*Defined in [src.ts/utils/format.ts:6](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L6)* Exponent for calculating how many indivisible units are there in one NEAR. See [NEAR_NOMINATION](_utils_format_.md#const-near_nomination). @@ -63,7 +63,7 @@ ___ • **ROUNDING_OFFSETS**: *any[]* = [] -*Defined in [src.ts/utils/format.ts:14](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L14)* +*Defined in [src.ts/utils/format.ts:14](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L14)* ## Functions @@ -71,7 +71,7 @@ ___ ▸ **formatNearAmount**(`balance`: string, `fracDigits`: number): *string* -*Defined in [src.ts/utils/format.ts:27](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L27)* +*Defined in [src.ts/utils/format.ts:27](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L27)* Convert account balance value from internal indivisible units to NEAR. 1 NEAR is defined by [NEAR_NOMINATION](_utils_format_.md#const-near_nomination). Effectively this divides given amount by [NEAR_NOMINATION](_utils_format_.md#const-near_nomination). @@ -91,7 +91,7 @@ ___ ▸ **formatWithCommas**(`value`: string): *string* -*Defined in [src.ts/utils/format.ts:70](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L70)* +*Defined in [src.ts/utils/format.ts:70](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L70)* **Parameters:** @@ -107,7 +107,7 @@ ___ ▸ **parseNearAmount**(`amt?`: string): *string | null* -*Defined in [src.ts/utils/format.ts:51](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L51)* +*Defined in [src.ts/utils/format.ts:51](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L51)* Convert human readable NEAR amount to internal indivisible units. Effectively this multiplies given amount by [NEAR_NOMINATION](_utils_format_.md#const-near_nomination). @@ -126,7 +126,7 @@ ___ ▸ **trimTrailingZeroes**(`value`: string): *string* -*Defined in [src.ts/utils/format.ts:66](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/format.ts#L66)* +*Defined in [src.ts/utils/format.ts:66](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/format.ts#L66)* **Parameters:** diff --git a/docs/nearlib/modules/_utils_key_pair_.md b/docs/nearlib/modules/_utils_key_pair_.md index 413d68c1c5..ed2503abb1 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 [src.ts/utils/key_pair.ts:7](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L7)* +*Defined in [src.ts/utils/key_pair.ts:7](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L7)* ## 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 [src.ts/utils/key_pair.ts:19](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L19)* +*Defined in [src.ts/utils/key_pair.ts:19](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L19)* **Parameters:** @@ -59,7 +59,7 @@ ___ ▸ **str_to_key_type**(`keyType`: string): *[KeyType](../enums/_utils_key_pair_.keytype.md)* -*Defined in [src.ts/utils/key_pair.ts:26](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/key_pair.ts#L26)* +*Defined in [src.ts/utils/key_pair.ts:26](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/key_pair.ts#L26)* **Parameters:** diff --git a/docs/nearlib/modules/_utils_serialize_.md b/docs/nearlib/modules/_utils_serialize_.md index 109458a1ed..46180f98d6 100644 --- a/docs/nearlib/modules/_utils_serialize_.md +++ b/docs/nearlib/modules/_utils_serialize_.md @@ -40,7 +40,7 @@ sidebar_label: "utils/serialize" Ƭ **Schema**: *Map‹Function, any›* -*Defined in [src.ts/utils/serialize.ts:24](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L24)* +*Defined in [src.ts/utils/serialize.ts:24](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L24)* ## Variables @@ -48,7 +48,7 @@ sidebar_label: "utils/serialize" • **INITIAL_LENGTH**: *1024* = 1024 -*Defined in [src.ts/utils/serialize.ts:22](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L22)* +*Defined in [src.ts/utils/serialize.ts:22](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L22)* ___ @@ -56,7 +56,7 @@ ___ • **TextDecoder**: *any* = (typeof (global as any).TextDecoder !== 'function') ? encoding.TextDecoder : (global as any).TextDecoder -*Defined in [src.ts/utils/serialize.ts:8](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L8)* +*Defined in [src.ts/utils/serialize.ts:8](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L8)* ___ @@ -64,7 +64,7 @@ ___ • **textDecoder**: *any* = new TextDecoder('utf-8', { fatal: true }) -*Defined in [src.ts/utils/serialize.ts:9](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L9)* +*Defined in [src.ts/utils/serialize.ts:9](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L9)* ## Functions @@ -72,7 +72,7 @@ ___ ▸ **base_decode**(`value`: string): *Uint8Array* -*Defined in [src.ts/utils/serialize.ts:18](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L18)* +*Defined in [src.ts/utils/serialize.ts:18](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L18)* **Parameters:** @@ -88,7 +88,7 @@ ___ ▸ **base_encode**(`value`: Uint8Array | string): *string* -*Defined in [src.ts/utils/serialize.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L11)* +*Defined in [src.ts/utils/serialize.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L11)* **Parameters:** @@ -104,7 +104,7 @@ ___ ▸ **deserialize**(`schema`: [Schema](_utils_serialize_.md#schema), `classType`: any, `buffer`: Buffer): *any* -*Defined in [src.ts/utils/serialize.ts:321](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L321)* +*Defined in [src.ts/utils/serialize.ts:321](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L321)* **Parameters:** @@ -122,7 +122,7 @@ ___ ▸ **deserializeField**(`schema`: [Schema](_utils_serialize_.md#schema), `fieldName`: string, `fieldType`: any, `reader`: [BinaryReader](../classes/_utils_serialize_.binaryreader.md)): *any* -*Defined in [src.ts/utils/serialize.ts:270](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L270)* +*Defined in [src.ts/utils/serialize.ts:270](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L270)* **Parameters:** @@ -141,7 +141,7 @@ ___ ▸ **deserializeStruct**(`schema`: [Schema](_utils_serialize_.md#schema), `classType`: any, `reader`: [BinaryReader](../classes/_utils_serialize_.binaryreader.md)): *any* -*Defined in [src.ts/utils/serialize.ts:293](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L293)* +*Defined in [src.ts/utils/serialize.ts:293](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L293)* **Parameters:** @@ -159,7 +159,7 @@ ___ ▸ **handlingRangeError**(`target`: any, `propertyKey`: string, `propertyDescriptor`: PropertyDescriptor): *void* -*Defined in [src.ts/utils/serialize.ts:111](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L111)* +*Defined in [src.ts/utils/serialize.ts:111](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L111)* **Parameters:** @@ -177,7 +177,7 @@ ___ ▸ **serialize**(`schema`: [Schema](_utils_serialize_.md#schema), `obj`: any): *Uint8Array* -*Defined in [src.ts/utils/serialize.ts:264](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L264)* +*Defined in [src.ts/utils/serialize.ts:264](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L264)* **Parameters:** @@ -194,7 +194,7 @@ ___ ▸ **serializeField**(`schema`: [Schema](_utils_serialize_.md#schema), `fieldName`: string, `value`: any, `fieldType`: any, `writer`: any): *void* -*Defined in [src.ts/utils/serialize.ts:200](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L200)* +*Defined in [src.ts/utils/serialize.ts:200](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L200)* **Parameters:** @@ -214,7 +214,7 @@ ___ ▸ **serializeStruct**(`schema`: [Schema](_utils_serialize_.md#schema), `obj`: any, `writer`: any): *void* -*Defined in [src.ts/utils/serialize.ts:238](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/serialize.ts#L238)* +*Defined in [src.ts/utils/serialize.ts:238](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/serialize.ts#L238)* **Parameters:** diff --git a/docs/nearlib/modules/_utils_web_.md b/docs/nearlib/modules/_utils_web_.md index 3ed04a39e5..8aee186690 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 [src.ts/utils/web.ts:15](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L15)* +*Defined in [src.ts/utils/web.ts:15](https://github.com/nearprotocol/nearlib/blob/d578981/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 [src.ts/utils/web.ts:39](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/utils/web.ts#L39)* +*Defined in [src.ts/utils/web.ts:39](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/utils/web.ts#L39)* **Parameters:** diff --git a/docs/nearlib/modules/_wallet_account_.md b/docs/nearlib/modules/_wallet_account_.md index bb7294dd3b..61899a73dc 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 [src.ts/wallet-account.ts:10](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L10)* +*Defined in [src.ts/wallet-account.ts:10](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L10)* ___ @@ -30,7 +30,7 @@ ___ • **LOGIN_WALLET_URL_SUFFIX**: *"/login/"* = "/login/" -*Defined in [src.ts/wallet-account.ts:8](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L8)* +*Defined in [src.ts/wallet-account.ts:8](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L8)* ___ @@ -38,4 +38,4 @@ ___ • **PENDING_ACCESS_KEY_PREFIX**: *"pending_key"* = "pending_key" -*Defined in [src.ts/wallet-account.ts:11](https://github.com/nearprotocol/nearlib/blob/06c3a45/src.ts/wallet-account.ts#L11)* +*Defined in [src.ts/wallet-account.ts:11](https://github.com/nearprotocol/nearlib/blob/d578981/src.ts/wallet-account.ts#L11)* diff --git a/lib/utils/format.d.ts b/lib/utils/format.d.ts index 2aeaf5bcf9..2e17f8e00c 100644 --- a/lib/utils/format.d.ts +++ b/lib/utils/format.d.ts @@ -1,7 +1,7 @@ /** * Exponent for calculating how many indivisible units are there in one NEAR. See {@link NEAR_NOMINATION}. */ -export declare const NEAR_NOMINATION_EXP = 18; +export declare const NEAR_NOMINATION_EXP = 24; /** * Number of indivisible units in one NEAR. Derived from {@link NEAR_NOMINATION_EXP}. */ diff --git a/lib/utils/format.js b/lib/utils/format.js index 3162324297..1bf4b2671a 100644 --- a/lib/utils/format.js +++ b/lib/utils/format.js @@ -4,7 +4,7 @@ const BN = require('bn.js'); /** * Exponent for calculating how many indivisible units are there in one NEAR. See {@link NEAR_NOMINATION}. */ -exports.NEAR_NOMINATION_EXP = 18; +exports.NEAR_NOMINATION_EXP = 24; /** * Number of indivisible units in one NEAR. Derived from {@link NEAR_NOMINATION_EXP}. */ diff --git a/src.ts/utils/format.ts b/src.ts/utils/format.ts index b8426b44ad..b5004b4dd3 100644 --- a/src.ts/utils/format.ts +++ b/src.ts/utils/format.ts @@ -3,7 +3,7 @@ const BN = require ('bn.js'); /** * Exponent for calculating how many indivisible units are there in one NEAR. See {@link NEAR_NOMINATION}. */ -export const NEAR_NOMINATION_EXP = 18; +export const NEAR_NOMINATION_EXP = 24; /** * Number of indivisible units in one NEAR. Derived from {@link NEAR_NOMINATION_EXP}. diff --git a/test/utils/format.test.js b/test/utils/format.test.js index 2faa03537c..bc893c39f6 100644 --- a/test/utils/format.test.js +++ b/test/utils/format.test.js @@ -4,37 +4,33 @@ const nearlib = require('../../lib/index'); jasmine.DEFAULT_TIMEOUT_INTERVAL = 50000; -xtest('formatting yoctonear amounts', async() => { +test('formatting yoctonear amounts', async() => { expect(nearlib.utils.format.formatNearAmount('8999999999837087887')).toEqual('0.000008999999999837087887'); expect(nearlib.utils.format.formatNearAmount('8099099999837087887')).toEqual('0.000008099099999837087887'); expect(nearlib.utils.format.formatNearAmount('8099099999837087887')).not.toEqual('0.000008099099999837087888'); expect(nearlib.utils.format.formatNearAmount('999998999999999837087887000')).toEqual('999.998999999999837087887'); expect(nearlib.utils.format.formatNearAmount('1'+'0'.repeat(13))).toEqual('0.00000000001'); expect(nearlib.utils.format.formatNearAmount('9999989999999998370878870000000')).toEqual('9,999,989.99999999837087887'); -}); - -test('formatting attonear amounts', async() => { - // These tests are in atto near right now. Need to update when the constant changes. - expect(nearlib.utils.format.formatNearAmount('000000000000000000')).toEqual('0'); - expect(nearlib.utils.format.formatNearAmount('1000000000000000000')).toEqual('1'); - expect(nearlib.utils.format.formatNearAmount('999999999999999999')).toEqual('0.999999999999999999'); - expect(nearlib.utils.format.formatNearAmount('999999999999999999', 10)).toEqual('1'); - expect(nearlib.utils.format.formatNearAmount('1003000000000000000', 3)).toEqual('1.003'); - expect(nearlib.utils.format.formatNearAmount('3000000000000000', 3)).toEqual('0.003'); - expect(nearlib.utils.format.formatNearAmount('3000000000000000', 4)).toEqual('0.003'); - expect(nearlib.utils.format.formatNearAmount('3500000000000000', 3)).toEqual('0.004'); - expect(nearlib.utils.format.formatNearAmount('03500000000000000', 3)).toEqual('0.004'); - expect(nearlib.utils.format.formatNearAmount('10000000999999997410')).toEqual('10.00000099999999741'); - expect(nearlib.utils.format.formatNearAmount('10100000999999997410')).toEqual('10.10000099999999741'); - expect(nearlib.utils.format.formatNearAmount('10040000999999997410', 2)).toEqual('10.04'); - expect(nearlib.utils.format.formatNearAmount('10999000999999997410', 2)).toEqual('11'); - expect(nearlib.utils.format.formatNearAmount('1000000100000000000000000')).toEqual('1,000,000.1'); - expect(nearlib.utils.format.formatNearAmount('1000100000000000000000000')).toEqual('1,000,100'); - expect(nearlib.utils.format.formatNearAmount('910000000000000000', 0)).toEqual('1'); + expect(nearlib.utils.format.formatNearAmount('000000000000000000000000')).toEqual('0'); + expect(nearlib.utils.format.formatNearAmount('1000000000000000000000000')).toEqual('1'); + expect(nearlib.utils.format.formatNearAmount('999999999999999999000000')).toEqual('0.999999999999999999'); + expect(nearlib.utils.format.formatNearAmount('999999999999999999000000', 10)).toEqual('1'); + expect(nearlib.utils.format.formatNearAmount('1003000000000000000000000', 3)).toEqual('1.003'); + expect(nearlib.utils.format.formatNearAmount('3000000000000000000000', 3)).toEqual('0.003'); + expect(nearlib.utils.format.formatNearAmount('3000000000000000000000', 4)).toEqual('0.003'); + expect(nearlib.utils.format.formatNearAmount('3500000000000000000000', 3)).toEqual('0.004'); + expect(nearlib.utils.format.formatNearAmount('03500000000000000000000', 3)).toEqual('0.004'); + expect(nearlib.utils.format.formatNearAmount('10000000999999997410000000')).toEqual('10.00000099999999741'); + expect(nearlib.utils.format.formatNearAmount('10100000999999997410000000')).toEqual('10.10000099999999741'); + expect(nearlib.utils.format.formatNearAmount('10040000999999997410000000', 2)).toEqual('10.04'); + expect(nearlib.utils.format.formatNearAmount('10999000999999997410000000', 2)).toEqual('11'); + expect(nearlib.utils.format.formatNearAmount('1000000100000000000000000000000')).toEqual('1,000,000.1'); + expect(nearlib.utils.format.formatNearAmount('1000100000000000000000000000000')).toEqual('1,000,100'); + expect(nearlib.utils.format.formatNearAmount('910000000000000000000000', 0)).toEqual('1'); }); // TODO: Renable after moving to yoctonear -xtest('converting near to account balance units', async() => { +test('converting near to account balance units', async() => { expect(nearlib.utils.format.parseNearAmount(null)).toEqual(null); expect(nearlib.utils.format.parseNearAmount('5.3')).toEqual('5300000000000000000000000'); expect(nearlib.utils.format.parseNearAmount('5')).toEqual('5000000000000000000000000');