@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
@@ -2,39 +2,39 @@ import { BlockResponse, EntrypointsResponse, MichelsonV1Expression, RpcClientInt
2
2
  import BigNumber from 'bignumber.js';
3
3
  import { BigMapQuery, BlockIdentifier, SaplingStateQuery, TzReadProvider } from './interface';
4
4
  /**
5
- * @description Converts calls from TzReadProvider into calls to the wrapped RpcClient in a format it can understand.
5
+ * Converts calls from TzReadProvider into calls to the wrapped RpcClient in a format it can understand.
6
6
  */
7
7
  export declare class RpcReadAdapter implements TzReadProvider {
8
8
  private rpc;
9
9
  constructor(rpc: RpcClientInterface);
10
10
  /**
11
- * @description The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'spendable' RPC.
11
+ * The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'spendable' RPC.
12
12
  * @param address address from which we want to retrieve the spendable balance
13
13
  * @param block from which we want to retrieve the balance
14
14
  * @returns the balance in mutez
15
15
  */
16
16
  getBalance(address: string, block: BlockIdentifier): Promise<BigNumber>;
17
17
  /**
18
- * @description The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'balance' RPC.
18
+ * The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'balance' RPC.
19
19
  * @param address address from which we want to retrieve the spendable balance
20
20
  * @param block from which we want to retrieve the balance
21
21
  * @returns the balance in mutez
22
22
  */
23
23
  getSpendable(address: string, block: BlockIdentifier): Promise<BigNumber>;
24
24
  /**
25
- * @description Access the delegate of a contract, if any.
25
+ * Access the delegate of a contract, if any.
26
26
  * @param address contract address from which we want to retrieve the delegate (baker)
27
27
  * @param block from which we want to retrieve the delegate
28
28
  * @returns the public key hash of the delegate or null if no delegate
29
29
  */
30
30
  getDelegate(address: string, block: BlockIdentifier): Promise<string | null>;
31
31
  /**
32
- * @description Access the next protocol hash
32
+ * Access the next protocol hash
33
33
  * @param block from which we want to retrieve the next protocol hash
34
34
  */
35
35
  getNextProtocol(block: BlockIdentifier): Promise<string>;
36
36
  /**
37
- * @description Access protocol constants used in Taquito
37
+ * Access protocol constants used in Taquito
38
38
  * @param block from which we want to retrieve the constants
39
39
  */
40
40
  getProtocolConstants(block: BlockIdentifier): Promise<{
@@ -47,83 +47,83 @@ export declare class RpcReadAdapter implements TzReadProvider {
47
47
  smart_rollup_origination_size: number;
48
48
  }>;
49
49
  /**
50
- * @description Access the script (code and storage) of a smart contract
50
+ * Access the script (code and storage) of a smart contract
51
51
  * @param contract contract address from which we want to retrieve the script
52
52
  * @param block from which we want to retrieve the storage value
53
53
  * @returns Note: The code must be in the JSON format and not contain global constant
54
54
  */
55
55
  getScript(contract: string, block: BlockIdentifier): Promise<ScriptedContracts>;
56
56
  /**
57
- * @description Access the storage value of a contract
57
+ * Access the storage value of a contract
58
58
  * @param contract contract address from which we want to retrieve the storage
59
59
  * @param block from which we want to retrieve the storage value
60
60
  */
61
61
  getStorage(contract: string, block: BlockIdentifier): Promise<MichelsonV1Expression>;
62
62
  /**
63
- * @description Access the block hash
63
+ * Access the block hash
64
64
  */
65
65
  getBlockHash(block: BlockIdentifier): Promise<string>;
66
66
  /**
67
- * @description Access the block level
67
+ * Access the block level
68
68
  */
69
69
  getBlockLevel(block: BlockIdentifier): Promise<number>;
70
70
  /**
71
- * @description Access the counter of an address
71
+ * Access the counter of an address
72
72
  * @param pkh from which we want to retrieve the counter
73
73
  * @param block from which we want to retrieve the counter
74
74
  */
75
75
  getCounter(pkh: string, block: BlockIdentifier): Promise<string>;
76
76
  /**
77
- * @description Access the timestamp of a block
77
+ * Access the timestamp of a block
78
78
  * @param block from which we want to retrieve the timestamp
79
79
  * @returns date ISO format zero UTC offset ("2022-01-19T22:37:07Z")
80
80
  */
81
81
  getBlockTimestamp(block: BlockIdentifier): Promise<string>;
82
82
  /**
83
- * @description Access the value associated with a key in a big map.
83
+ * Access the value associated with a key in a big map.
84
84
  * @param bigMapQuery Big Map ID and Expression hash to query (A b58check encoded Blake2b hash of the expression)
85
85
  * @param block from which we want to retrieve the big map value
86
86
  */
87
87
  getBigMapValue(bigMapQuery: BigMapQuery, block: BlockIdentifier): Promise<MichelsonV1Expression>;
88
88
  /**
89
- * @description Access the value associated with a sapling state ID.
90
- * @param id Sapling state ID
89
+ * Access the value associated with a sapling state ID.
90
+ * @param saplingStateQuery Sapling state ID query
91
91
  * @param block from which we want to retrieve the sapling state
92
92
  */
93
93
  getSaplingDiffById(saplingStateQuery: SaplingStateQuery, block: BlockIdentifier): Promise<SaplingDiffResponse>;
94
94
  /**
95
- * @description Access the sapling state of a smart contract.
95
+ * Access the sapling state of a smart contract.
96
96
  * @param contractAddress The address of the smart contract
97
97
  * @param block The block you want to retrieve the sapling state from
98
98
  */
99
99
  getSaplingDiffByContract(contractAddress: string, block: BlockIdentifier): Promise<SaplingDiffResponse>;
100
100
  /**
101
- * @description Return the list of entrypoints of the contract
101
+ * Return the list of entrypoints of the contract
102
102
  * @param contract address of the contract we want to get the entrypoints of
103
103
  */
104
104
  getEntrypoints(contract: string): Promise<EntrypointsResponse>;
105
105
  /**
106
- * @description Access the chain id
106
+ * Access the chain id
107
107
  */
108
108
  getChainId(): Promise<string>;
109
109
  /**
110
- * @description Indicate if an account is revealed
110
+ * Indicate if an account is revealed
111
111
  * @param publicKeyHash of the account
112
112
  * @param block from which we want to know if the account is revealed
113
113
  */
114
114
  isAccountRevealed(publicKeyHash: string, block: BlockIdentifier): Promise<boolean>;
115
115
  /**
116
- * @description Return all the information about a block
116
+ * Return all the information about a block
117
117
  * @param block from which we want to retrieve the information
118
118
  */
119
119
  getBlock(block: BlockIdentifier): Promise<BlockResponse>;
120
120
  /**
121
- * @description Return a list of the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.
121
+ * Return a list of the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.
122
122
  * @param block from which we want to retrieve the information
123
123
  */
124
124
  getLiveBlocks(block: BlockIdentifier): Promise<string[]>;
125
125
  /**
126
- * @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.
126
+ * 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.
127
127
  * @param block from which we want to retrieve the information
128
128
  */
129
129
  getAdaptiveIssuanceLaunchCycle(block: BlockIdentifier): Promise<AILaunchCycleResponse>;
@@ -1,7 +1,7 @@
1
1
  import { TezosToolkitConfigError } from '@taquito/core';
2
2
  /**
3
3
  * @category Error
4
- * @description Error that indicates no signer has been configured in the TezosToolkit instance
4
+ * Error that indicates no signer has been configured in the TezosToolkit instance
5
5
  */
6
6
  export declare class UnconfiguredSignerError extends TezosToolkitConfigError {
7
7
  constructor();
@@ -1,6 +1,6 @@
1
1
  import { Signer } from '@taquito/core';
2
2
  /**
3
- * @description Default signer implementation which does nothing and produce invalid signature
3
+ * Default signer implementation which does nothing and produce invalid signature
4
4
  * @throw {@link UnconfiguredSignerError}
5
5
  */
6
6
  export declare class NoopSigner implements Signer {
@@ -2,7 +2,7 @@ import { ParameterValidationError } from '@taquito/core';
2
2
  import { FilterExpression } from '../taquito';
3
3
  /**
4
4
  * @category Error
5
- * @description Error that indicates an unsupported event being passed or used
5
+ * Error that indicates an unsupported event being passed or used
6
6
  */
7
7
  export declare class UnsupportedEventError extends ParameterValidationError {
8
8
  readonly type: string;
@@ -10,7 +10,7 @@ export declare class UnsupportedEventError extends ParameterValidationError {
10
10
  }
11
11
  /**
12
12
  * @category Error
13
- * @description Error that indicates an invalid filter expression being passed or used
13
+ * Error that indicates an invalid filter expression being passed or used
14
14
  */
15
15
  export declare class InvalidFilterExpressionError extends ParameterValidationError {
16
16
  readonly invalidExpression: FilterExpression;
@@ -77,7 +77,7 @@ export interface VersionInfo {
77
77
  version: string;
78
78
  }
79
79
  /**
80
- * @description Facade class that surfaces all of the libraries capability and allow it's configuration
80
+ * Facade class that surfaces all of the libraries capability and allow it's configuration
81
81
  *
82
82
  * @param _rpc The RPC server to use
83
83
  */
@@ -90,7 +90,7 @@ export declare class TezosToolkit {
90
90
  readonly format: typeof format;
91
91
  constructor(_rpc: RpcClientInterface | string);
92
92
  /**
93
- * @description Sets configuration on the Tezos Taquito instance. Allows user to choose which signer, rpc client, rpc url, forger and so forth
93
+ * Sets configuration on the Tezos Taquito instance. Allows user to choose which signer, rpc client, rpc url, forger and so forth
94
94
  *
95
95
  * @param options rpc url or rpcClient to use to interact with the Tezos network
96
96
  *
@@ -100,64 +100,64 @@ export declare class TezosToolkit {
100
100
  */
101
101
  setProvider({ rpc, stream, signer, protocol, config, forger, wallet, packer, globalConstantsProvider, readProvider, parserProvider, injectorProvider, }: SetProviderOptions): void;
102
102
  /**
103
- * @description Sets signer provider on the Tezos Taquito instance.
103
+ * Sets signer provider on the Tezos Taquito instance.
104
104
  *
105
- * @param options signer to use to interact with the Tezos network
105
+ * @param signer signer to use to interact with the Tezos network
106
106
  *
107
107
  * @example Tezos.setSignerProvider(new InMemorySigner.fromSecretKey('edsk...'))
108
108
  *
109
109
  */
110
110
  setSignerProvider(signer?: SetProviderOptions['signer']): void;
111
111
  /**
112
- * @description Sets rpc provider on the Tezos Taquito instance
112
+ * Sets rpc provider on the Tezos Taquito instance
113
113
  *
114
- * @param options rpc url or rpcClient to use to interact with the Tezos network
114
+ * @param rpc rpc url or rpcClient to use to interact with the Tezos network
115
115
  *
116
116
  * @example Tezos.setRpcProvider('https://mainnet.tezos.ecadinfra.com/')
117
117
  *
118
118
  */
119
119
  setRpcProvider(rpc?: SetProviderOptions['rpc']): void;
120
120
  /**
121
- * @description Sets forger provider on the Tezos Taquito instance
121
+ * Sets forger provider on the Tezos Taquito instance
122
122
  * The `LocalForger` from `@taquito/local-forging` is set by default.
123
123
  *
124
- * @param options forger to use to interact with the Tezos network
124
+ * @param forger forger to use to interact with the Tezos network
125
125
  *
126
126
  * @example Tezos.setForgerProvider(this.getFactory(RpcForger)())
127
127
  *
128
128
  */
129
129
  setForgerProvider(forger?: SetProviderOptions['forger']): void;
130
130
  /**
131
- * @description Sets stream provider on the Tezos Taquito instance
131
+ * Sets stream provider on the Tezos Taquito instance
132
132
  *
133
- * @param options stream to use to interact with the Tezos network
133
+ * @param stream stream to use to interact with the Tezos network
134
134
  *
135
135
  * @example Tezos.setStreamProvider(...)
136
136
  *
137
137
  */
138
138
  setStreamProvider(stream?: SetProviderOptions['stream']): void;
139
139
  /**
140
- * @description Sets wallet provider on the Tezos Taquito instance
140
+ * Sets wallet provider on the Tezos Taquito instance
141
141
  *
142
- * @param options wallet to use to interact with the Tezos network
142
+ * @param wallet wallet to use to interact with the Tezos network
143
143
  *
144
144
  * @example Tezos.setWalletProvider(...)
145
145
  *
146
146
  */
147
147
  setWalletProvider(wallet?: SetProviderOptions['wallet']): void;
148
148
  /**
149
- * @description Sets Packer provider on the Tezos Taquito instance
149
+ * Sets Packer provider on the Tezos Taquito instance
150
150
  *
151
- * @param options packer to use to interact with the Tezos network
151
+ * @param packer packer to use to interact with the Tezos network
152
152
  *
153
153
  * @example Tezos.setPackerProvider(new MichelCodecPacker())
154
154
  *
155
155
  */
156
156
  setPackerProvider(packer?: SetProviderOptions['packer']): void;
157
157
  /**
158
- * @description Sets global constants provider on the Tezos Taquito instance
158
+ * Sets global constants provider on the Tezos Taquito instance
159
159
  *
160
- * @param options globalConstantsProvider to use to interact with the Tezos network
160
+ * @param globalConstantsProvider globalConstantsProvider to use to interact with the Tezos network
161
161
  *
162
162
  * @example
163
163
  * ```
@@ -172,68 +172,68 @@ export declare class TezosToolkit {
172
172
  */
173
173
  setGlobalConstantsProvider(globalConstantsProvider?: SetProviderOptions['globalConstantsProvider']): void;
174
174
  /**
175
- * @description Sets read provider on the Tezos Taquito instance
175
+ * Sets read provider on the Tezos Taquito instance
176
176
  * By default reads are done from the RPC usign the RpcReadAdapter class, this can be overridden to read from an indexer that implements the TzReadProvider interface
177
177
  *
178
- * @param options TzReadProvider to use to interact with the Tezos network
178
+ * @param readProvider TzReadProvider to use to interact with the Tezos network
179
179
  *
180
180
  */
181
181
  setReadProvider(readProvider?: SetProviderOptions['readProvider']): void;
182
182
  /**
183
- * @description Sets parser provider on the Tezos Taquito instance
183
+ * Sets parser provider on the Tezos Taquito instance
184
184
  *
185
- * @param options parserProvider to use to interact with the Tezos network
185
+ * @param parserProvider parserProvider to use to interact with the Tezos network
186
186
  *
187
187
  */
188
188
  setParserProvider(parserProvider?: SetProviderOptions['parserProvider']): void;
189
189
  /**
190
- * @description Sets injector provider on the Tezos Taquito instance
190
+ * Sets injector provider on the Tezos Taquito instance
191
191
  *
192
- * @param options Injector to use to interact with the Tezos network by default RpcInjector
192
+ * @param injectorProvider Injector to use to interact with the Tezos network by default RpcInjector
193
193
  *
194
194
  */
195
195
  setInjectorProvider(injectorProvider?: SetProviderOptions['injectorProvider']): void;
196
196
  /**
197
- * @description Sets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects
197
+ * Sets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects
198
198
  * @param strategy a value of type FieldNumberingStrategy that controls how field numbers are calculated
199
199
  */
200
200
  setFieldNumberingStrategy(strategy: FieldNumberingStrategy): void;
201
201
  /**
202
- * @description Provide access to tezos account management
202
+ * Provide access to tezos account management
203
203
  */
204
204
  get tz(): TzProvider;
205
205
  /**
206
- * @description Provide access to smart contract utilities
206
+ * Provide access to smart contract utilities
207
207
  */
208
208
  get contract(): ContractProvider;
209
209
  /**
210
- * @description Provide access to tezos operation preparation utilities
210
+ * Provide access to tezos operation preparation utilities
211
211
  */
212
212
  get prepare(): PreparationProvider;
213
213
  get wallet(): Wallet;
214
214
  get operation(): OperationFactory;
215
215
  /**
216
- * @description Provide access to operation estimation utilities
216
+ * Provide access to operation estimation utilities
217
217
  */
218
218
  get estimate(): EstimationProvider;
219
219
  /**
220
- * @description Provide access to streaming utilities backed by an streamer implementation
220
+ * Provide access to streaming utilities backed by an streamer implementation
221
221
  */
222
222
  get stream(): SubscribeProvider;
223
223
  /**
224
- * @description Provide access to the currently used rpc client
224
+ * Provide access to the currently used rpc client
225
225
  */
226
226
  get rpc(): RpcClientInterface;
227
227
  /**
228
- * @description Provide access to the currently used signer
228
+ * Provide access to the currently used signer
229
229
  */
230
230
  get signer(): Signer;
231
231
  /**
232
- * @description Provide access to the currently used globalConstantsProvider
232
+ * Provide access to the currently used globalConstantsProvider
233
233
  */
234
234
  get globalConstants(): GlobalConstantsProvider;
235
235
  /**
236
- * @description Allow to add a module to the TezosToolkit instance. This method adds the appropriate Providers(s) required by the module to the internal context.
236
+ * Allow to add a module to the TezosToolkit instance. This method adds the appropriate Providers(s) required by the module to the internal context.
237
237
  *
238
238
  * @param module extension to add to the TezosToolkit instance
239
239
  *
@@ -242,7 +242,7 @@ export declare class TezosToolkit {
242
242
  addExtension(module: Extension | Extension[]): void;
243
243
  getFactory<T, K extends Array<any>>(ctor: TaquitoProvider<T, K>): (...args: K) => T;
244
244
  /**
245
- * @description Gets an object containing the version of Taquito library and git sha of the commit this library is compiled from
245
+ * Gets an object containing the version of Taquito library and git sha of the commit this library is compiled from
246
246
  */
247
247
  getVersionInfo(): VersionInfo;
248
248
  }
@@ -1,16 +1,24 @@
1
1
  import { TezosToolkitConfigError, NetworkError } from '@taquito/core';
2
2
  /**
3
3
  * @category Error
4
- * @description Error that indicates undefined confirmation has not been specified or configured
4
+ * Error that indicates undefined confirmation has not been specified or configured
5
5
  */
6
6
  export declare class ConfirmationUndefinedError extends TezosToolkitConfigError {
7
7
  constructor();
8
8
  }
9
9
  /**
10
10
  * @category Error
11
- * @description Error that indicates a generic failure when trying to fetch an observable
11
+ * Error that indicates a generic failure when trying to fetch an observable
12
12
  */
13
13
  export declare class ObservableError extends NetworkError {
14
14
  readonly message: string;
15
15
  constructor(message: string);
16
16
  }
17
+ /**
18
+ * @category Error
19
+ * Error that indicates a newly originated wallet contract could not be resolved
20
+ */
21
+ export declare class OriginationWalletOperationError extends ObservableError {
22
+ readonly message: string;
23
+ constructor(message: string);
24
+ }
@@ -12,55 +12,55 @@ export type WalletTransferTicketParams = Omit<TransferTicketParams, WalletDefine
12
12
  export type WalletRegisterGlobalConstantParams = Omit<RegisterGlobalConstantParams, WalletDefinedFields>;
13
13
  export interface WalletProvider {
14
14
  /**
15
- * @description Request the public key hash from the wallet
15
+ * Request the public key hash from the wallet
16
16
  */
17
17
  getPKH: () => Promise<string>;
18
18
  /**
19
- * @description Request the public key from the wallet
19
+ * Request the public key from the wallet
20
20
  */
21
21
  getPK: () => Promise<string>;
22
22
  /**
23
- * @description Transform WalletTransferParams into a format compliant with the underlying wallet
23
+ * Transform WalletTransferParams into a format compliant with the underlying wallet
24
24
  */
25
25
  mapTransferParamsToWalletParams: (params: () => Promise<WalletTransferParams>) => Promise<any>;
26
26
  /**
27
- * @description Transform WalletTransferTicketParams into a format compliant with the underlying wallet
27
+ * Transform WalletTransferTicketParams into a format compliant with the underlying wallet
28
28
  */
29
29
  mapTransferTicketParamsToWalletParams: (params: () => Promise<WalletTransferTicketParams>) => Promise<any>;
30
30
  /**
31
- * @description Transform WalletRegisterGlobalConstantParams into a format compliant with the underlying wallet
31
+ * Transform WalletRegisterGlobalConstantParams into a format compliant with the underlying wallet
32
32
  */
33
33
  mapRegisterGlobalConstantParamsToWalletParams: (params: () => Promise<WalletRegisterGlobalConstantParams>) => Promise<any>;
34
34
  /**
35
- * @description Transform WalletStakeParams into a format compliant with the underlying wallet
35
+ * Transform WalletStakeParams into a format compliant with the underlying wallet
36
36
  */
37
37
  mapStakeParamsToWalletParams: (params: () => Promise<WalletStakeParams>) => Promise<any>;
38
38
  /**
39
- * @description Transform WalletUnstakeParams into a format compliant with the underlying wallet
39
+ * Transform WalletUnstakeParams into a format compliant with the underlying wallet
40
40
  */
41
41
  mapUnstakeParamsToWalletParams: (params: () => Promise<WalletUnstakeParams>) => Promise<any>;
42
42
  /**
43
- * @description Transform WalletFinalizeUnstakeParams into a format compliant with the underlying wallet
43
+ * Transform WalletFinalizeUnstakeParams into a format compliant with the underlying wallet
44
44
  */
45
45
  mapFinalizeUnstakeParamsToWalletParams: (params: () => Promise<WalletFinalizeUnstakeParams>) => Promise<any>;
46
46
  /**
47
- * @description Transform WalletOriginateParams into a format compliant with the underlying wallet
47
+ * Transform WalletOriginateParams into a format compliant with the underlying wallet
48
48
  */
49
49
  mapOriginateParamsToWalletParams: (params: () => Promise<WalletOriginateParams>) => Promise<any>;
50
50
  /**
51
- * @description Transform WalletDelegateParams into a format compliant with the underlying wallet
51
+ * Transform WalletDelegateParams into a format compliant with the underlying wallet
52
52
  */
53
53
  mapDelegateParamsToWalletParams: (params: () => Promise<WalletDelegateParams>) => Promise<any>;
54
54
  /**
55
- * @description Transform WalletIncreasePaidStorageParams into a format compliant with the underlying wallet
55
+ * Transform WalletIncreasePaidStorageParams into a format compliant with the underlying wallet
56
56
  */
57
57
  mapIncreasePaidStorageWalletParams: (params: () => Promise<WalletIncreasePaidStorageParams>) => Promise<any>;
58
58
  /**
59
- * @description Request the wallet to send an operation batch
59
+ * Request the wallet to send an operation batch
60
60
  */
61
61
  sendOperations: (params: any[]) => Promise<string>;
62
62
  /**
63
- * @description Request the wallet to sign a payload
63
+ * Request the wallet to sign a payload
64
64
  */
65
65
  sign(bytes: string, watermark?: Uint8Array): Promise<string>;
66
66
  }
@@ -5,7 +5,7 @@ import { Receipt } from './receipt';
5
5
  import { BlockIdentifier } from '../read-provider/interface';
6
6
  export type OperationStatus = 'pending' | 'unknown' | OperationResultStatusEnum;
7
7
  /**
8
- * @description WalletOperation allows to monitor operation inclusion on chains and surface information related to the operation
8
+ * WalletOperation allows to monitor operation inclusion on chains and surface information related to the operation
9
9
  */
10
10
  export declare class WalletOperation {
11
11
  readonly opHash: string;
@@ -18,15 +18,16 @@ export declare class WalletOperation {
18
18
  protected newHead$: Observable<BlockResponse>;
19
19
  private confirmed$;
20
20
  operationResults(): Promise<OperationContentsAndResult[] | undefined>;
21
+ protected getInclusionBlock(): Promise<BlockResponse>;
22
+ private getOperationResultsIfIncluded;
21
23
  /**
22
- * @description Receipt expose the total amount of tezos token burn and spent on fees
24
+ * Receipt expose the total amount of tezos token burn and spent on fees
23
25
  * The promise returned by receipt will resolve only once the transaction is included
24
26
  */
25
27
  receipt(): Promise<Receipt>;
26
28
  /**
27
29
  *
28
30
  * @param opHash Operation hash
29
- * @param raw Raw operation that was injected
30
31
  * @param context Taquito context allowing access to rpc and signer
31
32
  * @throws {InvalidOperationHashError}
32
33
  */