@taquito/taquito 24.2.0 → 24.3.0-beta.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 +91 -83
- package/dist/lib/context.js +22 -26
- package/dist/lib/contract/big-map.js +16 -29
- package/dist/lib/contract/contract-methods/contract-method-object-param.js +7 -7
- package/dist/lib/contract/contract-methods/contract-on-chain-view.js +31 -44
- package/dist/lib/contract/contract.js +21 -32
- package/dist/lib/contract/errors.js +9 -9
- package/dist/lib/contract/prepare.js +36 -45
- package/dist/lib/contract/rpc-contract-provider.js +426 -475
- package/dist/lib/contract/sapling-state-abstraction.js +3 -14
- package/dist/lib/contract/semantic.js +2 -2
- package/dist/lib/errors.js +3 -3
- package/dist/lib/estimate/errors.js +1 -1
- package/dist/lib/estimate/estimate.js +66 -20
- package/dist/lib/estimate/rpc-estimate-provider.js +427 -460
- package/dist/lib/forger/composite-forger.js +16 -27
- package/dist/lib/forger/errors.js +2 -2
- package/dist/lib/forger/taquito-local-forger.js +9 -22
- package/dist/lib/global-constants/default-global-constants-provider.js +8 -19
- package/dist/lib/global-constants/errors.js +2 -2
- package/dist/lib/global-constants/noop-global-constants-provider.js +2 -13
- package/dist/lib/import-key.js +23 -34
- package/dist/lib/injector/rpc-injector.js +13 -24
- package/dist/lib/operations/ballot-operation.js +2 -3
- package/dist/lib/operations/delegate-operation.js +5 -8
- package/dist/lib/operations/drain-delegate-operation.js +1 -1
- package/dist/lib/operations/errors.js +9 -6
- package/dist/lib/operations/increase-paid-storage-operation.js +4 -7
- package/dist/lib/operations/operations.js +100 -30
- package/dist/lib/operations/origination-operation.js +16 -27
- package/dist/lib/operations/proposals-operation.js +2 -3
- package/dist/lib/operations/register-global-constant-operation.js +4 -7
- package/dist/lib/operations/reveal-operation.js +1 -1
- package/dist/lib/operations/smart-rollup-add-messages-operation.js +4 -7
- package/dist/lib/operations/smart-rollup-execute-outbox-message-operation.js +4 -7
- package/dist/lib/operations/smart-rollup-originate-operation.js +4 -7
- package/dist/lib/operations/transaction-operation.js +2 -2
- package/dist/lib/operations/transfer-ticket-operation.js +4 -6
- package/dist/lib/operations/types.js +17 -19
- package/dist/lib/operations/update-companion-key-operation.js +4 -7
- package/dist/lib/operations/update-consensus-key-operation.js +4 -7
- package/dist/lib/packer/michel-codec-packer.js +3 -14
- package/dist/lib/packer/rpc-packer.js +2 -13
- package/dist/lib/parser/michel-codec-parser.js +82 -107
- package/dist/lib/parser/noop-parser.js +2 -13
- package/dist/lib/prepare/prepare-provider.js +780 -744
- package/dist/lib/provider.js +322 -128
- package/dist/lib/read-provider/rpc-read-adapter.js +76 -121
- package/dist/lib/signer/errors.js +1 -1
- package/dist/lib/signer/noop.js +9 -26
- package/dist/lib/subscribe/errors.js +2 -2
- package/dist/lib/subscribe/polling-subcribe-provider.js +35 -38
- package/dist/lib/taquito.js +33 -33
- package/dist/lib/tz/rpc-tz-provider.js +27 -44
- package/dist/lib/version.js +2 -2
- package/dist/lib/wallet/batch-operation.js +32 -45
- package/dist/lib/wallet/delegation-operation.js +25 -40
- package/dist/lib/wallet/errors.js +15 -3
- package/dist/lib/wallet/increase-paid-storage-operation.js +25 -40
- package/dist/lib/wallet/legacy.js +28 -63
- package/dist/lib/wallet/operation-factory.js +27 -56
- package/dist/lib/wallet/operation.js +123 -59
- package/dist/lib/wallet/origination-operation.js +34 -46
- package/dist/lib/wallet/register-global-constant-operation.js +26 -43
- package/dist/lib/wallet/transaction-operation.js +21 -36
- package/dist/lib/wallet/transfer-ticket-operation.js +21 -36
- package/dist/lib/wallet/wallet.js +187 -184
- package/dist/taquito.es6.js +3424 -3197
- package/dist/taquito.es6.js.map +1 -1
- package/dist/taquito.min.js +1 -1
- package/dist/taquito.umd.js +7930 -7701
- package/dist/taquito.umd.js.map +1 -1
- package/dist/types/batch/rpc-batch-provider.d.ts +18 -18
- package/dist/types/context.d.ts +4 -4
- package/dist/types/contract/big-map.d.ts +3 -3
- package/dist/types/contract/contract-methods/contract-method-interface.d.ts +4 -4
- package/dist/types/contract/contract-methods/contract-method-object-param.d.ts +6 -6
- package/dist/types/contract/contract-methods/contract-on-chain-view.d.ts +3 -3
- package/dist/types/contract/contract.d.ts +6 -6
- package/dist/types/contract/errors.d.ts +11 -11
- package/dist/types/contract/interface.d.ts +42 -42
- package/dist/types/contract/rpc-contract-provider.d.ts +44 -43
- package/dist/types/contract/sapling-state-abstraction.d.ts +1 -1
- package/dist/types/contract/semantic.d.ts +2 -2
- package/dist/types/errors.d.ts +5 -5
- package/dist/types/estimate/errors.d.ts +1 -1
- package/dist/types/estimate/estimate-provider-interface.d.ts +81 -84
- package/dist/types/estimate/estimate.d.ts +28 -11
- package/dist/types/estimate/rpc-estimate-provider.d.ts +34 -30
- package/dist/types/forger/errors.d.ts +2 -2
- package/dist/types/global-constants/default-global-constants-provider.d.ts +2 -2
- package/dist/types/global-constants/errors.d.ts +2 -2
- package/dist/types/global-constants/interface-global-constants-provider.d.ts +1 -1
- package/dist/types/import-key.d.ts +2 -2
- package/dist/types/operations/ballot-operation.d.ts +1 -1
- package/dist/types/operations/delegate-operation.d.ts +2 -2
- package/dist/types/operations/drain-delegate-operation.d.ts +1 -1
- package/dist/types/operations/errors.d.ts +5 -5
- package/dist/types/operations/failing-noop-operation.d.ts +1 -1
- package/dist/types/operations/increase-paid-storage-operation.d.ts +1 -1
- package/dist/types/operations/operations.d.ts +2 -2
- package/dist/types/operations/origination-operation.d.ts +5 -5
- package/dist/types/operations/proposals-operation.d.ts +1 -1
- package/dist/types/operations/register-global-constant-operation.d.ts +2 -2
- package/dist/types/operations/reveal-operation.d.ts +1 -1
- package/dist/types/operations/smart-rollup-add-messages-operation.d.ts +1 -1
- package/dist/types/operations/smart-rollup-execute-outbox-message-operation.d.ts +1 -1
- package/dist/types/operations/smart-rollup-originate-operation.d.ts +1 -1
- package/dist/types/operations/transaction-operation.d.ts +2 -2
- package/dist/types/operations/transfer-ticket-operation.d.ts +2 -2
- package/dist/types/operations/types.d.ts +387 -25
- package/dist/types/operations/update-companion-key-operation.d.ts +1 -1
- package/dist/types/operations/update-consensus-key-operation.d.ts +1 -1
- package/dist/types/prepare/interface.d.ts +32 -33
- package/dist/types/prepare/prepare-provider.d.ts +34 -60
- package/dist/types/provider.d.ts +7 -1
- package/dist/types/read-provider/interface.d.ts +21 -21
- package/dist/types/read-provider/rpc-read-adapter.d.ts +22 -22
- package/dist/types/signer/errors.d.ts +1 -1
- package/dist/types/signer/noop.d.ts +1 -1
- package/dist/types/subscribe/errors.d.ts +2 -2
- package/dist/types/taquito.d.ts +33 -33
- package/dist/types/wallet/errors.d.ts +10 -2
- package/dist/types/wallet/interface.d.ts +13 -13
- package/dist/types/wallet/operation.d.ts +4 -3
- package/dist/types/wallet/wallet.d.ts +36 -35
- package/package.json +27 -15
- package/LICENSE +0 -202
|
@@ -5,7 +5,7 @@ export interface TezosOperationErrorWithMessage extends TezosGenericOperationErr
|
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* @category Error
|
|
8
|
-
*
|
|
8
|
+
* Generic tezos error that will be thrown when a mistake occurs when doing an operation; more details here https://tezos.gitlab.io/api/errors.html
|
|
9
9
|
*/
|
|
10
10
|
export declare class TezosOperationError extends RpcError {
|
|
11
11
|
readonly errors: TezosGenericOperationError[];
|
|
@@ -18,7 +18,7 @@ export declare class TezosOperationError extends RpcError {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* @category Error
|
|
21
|
-
*
|
|
21
|
+
* Tezos error that will be thrown when a mistake happens during the preapply stage
|
|
22
22
|
*/
|
|
23
23
|
export declare class TezosPreapplyFailureError extends Error {
|
|
24
24
|
readonly result: any;
|
|
@@ -29,12 +29,12 @@ export type MergedOperationResult = OperationResultTransaction & OperationResult
|
|
|
29
29
|
};
|
|
30
30
|
export declare const flattenOperationResult: (response: PreapplyResponse | PreapplyResponse[]) => MergedOperationResult[];
|
|
31
31
|
/***
|
|
32
|
-
*
|
|
32
|
+
* Flatten all error from preapply response (including internal error)
|
|
33
33
|
*/
|
|
34
34
|
export declare const flattenErrors: (response: PreapplyResponse | PreapplyResponse[], status?: string) => TezosGenericOperationError[];
|
|
35
35
|
/**
|
|
36
36
|
* @category Error
|
|
37
|
-
*
|
|
37
|
+
* Error that indicates a general failure happening during an origination operation.
|
|
38
38
|
*/
|
|
39
39
|
export declare class OriginationOperationError extends TaquitoError {
|
|
40
40
|
readonly message: string;
|
|
@@ -42,7 +42,7 @@ export declare class OriginationOperationError extends TaquitoError {
|
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @category Error
|
|
45
|
-
*
|
|
45
|
+
* Error that indicates an invalid estimate value being passed
|
|
46
46
|
*/
|
|
47
47
|
export declare class InvalidEstimateValueError extends ParameterValidationError {
|
|
48
48
|
readonly message: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpKind } from '@taquito/rpc';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* FailingNoopOperation interface that contains information about a signed failing_noop operation
|
|
4
4
|
*/
|
|
5
5
|
export interface FailingNoopOperation {
|
|
6
6
|
signedContent: {
|
|
@@ -4,7 +4,7 @@ import { Operation } from './operations';
|
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* IncreasePaidStorageOperation provides utility functions to fetch a new operation of kind increase_paid_storage
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare class IncreasePaidStorageOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
@@ -2,7 +2,7 @@ import { OperationContentsAndResult, OperationContentsAndResultReveal } from '@t
|
|
|
2
2
|
import { Context } from '../context';
|
|
3
3
|
import { ForgedBytes } from './types';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Utility class to interact with Tezos operations
|
|
6
6
|
*/
|
|
7
7
|
export declare class Operation {
|
|
8
8
|
readonly hash: string;
|
|
@@ -20,7 +20,7 @@ export declare class Operation {
|
|
|
20
20
|
* @param hash Operation hash
|
|
21
21
|
* @param raw Raw operation that was injected
|
|
22
22
|
* @param context Taquito context allowing access to rpc and signer
|
|
23
|
-
* @throws
|
|
23
|
+
* @throws InvalidOperationHashError
|
|
24
24
|
*/
|
|
25
25
|
constructor(hash: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
|
|
26
26
|
get revealOperation(): false | OperationContentsAndResultReveal | undefined;
|
|
@@ -5,15 +5,15 @@ import { RpcContractProvider } from '../contract/rpc-contract-provider';
|
|
|
5
5
|
import { Operation } from './operations';
|
|
6
6
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Origination operation provide utility function to fetch newly originated contract
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
10
|
+
* @remarks Currently support only one origination per operation
|
|
11
11
|
*/
|
|
12
12
|
export declare class OriginationOperation<TContract extends DefaultContractType = DefaultContractType> extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
13
13
|
private readonly params;
|
|
14
14
|
private contractProvider;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Contract address of the newly originated contract
|
|
17
17
|
*/
|
|
18
18
|
readonly contractAddress?: string;
|
|
19
19
|
constructor(hash: string, params: OperationContentsOrigination, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context, contractProvider: RpcContractProvider);
|
|
@@ -28,8 +28,8 @@ export declare class OriginationOperation<TContract extends DefaultContractType
|
|
|
28
28
|
get storageSize(): string | undefined;
|
|
29
29
|
get errors(): import("@taquito/rpc").TezosGenericOperationError[] | undefined;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @throws
|
|
31
|
+
* Provide the contract abstract of the newly originated contract
|
|
32
|
+
* @throws OriginationOperationError
|
|
33
33
|
*/
|
|
34
34
|
contract(confirmations?: number, timeout?: number): Promise<TContract>;
|
|
35
35
|
}
|
|
@@ -4,7 +4,7 @@ import { Operation } from './operations';
|
|
|
4
4
|
import { ForgedBytes } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* ProposalsOperation provides utility functions to fetch a new operation of kind proposals
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare class ProposalsOperation extends Operation {
|
|
@@ -3,13 +3,13 @@ import { Context } from '../context';
|
|
|
3
3
|
import { Operation } from './operations';
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* RegisterGlobalConstantOperation provides utility functions to fetch a newly issued operation of kind register_global_constant
|
|
7
7
|
*/
|
|
8
8
|
export declare class RegisterGlobalConstantOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
9
9
|
private readonly params;
|
|
10
10
|
readonly source: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Hash (index) of the newly registered constant
|
|
13
13
|
*/
|
|
14
14
|
readonly globalConstantHash?: string;
|
|
15
15
|
constructor(hash: string, params: OperationContentsRegisterGlobalConstant, source: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
|
|
@@ -3,7 +3,7 @@ import { Context } from '../context';
|
|
|
3
3
|
import { Operation } from './operations';
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Reveal operation provides utility functions to fetch a newly issued revelation
|
|
7
7
|
*/
|
|
8
8
|
export declare class RevealOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
9
9
|
private readonly params;
|
|
@@ -3,7 +3,7 @@ import { Context } from '../context';
|
|
|
3
3
|
import { Operation } from './operations';
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* SmartRollupAddMessagesOperation provides utility to fetch properties of SmartRollupAddMessages
|
|
7
7
|
*/
|
|
8
8
|
export declare class SmartRollupAddMessagesOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
9
9
|
private readonly params;
|
|
@@ -4,7 +4,7 @@ import { Operation } from './operations';
|
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* SmartRollupExecuteOutboxMessage Operation provides utility to fetch properties for Operation of kind SmartRollupExecuteOutboxMessage
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare class SmartRollupExecuteOutboxMessageOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
@@ -4,7 +4,7 @@ import { Operation } from './operations';
|
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* SmartRollupOriginate Operation provides utility to fetch properties for Operation of kind SmartRollupOriginate
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare class SmartRollupOriginateOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
@@ -4,9 +4,9 @@ import { Context } from '../context';
|
|
|
4
4
|
import { Operation } from './operations';
|
|
5
5
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Transaction operation provides utility functions to fetch a newly issued transaction
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
9
|
+
* @remarks Currently supports one transaction per operation
|
|
10
10
|
*/
|
|
11
11
|
export declare class TransactionOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
12
12
|
private readonly params;
|
|
@@ -4,9 +4,9 @@ import { Operation } from './operations';
|
|
|
4
4
|
import { GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation, ForgedBytes } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Transfer tickets from a Tezos address (tz1, tz2 or tz3) to a smart contract address (KT1) (everything on layer 1 at this step)
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
9
|
+
* @remarks Currently only supports one L2 ticket holder transfer at once. ie. one collection of tickets owned by tz1, tz2 or tz3 to a smart contract.
|
|
10
10
|
*/
|
|
11
11
|
export declare class TransferTicketOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
12
12
|
private readonly params;
|