@taquito/taquito 19.2.1-beta.2 → 20.0.0-beta.1
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/constants.js +2 -0
- package/dist/lib/contract/rpc-contract-provider.js +106 -0
- package/dist/lib/estimate/rpc-estimate-provider.js +114 -0
- package/dist/lib/prepare/prepare-provider.js +104 -0
- package/dist/lib/read-provider/rpc-read-adapter.js +8 -1
- package/dist/lib/taquito.js +13 -4
- package/dist/lib/version.js +2 -2
- package/dist/lib/wallet/legacy.js +15 -0
- package/dist/lib/wallet/wallet.js +81 -46
- package/dist/taquito.es6.js +442 -52
- package/dist/taquito.es6.js.map +1 -1
- package/dist/taquito.min.js +1 -1
- package/dist/taquito.umd.js +443 -49
- package/dist/taquito.umd.js.map +1 -1
- package/dist/types/constants.d.ts +3 -1
- package/dist/types/contract/interface.d.ts +28 -1
- package/dist/types/contract/rpc-contract-provider.d.ts +29 -1
- package/dist/types/estimate/estimate-provider-interface.d.ts +28 -1
- package/dist/types/estimate/rpc-estimate-provider.d.ts +28 -1
- package/dist/types/operations/types.d.ts +40 -1
- package/dist/types/prepare/prepare-provider.d.ts +25 -1
- package/dist/types/read-provider/interface.d.ts +7 -2
- package/dist/types/read-provider/rpc-read-adapter.d.ts +7 -2
- package/dist/types/taquito.d.ts +7 -1
- package/dist/types/tz/interface.d.ts +1 -1
- package/dist/types/wallet/interface.d.ts +16 -1
- package/dist/types/wallet/legacy.d.ts +4 -1
- package/dist/types/wallet/wallet.d.ts +34 -47
- package/package.json +10 -10
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -50,6 +50,7 @@ export declare enum Protocols {
|
|
|
50
50
|
PtMumbai2 = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",
|
|
51
51
|
PtNairobi = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",
|
|
52
52
|
ProxfordY = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",
|
|
53
|
+
PtParisBQ = "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
|
|
53
54
|
ProtoALpha = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"
|
|
54
55
|
}
|
|
55
56
|
export declare const protocols: {
|
|
@@ -86,7 +87,8 @@ export declare enum ChainIds {
|
|
|
86
87
|
MUMBAINET = "NetXQw6nWSnrJ5t",
|
|
87
88
|
MUMBAINET2 = "NetXgbcrNtXD2yA",
|
|
88
89
|
NAIROBINET = "NetXyuzvDo2Ugzb",
|
|
89
|
-
OXFORDNET2 = "NetXxWsskGahzQB"
|
|
90
|
+
OXFORDNET2 = "NetXxWsskGahzQB",
|
|
91
|
+
PARISNET = "NetXo8SqH1c38SS"
|
|
90
92
|
}
|
|
91
93
|
export declare const getRevealGasLimit: (address: string) => number;
|
|
92
94
|
export declare const getRevealFee: (address: string) => number;
|
|
@@ -7,7 +7,7 @@ import { OriginationOperation } from '../operations/origination-operation';
|
|
|
7
7
|
import { RegisterGlobalConstantOperation } from '../operations/register-global-constant-operation';
|
|
8
8
|
import { RevealOperation } from '../operations/reveal-operation';
|
|
9
9
|
import { TransactionOperation } from '../operations/transaction-operation';
|
|
10
|
-
import { DelegateParams, OriginateParams, TransferParams, RegisterDelegateParams, ParamsWithKind, RevealParams, RegisterGlobalConstantParams, IncreasePaidStorageParams, TransferTicketParams, DrainDelegateParams, BallotParams, ProposalsParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, FailingNoopParams } from '../operations/types';
|
|
10
|
+
import { DelegateParams, OriginateParams, TransferParams, RegisterDelegateParams, ParamsWithKind, RevealParams, RegisterGlobalConstantParams, IncreasePaidStorageParams, TransferTicketParams, DrainDelegateParams, BallotParams, ProposalsParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, FailingNoopParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
11
11
|
import { ContractAbstraction, ContractStorageType, DefaultContractType } from './contract';
|
|
12
12
|
import { IncreasePaidStorageOperation } from '../operations/increase-paid-storage-operation';
|
|
13
13
|
import { TransferTicketOperation } from '../operations/transfer-ticket-operation';
|
|
@@ -116,6 +116,33 @@ export interface ContractProvider extends StorageProvider {
|
|
|
116
116
|
* @param Transfer operation parameter
|
|
117
117
|
*/
|
|
118
118
|
transfer(params: TransferParams): Promise<TransactionOperation>;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @description Stake tz from current address to a specific address. Built on top of the existing transaction operation
|
|
122
|
+
*
|
|
123
|
+
* @returns An operation handle with the result from the rpc node
|
|
124
|
+
*
|
|
125
|
+
* @param Stake pseudo-operation parameter
|
|
126
|
+
*/
|
|
127
|
+
stake(params: StakeParams): Promise<TransactionOperation>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @description Unstake tz from current address to a specific address. Built on top of the existing transaction operation
|
|
131
|
+
*
|
|
132
|
+
* @returns An operation handle with the result from the rpc node
|
|
133
|
+
*
|
|
134
|
+
* @param Unstake pseudo-operation parameter
|
|
135
|
+
*/
|
|
136
|
+
unstake(params: UnstakeParams): Promise<TransactionOperation>;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @description Finalize unstake tz from current address to a specific address. Built on top of the existing transaction operation
|
|
140
|
+
*
|
|
141
|
+
* @returns An operation handle with the result from the rpc node
|
|
142
|
+
*
|
|
143
|
+
* @param finalize_unstake pseudo-operation parameter
|
|
144
|
+
*/
|
|
145
|
+
finalizeUnstake(params: FinalizeUnstakeParams): Promise<TransactionOperation>;
|
|
119
146
|
/**
|
|
120
147
|
*
|
|
121
148
|
* @description Transfer tickets from an implicit account to a contract or another implicit account.
|
|
@@ -6,7 +6,7 @@ import { OriginationOperation } from '../operations/origination-operation';
|
|
|
6
6
|
import { RegisterGlobalConstantOperation } from '../operations/register-global-constant-operation';
|
|
7
7
|
import { RevealOperation } from '../operations/reveal-operation';
|
|
8
8
|
import { TransactionOperation } from '../operations/transaction-operation';
|
|
9
|
-
import { DelegateParams, OriginateParams, ParamsWithKind, RegisterDelegateParams, RegisterGlobalConstantParams, RevealParams, TransferParams, TransferTicketParams, IncreasePaidStorageParams, DrainDelegateParams, BallotParams, ProposalsParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, FailingNoopParams } from '../operations/types';
|
|
9
|
+
import { DelegateParams, OriginateParams, ParamsWithKind, RegisterDelegateParams, RegisterGlobalConstantParams, RevealParams, TransferParams, TransferTicketParams, IncreasePaidStorageParams, DrainDelegateParams, BallotParams, ProposalsParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, FailingNoopParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
10
10
|
import { DefaultContractType, ContractStorageType, ContractAbstraction } from './contract';
|
|
11
11
|
import { ContractProvider, ContractSchema, StorageProvider } from './interface';
|
|
12
12
|
import { EstimationProvider } from '../estimate/estimate-provider-interface';
|
|
@@ -126,6 +126,34 @@ export declare class RpcContractProvider extends Provider implements ContractPro
|
|
|
126
126
|
* @param Transfer operation parameter
|
|
127
127
|
*/
|
|
128
128
|
transfer(params: TransferParams): Promise<TransactionOperation>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @description Stake a given amount for the source address
|
|
132
|
+
*
|
|
133
|
+
* @returns An operation handle with the result from the rpc node
|
|
134
|
+
*
|
|
135
|
+
* @param Stake pseudo-operation parameter
|
|
136
|
+
*/
|
|
137
|
+
stake(params: StakeParams): Promise<TransactionOperation>;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @description Unstake the given amount. If "everything" is given as amount, unstakes everything from the staking balance.
|
|
141
|
+
* Unstaked tez remains frozen for a set amount of cycles (the slashing period) after the operation. Once this period is over,
|
|
142
|
+
* the operation "finalize unstake" must be called for the funds to appear in the liquid balance.
|
|
143
|
+
*
|
|
144
|
+
* @returns An operation handle with the result from the rpc node
|
|
145
|
+
*
|
|
146
|
+
* @param Unstake pseudo-operation parameter
|
|
147
|
+
*/
|
|
148
|
+
unstake(params: UnstakeParams): Promise<TransactionOperation>;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @description Transfer all the finalizable unstaked funds of the source to their liquid balance
|
|
152
|
+
* @returns An operation handle with the result from the rpc node
|
|
153
|
+
*
|
|
154
|
+
* @param Finalize_unstake pseudo-operation parameter
|
|
155
|
+
*/
|
|
156
|
+
finalizeUnstake(params: FinalizeUnstakeParams): Promise<TransactionOperation>;
|
|
129
157
|
/**
|
|
130
158
|
*
|
|
131
159
|
* @description Transfer Tickets to a smart contract address
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OriginateParams, TransferParams, DelegateParams, RegisterDelegateParams, ParamsWithKind } from '../operations';
|
|
2
|
-
import { RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams } from '../operations/types';
|
|
2
|
+
import { RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
3
3
|
import { Estimate } from './estimate';
|
|
4
4
|
import { ContractMethod, ContractMethodObject, ContractProvider } from '../contract';
|
|
5
5
|
export interface EstimationProvider {
|
|
@@ -21,6 +21,33 @@ export interface EstimationProvider {
|
|
|
21
21
|
* @param Estimate
|
|
22
22
|
*/
|
|
23
23
|
transfer({ fee, storageLimit, gasLimit, ...rest }: TransferParams): Promise<Estimate>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @description Estimate gasLimit, storageLimit and fees for an stake pseudo-operation
|
|
27
|
+
*
|
|
28
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
29
|
+
*
|
|
30
|
+
* @param Estimate
|
|
31
|
+
*/
|
|
32
|
+
stake({ fee, storageLimit, gasLimit, ...rest }: StakeParams): Promise<Estimate>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @description Estimate gasLimit, storageLimit and fees for an unstake pseudo-operation
|
|
36
|
+
*
|
|
37
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
38
|
+
*
|
|
39
|
+
* @param Estimate
|
|
40
|
+
*/
|
|
41
|
+
unstake({ fee, storageLimit, gasLimit, ...rest }: UnstakeParams): Promise<Estimate>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @description Estimate gasLimit, storageLimit and fees for an finalize_unstake pseudo-operation
|
|
45
|
+
*
|
|
46
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
47
|
+
*
|
|
48
|
+
* @param Estimate
|
|
49
|
+
*/
|
|
50
|
+
finalizeUnstake({ fee, storageLimit, gasLimit, ...rest }: FinalizeUnstakeParams): Promise<Estimate>;
|
|
24
51
|
/**
|
|
25
52
|
*
|
|
26
53
|
* @description Estimate gasLimit, storageLimit and fees for an transferTicket operation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DelegateParams, OriginateParams, ParamsWithKind, RegisterDelegateParams, TransferParams, RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams } from '../operations/types';
|
|
1
|
+
import { DelegateParams, OriginateParams, ParamsWithKind, RegisterDelegateParams, TransferParams, RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, 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
4
|
import { ContractMethod, ContractMethodObject, ContractProvider } from '../contract';
|
|
@@ -29,6 +29,33 @@ export declare class RPCEstimateProvider extends Provider implements EstimationP
|
|
|
29
29
|
* @param TransferOperation Originate operation parameter
|
|
30
30
|
*/
|
|
31
31
|
transfer({ fee, storageLimit, gasLimit, ...rest }: TransferParams): Promise<Estimate>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @description Estimate gasLimit, storageLimit and fees for an stake pseudo-operation
|
|
35
|
+
*
|
|
36
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
37
|
+
*
|
|
38
|
+
* @param Stake pseudo-operation parameter
|
|
39
|
+
*/
|
|
40
|
+
stake({ fee, storageLimit, gasLimit, ...rest }: StakeParams): Promise<Estimate>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @description Estimate gasLimit, storageLimit and fees for an Unstake pseudo-operation
|
|
44
|
+
*
|
|
45
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
46
|
+
*
|
|
47
|
+
* @param Unstake pseudo-operation parameter
|
|
48
|
+
*/
|
|
49
|
+
unstake({ fee, storageLimit, gasLimit, ...rest }: UnstakeParams): Promise<Estimate>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @description Estimate gasLimit, storageLimit and fees for an finalize_unstake pseudo-operation
|
|
53
|
+
*
|
|
54
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
55
|
+
*
|
|
56
|
+
* @param finalize_unstake pseudo-operation parameter
|
|
57
|
+
*/
|
|
58
|
+
finalizeUnstake({ fee, storageLimit, gasLimit, ...rest }: FinalizeUnstakeParams): Promise<Estimate>;
|
|
32
59
|
/**
|
|
33
60
|
*
|
|
34
61
|
* @description Estimate gasLimit, storageLimit and fees for a transferTicket operation
|
|
@@ -23,7 +23,7 @@ export declare const isOpWithGasBuffer: <T extends {
|
|
|
23
23
|
}>(op: T) => boolean;
|
|
24
24
|
export declare const isOpWithFee: <T extends {
|
|
25
25
|
kind: OpKind;
|
|
26
|
-
}>(op: T) => op is withKind<T, OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.REVEAL | OpKind.TRANSACTION | OpKind.ATTESTATION | OpKind.ENDORSEMENT | OpKind.PREATTESTATION | OpKind.PREENDORSEMENT | OpKind.SET_DEPOSITS_LIMIT | OpKind.DOUBLE_PREATTESTATION_EVIDENCE | OpKind.DOUBLE_PREENDORSEMENT_EVIDENCE | OpKind.
|
|
26
|
+
}>(op: T) => op is withKind<T, OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.REVEAL | OpKind.TRANSACTION | OpKind.ATTESTATION | OpKind.ENDORSEMENT | OpKind.PREATTESTATION | OpKind.PREENDORSEMENT | OpKind.SET_DEPOSITS_LIMIT | OpKind.DOUBLE_PREATTESTATION_EVIDENCE | OpKind.DOUBLE_PREENDORSEMENT_EVIDENCE | OpKind.ATTESTATION_WITH_DAL | OpKind.ENDORSEMENT_WITH_DAL | OpKind.SEED_NONCE_REVELATION | OpKind.DOUBLE_ATTESTATION_EVIDENCE | OpKind.DOUBLE_ENDORSEMENT_EVIDENCE | OpKind.DOUBLE_BAKING_EVIDENCE | OpKind.PROPOSALS | OpKind.BALLOT | OpKind.REGISTER_GLOBAL_CONSTANT | OpKind.TRANSFER_TICKET | OpKind.INCREASE_PAID_STORAGE | OpKind.UPDATE_CONSENSUS_KEY | OpKind.DRAIN_DELEGATE | OpKind.VDF_REVELATION | OpKind.EVENT | OpKind.TICKET_UPDATES | OpKind.SMART_ROLLUP_ORIGINATE | OpKind.SMART_ROLLUP_ADD_MESSAGES | OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE | OpKind.SMART_ROLLUP_PUBLISH | OpKind.SMART_ROLLUP_CEMENT | OpKind.SMART_ROLLUP_RECOVER_BOND | OpKind.SMART_ROLLUP_REFUTE | OpKind.SMART_ROLLUP_TIMEOUT | OpKind.DAL_PUBLISH_COMMITMENT>;
|
|
27
27
|
export declare const isOpRequireReveal: <T extends {
|
|
28
28
|
kind: OpKind;
|
|
29
29
|
}>(op: T) => op is withKind<T, InternalOperationResultKindEnum>;
|
|
@@ -169,6 +169,45 @@ export interface TransferParams {
|
|
|
169
169
|
storageLimit?: number;
|
|
170
170
|
mutez?: boolean;
|
|
171
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* @description RPC Stake pseudo operation params
|
|
174
|
+
*/
|
|
175
|
+
export interface StakeParams {
|
|
176
|
+
to?: string;
|
|
177
|
+
source?: string;
|
|
178
|
+
amount: number;
|
|
179
|
+
fee?: number;
|
|
180
|
+
parameter?: TransactionOperationParameter;
|
|
181
|
+
gasLimit?: number;
|
|
182
|
+
storageLimit?: number;
|
|
183
|
+
mutez?: boolean;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @description RPC unstake pseudo operation params
|
|
187
|
+
*/
|
|
188
|
+
export interface UnstakeParams {
|
|
189
|
+
to?: string;
|
|
190
|
+
source?: string;
|
|
191
|
+
amount: number;
|
|
192
|
+
fee?: number;
|
|
193
|
+
parameter?: TransactionOperationParameter;
|
|
194
|
+
gasLimit?: number;
|
|
195
|
+
storageLimit?: number;
|
|
196
|
+
mutez?: boolean;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* @description RPC finalize_unstake pseudo operation params
|
|
200
|
+
*/
|
|
201
|
+
export interface FinalizeUnstakeParams {
|
|
202
|
+
to?: string;
|
|
203
|
+
source?: string;
|
|
204
|
+
amount?: number;
|
|
205
|
+
fee?: number;
|
|
206
|
+
parameter?: TransactionOperationParameter;
|
|
207
|
+
gasLimit?: number;
|
|
208
|
+
storageLimit?: number;
|
|
209
|
+
mutez?: boolean;
|
|
210
|
+
}
|
|
172
211
|
/**
|
|
173
212
|
* @description RPC register global constant operation
|
|
174
213
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PreapplyParams } from '@taquito/rpc';
|
|
2
|
-
import { DelegateParams, RevealParams, RegisterGlobalConstantParams, TransferParams, OriginateParams, UpdateConsensusKeyParams, TransferTicketParams, IncreasePaidStorageParams, BallotParams, ProposalsParams, DrainDelegateParams, ParamsWithKind, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, RegisterDelegateParams, ActivationParams } from '../operations/types';
|
|
2
|
+
import { DelegateParams, RevealParams, RegisterGlobalConstantParams, TransferParams, OriginateParams, UpdateConsensusKeyParams, 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
5
|
import { ContractMethod } from '../contract/contract-methods/contract-method-flat-param';
|
|
@@ -59,6 +59,30 @@ export declare class PrepareProvider extends Provider implements PreparationProv
|
|
|
59
59
|
* @returns a PreparedOperation object
|
|
60
60
|
*/
|
|
61
61
|
transaction({ fee, storageLimit, gasLimit, ...rest }: TransferParams): Promise<PreparedOperation>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @description Method to prepare a stake pseudo-operation
|
|
65
|
+
* @param operation RPCOperation object or RPCOperation array
|
|
66
|
+
* @param source string or undefined source pkh
|
|
67
|
+
* @returns a PreparedOperation object
|
|
68
|
+
*/
|
|
69
|
+
stake({ fee, storageLimit, gasLimit, ...rest }: StakeParams): Promise<PreparedOperation>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @description Method to prepare a unstake pseudo-operation
|
|
73
|
+
* @param operation RPCOperation object or RPCOperation array
|
|
74
|
+
* @param source string or undefined source pkh
|
|
75
|
+
* @returns a PreparedOperation object
|
|
76
|
+
*/
|
|
77
|
+
unstake({ fee, storageLimit, gasLimit, ...rest }: UnstakeParams): Promise<PreparedOperation>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @description Method to prepare a finalize_unstake pseudo-operation
|
|
81
|
+
* @param operation RPCOperation object or RPCOperation array
|
|
82
|
+
* @param source string or undefined source pkh
|
|
83
|
+
* @returns a PreparedOperation object
|
|
84
|
+
*/
|
|
85
|
+
finalizeUnstake({ fee, storageLimit, gasLimit, ...rest }: FinalizeUnstakeParams): Promise<PreparedOperation>;
|
|
62
86
|
/**
|
|
63
87
|
*
|
|
64
88
|
* @description Method to prepare a delegation operation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockResponse, EntrypointsResponse, MichelsonV1Expression, SaplingDiffResponse, ScriptedContracts } from '@taquito/rpc';
|
|
1
|
+
import { BlockResponse, EntrypointsResponse, MichelsonV1Expression, SaplingDiffResponse, ScriptedContracts, AILaunchCycleResponse } from '@taquito/rpc';
|
|
2
2
|
import BigNumber from 'bignumber.js';
|
|
3
3
|
export type BigMapQuery = {
|
|
4
4
|
id: string;
|
|
@@ -10,7 +10,7 @@ export type SaplingStateQuery = {
|
|
|
10
10
|
export type BlockIdentifier = 'head' | `head~${number}` | `B${string}` | number;
|
|
11
11
|
export interface TzReadProvider {
|
|
12
12
|
/**
|
|
13
|
-
* @description Access the balance of a contract.
|
|
13
|
+
* @description Access the spendable balance of a contract, excluding frozen bonds.
|
|
14
14
|
* @param address address from which we want to retrieve the balance
|
|
15
15
|
* @param block from which we want to retrieve the balance
|
|
16
16
|
* @returns the balance in mutez
|
|
@@ -117,4 +117,9 @@ export interface TzReadProvider {
|
|
|
117
117
|
* @param block from which we want to retrieve the information
|
|
118
118
|
*/
|
|
119
119
|
getLiveBlocks(block: BlockIdentifier): Promise<string[]>;
|
|
120
|
+
/**
|
|
121
|
+
* @description Returns the cycle at which the launch of the Adaptive Issuance feature is set to happen. A result of null means that the feature is not yet set to launch.
|
|
122
|
+
* @param block from which we want to retrieve the information
|
|
123
|
+
*/
|
|
124
|
+
getAdaptiveIssuanceLaunchCycle(block: BlockIdentifier): Promise<AILaunchCycleResponse>;
|
|
120
125
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockResponse, EntrypointsResponse, MichelsonV1Expression, RpcClientInterface, SaplingDiffResponse, ScriptedContracts } from '@taquito/rpc';
|
|
1
|
+
import { BlockResponse, EntrypointsResponse, MichelsonV1Expression, RpcClientInterface, SaplingDiffResponse, ScriptedContracts, AILaunchCycleResponse } from '@taquito/rpc';
|
|
2
2
|
import BigNumber from 'bignumber.js';
|
|
3
3
|
import { BigMapQuery, BlockIdentifier, SaplingStateQuery, TzReadProvider } from './interface';
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ export declare class RpcReadAdapter implements TzReadProvider {
|
|
|
8
8
|
private rpc;
|
|
9
9
|
constructor(rpc: RpcClientInterface);
|
|
10
10
|
/**
|
|
11
|
-
* @description Access the balance of a contract.
|
|
11
|
+
* @description Access the spendable balance of a contract, excluding frozen bonds.
|
|
12
12
|
* @param address address from which we want to retrieve the balance
|
|
13
13
|
* @param block from which we want to retrieve the balance
|
|
14
14
|
* @returns the balance in mutez
|
|
@@ -115,4 +115,9 @@ export declare class RpcReadAdapter implements TzReadProvider {
|
|
|
115
115
|
* @param block from which we want to retrieve the information
|
|
116
116
|
*/
|
|
117
117
|
getLiveBlocks(block: BlockIdentifier): Promise<string[]>;
|
|
118
|
+
/**
|
|
119
|
+
* @description Returns the cycle at which the launch of the Adaptive Issuance feature is set to happen. A result of null means that the feature is not yet set to launch.
|
|
120
|
+
* @param block from which we want to retrieve the information
|
|
121
|
+
*/
|
|
122
|
+
getAdaptiveIssuanceLaunchCycle(block: BlockIdentifier): Promise<AILaunchCycleResponse>;
|
|
118
123
|
}
|
package/dist/types/taquito.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ import { OperationFactory } from './wallet/operation-factory';
|
|
|
22
22
|
import { EstimationProvider } from './estimate/estimate-provider-interface';
|
|
23
23
|
import { ParserProvider } from './parser/interface';
|
|
24
24
|
import { Injector } from './injector/interface';
|
|
25
|
-
|
|
25
|
+
import { FieldNumberingStrategy } from '@taquito/michelson-encoder';
|
|
26
|
+
export { FieldNumberingStrategy, Token, MichelsonMap, UnitValue } from '@taquito/michelson-encoder';
|
|
26
27
|
export { Forger, ForgeParams, ForgeResponse } from '@taquito/local-forging';
|
|
27
28
|
export * from './constants';
|
|
28
29
|
export * from './context';
|
|
@@ -197,6 +198,11 @@ export declare class TezosToolkit {
|
|
|
197
198
|
*
|
|
198
199
|
*/
|
|
199
200
|
setInjectorProvider(injectorProvider?: SetProviderOptions['injectorProvider']): void;
|
|
201
|
+
/**
|
|
202
|
+
* @description Sets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects
|
|
203
|
+
* @param strategy a value of type FieldNumberingStrategy that controls how field numbers are calculated
|
|
204
|
+
*/
|
|
205
|
+
setFieldNumberingStrategy(strategy: FieldNumberingStrategy): void;
|
|
200
206
|
/**
|
|
201
207
|
* @description Provide access to tezos account management
|
|
202
208
|
*/
|
|
@@ -3,7 +3,7 @@ import { Operation } from '../operations/operations';
|
|
|
3
3
|
export interface TzProvider {
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
|
-
* @param address Tezos address you want to get the balance for (eg tz1...)
|
|
6
|
+
* @param address Tezos address you want to get the spendable balance for (eg tz1...)
|
|
7
7
|
*/
|
|
8
8
|
getBalance(address: string): Promise<BigNumber>;
|
|
9
9
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { DelegateParams, FailingNoopParams, IncreasePaidStorageParams, OriginateParams, TransferParams } from '../operations/types';
|
|
1
|
+
import { DelegateParams, FailingNoopParams, IncreasePaidStorageParams, OriginateParams, TransferParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
2
2
|
export type WalletDefinedFields = 'source';
|
|
3
3
|
export type WalletTransferParams = Omit<TransferParams, WalletDefinedFields>;
|
|
4
|
+
export type WalletStakeParams = Omit<StakeParams, WalletDefinedFields>;
|
|
5
|
+
export type WalletUnstakeParams = Omit<UnstakeParams, WalletDefinedFields>;
|
|
6
|
+
export type WalletFinalizeUnstakeParams = Omit<FinalizeUnstakeParams, WalletDefinedFields>;
|
|
4
7
|
export type WalletOriginateParams<TStorage = any> = Omit<OriginateParams<TStorage>, WalletDefinedFields>;
|
|
5
8
|
export type WalletDelegateParams = Omit<DelegateParams, WalletDefinedFields>;
|
|
6
9
|
export type WalletFailingNoopParams = Omit<FailingNoopParams, WalletDefinedFields>;
|
|
@@ -18,6 +21,18 @@ export interface WalletProvider {
|
|
|
18
21
|
* @description Transform WalletTransferParams into a format compliant with the underlying wallet
|
|
19
22
|
*/
|
|
20
23
|
mapTransferParamsToWalletParams: (params: () => Promise<WalletTransferParams>) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* @description Transform WalletStakeParams into a format compliant with the underlying wallet
|
|
26
|
+
*/
|
|
27
|
+
mapStakeParamsToWalletParams: (params: () => Promise<WalletStakeParams>) => Promise<any>;
|
|
28
|
+
/**
|
|
29
|
+
* @description Transform WalletUnstakeParams into a format compliant with the underlying wallet
|
|
30
|
+
*/
|
|
31
|
+
mapUnstakeParamsToWalletParams: (params: () => Promise<WalletUnstakeParams>) => Promise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* @description Transform WalletFinalizeUnstakeParams into a format compliant with the underlying wallet
|
|
34
|
+
*/
|
|
35
|
+
mapFinalizeUnstakeParamsToWalletParams: (params: () => Promise<WalletFinalizeUnstakeParams>) => Promise<any>;
|
|
21
36
|
/**
|
|
22
37
|
* @description Transform WalletOriginateParams into a format compliant with the underlying wallet
|
|
23
38
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from '../context';
|
|
2
2
|
import { OpKind } from '../operations/types';
|
|
3
|
-
import { WalletDelegateParams, WalletIncreasePaidStorageParams, WalletOriginateParams, WalletProvider, WalletTransferParams } from './interface';
|
|
3
|
+
import { WalletDelegateParams, WalletIncreasePaidStorageParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams } from './interface';
|
|
4
4
|
import { WalletParamsWithKind } from './wallet';
|
|
5
5
|
export declare class LegacyWalletProvider implements WalletProvider {
|
|
6
6
|
private context;
|
|
@@ -8,6 +8,9 @@ export declare class LegacyWalletProvider implements WalletProvider {
|
|
|
8
8
|
getPKH(): Promise<string>;
|
|
9
9
|
getPK(): Promise<string>;
|
|
10
10
|
mapTransferParamsToWalletParams(params: () => Promise<WalletTransferParams>): Promise<import("../operations/types").withKind<WalletTransferParams, OpKind.TRANSACTION>>;
|
|
11
|
+
mapStakeParamsToWalletParams(params: () => Promise<WalletStakeParams>): Promise<import("../operations/types").withKind<WalletStakeParams, OpKind.TRANSACTION>>;
|
|
12
|
+
mapUnstakeParamsToWalletParams(params: () => Promise<WalletUnstakeParams>): Promise<import("../operations/types").withKind<WalletUnstakeParams, OpKind.TRANSACTION>>;
|
|
13
|
+
mapFinalizeUnstakeParamsToWalletParams(params: () => Promise<WalletFinalizeUnstakeParams>): Promise<import("../operations/types").withKind<WalletFinalizeUnstakeParams, OpKind.TRANSACTION>>;
|
|
11
14
|
mapOriginateParamsToWalletParams(params: () => Promise<WalletOriginateParams>): Promise<import("../operations/types").withKind<WalletOriginateParams, OpKind.ORIGINATION>>;
|
|
12
15
|
mapDelegateParamsToWalletParams(params: () => Promise<WalletDelegateParams>): Promise<import("../operations/types").withKind<WalletDelegateParams, OpKind.DELEGATION>>;
|
|
13
16
|
mapIncreasePaidStorageWalletParams(params: () => Promise<WalletIncreasePaidStorageParams>): Promise<import("../operations/types").withKind<WalletIncreasePaidStorageParams, OpKind.INCREASE_PAID_STORAGE>>;
|