near-api-js 4.0.2 → 4.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser-exports.js +0 -1
- package/dist/near-api-js.js +21663 -42495
- package/dist/near-api-js.min.js +69 -2643
- package/lib/account.d.ts +1 -0
- package/lib/account.d.ts.map +1 -0
- package/lib/account.js +1 -5
- package/lib/account_creator.d.ts +1 -0
- package/lib/account_creator.d.ts.map +1 -0
- package/lib/account_creator.js +1 -7
- package/lib/account_multisig.d.ts +1 -0
- package/lib/account_multisig.d.ts.map +1 -0
- package/lib/account_multisig.js +1 -14
- package/lib/browser-connect.d.ts +1 -0
- package/lib/browser-connect.d.ts.map +1 -0
- package/lib/browser-connect.js +3 -18
- package/lib/browser-index.d.ts +1 -0
- package/lib/browser-index.d.ts.map +1 -0
- package/lib/browser-index.js +3 -32
- package/lib/common-index.d.ts +1 -0
- package/lib/common-index.d.ts.map +1 -0
- package/lib/common-index.js +14 -54
- package/lib/connect.d.ts +1 -0
- package/lib/connect.d.ts.map +1 -0
- package/lib/connect.js +33 -49
- package/lib/connection.d.ts +1 -0
- package/lib/connection.d.ts.map +1 -0
- package/lib/connection.js +1 -5
- package/lib/constants.d.ts +1 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +1 -5
- package/lib/contract.d.ts +1 -0
- package/lib/contract.d.ts.map +1 -0
- package/lib/contract.js +1 -5
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +4 -33
- package/lib/key_stores/browser-index.d.ts +1 -0
- package/lib/key_stores/browser-index.d.ts.map +1 -0
- package/lib/key_stores/browser-index.js +5 -11
- package/lib/key_stores/browser_local_storage_key_store.d.ts +1 -0
- package/lib/key_stores/browser_local_storage_key_store.d.ts.map +1 -0
- package/lib/key_stores/browser_local_storage_key_store.js +1 -5
- package/lib/key_stores/in_memory_key_store.d.ts +1 -0
- package/lib/key_stores/in_memory_key_store.d.ts.map +1 -0
- package/lib/key_stores/in_memory_key_store.js +1 -5
- package/lib/key_stores/index.d.ts +1 -0
- package/lib/key_stores/index.d.ts.map +1 -0
- package/lib/key_stores/index.js +6 -13
- package/lib/key_stores/keystore.d.ts +1 -0
- package/lib/key_stores/keystore.d.ts.map +1 -0
- package/lib/key_stores/keystore.js +1 -5
- package/lib/key_stores/merge_key_store.d.ts +1 -0
- package/lib/key_stores/merge_key_store.d.ts.map +1 -0
- package/lib/key_stores/merge_key_store.js +1 -5
- package/lib/key_stores/unencrypted_file_system_keystore.d.ts +1 -0
- package/lib/key_stores/unencrypted_file_system_keystore.d.ts.map +1 -0
- package/lib/key_stores/unencrypted_file_system_keystore.js +1 -6
- package/lib/near.d.ts +1 -0
- package/lib/near.d.ts.map +1 -0
- package/lib/near.js +1 -5
- package/lib/providers/failover-rpc-provider.d.ts +1 -0
- package/lib/providers/failover-rpc-provider.d.ts.map +1 -0
- package/lib/providers/failover-rpc-provider.js +1 -5
- package/lib/providers/index.d.ts +1 -0
- package/lib/providers/index.d.ts.map +1 -0
- package/lib/providers/index.js +4 -13
- package/lib/providers/json-rpc-provider.d.ts +1 -0
- package/lib/providers/json-rpc-provider.d.ts.map +1 -0
- package/lib/providers/json-rpc-provider.js +2 -8
- package/lib/providers/provider.d.ts +1 -0
- package/lib/providers/provider.d.ts.map +1 -0
- package/lib/providers/provider.js +3 -11
- package/lib/signer.d.ts +1 -0
- package/lib/signer.d.ts.map +1 -0
- package/lib/signer.js +1 -6
- package/lib/transaction.d.ts +2 -1
- package/lib/transaction.d.ts.map +1 -0
- package/lib/transaction.js +12 -47
- package/lib/utils/enums.d.ts +2 -6
- package/lib/utils/enums.d.ts.map +1 -0
- package/lib/utils/enums.js +1 -18
- package/lib/utils/errors.d.ts +1 -0
- package/lib/utils/errors.d.ts.map +1 -0
- package/lib/utils/errors.js +3 -15
- package/lib/utils/format.d.ts +1 -0
- package/lib/utils/format.d.ts.map +1 -0
- package/lib/utils/format.js +1 -8
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +9 -46
- package/lib/utils/key_pair.d.ts +1 -0
- package/lib/utils/key_pair.d.ts.map +1 -0
- package/lib/utils/key_pair.js +1 -8
- package/lib/utils/logger.d.ts +1 -0
- package/lib/utils/logger.d.ts.map +1 -0
- package/lib/utils/logger.js +1 -5
- package/lib/utils/rpc_errors.d.ts +1 -0
- package/lib/utils/rpc_errors.d.ts.map +1 -0
- package/lib/utils/rpc_errors.js +1 -9
- package/lib/utils/serialize.d.ts +1 -0
- package/lib/utils/serialize.d.ts.map +1 -0
- package/lib/utils/serialize.js +2 -9
- package/lib/validators.d.ts +1 -0
- package/lib/validators.d.ts.map +1 -0
- package/lib/validators.js +1 -6
- package/lib/wallet-account.d.ts +1 -0
- package/lib/wallet-account.d.ts.map +1 -0
- package/lib/wallet-account.js +1 -6
- package/package.json +28 -23
- package/lib/utils/web.d.ts +0 -1
- package/lib/utils/web.js +0 -5
package/lib/near.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Near = void 0;
|
|
4
|
-
var wallet_account_1 = require("@near-js/wallet-account");
|
|
5
|
-
Object.defineProperty(exports, "Near", { enumerable: true, get: function () { return wallet_account_1.Near; } });
|
|
1
|
+
export { Near } from '@near-js/wallet-account';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failover-rpc-provider.d.ts","sourceRoot":"","sources":["../../src/providers/failover-rpc-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FailoverRpcProvider = void 0;
|
|
4
|
-
var providers_1 = require("@near-js/providers");
|
|
5
|
-
Object.defineProperty(exports, "FailoverRpcProvider", { enumerable: true, get: function () { return providers_1.FailoverRpcProvider; } });
|
|
1
|
+
export { FailoverRpcProvider } from '@near-js/providers';
|
package/lib/providers/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ import { Provider, FinalExecutionOutcome, ExecutionOutcomeWithId, getTransaction
|
|
|
3
3
|
import { JsonRpcProvider, TypedError, ErrorContext } from './json-rpc-provider';
|
|
4
4
|
import { FailoverRpcProvider } from './failover-rpc-provider';
|
|
5
5
|
export { Provider, FinalExecutionOutcome, JsonRpcProvider, FailoverRpcProvider, ExecutionOutcomeWithId, FinalExecutionStatus, FinalExecutionStatusBasic, getTransactionLastResult, TypedError, ErrorContext };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AAEtB,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAChK,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EACH,QAAQ,EACR,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,UAAU,EACV,YAAY,EACf,CAAC"}
|
package/lib/providers/index.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/** @hidden @module */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "getTransactionLastResult", { enumerable: true, get: function () { return provider_1.getTransactionLastResult; } });
|
|
8
|
-
Object.defineProperty(exports, "FinalExecutionStatusBasic", { enumerable: true, get: function () { return provider_1.FinalExecutionStatusBasic; } });
|
|
9
|
-
const json_rpc_provider_1 = require("./json-rpc-provider");
|
|
10
|
-
Object.defineProperty(exports, "JsonRpcProvider", { enumerable: true, get: function () { return json_rpc_provider_1.JsonRpcProvider; } });
|
|
11
|
-
Object.defineProperty(exports, "TypedError", { enumerable: true, get: function () { return json_rpc_provider_1.TypedError; } });
|
|
12
|
-
Object.defineProperty(exports, "ErrorContext", { enumerable: true, get: function () { return json_rpc_provider_1.ErrorContext; } });
|
|
13
|
-
const failover_rpc_provider_1 = require("./failover-rpc-provider");
|
|
14
|
-
Object.defineProperty(exports, "FailoverRpcProvider", { enumerable: true, get: function () { return failover_rpc_provider_1.FailoverRpcProvider; } });
|
|
2
|
+
import { Provider, getTransactionLastResult, FinalExecutionStatusBasic } from './provider';
|
|
3
|
+
import { JsonRpcProvider, TypedError, ErrorContext } from './json-rpc-provider';
|
|
4
|
+
import { FailoverRpcProvider } from './failover-rpc-provider';
|
|
5
|
+
export { Provider, JsonRpcProvider, FailoverRpcProvider, FinalExecutionStatusBasic, getTransactionLastResult, TypedError, ErrorContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-rpc-provider.d.ts","sourceRoot":"","sources":["../../src/providers/json-rpc-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.JsonRpcProvider = exports.TypedError = exports.ErrorContext = void 0;
|
|
4
|
-
var types_1 = require("@near-js/types");
|
|
5
|
-
Object.defineProperty(exports, "ErrorContext", { enumerable: true, get: function () { return types_1.ErrorContext; } });
|
|
6
|
-
Object.defineProperty(exports, "TypedError", { enumerable: true, get: function () { return types_1.TypedError; } });
|
|
7
|
-
var providers_1 = require("@near-js/providers");
|
|
8
|
-
Object.defineProperty(exports, "JsonRpcProvider", { enumerable: true, get: function () { return providers_1.JsonRpcProvider; } });
|
|
1
|
+
export { ErrorContext, TypedError } from '@near-js/types';
|
|
2
|
+
export { JsonRpcProvider } from '@near-js/providers';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { getTransactionLastResult } from '@near-js/utils';
|
|
2
2
|
export { Provider } from '@near-js/providers';
|
|
3
3
|
export { IdType, LightClientBlockLiteView, LightClientProof, LightClientProofRequest, NextLightClientBlockRequest, NextLightClientBlockResponse, AccessKeyWithPublicKey, BlockHash, BlockChange, BlockChangeResult, BlockHeader, BlockHeaderInnerLiteView, BlockHeight, BlockId, BlockReference, BlockResult, BlockShardId, ChangeResult, Chunk, ChunkHash, ChunkHeader, ChunkId, ChunkResult, Finality, GasPrice, MerkleNode, MerklePath, NearProtocolConfig, NearProtocolRuntimeConfig, NodeStatusResult, ShardId, SyncInfo, TotalWeight, ProviderTransaction as Transaction, CallFunctionRequest, RpcQueryRequest, ViewAccessKeyListRequest, ViewAccessKeyRequest, ViewAccountRequest, ViewCodeRequest, ViewStateRequest, AccessKeyInfoView, AccessKeyList, AccessKeyView, AccessKeyViewRaw, AccountView, CodeResult, ContractCodeView, ExecutionError, ExecutionOutcome, ExecutionOutcomeWithId, ExecutionOutcomeWithIdView, ExecutionStatus, ExecutionStatusBasic, FinalExecutionOutcome, FinalExecutionStatus, FinalExecutionStatusBasic, FunctionCallPermissionView, QueryResponseKind, ViewStateResult, CurrentEpochValidatorInfo, EpochValidatorInfo, NextEpochValidatorInfo, ValidatorStakeView, } from '@near-js/types';
|
|
4
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/providers/provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EACH,MAAM,EACN,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAE5B,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,WAAW,EACX,OAAO,EACP,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,KAAK,EACL,SAAS,EACT,WAAW,EACX,OAAO,EACP,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,WAAW,EACX,mBAAmB,IAAI,WAAW,EAElC,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAEhB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EAEf,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,GACrB,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var utils_1 = require("@near-js/utils");
|
|
5
|
-
Object.defineProperty(exports, "getTransactionLastResult", { enumerable: true, get: function () { return utils_1.getTransactionLastResult; } });
|
|
6
|
-
var providers_1 = require("@near-js/providers");
|
|
7
|
-
Object.defineProperty(exports, "Provider", { enumerable: true, get: function () { return providers_1.Provider; } });
|
|
8
|
-
var types_1 = require("@near-js/types");
|
|
9
|
-
Object.defineProperty(exports, "IdType", { enumerable: true, get: function () { return types_1.IdType; } });
|
|
10
|
-
Object.defineProperty(exports, "ExecutionStatusBasic", { enumerable: true, get: function () { return types_1.ExecutionStatusBasic; } });
|
|
11
|
-
Object.defineProperty(exports, "FinalExecutionStatusBasic", { enumerable: true, get: function () { return types_1.FinalExecutionStatusBasic; } });
|
|
1
|
+
export { getTransactionLastResult } from '@near-js/utils';
|
|
2
|
+
export { Provider } from '@near-js/providers';
|
|
3
|
+
export { IdType, ExecutionStatusBasic, FinalExecutionStatusBasic, } from '@near-js/types';
|
package/lib/signer.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC"}
|
package/lib/signer.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Signer = exports.InMemorySigner = void 0;
|
|
4
|
-
var signers_1 = require("@near-js/signers");
|
|
5
|
-
Object.defineProperty(exports, "InMemorySigner", { enumerable: true, get: function () { return signers_1.InMemorySigner; } });
|
|
6
|
-
Object.defineProperty(exports, "Signer", { enumerable: true, get: function () { return signers_1.Signer; } });
|
|
1
|
+
export { InMemorySigner, Signer } from '@near-js/signers';
|
package/lib/transaction.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { stringifyJsonOrBytes, Action, AccessKey, AccessKeyPermission, AddKey, CreateAccount, DeleteAccount, DeleteKey, DeployContract, FullAccessPermission, FunctionCall, FunctionCallPermission, Stake, Transfer, SCHEMA, createTransaction, signTransaction, Signature, SignedTransaction, Transaction, encodeSignedDelegate, encodeDelegateAction, } from '@near-js/transactions';
|
|
1
|
+
export { stringifyJsonOrBytes, Action, AccessKey, AccessKeyPermission, AddKey, CreateAccount, DeleteAccount, DeleteKey, DeployContract, FullAccessPermission, FunctionCall, FunctionCallPermission, Stake, Transfer, SCHEMA, createTransaction, signTransaction, Signature, SignedTransaction, Transaction, encodeSignedDelegate, encodeDelegateAction, encodeTransaction } from '@near-js/transactions';
|
|
2
2
|
import { PublicKey } from '@near-js/crypto';
|
|
3
3
|
import { AccessKey, stringifyJsonOrBytes } from '@near-js/transactions';
|
|
4
4
|
export declare const addKey: (publicKey: PublicKey, accessKey: AccessKey) => import("@near-js/transactions").Action;
|
|
@@ -11,3 +11,4 @@ export declare const functionCall: (methodName: string, args: object | Uint8Arra
|
|
|
11
11
|
export declare const functionCallAccessKey: (receiverId: string, methodNames: string[], allowance?: bigint) => AccessKey;
|
|
12
12
|
export declare const stake: (stake: bigint, publicKey: PublicKey) => import("@near-js/transactions").Action;
|
|
13
13
|
export declare const transfer: (deposit: bigint) => import("@near-js/transactions").Action;
|
|
14
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,oBAAoB,EACpB,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,MAAM,EACN,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACtB,KAAK,EACL,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAkB,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAExF,eAAO,MAAM,MAAM,cAAe,SAAS,aAAa,SAAS,2CAAgD,CAAC;AAClH,eAAO,MAAM,aAAa,8CAAuC,CAAC;AAClE,eAAO,MAAM,aAAa,kBAAmB,MAAM,2CAAgD,CAAC;AACpG,eAAO,MAAM,SAAS,cAAe,SAAS,2CAAwC,CAAC;AACvF,eAAO,MAAM,cAAc,SAAU,UAAU,2CAAwC,CAAC;AACxF,eAAO,MAAM,aAAa,iBAAuC,CAAC;AAClE,eAAO,MAAM,YAAY,eAAgB,MAAM,QAAQ,MAAM,GAAG,UAAU,OAAO,MAAM,WAAW,MAAM,cAAc,2BAA2B,eAAe,OAAO,2CAAuF,CAAC;AAC/P,eAAO,MAAM,qBAAqB,eAAgB,MAAM,eAAe,MAAM,EAAE,cAAc,MAAM,cAA6E,CAAC;AACjL,eAAO,MAAM,KAAK,UAAW,MAAM,aAAa,SAAS,2CAA2C,CAAC;AACrG,eAAO,MAAM,QAAQ,YAAa,MAAM,2CAAqC,CAAC"}
|
package/lib/transaction.js
CHANGED
|
@@ -1,47 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, "DeployContract", { enumerable: true, get: function () { return transactions_1.DeployContract; } });
|
|
14
|
-
Object.defineProperty(exports, "FullAccessPermission", { enumerable: true, get: function () { return transactions_1.FullAccessPermission; } });
|
|
15
|
-
Object.defineProperty(exports, "FunctionCall", { enumerable: true, get: function () { return transactions_1.FunctionCall; } });
|
|
16
|
-
Object.defineProperty(exports, "FunctionCallPermission", { enumerable: true, get: function () { return transactions_1.FunctionCallPermission; } });
|
|
17
|
-
Object.defineProperty(exports, "Stake", { enumerable: true, get: function () { return transactions_1.Stake; } });
|
|
18
|
-
Object.defineProperty(exports, "Transfer", { enumerable: true, get: function () { return transactions_1.Transfer; } });
|
|
19
|
-
Object.defineProperty(exports, "SCHEMA", { enumerable: true, get: function () { return transactions_1.SCHEMA; } });
|
|
20
|
-
Object.defineProperty(exports, "createTransaction", { enumerable: true, get: function () { return transactions_1.createTransaction; } });
|
|
21
|
-
Object.defineProperty(exports, "signTransaction", { enumerable: true, get: function () { return transactions_1.signTransaction; } });
|
|
22
|
-
Object.defineProperty(exports, "Signature", { enumerable: true, get: function () { return transactions_1.Signature; } });
|
|
23
|
-
Object.defineProperty(exports, "SignedTransaction", { enumerable: true, get: function () { return transactions_1.SignedTransaction; } });
|
|
24
|
-
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return transactions_1.Transaction; } });
|
|
25
|
-
Object.defineProperty(exports, "encodeSignedDelegate", { enumerable: true, get: function () { return transactions_1.encodeSignedDelegate; } });
|
|
26
|
-
Object.defineProperty(exports, "encodeDelegateAction", { enumerable: true, get: function () { return transactions_1.encodeDelegateAction; } });
|
|
27
|
-
const transactions_2 = require("@near-js/transactions");
|
|
28
|
-
const addKey = (publicKey, accessKey) => transactions_2.actionCreators.addKey(publicKey, accessKey);
|
|
29
|
-
exports.addKey = addKey;
|
|
30
|
-
const createAccount = () => transactions_2.actionCreators.createAccount();
|
|
31
|
-
exports.createAccount = createAccount;
|
|
32
|
-
const deleteAccount = (beneficiaryId) => transactions_2.actionCreators.deleteAccount(beneficiaryId);
|
|
33
|
-
exports.deleteAccount = deleteAccount;
|
|
34
|
-
const deleteKey = (publicKey) => transactions_2.actionCreators.deleteKey(publicKey);
|
|
35
|
-
exports.deleteKey = deleteKey;
|
|
36
|
-
const deployContract = (code) => transactions_2.actionCreators.deployContract(code);
|
|
37
|
-
exports.deployContract = deployContract;
|
|
38
|
-
const fullAccessKey = () => transactions_2.actionCreators.fullAccessKey();
|
|
39
|
-
exports.fullAccessKey = fullAccessKey;
|
|
40
|
-
const functionCall = (methodName, args, gas, deposit, stringify, jsContract) => transactions_2.actionCreators.functionCall(methodName, args, gas, deposit, stringify, jsContract);
|
|
41
|
-
exports.functionCall = functionCall;
|
|
42
|
-
const functionCallAccessKey = (receiverId, methodNames, allowance) => transactions_2.actionCreators.functionCallAccessKey(receiverId, methodNames, allowance);
|
|
43
|
-
exports.functionCallAccessKey = functionCallAccessKey;
|
|
44
|
-
const stake = (stake, publicKey) => transactions_2.actionCreators.stake(stake, publicKey);
|
|
45
|
-
exports.stake = stake;
|
|
46
|
-
const transfer = (deposit) => transactions_2.actionCreators.transfer(deposit);
|
|
47
|
-
exports.transfer = transfer;
|
|
1
|
+
export { stringifyJsonOrBytes, Action, AccessKey, AccessKeyPermission, AddKey, CreateAccount, DeleteAccount, DeleteKey, DeployContract, FullAccessPermission, FunctionCall, FunctionCallPermission, Stake, Transfer, SCHEMA, createTransaction, signTransaction, Signature, SignedTransaction, Transaction, encodeSignedDelegate, encodeDelegateAction, encodeTransaction } from '@near-js/transactions';
|
|
2
|
+
import { actionCreators } from '@near-js/transactions';
|
|
3
|
+
export const addKey = (publicKey, accessKey) => actionCreators.addKey(publicKey, accessKey);
|
|
4
|
+
export const createAccount = () => actionCreators.createAccount();
|
|
5
|
+
export const deleteAccount = (beneficiaryId) => actionCreators.deleteAccount(beneficiaryId);
|
|
6
|
+
export const deleteKey = (publicKey) => actionCreators.deleteKey(publicKey);
|
|
7
|
+
export const deployContract = (code) => actionCreators.deployContract(code);
|
|
8
|
+
export const fullAccessKey = () => actionCreators.fullAccessKey();
|
|
9
|
+
export const functionCall = (methodName, args, gas, deposit, stringify, jsContract) => actionCreators.functionCall(methodName, args, gas, deposit, stringify, jsContract);
|
|
10
|
+
export const functionCallAccessKey = (receiverId, methodNames, allowance) => actionCreators.functionCallAccessKey(receiverId, methodNames, allowance);
|
|
11
|
+
export const stake = (stake, publicKey) => actionCreators.stake(stake, publicKey);
|
|
12
|
+
export const transfer = (deposit) => actionCreators.transfer(deposit);
|
package/lib/utils/enums.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/utils/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC"}
|
package/lib/utils/enums.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Enum = exports.Assignable = void 0;
|
|
4
|
-
var types_1 = require("@near-js/types");
|
|
5
|
-
Object.defineProperty(exports, "Assignable", { enumerable: true, get: function () { return types_1.Assignable; } });
|
|
6
|
-
/** @hidden @module */
|
|
7
|
-
class Enum {
|
|
8
|
-
constructor(properties) {
|
|
9
|
-
if (Object.keys(properties).length !== 1) {
|
|
10
|
-
throw new Error('Enum can only take single value');
|
|
11
|
-
}
|
|
12
|
-
Object.keys(properties).map((key) => {
|
|
13
|
-
this[key] = properties[key];
|
|
14
|
-
this.enum = key;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.Enum = Enum;
|
|
1
|
+
export { Enum } from '@near-js/types';
|
package/lib/utils/errors.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ArgumentSchemaError, ConflictingOptions, UnknownArgumentError, UnsupportedSerializationError, } from '@near-js/accounts';
|
|
2
2
|
export { ArgumentTypeError, ErrorContext, PositionalArgsError, TypedError, } from '@near-js/types';
|
|
3
3
|
export { logWarning } from '@near-js/utils';
|
|
4
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,GAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,UAAU,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
package/lib/utils/errors.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var accounts_1 = require("@near-js/accounts");
|
|
5
|
-
Object.defineProperty(exports, "ArgumentSchemaError", { enumerable: true, get: function () { return accounts_1.ArgumentSchemaError; } });
|
|
6
|
-
Object.defineProperty(exports, "ConflictingOptions", { enumerable: true, get: function () { return accounts_1.ConflictingOptions; } });
|
|
7
|
-
Object.defineProperty(exports, "UnknownArgumentError", { enumerable: true, get: function () { return accounts_1.UnknownArgumentError; } });
|
|
8
|
-
Object.defineProperty(exports, "UnsupportedSerializationError", { enumerable: true, get: function () { return accounts_1.UnsupportedSerializationError; } });
|
|
9
|
-
var types_1 = require("@near-js/types");
|
|
10
|
-
Object.defineProperty(exports, "ArgumentTypeError", { enumerable: true, get: function () { return types_1.ArgumentTypeError; } });
|
|
11
|
-
Object.defineProperty(exports, "ErrorContext", { enumerable: true, get: function () { return types_1.ErrorContext; } });
|
|
12
|
-
Object.defineProperty(exports, "PositionalArgsError", { enumerable: true, get: function () { return types_1.PositionalArgsError; } });
|
|
13
|
-
Object.defineProperty(exports, "TypedError", { enumerable: true, get: function () { return types_1.TypedError; } });
|
|
14
|
-
var utils_1 = require("@near-js/utils");
|
|
15
|
-
Object.defineProperty(exports, "logWarning", { enumerable: true, get: function () { return utils_1.logWarning; } });
|
|
1
|
+
export { ArgumentSchemaError, ConflictingOptions, UnknownArgumentError, UnsupportedSerializationError, } from '@near-js/accounts';
|
|
2
|
+
export { ArgumentTypeError, ErrorContext, PositionalArgsError, TypedError, } from '@near-js/types';
|
|
3
|
+
export { logWarning } from '@near-js/utils';
|
package/lib/utils/format.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,GAClB,MAAM,gBAAgB,CAAC"}
|
package/lib/utils/format.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseNearAmount = exports.formatNearAmount = exports.NEAR_NOMINATION_EXP = exports.NEAR_NOMINATION = void 0;
|
|
4
|
-
var utils_1 = require("@near-js/utils");
|
|
5
|
-
Object.defineProperty(exports, "NEAR_NOMINATION", { enumerable: true, get: function () { return utils_1.NEAR_NOMINATION; } });
|
|
6
|
-
Object.defineProperty(exports, "NEAR_NOMINATION_EXP", { enumerable: true, get: function () { return utils_1.NEAR_NOMINATION_EXP; } });
|
|
7
|
-
Object.defineProperty(exports, "formatNearAmount", { enumerable: true, get: function () { return utils_1.formatNearAmount; } });
|
|
8
|
-
Object.defineProperty(exports, "parseNearAmount", { enumerable: true, get: function () { return utils_1.parseNearAmount; } });
|
|
1
|
+
export { NEAR_NOMINATION, NEAR_NOMINATION_EXP, formatNearAmount, parseNearAmount, } from '@near-js/utils';
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as key_pair from './key_pair';
|
|
2
2
|
import * as serialize from './serialize';
|
|
3
|
-
import * as web from './web';
|
|
4
3
|
import * as enums from './enums';
|
|
5
4
|
import * as format from './format';
|
|
6
5
|
import * as rpc_errors from './rpc_errors';
|
|
7
6
|
import { PublicKey, KeyPair, KeyPairEd25519 } from './key_pair';
|
|
8
7
|
import { logWarning } from './errors';
|
|
9
8
|
import { Logger } from './logger';
|
|
10
|
-
export { key_pair, serialize,
|
|
9
|
+
export { key_pair, serialize, enums, format, PublicKey, KeyPair, KeyPairEd25519, rpc_errors, logWarning, Logger };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EACH,QAAQ,EACR,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACT,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,EACV,MAAM,EACT,CAAC"}
|
package/lib/utils/index.js
CHANGED
|
@@ -1,46 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Logger = exports.logWarning = exports.rpc_errors = exports.KeyPairEd25519 = exports.KeyPair = exports.PublicKey = exports.format = exports.enums = exports.web = exports.serialize = exports.key_pair = void 0;
|
|
27
|
-
const key_pair = __importStar(require("./key_pair"));
|
|
28
|
-
exports.key_pair = key_pair;
|
|
29
|
-
const serialize = __importStar(require("./serialize"));
|
|
30
|
-
exports.serialize = serialize;
|
|
31
|
-
const web = __importStar(require("./web"));
|
|
32
|
-
exports.web = web;
|
|
33
|
-
const enums = __importStar(require("./enums"));
|
|
34
|
-
exports.enums = enums;
|
|
35
|
-
const format = __importStar(require("./format"));
|
|
36
|
-
exports.format = format;
|
|
37
|
-
const rpc_errors = __importStar(require("./rpc_errors"));
|
|
38
|
-
exports.rpc_errors = rpc_errors;
|
|
39
|
-
const key_pair_1 = require("./key_pair");
|
|
40
|
-
Object.defineProperty(exports, "PublicKey", { enumerable: true, get: function () { return key_pair_1.PublicKey; } });
|
|
41
|
-
Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return key_pair_1.KeyPair; } });
|
|
42
|
-
Object.defineProperty(exports, "KeyPairEd25519", { enumerable: true, get: function () { return key_pair_1.KeyPairEd25519; } });
|
|
43
|
-
const errors_1 = require("./errors");
|
|
44
|
-
Object.defineProperty(exports, "logWarning", { enumerable: true, get: function () { return errors_1.logWarning; } });
|
|
45
|
-
const logger_1 = require("./logger");
|
|
46
|
-
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return logger_1.Logger; } });
|
|
1
|
+
import * as key_pair from './key_pair';
|
|
2
|
+
import * as serialize from './serialize';
|
|
3
|
+
import * as enums from './enums';
|
|
4
|
+
import * as format from './format';
|
|
5
|
+
import * as rpc_errors from './rpc_errors';
|
|
6
|
+
import { PublicKey, KeyPair, KeyPairEd25519 } from './key_pair';
|
|
7
|
+
import { logWarning } from './errors';
|
|
8
|
+
import { Logger } from './logger';
|
|
9
|
+
export { key_pair, serialize, enums, format, PublicKey, KeyPair, KeyPairEd25519, rpc_errors, logWarning, Logger };
|
package/lib/utils/key_pair.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key_pair.d.ts","sourceRoot":"","sources":["../../src/utils/key_pair.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,EACP,cAAc,EACd,OAAO,EACP,SAAS,EACT,SAAS,GACZ,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC"}
|
package/lib/utils/key_pair.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublicKey = exports.KeyType = exports.KeyPairEd25519 = exports.KeyPair = void 0;
|
|
4
|
-
var crypto_1 = require("@near-js/crypto");
|
|
5
|
-
Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return crypto_1.KeyPair; } });
|
|
6
|
-
Object.defineProperty(exports, "KeyPairEd25519", { enumerable: true, get: function () { return crypto_1.KeyPairEd25519; } });
|
|
7
|
-
Object.defineProperty(exports, "KeyType", { enumerable: true, get: function () { return crypto_1.KeyType; } });
|
|
8
|
-
Object.defineProperty(exports, "PublicKey", { enumerable: true, get: function () { return crypto_1.PublicKey; } });
|
|
1
|
+
export { KeyPair, KeyPairEd25519, KeyType, PublicKey, } from '@near-js/crypto';
|
package/lib/utils/logger.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Logger = void 0;
|
|
4
|
-
var utils_1 = require("@near-js/utils");
|
|
5
|
-
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return utils_1.Logger; } });
|
|
1
|
+
export { Logger } from '@near-js/utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc_errors.d.ts","sourceRoot":"","sources":["../../src/utils/rpc_errors.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,4BAA4B,EAC5B,WAAW,GACd,MAAM,gBAAgB,CAAC"}
|
package/lib/utils/rpc_errors.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServerError = exports.getErrorTypeFromErrorMessage = exports.formatError = exports.parseResultError = exports.parseRpcError = void 0;
|
|
4
|
-
var utils_1 = require("@near-js/utils");
|
|
5
|
-
Object.defineProperty(exports, "parseRpcError", { enumerable: true, get: function () { return utils_1.parseRpcError; } });
|
|
6
|
-
Object.defineProperty(exports, "parseResultError", { enumerable: true, get: function () { return utils_1.parseResultError; } });
|
|
7
|
-
Object.defineProperty(exports, "formatError", { enumerable: true, get: function () { return utils_1.formatError; } });
|
|
8
|
-
Object.defineProperty(exports, "getErrorTypeFromErrorMessage", { enumerable: true, get: function () { return utils_1.getErrorTypeFromErrorMessage; } });
|
|
9
|
-
Object.defineProperty(exports, "ServerError", { enumerable: true, get: function () { return utils_1.ServerError; } });
|
|
1
|
+
export { parseRpcError, parseResultError, formatError, getErrorTypeFromErrorMessage, ServerError, } from '@near-js/utils';
|
package/lib/utils/serialize.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../src/utils/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,WAAW,EACX,MAAM,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EACH,UAAU,IAAI,WAAW,EACzB,UAAU,IAAI,WAAW,GAC5B,MAAM,gBAAgB,CAAC"}
|
package/lib/utils/serialize.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.base_decode = exports.base_encode = exports.deserialize = exports.serialize = void 0;
|
|
4
|
-
var borsh_1 = require("borsh");
|
|
5
|
-
Object.defineProperty(exports, "serialize", { enumerable: true, get: function () { return borsh_1.serialize; } });
|
|
6
|
-
Object.defineProperty(exports, "deserialize", { enumerable: true, get: function () { return borsh_1.deserialize; } });
|
|
7
|
-
var utils_1 = require("@near-js/utils");
|
|
8
|
-
Object.defineProperty(exports, "base_encode", { enumerable: true, get: function () { return utils_1.baseEncode; } });
|
|
9
|
-
Object.defineProperty(exports, "base_decode", { enumerable: true, get: function () { return utils_1.baseDecode; } });
|
|
1
|
+
export { serialize, deserialize, } from 'borsh';
|
|
2
|
+
export { baseEncode as base_encode, baseDecode as base_decode, } from '@near-js/utils';
|
package/lib/validators.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../src/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,GACtB,MAAM,gBAAgB,CAAC"}
|
package/lib/validators.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findSeatPrice = exports.diffEpochValidators = void 0;
|
|
4
|
-
var utils_1 = require("@near-js/utils");
|
|
5
|
-
Object.defineProperty(exports, "diffEpochValidators", { enumerable: true, get: function () { return utils_1.diffEpochValidators; } });
|
|
6
|
-
Object.defineProperty(exports, "findSeatPrice", { enumerable: true, get: function () { return utils_1.findSeatPrice; } });
|
|
1
|
+
export { diffEpochValidators, findSeatPrice, } from '@near-js/utils';
|
package/lib/wallet-account.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-account.d.ts","sourceRoot":"","sources":["../src/wallet-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/lib/wallet-account.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletConnection = exports.ConnectedWalletAccount = void 0;
|
|
4
|
-
var wallet_account_1 = require("@near-js/wallet-account");
|
|
5
|
-
Object.defineProperty(exports, "ConnectedWalletAccount", { enumerable: true, get: function () { return wallet_account_1.ConnectedWalletAccount; } });
|
|
6
|
-
Object.defineProperty(exports, "WalletConnection", { enumerable: true, get: function () { return wallet_account_1.WalletConnection; } });
|
|
1
|
+
export { ConnectedWalletAccount, WalletConnection } from '@near-js/wallet-account';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "near-api-js",
|
|
3
3
|
"description": "JavaScript library to interact with NEAR Protocol via RPC API",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.1.0-next.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/near/near-api-js.git"
|
|
@@ -10,43 +10,46 @@
|
|
|
10
10
|
"main": "lib/index.js",
|
|
11
11
|
"browser": "lib/browser-index.js",
|
|
12
12
|
"types": "lib/index.d.ts",
|
|
13
|
+
"type": "module",
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"borsh": "1.0.0",
|
|
15
16
|
"depd": "2.0.0",
|
|
16
17
|
"http-errors": "1.7.2",
|
|
17
18
|
"near-abi": "0.1.1",
|
|
18
|
-
"
|
|
19
|
-
"@
|
|
20
|
-
"@near-js/
|
|
21
|
-
"@near-js/crypto": "1.
|
|
22
|
-
"@near-js/keystores": "0.0.
|
|
23
|
-
"@near-js/
|
|
24
|
-
"@near-js/
|
|
25
|
-
"@near-js/
|
|
26
|
-
"@near-js/
|
|
27
|
-
"@near-js/
|
|
28
|
-
"@near-js/
|
|
29
|
-
"@near-js/utils": "0.2.2",
|
|
30
|
-
"@near-js/wallet-account": "1.2.2"
|
|
19
|
+
"@near-js/accounts": "1.3.0-next.0",
|
|
20
|
+
"@near-js/keystores-browser": "0.1.0-next.0",
|
|
21
|
+
"@near-js/keystores": "0.1.0-next.0",
|
|
22
|
+
"@near-js/crypto": "1.3.0-next.0",
|
|
23
|
+
"@near-js/keystores-node": "0.1.0-next.0",
|
|
24
|
+
"@near-js/providers": "0.3.0-next.0",
|
|
25
|
+
"@near-js/signers": "0.2.0-next.0",
|
|
26
|
+
"@near-js/transactions": "1.3.0-next.0",
|
|
27
|
+
"@near-js/types": "0.3.0-next.0",
|
|
28
|
+
"@near-js/utils": "0.3.0-next.0",
|
|
29
|
+
"@near-js/wallet-account": "1.3.0-next.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@types/http-errors": "1.6.1",
|
|
34
|
-
"@types/node": "
|
|
33
|
+
"@types/node": "20.0.0",
|
|
35
34
|
"browserify": "16.2.3",
|
|
36
35
|
"bs58": "4.0.0",
|
|
36
|
+
"buffer": "6.0.3",
|
|
37
37
|
"bundlewatch": "0.3.1",
|
|
38
38
|
"concurrently": "7.3.0",
|
|
39
39
|
"danger": "11.1.1",
|
|
40
40
|
"danger-plugin-yarn": "1.3.2",
|
|
41
|
+
"esbuild": "^0.21.5",
|
|
41
42
|
"in-publish": "2.0.0",
|
|
42
|
-
"jest": "
|
|
43
|
+
"jest": "29.7.0",
|
|
43
44
|
"localstorage-memory": "1.0.3",
|
|
44
45
|
"near-hello": "0.5.1",
|
|
46
|
+
"near-workspaces": "3.5.0",
|
|
47
|
+
"process": "^0.11.10",
|
|
45
48
|
"rimraf": "3.0.2",
|
|
46
49
|
"semver": "7.1.1",
|
|
47
|
-
"ts-jest": "
|
|
50
|
+
"ts-jest": "29.1.5",
|
|
48
51
|
"uglifyify": "5.0.1",
|
|
49
|
-
"
|
|
52
|
+
"tsconfig": "0.0.0"
|
|
50
53
|
},
|
|
51
54
|
"keywords": [],
|
|
52
55
|
"license": "(MIT AND Apache-2.0)",
|
|
@@ -54,7 +57,7 @@
|
|
|
54
57
|
"files": [
|
|
55
58
|
{
|
|
56
59
|
"path": "dist/near-api-js.min.js",
|
|
57
|
-
"maxSize": "
|
|
60
|
+
"maxSize": "250kB"
|
|
58
61
|
}
|
|
59
62
|
]
|
|
60
63
|
},
|
|
@@ -65,12 +68,14 @@
|
|
|
65
68
|
],
|
|
66
69
|
"author": "NEAR Inc",
|
|
67
70
|
"scripts": {
|
|
68
|
-
"dist": "pnpm
|
|
69
|
-
"
|
|
71
|
+
"dist": "pnpm bundle:all",
|
|
72
|
+
"bundle:all": "pnpm bundle && pnpm bundle:minified",
|
|
73
|
+
"bundle": "esbuild browser-exports.js --bundle --outfile=dist/near-api-js.js --define:global=window --inject:esbuild.inject.js",
|
|
74
|
+
"bundle:minified": "esbuild browser-exports.js --bundle --minify --outfile=dist/near-api-js.min.js --define:global=window --inject:esbuild.inject.js",
|
|
70
75
|
"compile": "tsc -p ./tsconfig.json",
|
|
71
76
|
"dev": "pnpm compile -w",
|
|
72
|
-
"build": "pnpm compile && pnpm
|
|
73
|
-
"test": "jest
|
|
77
|
+
"build": "pnpm compile && pnpm bundle:all",
|
|
78
|
+
"test": "jest --passWithNoTests",
|
|
74
79
|
"lint": "concurrently \"pnpm:lint:*(!fix) --no-error-on-unmatched-pattern\"",
|
|
75
80
|
"lint:src": "eslint --ext .ts src",
|
|
76
81
|
"lint:fix": "concurrently \"pnpm:lint:*:fix\"",
|
package/lib/utils/web.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { fetchJson } from '@near-js/providers';
|