@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.
Files changed (129) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/batch/rpc-batch-provider.js +91 -83
  3. package/dist/lib/context.js +22 -26
  4. package/dist/lib/contract/big-map.js +16 -29
  5. package/dist/lib/contract/contract-methods/contract-method-object-param.js +7 -7
  6. package/dist/lib/contract/contract-methods/contract-on-chain-view.js +31 -44
  7. package/dist/lib/contract/contract.js +21 -32
  8. package/dist/lib/contract/errors.js +9 -9
  9. package/dist/lib/contract/prepare.js +36 -45
  10. package/dist/lib/contract/rpc-contract-provider.js +426 -475
  11. package/dist/lib/contract/sapling-state-abstraction.js +3 -14
  12. package/dist/lib/contract/semantic.js +2 -2
  13. package/dist/lib/errors.js +3 -3
  14. package/dist/lib/estimate/errors.js +1 -1
  15. package/dist/lib/estimate/estimate.js +66 -20
  16. package/dist/lib/estimate/rpc-estimate-provider.js +427 -460
  17. package/dist/lib/forger/composite-forger.js +16 -27
  18. package/dist/lib/forger/errors.js +2 -2
  19. package/dist/lib/forger/taquito-local-forger.js +9 -22
  20. package/dist/lib/global-constants/default-global-constants-provider.js +8 -19
  21. package/dist/lib/global-constants/errors.js +2 -2
  22. package/dist/lib/global-constants/noop-global-constants-provider.js +2 -13
  23. package/dist/lib/import-key.js +23 -34
  24. package/dist/lib/injector/rpc-injector.js +13 -24
  25. package/dist/lib/operations/ballot-operation.js +2 -3
  26. package/dist/lib/operations/delegate-operation.js +5 -8
  27. package/dist/lib/operations/drain-delegate-operation.js +1 -1
  28. package/dist/lib/operations/errors.js +9 -6
  29. package/dist/lib/operations/increase-paid-storage-operation.js +4 -7
  30. package/dist/lib/operations/operations.js +100 -30
  31. package/dist/lib/operations/origination-operation.js +16 -27
  32. package/dist/lib/operations/proposals-operation.js +2 -3
  33. package/dist/lib/operations/register-global-constant-operation.js +4 -7
  34. package/dist/lib/operations/reveal-operation.js +1 -1
  35. package/dist/lib/operations/smart-rollup-add-messages-operation.js +4 -7
  36. package/dist/lib/operations/smart-rollup-execute-outbox-message-operation.js +4 -7
  37. package/dist/lib/operations/smart-rollup-originate-operation.js +4 -7
  38. package/dist/lib/operations/transaction-operation.js +2 -2
  39. package/dist/lib/operations/transfer-ticket-operation.js +4 -6
  40. package/dist/lib/operations/types.js +17 -19
  41. package/dist/lib/operations/update-companion-key-operation.js +4 -7
  42. package/dist/lib/operations/update-consensus-key-operation.js +4 -7
  43. package/dist/lib/packer/michel-codec-packer.js +3 -14
  44. package/dist/lib/packer/rpc-packer.js +2 -13
  45. package/dist/lib/parser/michel-codec-parser.js +82 -107
  46. package/dist/lib/parser/noop-parser.js +2 -13
  47. package/dist/lib/prepare/prepare-provider.js +780 -744
  48. package/dist/lib/provider.js +322 -128
  49. package/dist/lib/read-provider/rpc-read-adapter.js +76 -121
  50. package/dist/lib/signer/errors.js +1 -1
  51. package/dist/lib/signer/noop.js +9 -26
  52. package/dist/lib/subscribe/errors.js +2 -2
  53. package/dist/lib/subscribe/polling-subcribe-provider.js +35 -38
  54. package/dist/lib/taquito.js +33 -33
  55. package/dist/lib/tz/rpc-tz-provider.js +27 -44
  56. package/dist/lib/version.js +2 -2
  57. package/dist/lib/wallet/batch-operation.js +32 -45
  58. package/dist/lib/wallet/delegation-operation.js +25 -40
  59. package/dist/lib/wallet/errors.js +15 -3
  60. package/dist/lib/wallet/increase-paid-storage-operation.js +25 -40
  61. package/dist/lib/wallet/legacy.js +28 -63
  62. package/dist/lib/wallet/operation-factory.js +27 -56
  63. package/dist/lib/wallet/operation.js +123 -59
  64. package/dist/lib/wallet/origination-operation.js +34 -46
  65. package/dist/lib/wallet/register-global-constant-operation.js +26 -43
  66. package/dist/lib/wallet/transaction-operation.js +21 -36
  67. package/dist/lib/wallet/transfer-ticket-operation.js +21 -36
  68. package/dist/lib/wallet/wallet.js +187 -184
  69. package/dist/taquito.es6.js +3424 -3197
  70. package/dist/taquito.es6.js.map +1 -1
  71. package/dist/taquito.min.js +1 -1
  72. package/dist/taquito.umd.js +7930 -7701
  73. package/dist/taquito.umd.js.map +1 -1
  74. package/dist/types/batch/rpc-batch-provider.d.ts +18 -18
  75. package/dist/types/context.d.ts +4 -4
  76. package/dist/types/contract/big-map.d.ts +3 -3
  77. package/dist/types/contract/contract-methods/contract-method-interface.d.ts +4 -4
  78. package/dist/types/contract/contract-methods/contract-method-object-param.d.ts +6 -6
  79. package/dist/types/contract/contract-methods/contract-on-chain-view.d.ts +3 -3
  80. package/dist/types/contract/contract.d.ts +6 -6
  81. package/dist/types/contract/errors.d.ts +11 -11
  82. package/dist/types/contract/interface.d.ts +42 -42
  83. package/dist/types/contract/rpc-contract-provider.d.ts +44 -43
  84. package/dist/types/contract/sapling-state-abstraction.d.ts +1 -1
  85. package/dist/types/contract/semantic.d.ts +2 -2
  86. package/dist/types/errors.d.ts +5 -5
  87. package/dist/types/estimate/errors.d.ts +1 -1
  88. package/dist/types/estimate/estimate-provider-interface.d.ts +81 -84
  89. package/dist/types/estimate/estimate.d.ts +28 -11
  90. package/dist/types/estimate/rpc-estimate-provider.d.ts +34 -30
  91. package/dist/types/forger/errors.d.ts +2 -2
  92. package/dist/types/global-constants/default-global-constants-provider.d.ts +2 -2
  93. package/dist/types/global-constants/errors.d.ts +2 -2
  94. package/dist/types/global-constants/interface-global-constants-provider.d.ts +1 -1
  95. package/dist/types/import-key.d.ts +2 -2
  96. package/dist/types/operations/ballot-operation.d.ts +1 -1
  97. package/dist/types/operations/delegate-operation.d.ts +2 -2
  98. package/dist/types/operations/drain-delegate-operation.d.ts +1 -1
  99. package/dist/types/operations/errors.d.ts +5 -5
  100. package/dist/types/operations/failing-noop-operation.d.ts +1 -1
  101. package/dist/types/operations/increase-paid-storage-operation.d.ts +1 -1
  102. package/dist/types/operations/operations.d.ts +2 -2
  103. package/dist/types/operations/origination-operation.d.ts +5 -5
  104. package/dist/types/operations/proposals-operation.d.ts +1 -1
  105. package/dist/types/operations/register-global-constant-operation.d.ts +2 -2
  106. package/dist/types/operations/reveal-operation.d.ts +1 -1
  107. package/dist/types/operations/smart-rollup-add-messages-operation.d.ts +1 -1
  108. package/dist/types/operations/smart-rollup-execute-outbox-message-operation.d.ts +1 -1
  109. package/dist/types/operations/smart-rollup-originate-operation.d.ts +1 -1
  110. package/dist/types/operations/transaction-operation.d.ts +2 -2
  111. package/dist/types/operations/transfer-ticket-operation.d.ts +2 -2
  112. package/dist/types/operations/types.d.ts +387 -25
  113. package/dist/types/operations/update-companion-key-operation.d.ts +1 -1
  114. package/dist/types/operations/update-consensus-key-operation.d.ts +1 -1
  115. package/dist/types/prepare/interface.d.ts +32 -33
  116. package/dist/types/prepare/prepare-provider.d.ts +34 -60
  117. package/dist/types/provider.d.ts +7 -1
  118. package/dist/types/read-provider/interface.d.ts +21 -21
  119. package/dist/types/read-provider/rpc-read-adapter.d.ts +22 -22
  120. package/dist/types/signer/errors.d.ts +1 -1
  121. package/dist/types/signer/noop.d.ts +1 -1
  122. package/dist/types/subscribe/errors.d.ts +2 -2
  123. package/dist/types/taquito.d.ts +33 -33
  124. package/dist/types/wallet/errors.d.ts +10 -2
  125. package/dist/types/wallet/interface.d.ts +13 -13
  126. package/dist/types/wallet/operation.d.ts +4 -3
  127. package/dist/types/wallet/wallet.d.ts +36 -35
  128. package/package.json +27 -15
  129. package/LICENSE +0 -202
@@ -5,7 +5,7 @@ export interface TezosOperationErrorWithMessage extends TezosGenericOperationErr
5
5
  }
6
6
  /**
7
7
  * @category Error
8
- * @description 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
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
- * @description Tezos error that will be thrown when a mistake happens during the preapply stage
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
- * @description Flatten all error from preapply response (including internal error)
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
- * @description Error that indicates a general failure happening during an origination operation.
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
- * @description Error that indicates an invalid estimate value being passed
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
- * @description FailingNoopOperation interface that contains information about a signed failing_noop operation
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
- * @description IncreasePaidStorageOperation provides utility functions to fetch a new operation of kind increase_paid_storage
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
- * @description Utility class to interact with Tezos operations
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 {@link InvalidOperationHashError}
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
- * @description Origination operation provide utility function to fetch newly originated contract
8
+ * Origination operation provide utility function to fetch newly originated contract
9
9
  *
10
- * @warn Currently support only one origination per operation
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
- * @description Contract address of the newly originated contract
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
- * @description Provide the contract abstract of the newly originated contract
32
- * @throws {@link OriginationOperationError}
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
- * @description ProposalsOperation provides utility functions to fetch a new operation of kind proposals
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
- * @description RegisterGlobalConstantOperation provides utility functions to fetch a newly issued operation of kind register_global_constant
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
- * @description Hash (index) of the newly registered constant
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
- * @description Reveal operation provides utility functions to fetch a newly issued revelation
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
- * @description SmartRollupAddMessagesOperation provides utility to fetch properties of SmartRollupAddMessages
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
- * @description SmartRollupExecuteOutboxMessage Operation provides utility to fetch properties for Operation of kind SmartRollupExecuteOutboxMessage
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
- * @description SmartRollupOriginate Operation provides utility to fetch properties for Operation of kind SmartRollupOriginate
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
- * @description Transaction operation provides utility functions to fetch a newly issued transaction
7
+ * Transaction operation provides utility functions to fetch a newly issued transaction
8
8
  *
9
- * @warn Currently supports one transaction per operation
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
- * @description Transfer tickets from a Tezos address (tz1, tz2 or tz3) to a smart contract address (KT1) (everything on layer 1 at this step)
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
- * @warn 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.
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;