@taquito/taquito 23.0.0-beta.0 → 23.0.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/rpc-batch-provider.js +47 -5
- package/dist/lib/constants.js +1 -2
- package/dist/lib/contract/contract.js +1 -1
- package/dist/lib/contract/prepare.js +17 -3
- package/dist/lib/contract/rpc-contract-provider.js +67 -17
- package/dist/lib/estimate/rpc-estimate-provider.js +133 -27
- package/dist/lib/operations/index.js +3 -1
- package/dist/lib/operations/reveal-operation.js +9 -0
- package/dist/lib/operations/types.js +5 -1
- package/dist/lib/operations/update-companion-key-operation.js +58 -0
- package/dist/lib/operations/update-consensus-key-operation.js +9 -0
- package/dist/lib/prepare/prepare-provider.js +76 -3
- package/dist/lib/provider.js +4 -0
- package/dist/lib/taquito.js +0 -1
- package/dist/lib/tz/rpc-tz-provider.js +4 -4
- package/dist/lib/version.js +2 -2
- package/dist/lib/wallet/wallet.js +9 -9
- package/dist/taquito.es6.js +434 -76
- 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 +433 -73
- package/dist/taquito.umd.js.map +1 -1
- package/dist/types/batch/rpc-batch-provider.d.ts +16 -2
- package/dist/types/context.d.ts +1 -1
- package/dist/types/contract/interface.d.ts +10 -3
- package/dist/types/contract/prepare.d.ts +4 -3
- package/dist/types/contract/rpc-contract-provider.d.ts +11 -4
- package/dist/types/estimate/estimate-provider-interface.d.ts +9 -3
- package/dist/types/estimate/rpc-estimate-provider.d.ts +10 -4
- package/dist/types/operations/index.d.ts +1 -0
- package/dist/types/operations/reveal-operation.d.ts +1 -0
- package/dist/types/operations/types.d.ts +26 -5
- package/dist/types/operations/update-companion-key-operation.d.ts +23 -0
- package/dist/types/operations/update-consensus-key-operation.d.ts +1 -0
- package/dist/types/prepare/interface.d.ts +8 -3
- package/dist/types/prepare/prepare-provider.d.ts +10 -4
- package/dist/types/provider.d.ts +2 -2
- package/dist/types/signer/noop.d.ts +1 -1
- package/dist/types/taquito.d.ts +2 -2
- package/package.json +9 -9
- package/dist/lib/signer/interface.js +0 -2
- package/dist/types/signer/interface.d.ts +0 -28
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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ams } from '../contract/contract-methods/contract-method-interface';
|
|
5
5
|
import { ContractProvider } from '../contract/interface';
|
|
6
6
|
import { BatchOperation } from '../operations/batch-operation';
|
|
7
|
-
import { ActivationParams, DelegateParams, OriginateParams, TransferParams, ParamsWithKind, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams } from '../operations/types';
|
|
7
|
+
import { ActivationParams, DelegateParams, OriginateParams, TransferParams, ParamsWithKind, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams } from '../operations/types';
|
|
8
8
|
import { OpKind } from '@taquito/rpc';
|
|
9
9
|
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
|
|
10
10
|
import { EstimationProvider } from '../estimate/estimate-provider-interface';
|
|
@@ -74,6 +74,20 @@ export declare class OperationBatch extends Provider {
|
|
|
74
74
|
* @param params IncreasePaidStorage operation parameter
|
|
75
75
|
*/
|
|
76
76
|
withIncreasePaidStorage(params: IncreasePaidStorageParams): this;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @description Add a update consensus key operation to the batch
|
|
80
|
+
*
|
|
81
|
+
* @param params UpdateConsensusKey operation parameter
|
|
82
|
+
*/
|
|
83
|
+
withUpdateConsensusKey(params: UpdateConsensusKeyParams): this;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @description Add a update companion key operation to the batch
|
|
87
|
+
*
|
|
88
|
+
* @param params UpdateCompanionKey operation parameter
|
|
89
|
+
*/
|
|
90
|
+
withUpdateCompanionKey(params: UpdateCompanionKeyParams): this;
|
|
77
91
|
/**
|
|
78
92
|
*
|
|
79
93
|
* @description Add a smart rollup add messages operation to the batch
|
|
@@ -95,7 +109,7 @@ export declare class OperationBatch extends Provider {
|
|
|
95
109
|
* @param params Smart Rollup Execute Outbox Message operation parameter
|
|
96
110
|
*/
|
|
97
111
|
withSmartRollupExecuteOutboxMessage(params: SmartRollupExecuteOutboxMessageParams): this;
|
|
98
|
-
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").RPCTransferTicketOperation | import("../operations/types").RPCSmartRollupAddMessagesOperation | import("../operations/types").RPCSmartRollupOriginateOperation | import("../operations/types").RPCSmartRollupOutboxMessageOperation>;
|
|
112
|
+
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>;
|
|
99
113
|
/**
|
|
100
114
|
*
|
|
101
115
|
* @description Add a group operation to the batch. Operation will be applied in the order they are in the params array
|
package/dist/types/context.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { RpcClientInterface } from '@taquito/rpc';
|
|
|
2
2
|
import { Protocols } from './constants';
|
|
3
3
|
import { Forger } from '@taquito/local-forging';
|
|
4
4
|
import { Injector } from './injector/interface';
|
|
5
|
-
import { Signer } from '
|
|
5
|
+
import { Signer } from '@taquito/core';
|
|
6
6
|
import { OperationFactory } from './wallet/operation-factory';
|
|
7
7
|
import { RpcTzProvider } from './tz/rpc-tz-provider';
|
|
8
8
|
import { RPCEstimateProvider } from './estimate/rpc-estimate-provider';
|
|
@@ -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, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
10
|
+
import { DelegateParams, OriginateParams, TransferParams, RegisterDelegateParams, ParamsWithKind, RevealParams, RegisterGlobalConstantParams, IncreasePaidStorageParams, TransferTicketParams, DrainDelegateParams, BallotParams, ProposalsParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, 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';
|
|
@@ -15,6 +15,7 @@ import { DrainDelegateOperation } from '../operations';
|
|
|
15
15
|
import { BallotOperation } from '../operations';
|
|
16
16
|
import { ProposalsOperation } from '../operations/proposals-operation';
|
|
17
17
|
import { UpdateConsensusKeyOperation } from '../operations/update-consensus-key-operation';
|
|
18
|
+
import { UpdateCompanionKeyOperation } from '../operations/update-companion-key-operation';
|
|
18
19
|
import { SmartRollupAddMessagesOperation } from '../operations/smart-rollup-add-messages-operation';
|
|
19
20
|
import { SmartRollupOriginateOperation } from '../operations/smart-rollup-originate-operation';
|
|
20
21
|
import { SmartRollupExecuteOutboxMessageOperation } from '../operations/smart-rollup-execute-outbox-message-operation';
|
|
@@ -155,7 +156,6 @@ export interface ContractProvider extends StorageProvider {
|
|
|
155
156
|
/**
|
|
156
157
|
*
|
|
157
158
|
* @description Reveal the current address. Will throw an error if the address is already revealed.
|
|
158
|
-
* @remarks Reveal tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
159
159
|
* @returns An operation handle with the result from the rpc node
|
|
160
160
|
*
|
|
161
161
|
* @param Reveal operation parameter
|
|
@@ -217,12 +217,19 @@ export interface ContractProvider extends StorageProvider {
|
|
|
217
217
|
/**
|
|
218
218
|
*
|
|
219
219
|
* @description Update consensus key
|
|
220
|
-
* @remarks updateConsensusKey to a tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
221
220
|
* @returns An operation handle with the result from the RPC node
|
|
222
221
|
*
|
|
223
222
|
* @param UpdateConsensusKeyParams UpdateConsensusKey operation parameter
|
|
224
223
|
*/
|
|
225
224
|
updateConsensusKey(params: UpdateConsensusKeyParams): Promise<UpdateConsensusKeyOperation>;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @description Update companion key
|
|
228
|
+
* @returns An operation handle with the result from the RPC node
|
|
229
|
+
*
|
|
230
|
+
* @param UpdateCompanionKeyParams UpdateCompanionKey operation parameter
|
|
231
|
+
*/
|
|
232
|
+
updateCompanionKey(params: UpdateCompanionKeyParams): Promise<UpdateCompanionKeyOperation>;
|
|
226
233
|
/**
|
|
227
234
|
*
|
|
228
235
|
* @description Smart Rollup Add Messages
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { OriginateParams, RPCOriginationOperation, TransferParams, RPCTransferOperation, DelegateParams, RPCDelegateOperation, RegisterDelegateParams, RPCRevealOperation, RevealParams, RegisterGlobalConstantParams, RPCRegisterGlobalConstantOperation, TransferTicketParams, RPCTransferTicketOperation, IncreasePaidStorageParams, RPCIncreasePaidStorageOperation, DrainDelegateParams, RPCDrainDelegateOperation, BallotParams, RPCBallotOperation, ProposalsParams, RPCProposalsOperation, UpdateConsensusKeyParams, RPCUpdateConsensusKeyOperation, SmartRollupAddMessagesParams, RPCSmartRollupAddMessagesOperation, SmartRollupOriginateParams, RPCSmartRollupOriginateOperation, SmartRollupExecuteOutboxMessageParams, RPCSmartRollupOutboxMessageOperation, ActivationParams, RPCActivateOperation } from '../operations/types';
|
|
1
|
+
import { OriginateParams, RPCOriginationOperation, TransferParams, RPCTransferOperation, DelegateParams, RPCDelegateOperation, RegisterDelegateParams, RPCRevealOperation, RevealParams, RegisterGlobalConstantParams, RPCRegisterGlobalConstantOperation, TransferTicketParams, RPCTransferTicketOperation, IncreasePaidStorageParams, RPCIncreasePaidStorageOperation, DrainDelegateParams, RPCDrainDelegateOperation, BallotParams, RPCBallotOperation, ProposalsParams, RPCProposalsOperation, UpdateConsensusKeyParams, RPCUpdateConsensusKeyOperation, UpdateCompanionKeyParams, RPCUpdateCompanionKeyOperation, SmartRollupAddMessagesParams, RPCSmartRollupAddMessagesOperation, SmartRollupOriginateParams, RPCSmartRollupOriginateOperation, SmartRollupExecuteOutboxMessageParams, RPCSmartRollupOutboxMessageOperation, ActivationParams, RPCActivateOperation } from '../operations/types';
|
|
2
2
|
export declare const createActivationOperation: ({ pkh, secret }: ActivationParams) => Promise<RPCActivateOperation>;
|
|
3
3
|
export declare const createOriginationOperation: ({ code, init, balance, delegate, storage, fee, gasLimit, storageLimit, mutez, }: OriginateParams) => Promise<RPCOriginationOperation>;
|
|
4
4
|
export declare const createTransferOperation: ({ to, amount, parameter, fee, gasLimit, storageLimit, mutez, }: TransferParams) => Promise<RPCTransferOperation>;
|
|
5
5
|
export declare const createSetDelegateOperation: ({ delegate, source, fee, gasLimit, storageLimit, }: DelegateParams) => Promise<RPCDelegateOperation>;
|
|
6
6
|
export declare const createRegisterDelegateOperation: ({ fee, gasLimit, storageLimit }: RegisterDelegateParams, source: string) => Promise<RPCDelegateOperation>;
|
|
7
|
-
export declare const createRevealOperation: ({ fee, gasLimit, storageLimit }: RevealParams, source: string, publicKey: string) => Promise<RPCRevealOperation>;
|
|
7
|
+
export declare const createRevealOperation: ({ fee, gasLimit, storageLimit, proof }: RevealParams, source: string, publicKey: string) => Promise<RPCRevealOperation>;
|
|
8
8
|
export declare const createRegisterGlobalConstantOperation: ({ value, source, fee, gasLimit, storageLimit, }: RegisterGlobalConstantParams) => Promise<RPCRegisterGlobalConstantOperation>;
|
|
9
9
|
export declare const createTransferTicketOperation: ({ ticketContents, ticketTy, ticketTicketer, ticketAmount, destination, entrypoint, source, fee, gasLimit, storageLimit, }: TransferTicketParams) => Promise<RPCTransferTicketOperation>;
|
|
10
10
|
export declare const createIncreasePaidStorageOperation: ({ source, fee, gasLimit, storageLimit, amount, destination, }: IncreasePaidStorageParams) => Promise<RPCIncreasePaidStorageOperation>;
|
|
11
11
|
export declare const createDrainDelegateOperation: ({ consensus_key, delegate, destination, }: DrainDelegateParams) => Promise<RPCDrainDelegateOperation>;
|
|
12
12
|
export declare const createBallotOperation: ({ source, proposal, ballot }: BallotParams) => Promise<RPCBallotOperation>;
|
|
13
13
|
export declare const createProposalsOperation: ({ source, proposals }: ProposalsParams) => Promise<RPCProposalsOperation>;
|
|
14
|
-
export declare const createUpdateConsensusKeyOperation: ({ source, fee, gasLimit, storageLimit, pk, }: UpdateConsensusKeyParams) => Promise<RPCUpdateConsensusKeyOperation>;
|
|
14
|
+
export declare const createUpdateConsensusKeyOperation: ({ source, fee, gasLimit, storageLimit, pk, proof, }: UpdateConsensusKeyParams) => Promise<RPCUpdateConsensusKeyOperation>;
|
|
15
|
+
export declare const createUpdateCompanionKeyOperation: ({ source, fee, gasLimit, storageLimit, pk, proof, }: UpdateCompanionKeyParams) => Promise<RPCUpdateCompanionKeyOperation>;
|
|
15
16
|
export declare const createSmartRollupAddMessagesOperation: ({ source, fee, gasLimit, storageLimit, message, }: SmartRollupAddMessagesParams) => Promise<RPCSmartRollupAddMessagesOperation>;
|
|
16
17
|
export declare const createSmartRollupOriginateOperation: ({ source, fee, gasLimit, storageLimit, pvmKind, kernel, parametersType, }: SmartRollupOriginateParams) => Promise<RPCSmartRollupOriginateOperation>;
|
|
17
18
|
export declare const createSmartRollupExecuteOutboxMessageOperation: ({ source, fee, gasLimit, storageLimit, rollup, cementedCommitment, outputProof, }: SmartRollupExecuteOutboxMessageParams) => Promise<RPCSmartRollupOutboxMessageOperation>;
|
|
@@ -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, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
9
|
+
import { DelegateParams, OriginateParams, ParamsWithKind, RegisterDelegateParams, RegisterGlobalConstantParams, RevealParams, TransferParams, TransferTicketParams, IncreasePaidStorageParams, DrainDelegateParams, BallotParams, ProposalsParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, 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';
|
|
@@ -16,6 +16,7 @@ import { BallotOperation } from '../operations/ballot-operation';
|
|
|
16
16
|
import { DrainDelegateOperation } from '../operations/drain-delegate-operation';
|
|
17
17
|
import { ProposalsOperation } from '../operations/proposals-operation';
|
|
18
18
|
import { UpdateConsensusKeyOperation } from '../operations/update-consensus-key-operation';
|
|
19
|
+
import { UpdateCompanionKeyOperation } from '../operations/update-companion-key-operation';
|
|
19
20
|
import { SmartRollupAddMessagesOperation } from '../operations/smart-rollup-add-messages-operation';
|
|
20
21
|
import { SmartRollupOriginateOperation } from '../operations/smart-rollup-originate-operation';
|
|
21
22
|
import { SmartRollupExecuteOutboxMessageOperation } from '../operations/smart-rollup-execute-outbox-message-operation';
|
|
@@ -166,7 +167,6 @@ export declare class RpcContractProvider extends Provider implements ContractPro
|
|
|
166
167
|
/**
|
|
167
168
|
*
|
|
168
169
|
* @description Reveal the public key of the current address. Will throw an error if the address is already revealed.
|
|
169
|
-
* @remarks Reveal tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
170
170
|
* @returns An operation handle with the result from the rpc node
|
|
171
171
|
*
|
|
172
172
|
* @param RevealParams operation parameter
|
|
@@ -219,13 +219,20 @@ export declare class RpcContractProvider extends Provider implements ContractPro
|
|
|
219
219
|
proposals(params: ProposalsParams): Promise<ProposalsOperation>;
|
|
220
220
|
/**
|
|
221
221
|
*
|
|
222
|
-
* @description
|
|
223
|
-
* @remarks updateConsensusKey to a tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
222
|
+
* @description Update the consensus key of a delegate starting from the current cycle plus CONSENSUS_RIGHTS_DELAY + 1
|
|
224
223
|
* @returns An operation handle with the result from the rpc node
|
|
225
224
|
*
|
|
226
225
|
* @param UpdateConsensusKeyParams
|
|
227
226
|
*/
|
|
228
227
|
updateConsensusKey(params: UpdateConsensusKeyParams): Promise<UpdateConsensusKeyOperation>;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @description Updates the companion key of the delegate starting from the current cycle plus CONSENSUS_KEY_ACTIVATION_DELAY + 1
|
|
231
|
+
* @returns An operation handle with the result from the rpc node
|
|
232
|
+
*
|
|
233
|
+
* @param UpdateCompanionKeyParams
|
|
234
|
+
*/
|
|
235
|
+
updateCompanionKey(params: UpdateCompanionKeyParams): Promise<UpdateCompanionKeyOperation>;
|
|
229
236
|
/**
|
|
230
237
|
* @description Adds messages to the rollup inbox that can be executed/claimed after it gets cemented
|
|
231
238
|
* @param SmartRollupAddMessagesParams
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OriginateParams, TransferParams, DelegateParams, RegisterDelegateParams, ParamsWithKind } from '../operations';
|
|
2
|
-
import { RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
2
|
+
import { RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, 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 {
|
|
@@ -78,7 +78,6 @@ export interface EstimationProvider {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @description Estimate gasLimit, storageLimit and fees for a reveal operation
|
|
81
|
-
* @remarks Reveal tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
82
81
|
* @returns An estimation of gasLimit, storageLimit and fees for the operation or undefined if the account is already revealed
|
|
83
82
|
*
|
|
84
83
|
* @param Estimate
|
|
@@ -106,12 +105,19 @@ export interface EstimationProvider {
|
|
|
106
105
|
/**
|
|
107
106
|
*
|
|
108
107
|
* @description Estimate gasLimit, storageLimit and fees for an Update Consensus Key operation
|
|
109
|
-
* @remarks updateConsensusKey to a tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
110
108
|
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
111
109
|
*
|
|
112
110
|
* @param Estimate
|
|
113
111
|
*/
|
|
114
112
|
updateConsensusKey(params: UpdateConsensusKeyParams): Promise<Estimate>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @description Estimate gasLimit, storageLimit and fees for an Update Companion Key operation
|
|
116
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
117
|
+
*
|
|
118
|
+
* @param Estimate
|
|
119
|
+
*/
|
|
120
|
+
updateCompanionKey(params: UpdateCompanionKeyParams): Promise<Estimate>;
|
|
115
121
|
/**
|
|
116
122
|
*
|
|
117
123
|
* @description Estimate gasLimit, storageLimit and fees for an Smart Rollup Add Messages operation
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { DelegateParams, OriginateParams, ParamsWithKind, RegisterDelegateParams, TransferParams, RevealParams, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, UpdateConsensusKeyParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
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
4
|
import { ContractMethod, ContractMethodObject, ContractProvider } from '../contract';
|
|
5
5
|
import { Provider } from '../provider';
|
|
6
6
|
export declare class RPCEstimateProvider extends Provider implements EstimationProvider {
|
|
7
|
-
private readonly
|
|
7
|
+
private readonly REVEAL_LENGTH;
|
|
8
|
+
private readonly REVEAL_LENGTH_TZ4;
|
|
8
9
|
private readonly MILLIGAS_BUFFER;
|
|
9
10
|
private readonly STORAGE_BUFFER;
|
|
10
11
|
private prepare;
|
|
@@ -93,7 +94,6 @@ export declare class RPCEstimateProvider extends Provider implements EstimationP
|
|
|
93
94
|
/**
|
|
94
95
|
*
|
|
95
96
|
* @description Estimate gasLimit, storageLimit and fees to reveal the current account
|
|
96
|
-
* @remarks Reveal tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
97
97
|
* @returns An estimation of gasLimit, storageLimit and fees for the operation or undefined if the account is already revealed
|
|
98
98
|
*
|
|
99
99
|
* @param Estimate
|
|
@@ -120,11 +120,17 @@ export declare class RPCEstimateProvider extends Provider implements EstimationP
|
|
|
120
120
|
/**
|
|
121
121
|
*
|
|
122
122
|
* @description Estimate gasLimit, storageLimit and fees for an Update Consensus Key operation
|
|
123
|
-
* @remarks updateConsensusKey to a tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
124
123
|
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
125
124
|
* @param Estimate
|
|
126
125
|
*/
|
|
127
126
|
updateConsensusKey(params: UpdateConsensusKeyParams): Promise<Estimate>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @description Estimate gasLimit, storageLimit and fees for an Update Companion Key operation
|
|
130
|
+
* @returns An estimation of gasLimit, storageLimit and fees for the operation
|
|
131
|
+
* @param Estimate
|
|
132
|
+
*/
|
|
133
|
+
updateCompanionKey(params: UpdateCompanionKeyParams): Promise<Estimate>;
|
|
128
134
|
/**
|
|
129
135
|
*
|
|
130
136
|
* @description Estimate gasLimit, storageLimit and fees for a smart_rollup_add_messages operation
|
|
@@ -8,6 +8,7 @@ export { RegisterGlobalConstantOperation } from './register-global-constant-oper
|
|
|
8
8
|
export { IncreasePaidStorageOperation } from './increase-paid-storage-operation';
|
|
9
9
|
export { TransferTicketOperation } from './transfer-ticket-operation';
|
|
10
10
|
export { UpdateConsensusKeyOperation } from './update-consensus-key-operation';
|
|
11
|
+
export { UpdateCompanionKeyOperation } from './update-companion-key-operation';
|
|
11
12
|
export { SmartRollupAddMessagesOperation } from './smart-rollup-add-messages-operation';
|
|
12
13
|
export { SmartRollupOriginateOperation } from './smart-rollup-originate-operation';
|
|
13
14
|
export { BallotOperation } from './ballot-operation';
|
|
@@ -15,6 +15,7 @@ export declare class RevealOperation extends Operation implements GasConsumingOp
|
|
|
15
15
|
get gasLimit(): number;
|
|
16
16
|
get storageLimit(): number;
|
|
17
17
|
get publicKey(): string;
|
|
18
|
+
get proof(): string;
|
|
18
19
|
private sumProp;
|
|
19
20
|
get consumedGas(): string;
|
|
20
21
|
get consumedMilliGas(): string;
|
|
@@ -4,7 +4,7 @@ export { OpKind } from '@taquito/rpc';
|
|
|
4
4
|
export type withKind<T, K extends OpKind> = T & {
|
|
5
5
|
kind: K;
|
|
6
6
|
};
|
|
7
|
-
export type ParamsWithKind = withKind<OriginateParams, OpKind.ORIGINATION> | withKind<DelegateParams, OpKind.DELEGATION> | withKind<TransferParams, OpKind.TRANSACTION> | withKind<ActivationParams, OpKind.ACTIVATION> | withKind<RegisterGlobalConstantParams, OpKind.REGISTER_GLOBAL_CONSTANT> | withKind<IncreasePaidStorageParams, OpKind.INCREASE_PAID_STORAGE> | withKind<TransferTicketParams, OpKind.TRANSFER_TICKET> | withKind<UpdateConsensusKeyParams, OpKind.UPDATE_CONSENSUS_KEY> | withKind<SmartRollupAddMessagesParams, OpKind.SMART_ROLLUP_ADD_MESSAGES> | withKind<FailingNoopParams, OpKind.FAILING_NOOP> | withKind<SmartRollupOriginateParams, OpKind.SMART_ROLLUP_ORIGINATE> | withKind<SmartRollupExecuteOutboxMessageParams, OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE>;
|
|
7
|
+
export type ParamsWithKind = withKind<OriginateParams, OpKind.ORIGINATION> | withKind<DelegateParams, OpKind.DELEGATION> | withKind<TransferParams, OpKind.TRANSACTION> | withKind<ActivationParams, OpKind.ACTIVATION> | withKind<RegisterGlobalConstantParams, OpKind.REGISTER_GLOBAL_CONSTANT> | withKind<IncreasePaidStorageParams, OpKind.INCREASE_PAID_STORAGE> | withKind<TransferTicketParams, OpKind.TRANSFER_TICKET> | withKind<UpdateConsensusKeyParams, OpKind.UPDATE_CONSENSUS_KEY> | withKind<UpdateCompanionKeyParams, OpKind.UPDATE_COMPANION_KEY> | withKind<SmartRollupAddMessagesParams, OpKind.SMART_ROLLUP_ADD_MESSAGES> | withKind<FailingNoopParams, OpKind.FAILING_NOOP> | withKind<SmartRollupOriginateParams, OpKind.SMART_ROLLUP_ORIGINATE> | withKind<SmartRollupExecuteOutboxMessageParams, OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE>;
|
|
8
8
|
export type ParamsWithKindExtended = ParamsWithKind | withKind<RevealParams, OpKind.REVEAL>;
|
|
9
9
|
export declare const attachKind: <T, K extends OpKind>(op: T, kind: K) => withKind<T, K>;
|
|
10
10
|
export declare const findWithKind: <T extends {
|
|
@@ -15,11 +15,11 @@ export declare const findWithKind: <T extends {
|
|
|
15
15
|
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
|
-
export type RPCOpWithFee = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation;
|
|
19
|
-
export type RPCOpWithSource = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation;
|
|
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;
|
|
20
20
|
export declare const isOpWithGasBuffer: <T extends {
|
|
21
21
|
kind: OpKind;
|
|
22
|
-
|
|
22
|
+
destination?: string;
|
|
23
23
|
}>(op: T) => boolean;
|
|
24
24
|
export declare const isOpWithFee: <T extends {
|
|
25
25
|
kind: OpKind;
|
|
@@ -113,11 +113,13 @@ export interface RPCRevealOperation {
|
|
|
113
113
|
source?: string;
|
|
114
114
|
gas_limit: number;
|
|
115
115
|
storage_limit: number;
|
|
116
|
+
proof?: string;
|
|
116
117
|
}
|
|
117
118
|
export interface RevealParams {
|
|
118
119
|
fee?: number;
|
|
119
120
|
gasLimit?: number;
|
|
120
121
|
storageLimit?: number;
|
|
122
|
+
proof?: string;
|
|
121
123
|
}
|
|
122
124
|
/**
|
|
123
125
|
* @description Result of a forge operation contains the operation plus its encoded version
|
|
@@ -352,6 +354,7 @@ export interface UpdateConsensusKeyParams {
|
|
|
352
354
|
gasLimit?: number;
|
|
353
355
|
storageLimit?: number;
|
|
354
356
|
pk: string;
|
|
357
|
+
proof?: string;
|
|
355
358
|
}
|
|
356
359
|
export interface RPCUpdateConsensusKeyOperation {
|
|
357
360
|
kind: OpKind.UPDATE_CONSENSUS_KEY;
|
|
@@ -360,6 +363,24 @@ export interface RPCUpdateConsensusKeyOperation {
|
|
|
360
363
|
gas_limit: number;
|
|
361
364
|
storage_limit: number;
|
|
362
365
|
pk: string;
|
|
366
|
+
proof?: string;
|
|
367
|
+
}
|
|
368
|
+
export interface UpdateCompanionKeyParams {
|
|
369
|
+
source?: string;
|
|
370
|
+
fee?: number;
|
|
371
|
+
gasLimit?: number;
|
|
372
|
+
storageLimit?: number;
|
|
373
|
+
pk: string;
|
|
374
|
+
proof?: string;
|
|
375
|
+
}
|
|
376
|
+
export interface RPCUpdateCompanionKeyOperation {
|
|
377
|
+
kind: OpKind.UPDATE_COMPANION_KEY;
|
|
378
|
+
source: string;
|
|
379
|
+
fee: number;
|
|
380
|
+
gas_limit: number;
|
|
381
|
+
storage_limit: number;
|
|
382
|
+
pk: string;
|
|
383
|
+
proof?: string;
|
|
363
384
|
}
|
|
364
385
|
export interface SmartRollupAddMessagesParams {
|
|
365
386
|
source?: string;
|
|
@@ -428,7 +449,7 @@ export interface FailingNoopParams {
|
|
|
428
449
|
arbitrary: string;
|
|
429
450
|
basedOnBlock: BlockIdentifier;
|
|
430
451
|
}
|
|
431
|
-
export type RPCOperation = RPCOriginationOperation | RPCTransferOperation | RPCDelegateOperation | RPCRevealOperation | RPCActivateOperation | RPCRegisterGlobalConstantOperation | RPCTransferTicketOperation | RPCIncreasePaidStorageOperation | RPCDrainDelegateOperation | RPCBallotOperation | RPCProposalsOperation | RPCUpdateConsensusKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation | RPCFailingNoopOperation;
|
|
452
|
+
export type RPCOperation = RPCOriginationOperation | RPCTransferOperation | RPCDelegateOperation | RPCRevealOperation | RPCActivateOperation | RPCRegisterGlobalConstantOperation | RPCTransferTicketOperation | RPCIncreasePaidStorageOperation | RPCDrainDelegateOperation | RPCBallotOperation | RPCProposalsOperation | RPCUpdateConsensusKeyOperation | RPCUpdateCompanionKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation | RPCFailingNoopOperation;
|
|
432
453
|
export type PrepareOperationParams = {
|
|
433
454
|
operation: RPCOperation | RPCOperation[];
|
|
434
455
|
source?: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OperationContentsAndResult, OperationContentsUpdateCompanionKey } from '@taquito/rpc';
|
|
2
|
+
import { Context } from '../context';
|
|
3
|
+
import { Operation } from './operations';
|
|
4
|
+
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @description UpdateCompanionKeyOperation provides utility to fetch properties for Operation of kind UpdateCompanionKey
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class UpdateCompanionKeyOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
11
|
+
private readonly params;
|
|
12
|
+
readonly source: string;
|
|
13
|
+
constructor(hash: string, params: OperationContentsUpdateCompanionKey, source: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
|
|
14
|
+
get operationResults(): import("@taquito/rpc").OperationResultUpdateConsensusKey | undefined;
|
|
15
|
+
get status(): import("@taquito/rpc").OperationResultStatusEnum | "unknown";
|
|
16
|
+
get fee(): number;
|
|
17
|
+
get gasLimit(): number;
|
|
18
|
+
get storageLimit(): number;
|
|
19
|
+
get pk(): string;
|
|
20
|
+
get proof(): string;
|
|
21
|
+
get consumedMilliGas(): string | undefined;
|
|
22
|
+
get errors(): import("@taquito/rpc").TezosGenericOperationError[] | undefined;
|
|
23
|
+
}
|
|
@@ -17,6 +17,7 @@ export declare class UpdateConsensusKeyOperation extends Operation implements Ga
|
|
|
17
17
|
get gasLimit(): number;
|
|
18
18
|
get storageLimit(): number;
|
|
19
19
|
get pk(): string;
|
|
20
|
+
get proof(): string;
|
|
20
21
|
get consumedMilliGas(): string | undefined;
|
|
21
22
|
get errors(): import("@taquito/rpc").TezosGenericOperationError[] | undefined;
|
|
22
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OperationContents, PreapplyParams } from '@taquito/rpc';
|
|
2
|
-
import { BallotParams, DelegateParams, DrainDelegateParams, IncreasePaidStorageParams, OriginateParams, ProposalsParams, RegisterGlobalConstantParams, RevealParams, TransferParams, TransferTicketParams, UpdateConsensusKeyParams, ActivationParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams } from '../operations/types';
|
|
2
|
+
import { BallotParams, DelegateParams, DrainDelegateParams, IncreasePaidStorageParams, OriginateParams, ProposalsParams, RegisterGlobalConstantParams, RevealParams, TransferParams, TransferTicketParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams, ActivationParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams } from '../operations/types';
|
|
3
3
|
import { ContractMethod } from '../contract/contract-methods/contract-method-flat-param';
|
|
4
4
|
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
|
|
5
5
|
import { ContractProvider } from '../contract/interface';
|
|
@@ -19,7 +19,6 @@ export interface PreparationProvider {
|
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @description Method to prepare a reveal operation
|
|
22
|
-
* @remarks Reveal tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
23
22
|
* @param params reveal operation parameters
|
|
24
23
|
* @param source string or undefined source pkh
|
|
25
24
|
* @returns a PreparedOperation object
|
|
@@ -59,12 +58,18 @@ export interface PreparationProvider {
|
|
|
59
58
|
registerGlobalConstant(params: RegisterGlobalConstantParams): Promise<PreparedOperation>;
|
|
60
59
|
/**
|
|
61
60
|
* @description Method to prepare an update_consensus_key operation
|
|
62
|
-
* @remarks updateConsensusKey to a tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
63
61
|
* @param params updateConsensusKey operation parameters
|
|
64
62
|
* @param source string or undefined source pkh
|
|
65
63
|
* @returns a PreparedOperation object
|
|
66
64
|
*/
|
|
67
65
|
updateConsensusKey(params: UpdateConsensusKeyParams): Promise<PreparedOperation>;
|
|
66
|
+
/**
|
|
67
|
+
* @description Method to prepare an update_companion_key operation
|
|
68
|
+
* @param params updateCompanionKey operation parameters
|
|
69
|
+
* @param source string or undefined source pkh
|
|
70
|
+
* @returns a PreparedOperation object
|
|
71
|
+
*/
|
|
72
|
+
updateCompanionKey(params: UpdateCompanionKeyParams): Promise<PreparedOperation>;
|
|
68
73
|
/**
|
|
69
74
|
*
|
|
70
75
|
* @description Method to prepare a transfer_ticket operation
|
|
@@ -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, StakeParams, UnstakeParams, FinalizeUnstakeParams } from '../operations/types';
|
|
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
5
|
import { ContractMethod } from '../contract/contract-methods/contract-method-flat-param';
|
|
@@ -38,12 +38,11 @@ export declare class PrepareProvider extends Provider implements PreparationProv
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @description Method to prepare a reveal operation
|
|
41
|
-
* @remarks Reveal tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
42
41
|
* @param operation RPCOperation object or RPCOperation array
|
|
43
42
|
* @param source string or undefined source pkh
|
|
44
43
|
* @returns a PreparedOperation object
|
|
45
44
|
*/
|
|
46
|
-
reveal({ fee, gasLimit, storageLimit }: RevealParams): Promise<PreparedOperation>;
|
|
45
|
+
reveal({ fee, gasLimit, storageLimit, proof }: RevealParams): Promise<PreparedOperation>;
|
|
47
46
|
/**
|
|
48
47
|
*
|
|
49
48
|
* @description Method to prepare an origination operation
|
|
@@ -111,12 +110,19 @@ export declare class PrepareProvider extends Provider implements PreparationProv
|
|
|
111
110
|
/**
|
|
112
111
|
*
|
|
113
112
|
* @description Method to prepare an update_consensus_key operation
|
|
114
|
-
* @remarks updateConsensusKey to a tz4 address is not included in the current beta release for protocol Seoul (still a work in progress)
|
|
115
113
|
* @param operation RPCOperation object or RPCOperation array
|
|
116
114
|
* @param source string or undefined source pkh
|
|
117
115
|
* @returns a PreparedOperation object
|
|
118
116
|
*/
|
|
119
117
|
updateConsensusKey({ fee, storageLimit, gasLimit, ...rest }: UpdateConsensusKeyParams, source?: string): Promise<PreparedOperation>;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @description Method to prepare an update_companion_key operation
|
|
121
|
+
* @param operation RPCOperation object or RPCOperation array
|
|
122
|
+
* @param source string or undefined source pkh
|
|
123
|
+
* @returns a PreparedOperation object
|
|
124
|
+
*/
|
|
125
|
+
updateCompanionKey({ fee, storageLimit, gasLimit, ...rest }: UpdateCompanionKeyParams, source?: string): Promise<PreparedOperation>;
|
|
120
126
|
/**
|
|
121
127
|
*
|
|
122
128
|
* @description Method to prepare an increase_paid_storage operation
|
package/dist/types/provider.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Estimate } from './estimate';
|
|
|
6
6
|
export declare abstract class Provider {
|
|
7
7
|
protected context: Context;
|
|
8
8
|
get rpc(): RpcClientInterface;
|
|
9
|
-
get signer(): import("
|
|
9
|
+
get signer(): import("@taquito/core").Signer;
|
|
10
10
|
constructor(context: Context);
|
|
11
11
|
protected forge({ opOb: { branch, contents, protocol }, counter }: PreparedOperation): Promise<{
|
|
12
12
|
opbytes: string;
|
|
@@ -26,7 +26,7 @@ export declare abstract class Provider {
|
|
|
26
26
|
gasLimit: number | undefined;
|
|
27
27
|
storageLimit: number | undefined;
|
|
28
28
|
}>;
|
|
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").RPCTransferTicketOperation | import("./operations/types").RPCSmartRollupAddMessagesOperation | import("./operations/types").RPCSmartRollupOriginateOperation | import("./operations/types").RPCSmartRollupOutboxMessageOperation>;
|
|
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
30
|
protected runOperation(op: RPCRunOperationParam): Promise<{
|
|
31
31
|
opResponse: import("@taquito/rpc").PreapplyResponse;
|
|
32
32
|
op: RPCRunOperationParam;
|
package/dist/types/taquito.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { GlobalConstantsProvider } from './global-constants/interface-global-con
|
|
|
14
14
|
import { Packer } from './packer/interface';
|
|
15
15
|
import { TzReadProvider } from './read-provider/interface';
|
|
16
16
|
import { PreparationProvider } from './prepare/interface';
|
|
17
|
-
import { Signer } from '
|
|
17
|
+
import { Signer } from '@taquito/core';
|
|
18
18
|
import { SubscribeProvider } from './subscribe/interface';
|
|
19
19
|
import { TzProvider } from './tz/interface';
|
|
20
20
|
import { Wallet, WalletProvider } from './wallet';
|
|
@@ -34,7 +34,7 @@ export { CompositeForger } from './forger/composite-forger';
|
|
|
34
34
|
export { RpcForger } from './forger/rpc-forger';
|
|
35
35
|
export * from './operations';
|
|
36
36
|
export { OperationBatch } from './batch/rpc-batch-provider';
|
|
37
|
-
export
|
|
37
|
+
export { Signer } from '@taquito/core';
|
|
38
38
|
export * from './subscribe/interface';
|
|
39
39
|
export { SubscribeProvider } from './subscribe/interface';
|
|
40
40
|
export { PollingSubscribeProvider } from './subscribe/polling-subcribe-provider';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/taquito",
|
|
3
|
-
"version": "23.0.0
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"description": "High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
]
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@taquito/core": "^23.0.0
|
|
81
|
-
"@taquito/http-utils": "^23.0.0
|
|
82
|
-
"@taquito/local-forging": "^23.0.0
|
|
83
|
-
"@taquito/michel-codec": "^23.0.0
|
|
84
|
-
"@taquito/michelson-encoder": "^23.0.0
|
|
85
|
-
"@taquito/rpc": "^23.0.0
|
|
86
|
-
"@taquito/utils": "^23.0.0
|
|
80
|
+
"@taquito/core": "^23.0.0",
|
|
81
|
+
"@taquito/http-utils": "^23.0.0",
|
|
82
|
+
"@taquito/local-forging": "^23.0.0",
|
|
83
|
+
"@taquito/michel-codec": "^23.0.0",
|
|
84
|
+
"@taquito/michelson-encoder": "^23.0.0",
|
|
85
|
+
"@taquito/rpc": "^23.0.0",
|
|
86
|
+
"@taquito/utils": "^23.0.0",
|
|
87
87
|
"bignumber.js": "^9.1.2",
|
|
88
88
|
"rxjs": "^7.8.2"
|
|
89
89
|
},
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"webpack-cli": "^5.1.4",
|
|
126
126
|
"webpack-subresource-integrity": "^5.1.0"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "4ac77876be144da54f292e639b5b977a13642de9"
|
|
129
129
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Signer interface which is used across taquito in order to sign and inject operation
|
|
3
|
-
*/
|
|
4
|
-
export interface Signer {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @param op Operation to sign
|
|
8
|
-
* @param magicByte Magic bytes 11 for block, 12 for preattestation, 13 for attestation, 3 for generic, 5 for the PACK format of michelson
|
|
9
|
-
*/
|
|
10
|
-
sign(op: string, magicByte?: Uint8Array): Promise<{
|
|
11
|
-
bytes: string;
|
|
12
|
-
sig: string;
|
|
13
|
-
prefixSig: string;
|
|
14
|
-
sbytes: string;
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* @description Return the public key of the account used by the signer
|
|
18
|
-
*/
|
|
19
|
-
publicKey(): Promise<string>;
|
|
20
|
-
/**
|
|
21
|
-
* @description Return the public key hash of the account used by the signer
|
|
22
|
-
*/
|
|
23
|
-
publicKeyHash(): Promise<string>;
|
|
24
|
-
/**
|
|
25
|
-
* @description Optionally return the secret key of the account used by the signer
|
|
26
|
-
*/
|
|
27
|
-
secretKey(): Promise<string | undefined>;
|
|
28
|
-
}
|