@taquito/taquito 23.0.3 → 24.0.0-RC.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/README.md +1 -1
- package/dist/lib/batch/constants.js +16 -0
- package/dist/lib/batch/rpc-batch-provider.js +5 -9
- package/dist/lib/constants.js +5 -32
- package/dist/lib/contract/constants.js +4 -0
- package/dist/lib/contract/contract-methods/contract-method-factory.js +0 -4
- package/dist/lib/contract/contract-methods/contract-method-object-param.js +13 -8
- package/dist/lib/contract/contract.js +9 -32
- package/dist/lib/contract/index.js +0 -1
- package/dist/lib/contract/rpc-contract-provider.js +6 -39
- package/dist/lib/estimate/rpc-estimate-provider.js +6 -6
- package/dist/lib/import-key.js +51 -0
- package/dist/lib/operations/batch-operation.js +2 -2
- package/dist/lib/operations/transfer-ticket-operation.js +1 -1
- package/dist/lib/prepare/prepare-provider.js +6 -6
- package/dist/lib/provider.js +0 -9
- package/dist/lib/subscribe/polling-subcribe-provider.js +3 -3
- package/dist/lib/taquito.js +3 -2
- package/dist/lib/version.js +2 -2
- package/dist/lib/wallet/batch-operation.js +11 -3
- package/dist/lib/wallet/index.js +1 -0
- package/dist/lib/wallet/legacy.js +5 -0
- package/dist/lib/wallet/operation-factory.js +6 -0
- package/dist/lib/wallet/register-global-constant-operation.js +62 -0
- package/dist/lib/wallet/wallet.js +31 -10
- package/dist/taquito.es6.js +3399 -3442
- package/dist/taquito.es6.js.map +1 -1
- package/dist/taquito.min.js +1 -1
- package/dist/taquito.min.js.LICENSE.txt +2 -0
- package/dist/taquito.umd.js +3391 -3437
- package/dist/taquito.umd.js.map +1 -1
- package/dist/types/batch/constants.d.ts +3 -0
- package/dist/types/batch/rpc-batch-provider.d.ts +2 -5
- package/dist/types/constants.d.ts +4 -31
- package/dist/types/contract/constants.d.ts +1 -0
- package/dist/types/contract/contract-methods/contract-method-factory.d.ts +2 -4
- package/dist/types/contract/contract-methods/contract-method-object-param.d.ts +4 -3
- package/dist/types/contract/contract-methods/contract-on-chain-view.d.ts +2 -2
- package/dist/types/contract/contract.d.ts +4 -23
- package/dist/types/contract/index.d.ts +0 -1
- package/dist/types/contract/interface.d.ts +0 -13
- package/dist/types/contract/rpc-contract-provider.d.ts +0 -13
- package/dist/types/estimate/estimate-provider-interface.d.ts +2 -2
- package/dist/types/estimate/rpc-estimate-provider.d.ts +2 -2
- package/dist/types/import-key.d.ts +13 -0
- package/dist/types/operations/transfer-ticket-operation.d.ts +1 -1
- package/dist/types/operations/types.d.ts +7 -2
- package/dist/types/prepare/interface.d.ts +2 -3
- package/dist/types/prepare/prepare-provider.d.ts +1 -2
- package/dist/types/provider.d.ts +1 -6
- package/dist/types/taquito.d.ts +1 -6
- package/dist/types/wallet/batch-operation.d.ts +2 -1
- package/dist/types/wallet/index.d.ts +1 -0
- package/dist/types/wallet/interface.d.ts +7 -2
- package/dist/types/wallet/legacy.d.ts +2 -1
- package/dist/types/wallet/operation-factory.d.ts +2 -0
- package/dist/types/wallet/register-global-constant-operation.d.ts +13 -0
- package/dist/types/wallet/wallet.d.ts +20 -11
- package/package.json +13 -11
- package/dist/400.taquito.min.js +0 -1
- package/dist/993.taquito.min.js +0 -1
- package/dist/lib/contract/contract-methods/contract-method-flat-param.js +0 -92
- package/dist/lib/contract/lambda-view.js +0 -253
- package/dist/types/contract/contract-methods/contract-method-flat-param.d.ts +0 -43
- package/dist/types/contract/lambda-view.d.ts +0 -19
package/dist/taquito.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { OpKind } from '@taquito/rpc';
|
|
2
|
+
export declare const BATCH_KINDS: OpKind[];
|
|
3
|
+
export type BatchKinds = OpKind.ACTIVATION | OpKind.ORIGINATION | OpKind.TRANSACTION | OpKind.DELEGATION | OpKind.REGISTER_GLOBAL_CONSTANT | OpKind.INCREASE_PAID_STORAGE | OpKind.TRANSFER_TICKET | OpKind.SMART_ROLLUP_ADD_MESSAGES | OpKind.SMART_ROLLUP_ORIGINATE | OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { Context } from '../context';
|
|
2
2
|
import { ContractStorageType, DefaultContractType } from '../contract/contract';
|
|
3
|
-
import { ContractMethod } from '../contract/contract-methods/contract-method-flat-param';
|
|
4
3
|
import { SendParams } from '../contract/contract-methods/contract-method-interface';
|
|
5
4
|
import { ContractProvider } from '../contract/interface';
|
|
6
5
|
import { BatchOperation } from '../operations/batch-operation';
|
|
7
6
|
import { ActivationParams, DelegateParams, OriginateParams, TransferParams, ParamsWithKind, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams } from '../operations/types';
|
|
8
|
-
import { OpKind } from '@taquito/rpc';
|
|
9
7
|
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
|
|
10
8
|
import { EstimationProvider } from '../estimate/estimate-provider-interface';
|
|
11
9
|
import { Provider } from '../provider';
|
|
12
|
-
export
|
|
13
|
-
export type BatchKinds = OpKind.ACTIVATION | OpKind.ORIGINATION | OpKind.TRANSACTION | OpKind.DELEGATION;
|
|
10
|
+
export { BATCH_KINDS, BatchKinds } from './constants';
|
|
14
11
|
export declare class OperationBatch extends Provider {
|
|
15
12
|
private estimator;
|
|
16
13
|
private operations;
|
|
@@ -37,7 +34,7 @@ export declare class OperationBatch extends Provider {
|
|
|
37
34
|
* @param params Call a contract method
|
|
38
35
|
* @param options Generic operation parameters
|
|
39
36
|
*/
|
|
40
|
-
withContractCall(params:
|
|
37
|
+
withContractCall(params: ContractMethodObject<ContractProvider>, options?: Partial<SendParams>): this;
|
|
41
38
|
/**
|
|
42
39
|
*
|
|
43
40
|
* @description Add a delegation operation to the batch
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated default reveal gasLimit please use getRevealGasLimit(address) instead, removing hardcoded gasLimit of delegation, origination and transfer
|
|
3
|
-
*/
|
|
4
|
-
export declare const DEFAULT_GAS_LIMIT: {
|
|
5
|
-
DELEGATION: number;
|
|
6
|
-
ORIGINATION: number;
|
|
7
|
-
TRANSFER: number;
|
|
8
|
-
REVEAL_TZ1: number;
|
|
9
|
-
REVEAL_TZ2: number;
|
|
10
|
-
REVEAL_TZ3: number;
|
|
11
|
-
REVEAL_TZ4: number;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated default reveal fee please use getRevealFee(address) instead, removing hardcoded fee of delegation, origination and transfer
|
|
15
|
-
*/
|
|
16
|
-
export declare const DEFAULT_FEE: {
|
|
17
|
-
DELEGATION: number;
|
|
18
|
-
ORIGINATION: number;
|
|
19
|
-
TRANSFER: number;
|
|
20
|
-
REVEAL: number;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated default reveal storageLimit please use REVEAL_STORAGE_LIMIT instead, removing hardcoded storageLimit of delegation, origination and transfer
|
|
24
|
-
*/
|
|
25
|
-
export declare const DEFAULT_STORAGE_LIMIT: {
|
|
26
|
-
DELEGATION: number;
|
|
27
|
-
ORIGINATION: number;
|
|
28
|
-
TRANSFER: number;
|
|
29
|
-
REVEAL: number;
|
|
30
|
-
};
|
|
31
1
|
export declare const REVEAL_STORAGE_LIMIT = 0;
|
|
32
2
|
export declare const ORIGINATION_SIZE = 257;
|
|
33
3
|
export declare const COST_PER_BYTE = 250;
|
|
@@ -55,6 +25,7 @@ export declare enum Protocols {
|
|
|
55
25
|
PsQuebecn = "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg",
|
|
56
26
|
PsRiotuma = "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7",
|
|
57
27
|
PtSeouLou = "PtSeouLouXkxhg39oWzjxDWaCydNfR3RxCUrNe4Q9Ro8BTehcbh",
|
|
28
|
+
PtTALLiNt = "PtTALLiNtPec7mE7yY4m3k26J8Qukef3E3ehzhfXgFZKGtDdAXu",
|
|
58
29
|
ProtoALpha = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"
|
|
59
30
|
}
|
|
60
31
|
export declare const protocols: {
|
|
@@ -78,6 +49,7 @@ export declare const protocols: {
|
|
|
78
49
|
'022': Protocols[];
|
|
79
50
|
'023': Protocols[];
|
|
80
51
|
'024': Protocols[];
|
|
52
|
+
'025': Protocols[];
|
|
81
53
|
};
|
|
82
54
|
export declare enum ChainIds {
|
|
83
55
|
MAINNET = "NetXdQprcVkpaWU",
|
|
@@ -101,7 +73,8 @@ export declare enum ChainIds {
|
|
|
101
73
|
PARISCNET = "NetXXWAHLEvre9b",
|
|
102
74
|
QUEBECNET = "NetXuTeGinLEqxp",
|
|
103
75
|
RIONET = "NetXPdgaoabtBth",
|
|
104
|
-
SEOULNET = "NetXd56aBs1aeW3"
|
|
76
|
+
SEOULNET = "NetXd56aBs1aeW3",
|
|
77
|
+
TALLINNNET = "NetXe8DbhW9A1eS"
|
|
105
78
|
}
|
|
106
79
|
export declare const getRevealGasLimit: (address: string) => number;
|
|
107
80
|
export declare const getRevealFee: (address: string) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_SMART_CONTRACT_METHOD_NAME = "default";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Wallet } from '../../wallet';
|
|
2
|
-
import { ContractProvider } from '
|
|
1
|
+
import type { Wallet } from '../../wallet/wallet';
|
|
2
|
+
import { ContractProvider } from '../interface';
|
|
3
3
|
import { ContractMethodObject } from './contract-method-object-param';
|
|
4
|
-
import { ContractMethod } from './contract-method-flat-param';
|
|
5
4
|
import { ParameterSchema, ViewSchema } from '@taquito/michelson-encoder';
|
|
6
5
|
import { RpcClientInterface, MichelsonV1Expression } from '@taquito/rpc';
|
|
7
6
|
import { OnChainView } from './contract-on-chain-view';
|
|
@@ -10,7 +9,6 @@ export declare class ContractMethodFactory<T extends ContractProvider | Wallet>
|
|
|
10
9
|
private provider;
|
|
11
10
|
private contractAddress;
|
|
12
11
|
constructor(provider: T, contractAddress: string);
|
|
13
|
-
createContractMethodFlatParams(smartContractMethodSchema: ParameterSchema, smartContractMethodName: string, args: any[], isMultipleEntrypoint?: boolean, isAnonymous?: boolean): ContractMethod<T>;
|
|
14
12
|
createContractMethodObjectParam(smartContractMethodSchema: ParameterSchema, smartContractMethodName: string, args: any[], isMultipleEntrypoint?: boolean, isAnonymous?: boolean): ContractMethodObject<T>;
|
|
15
13
|
createContractViewObjectParam(rpc: RpcClientInterface, readProvider: TzReadProvider, smartContractViewSchema: ViewSchema, contractStorageType: MichelsonV1Expression, viewArgs: any): OnChainView;
|
|
16
14
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TransactionOperation } from '../../operations/transaction-operation';
|
|
2
2
|
import { TransferParams } from '../../operations/types';
|
|
3
3
|
import { ContractProvider } from '../interface';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { Wallet } from '../../wallet/wallet';
|
|
5
|
+
import { TransactionWalletOperation } from '../../wallet/transaction-operation';
|
|
6
|
+
import { ParameterSchema } from '@taquito/michelson-encoder';
|
|
6
7
|
import { ContractMethodInterface, SendParams } from './contract-method-interface';
|
|
7
8
|
/**
|
|
8
9
|
* @description Utility class to send smart contract operation
|
|
@@ -20,7 +21,7 @@ export declare class ContractMethodObject<T extends ContractProvider | Wallet> i
|
|
|
20
21
|
/**
|
|
21
22
|
* @description Get the signature of the smart contract method
|
|
22
23
|
*/
|
|
23
|
-
getSignature():
|
|
24
|
+
getSignature(): unknown;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @description Send the smart contract operation
|
|
@@ -17,8 +17,8 @@ export declare class OnChainView {
|
|
|
17
17
|
* @description Get the signature of the smart contract view
|
|
18
18
|
*/
|
|
19
19
|
getSignature(): {
|
|
20
|
-
parameter:
|
|
21
|
-
result:
|
|
20
|
+
parameter: import("@taquito/michelson-encoder").TokenSchema;
|
|
21
|
+
result: import("@taquito/michelson-encoder").TokenSchema;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* @description Get the result of the view simulation
|
|
@@ -2,12 +2,12 @@ import { ParameterSchema, Schema, ViewSchema, EventSchema } from '@taquito/miche
|
|
|
2
2
|
import { EntrypointsResponse, RpcClientInterface, ScriptResponse } from '@taquito/rpc';
|
|
3
3
|
import { ChainIds } from '../constants';
|
|
4
4
|
import { TzReadProvider } from '../read-provider/interface';
|
|
5
|
-
import { Wallet } from '../wallet';
|
|
6
|
-
import { ContractMethod } from './contract-methods/contract-method-flat-param';
|
|
5
|
+
import type { Wallet } from '../wallet/wallet';
|
|
7
6
|
import { ContractMethodObject } from './contract-methods/contract-method-object-param';
|
|
8
7
|
import { OnChainView } from './contract-methods/contract-on-chain-view';
|
|
9
8
|
import { ContractProvider, StorageProvider } from './interface';
|
|
10
|
-
|
|
9
|
+
import { DEFAULT_SMART_CONTRACT_METHOD_NAME } from './constants';
|
|
10
|
+
export { DEFAULT_SMART_CONTRACT_METHOD_NAME };
|
|
11
11
|
/**
|
|
12
12
|
* @description Utility class to retrieve data from a smart contract's storage without incurring fees via a contract's view method
|
|
13
13
|
*/
|
|
@@ -24,7 +24,6 @@ export declare class ContractView {
|
|
|
24
24
|
}
|
|
25
25
|
export type Contract = ContractAbstraction<ContractProvider>;
|
|
26
26
|
export type WalletContract = ContractAbstraction<Wallet>;
|
|
27
|
-
type DefaultMethods<T extends ContractProvider | Wallet> = Record<string, (...args: any[]) => ContractMethod<T>>;
|
|
28
27
|
type DefaultMethodsObject<T extends ContractProvider | Wallet> = Record<string, (args?: any) => ContractMethodObject<T>>;
|
|
29
28
|
type DefaultViews = Record<string, (...args: any[]) => ContractView>;
|
|
30
29
|
type DefaultContractViews = Record<string, (args?: any) => OnChainView>;
|
|
@@ -36,7 +35,7 @@ export type DefaultWalletType = ContractAbstraction<Wallet>;
|
|
|
36
35
|
/**
|
|
37
36
|
* @description Smart contract abstraction
|
|
38
37
|
*/
|
|
39
|
-
export declare class ContractAbstraction<T extends ContractProvider | Wallet,
|
|
38
|
+
export declare class ContractAbstraction<T extends ContractProvider | Wallet, TMethodsObject extends DefaultMethodsObject<T> = DefaultMethodsObject<T>, TViews extends DefaultViews = DefaultViews, TContractViews extends DefaultContractViews = DefaultContractViews, TStorage extends DefaultStorage = DefaultStorage> {
|
|
40
39
|
readonly address: string;
|
|
41
40
|
readonly script: ScriptResponse;
|
|
42
41
|
private storageProvider;
|
|
@@ -44,12 +43,6 @@ export declare class ContractAbstraction<T extends ContractProvider | Wallet, TM
|
|
|
44
43
|
private rpc;
|
|
45
44
|
private readProvider;
|
|
46
45
|
private contractMethodFactory;
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated use methodsObject instead, flat params of methods can't sufficiently represent all Michelson values
|
|
49
|
-
* @description Contains methods that are implemented by the target Tezos Smart Contract, and offers the user to call the Smart Contract methods as if they were native TS/JS methods.
|
|
50
|
-
* NB: if the contract contains annotation it will include named properties; if not it will be indexed by a number.
|
|
51
|
-
*/
|
|
52
|
-
methods: TMethods;
|
|
53
46
|
/**
|
|
54
47
|
* @description Contains methods that are implemented by the target Tezos Smart Contract, and offers the user to call the Smart Contract methods as if they were native TS/JS methods.
|
|
55
48
|
* `methodsObject` serves the exact same purpose as the `methods` member. The difference is that it allows passing the parameter in an object format when calling the smart contract method (instead of the flattened representation)
|
|
@@ -79,16 +72,4 @@ export declare class ContractAbstraction<T extends ContractProvider | Wallet, TM
|
|
|
79
72
|
* @description Return a friendly representation of the smart contract storage
|
|
80
73
|
*/
|
|
81
74
|
storage<T extends TStorage = TStorage>(): Promise<T>;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @description Return a friendly representation of the smart contract big map value
|
|
85
|
-
*
|
|
86
|
-
* @param key BigMap key to fetch
|
|
87
|
-
*
|
|
88
|
-
* @deprecated getBigMapKey has been deprecated in favor of getBigMapKeyByID
|
|
89
|
-
*
|
|
90
|
-
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
91
|
-
*/
|
|
92
|
-
bigMap(key: string): Promise<unknown>;
|
|
93
75
|
}
|
|
94
|
-
export {};
|
|
@@ -6,7 +6,6 @@ export * from './prepare';
|
|
|
6
6
|
export * from './view_lambda';
|
|
7
7
|
export { compose } from './compose';
|
|
8
8
|
export * from './contract-methods/contract-method-interface';
|
|
9
|
-
export * from './contract-methods/contract-method-flat-param';
|
|
10
9
|
export * from './contract-methods/contract-method-object-param';
|
|
11
10
|
export * from './sapling-state-abstraction';
|
|
12
11
|
export { smartContractAbstractionSemantic } from './semantic';
|
|
@@ -32,19 +32,6 @@ export interface StorageProvider {
|
|
|
32
32
|
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script
|
|
33
33
|
*/
|
|
34
34
|
getStorage<T>(contract: string, schema?: ContractSchema): Promise<T>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @description Return a well formatted json object of the contract big map storage
|
|
38
|
-
*
|
|
39
|
-
* @param contract contract address you want to get the storage from
|
|
40
|
-
* @param key contract big map key to fetch value from
|
|
41
|
-
* @param schema optional schema can either be the contract script rpc response or a michelson-encoder schema
|
|
42
|
-
*
|
|
43
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
44
|
-
*
|
|
45
|
-
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
46
|
-
*/
|
|
47
|
-
getBigMapKey<T>(contract: string, key: string, schema?: ContractSchema): Promise<T>;
|
|
48
35
|
/**
|
|
49
36
|
*
|
|
50
37
|
* @description Return a well formatted json object of a big map value
|
|
@@ -37,19 +37,6 @@ export declare class RpcContractProvider extends Provider implements ContractPro
|
|
|
37
37
|
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script
|
|
38
38
|
*/
|
|
39
39
|
getStorage<T>(contract: string, schema?: ContractSchema): Promise<T>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @description Return a well formatted json object of the contract big map storage
|
|
43
|
-
*
|
|
44
|
-
* @param contract contract address you want to get the storage from
|
|
45
|
-
* @param key contract big map key to fetch value from
|
|
46
|
-
* @param schema optional schema can either be the contract script rpc response or a michelson-encoder schema
|
|
47
|
-
* @throws {@link InvalidContractAddressError}
|
|
48
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
49
|
-
*
|
|
50
|
-
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
51
|
-
*/
|
|
52
|
-
getBigMapKey<T>(contract: string, key: string, schema?: ContractSchema): Promise<T>;
|
|
53
40
|
/**
|
|
54
41
|
*
|
|
55
42
|
* @description Return a well formatted json object of a big map value
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OriginateParams, TransferParams, DelegateParams, RegisterDelegateParams, ParamsWithKind } from '../operations';
|
|
2
2
|
import { RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
3
3
|
import { Estimate } from './estimate';
|
|
4
|
-
import {
|
|
4
|
+
import { ContractMethodObject, ContractProvider } from '../contract';
|
|
5
5
|
export interface EstimationProvider {
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -144,7 +144,7 @@ export interface EstimationProvider {
|
|
|
144
144
|
*
|
|
145
145
|
* @param Estimate
|
|
146
146
|
*/
|
|
147
|
-
contractCall(contractMethod:
|
|
147
|
+
contractCall(contractMethod: ContractMethodObject<ContractProvider>): Promise<Estimate>;
|
|
148
148
|
/**
|
|
149
149
|
* @description Estimate gasLimit, storageLimit and fees for an Smart Rollup Originate operation
|
|
150
150
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DelegateParams, OriginateParams, ParamsWithKind, RegisterDelegateParams, TransferParams, RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
2
2
|
import { Estimate } from './estimate';
|
|
3
3
|
import { EstimationProvider } from '../estimate/estimate-provider-interface';
|
|
4
|
-
import {
|
|
4
|
+
import { ContractMethodObject, ContractProvider } from '../contract';
|
|
5
5
|
import { Provider } from '../provider';
|
|
6
6
|
export declare class RPCEstimateProvider extends Provider implements EstimationProvider {
|
|
7
7
|
private readonly REVEAL_LENGTH;
|
|
@@ -166,5 +166,5 @@ export declare class RPCEstimateProvider extends Provider implements EstimationP
|
|
|
166
166
|
*
|
|
167
167
|
* @param Estimate
|
|
168
168
|
*/
|
|
169
|
-
contractCall(contractMethod:
|
|
169
|
+
contractCall(contractMethod: ContractMethodObject<ContractProvider>): Promise<Estimate>;
|
|
170
170
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TezosToolkit } from './taquito';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @description Import a key to sign operation with the side-effect of setting the Tezos instance to use the InMemorySigner provider
|
|
5
|
+
*
|
|
6
|
+
* @warn The JSON faucets are no longer available on https://teztnets.com/
|
|
7
|
+
* @param toolkit The toolkit instance to attach a signer
|
|
8
|
+
* @param privateKeyOrEmail Key to load in memory
|
|
9
|
+
* @param passphrase If the key is encrypted passphrase to decrypt it
|
|
10
|
+
* @param mnemonic Faucet mnemonic
|
|
11
|
+
* @param secret Faucet secret
|
|
12
|
+
*/
|
|
13
|
+
export declare function importKey(toolkit: TezosToolkit, privateKeyOrEmail: string, passphrase?: string, mnemonic?: string, secret?: string): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OperationContentsAndResult, OperationContentsTransferTicket } from '@taquito/rpc';
|
|
2
2
|
import { Context } from '../context';
|
|
3
|
-
import { Operation } from '
|
|
3
|
+
import { Operation } from './operations';
|
|
4
4
|
import { GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation, ForgedBytes } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -16,7 +16,7 @@ export declare const isKind: <T extends {
|
|
|
16
16
|
kind: OpKind;
|
|
17
17
|
}, K extends OpKind>(op: T, kind: K) => op is withKind<T, K>;
|
|
18
18
|
export type RPCOpWithFee = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCUpdateCompanionKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation;
|
|
19
|
-
export type RPCOpWithSource = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCUpdateCompanionKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation;
|
|
19
|
+
export type RPCOpWithSource = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCUpdateCompanionKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation | RPCBallotOperation | RPCProposalsOperation;
|
|
20
20
|
export declare const isOpWithGasBuffer: <T extends {
|
|
21
21
|
kind: OpKind;
|
|
22
22
|
destination?: string;
|
|
@@ -133,7 +133,7 @@ export interface ForgedBytes {
|
|
|
133
133
|
* @description Parameters for setDelegate method
|
|
134
134
|
*/
|
|
135
135
|
export interface DelegateParams {
|
|
136
|
-
source
|
|
136
|
+
source?: string;
|
|
137
137
|
delegate?: string;
|
|
138
138
|
fee?: number;
|
|
139
139
|
gasLimit?: number;
|
|
@@ -454,3 +454,8 @@ export type PrepareOperationParams = {
|
|
|
454
454
|
operation: RPCOperation | RPCOperation[];
|
|
455
455
|
source?: string;
|
|
456
456
|
};
|
|
457
|
+
export type ParamsWithOptionalFees = {
|
|
458
|
+
fee?: number | string;
|
|
459
|
+
storageLimit?: number | string;
|
|
460
|
+
gasLimit?: number | string;
|
|
461
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OperationContents, PreapplyParams } from '@taquito/rpc';
|
|
2
2
|
import { BallotParams, DelegateParams, DrainDelegateParams, IncreasePaidStorageParams, OriginateParams, ProposalsParams, RegisterGlobalConstantParams, RevealParams, TransferParams, TransferTicketParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, ActivationParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams } from '../operations/types';
|
|
3
|
-
import { ContractMethod } from '../contract/contract-methods/contract-method-flat-param';
|
|
4
3
|
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
|
|
5
4
|
import { ContractProvider } from '../contract/interface';
|
|
6
5
|
import { ParamsWithKind } from '../operations/types';
|
|
@@ -125,10 +124,10 @@ export interface PreparationProvider {
|
|
|
125
124
|
batch(batchParams: ParamsWithKind[]): Promise<PreparedOperation>;
|
|
126
125
|
/**
|
|
127
126
|
* @description Method to prepare a contract call (transfer) operation
|
|
128
|
-
* @param contractMethod
|
|
127
|
+
* @param contractMethod ContractMethodObject retrieved from smart contract
|
|
129
128
|
* @returns a PreparedOperation object
|
|
130
129
|
*/
|
|
131
|
-
contractCall(contractMethod:
|
|
130
|
+
contractCall(contractMethod: ContractMethodObject<ContractProvider>): Promise<PreparedOperation>;
|
|
132
131
|
/**
|
|
133
132
|
*
|
|
134
133
|
* @description Method to convert a PreparedOperation to the params needed for the preapplyOperation method
|
|
@@ -2,7 +2,6 @@ import { PreapplyParams } from '@taquito/rpc';
|
|
|
2
2
|
import { DelegateParams, RevealParams, RegisterGlobalConstantParams, TransferParams, OriginateParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, TransferTicketParams, IncreasePaidStorageParams, BallotParams, ProposalsParams, DrainDelegateParams, ParamsWithKind, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, RegisterDelegateParams, ActivationParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
3
3
|
import { PreparationProvider, PreparedOperation } from './interface';
|
|
4
4
|
import { Context } from '../context';
|
|
5
|
-
import { ContractMethod } from '../contract/contract-methods/contract-method-flat-param';
|
|
6
5
|
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
|
|
7
6
|
import { ContractProvider } from '../contract/interface';
|
|
8
7
|
import { DefaultContractType, ContractStorageType } from '../contract';
|
|
@@ -196,7 +195,7 @@ export declare class PrepareProvider extends Provider implements PreparationProv
|
|
|
196
195
|
* @param operation RPCOperation object or RPCOperation array
|
|
197
196
|
* @returns a PreparedOperation object
|
|
198
197
|
*/
|
|
199
|
-
contractCall(contractMethod:
|
|
198
|
+
contractCall(contractMethod: ContractMethodObject<ContractProvider>): Promise<PreparedOperation>;
|
|
200
199
|
/**
|
|
201
200
|
*
|
|
202
201
|
* @description Method to convert a PreparedOperation to the params needed for the preapplyOperation method
|
package/dist/types/provider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OperationContentsAndResult,
|
|
1
|
+
import { OperationContentsAndResult, RPCSimulateOperationParam, RpcClientInterface } from '@taquito/rpc';
|
|
2
2
|
import { Context } from './context';
|
|
3
3
|
import { ForgedBytes, ParamsWithKind, RPCOperation } from './operations/types';
|
|
4
4
|
import { PreparedOperation } from './prepare';
|
|
@@ -27,11 +27,6 @@ export declare abstract class Provider {
|
|
|
27
27
|
storageLimit: number | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
getRPCOp(param: ParamsWithKind): Promise<import("./operations/types").RPCTransferOperation | import("./operations/types").RPCOriginationOperation | import("./operations/types").RPCDelegateOperation | import("./operations/types").RPCRegisterGlobalConstantOperation | import("./operations/types").RPCIncreasePaidStorageOperation | import("./operations/types").RPCUpdateConsensusKeyOperation | import("./operations/types").RPCUpdateCompanionKeyOperation | import("./operations/types").RPCTransferTicketOperation | import("./operations/types").RPCSmartRollupAddMessagesOperation | import("./operations/types").RPCSmartRollupOriginateOperation | import("./operations/types").RPCSmartRollupOutboxMessageOperation>;
|
|
30
|
-
protected runOperation(op: RPCRunOperationParam): Promise<{
|
|
31
|
-
opResponse: import("@taquito/rpc").PreapplyResponse;
|
|
32
|
-
op: RPCRunOperationParam;
|
|
33
|
-
context: Context;
|
|
34
|
-
}>;
|
|
35
30
|
protected simulate(op: RPCSimulateOperationParam): Promise<{
|
|
36
31
|
opResponse: import("@taquito/rpc").PreapplyResponse;
|
|
37
32
|
op: RPCSimulateOperationParam;
|
package/dist/types/taquito.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { RpcClientInterface } from '@taquito/rpc';
|
|
6
6
|
import { Forger } from '@taquito/local-forging';
|
|
7
|
-
import { RPCBatchProvider } from './batch/rpc-batch-provider';
|
|
8
7
|
import { Protocols } from './constants';
|
|
9
8
|
import { ConfigConfirmation, TaquitoProvider } from './context';
|
|
10
9
|
import { ContractProvider } from './contract/interface';
|
|
@@ -58,6 +57,7 @@ export { RpcReadAdapter } from './read-provider/rpc-read-adapter';
|
|
|
58
57
|
export * from './estimate';
|
|
59
58
|
export { TaquitoLocalForger } from './forger/taquito-local-forger';
|
|
60
59
|
export * from './prepare';
|
|
60
|
+
export { importKey } from './import-key';
|
|
61
61
|
export interface SetProviderOptions {
|
|
62
62
|
forger?: Forger;
|
|
63
63
|
wallet?: WalletProvider;
|
|
@@ -87,11 +87,6 @@ export declare class TezosToolkit {
|
|
|
87
87
|
private _rpcClient;
|
|
88
88
|
private _wallet;
|
|
89
89
|
private _context;
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated TezosToolkit.batch has been deprecated in favor of TezosToolkit.contract.batch
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
batch: RPCBatchProvider['batch'];
|
|
95
90
|
readonly format: typeof format;
|
|
96
91
|
constructor(_rpc: RpcClientInterface | string);
|
|
97
92
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BlockResponse, OperationContentsAndResultReveal } from '@taquito/rpc';
|
|
1
|
+
import { BlockResponse, OperationContentsAndResultReveal, OpKind } from '@taquito/rpc';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Context } from '../context';
|
|
4
4
|
import { WalletOperation, OperationStatus } from './operation';
|
|
5
|
+
export declare const WALLET_BATCH_KINDS: OpKind[];
|
|
5
6
|
export declare class BatchWalletOperation extends WalletOperation {
|
|
6
7
|
readonly opHash: string;
|
|
7
8
|
protected readonly context: Context;
|
|
@@ -4,5 +4,6 @@ export * from './transaction-operation';
|
|
|
4
4
|
export * from './origination-operation';
|
|
5
5
|
export * from './delegation-operation';
|
|
6
6
|
export * from './transfer-ticket-operation';
|
|
7
|
+
export * from './register-global-constant-operation';
|
|
7
8
|
export * from './interface';
|
|
8
9
|
export * from './legacy';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DelegateParams, FailingNoopParams, IncreasePaidStorageParams, OriginateParams, TransferParams, StakeParams, UnstakeParams, FinalizeUnstakeParams, TransferTicketParams } from '../operations/types';
|
|
1
|
+
import { DelegateParams, FailingNoopParams, IncreasePaidStorageParams, OriginateParams, TransferParams, StakeParams, UnstakeParams, FinalizeUnstakeParams, TransferTicketParams, RegisterGlobalConstantParams } from '../operations/types';
|
|
2
2
|
export type WalletDefinedFields = 'source';
|
|
3
3
|
export type WalletTransferParams = Omit<TransferParams, WalletDefinedFields>;
|
|
4
4
|
export type WalletStakeParams = Omit<StakeParams, WalletDefinedFields>;
|
|
@@ -9,13 +9,14 @@ export type WalletDelegateParams = Omit<DelegateParams, WalletDefinedFields>;
|
|
|
9
9
|
export type WalletFailingNoopParams = Omit<FailingNoopParams, WalletDefinedFields>;
|
|
10
10
|
export type WalletIncreasePaidStorageParams = Omit<IncreasePaidStorageParams, WalletDefinedFields>;
|
|
11
11
|
export type WalletTransferTicketParams = Omit<TransferTicketParams, WalletDefinedFields>;
|
|
12
|
+
export type WalletRegisterGlobalConstantParams = Omit<RegisterGlobalConstantParams, WalletDefinedFields>;
|
|
12
13
|
export interface WalletProvider {
|
|
13
14
|
/**
|
|
14
15
|
* @description Request the public key hash from the wallet
|
|
15
16
|
*/
|
|
16
17
|
getPKH: () => Promise<string>;
|
|
17
18
|
/**
|
|
18
|
-
* @description
|
|
19
|
+
* @description Request the public key from the wallet
|
|
19
20
|
*/
|
|
20
21
|
getPK: () => Promise<string>;
|
|
21
22
|
/**
|
|
@@ -26,6 +27,10 @@ export interface WalletProvider {
|
|
|
26
27
|
* @description Transform WalletTransferTicketParams into a format compliant with the underlying wallet
|
|
27
28
|
*/
|
|
28
29
|
mapTransferTicketParamsToWalletParams: (params: () => Promise<WalletTransferTicketParams>) => Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* @description Transform WalletRegisterGlobalConstantParams into a format compliant with the underlying wallet
|
|
32
|
+
*/
|
|
33
|
+
mapRegisterGlobalConstantParamsToWalletParams: (params: () => Promise<WalletRegisterGlobalConstantParams>) => Promise<any>;
|
|
29
34
|
/**
|
|
30
35
|
* @description Transform WalletStakeParams into a format compliant with the underlying wallet
|
|
31
36
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from '../context';
|
|
2
2
|
import { OpKind } from '../operations/types';
|
|
3
|
-
import { WalletDelegateParams, WalletIncreasePaidStorageParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams, WalletTransferTicketParams } from './interface';
|
|
3
|
+
import { WalletDelegateParams, WalletIncreasePaidStorageParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams, WalletTransferTicketParams, WalletRegisterGlobalConstantParams } from './interface';
|
|
4
4
|
import { WalletParamsWithKind } from './wallet';
|
|
5
5
|
export declare class LegacyWalletProvider implements WalletProvider {
|
|
6
6
|
private context;
|
|
@@ -15,6 +15,7 @@ export declare class LegacyWalletProvider implements WalletProvider {
|
|
|
15
15
|
mapDelegateParamsToWalletParams(params: () => Promise<WalletDelegateParams>): Promise<import("../operations/types").withKind<WalletDelegateParams, OpKind.DELEGATION>>;
|
|
16
16
|
mapIncreasePaidStorageWalletParams(params: () => Promise<WalletIncreasePaidStorageParams>): Promise<import("../operations/types").withKind<WalletIncreasePaidStorageParams, OpKind.INCREASE_PAID_STORAGE>>;
|
|
17
17
|
mapTransferTicketParamsToWalletParams(params: () => Promise<WalletTransferTicketParams>): Promise<import("../operations/types").withKind<WalletTransferTicketParams, OpKind.TRANSFER_TICKET>>;
|
|
18
|
+
mapRegisterGlobalConstantParamsToWalletParams(params: () => Promise<WalletRegisterGlobalConstantParams>): Promise<import("../operations/types").withKind<WalletRegisterGlobalConstantParams, OpKind.REGISTER_GLOBAL_CONSTANT>>;
|
|
18
19
|
sendOperations(params: WalletParamsWithKind[]): Promise<string>;
|
|
19
20
|
sign(bytes: string, watermark?: Uint8Array): Promise<string>;
|
|
20
21
|
}
|
|
@@ -8,6 +8,7 @@ import { WalletOperation } from './operation';
|
|
|
8
8
|
import { OriginationWalletOperation } from './origination-operation';
|
|
9
9
|
import { TransactionWalletOperation } from './transaction-operation';
|
|
10
10
|
import { TransferTicketWalletOperation } from './transfer-ticket-operation';
|
|
11
|
+
import { RegisterGlobalConstantWalletOperation } from './register-global-constant-operation';
|
|
11
12
|
export declare function timeoutAfter<T>(timeoutMillisec: number): (source: Observable<T>) => Observable<T>;
|
|
12
13
|
export declare const createNewPollingBasedHeadObservable: (sharedHeadOb: Observable<BlockResponse>, context: Context, _scheduler?: SchedulerLike) => Observable<BlockResponse>;
|
|
13
14
|
export interface OperationFactoryConfig {
|
|
@@ -27,4 +28,5 @@ export declare class OperationFactory {
|
|
|
27
28
|
createDelegationOperation(hash: string, config?: OperationFactoryConfig): Promise<DelegationWalletOperation>;
|
|
28
29
|
createOriginationOperation(hash: string, config?: OperationFactoryConfig): Promise<OriginationWalletOperation>;
|
|
29
30
|
createIncreasePaidStorageOperation(hash: string, config?: OperationFactoryConfig): Promise<IncreasePaidStorageWalletOperation>;
|
|
31
|
+
createRegisterGlobalConstantOperation(hash: string, config?: OperationFactoryConfig): Promise<RegisterGlobalConstantWalletOperation>;
|
|
30
32
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BlockResponse, OperationContentsAndResultRegisterGlobalConstant, OperationContentsAndResultReveal } from '@taquito/rpc';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Context } from '../context';
|
|
4
|
+
import { WalletOperation, OperationStatus } from './operation';
|
|
5
|
+
export declare class RegisterGlobalConstantWalletOperation extends WalletOperation {
|
|
6
|
+
readonly opHash: string;
|
|
7
|
+
protected readonly context: Context;
|
|
8
|
+
constructor(opHash: string, context: Context, newHead$: Observable<BlockResponse>);
|
|
9
|
+
revealOperation(): Promise<OperationContentsAndResultReveal | undefined>;
|
|
10
|
+
registerGlobalConstantOperation(): Promise<OperationContentsAndResultRegisterGlobalConstant | undefined>;
|
|
11
|
+
status(): Promise<OperationStatus>;
|
|
12
|
+
globalConstantHash(): Promise<string | undefined>;
|
|
13
|
+
}
|