@taquito/taquito 17.5.2 → 19.0.0-beta-RC.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 +11 -11
- package/dist/lib/constants.js +4 -1
- package/dist/lib/contract/prepare.js +1 -2
- package/dist/lib/contract/rpc-contract-provider.js +1 -6
- package/dist/lib/operations/smart-rollup-originate-operation.js +0 -3
- package/dist/lib/operations/types.js +0 -4
- package/dist/lib/prepare/prepare-provider.js +1 -5
- package/dist/lib/read-provider/rpc-read-adapter.js +1 -2
- package/dist/lib/subscribe/filters.js +2 -0
- package/dist/lib/version.js +2 -2
- package/dist/taquito.es6.js +12 -25
- package/dist/taquito.es6.js.map +1 -1
- package/dist/taquito.min.js +1 -1
- package/dist/taquito.umd.js +12 -25
- package/dist/taquito.umd.js.map +1 -1
- package/dist/types/batch/rpc-batch-provider.d.ts +2 -2
- package/dist/types/constants.d.ts +5 -2
- package/dist/types/contract/prepare.d.ts +2 -2
- package/dist/types/operations/errors.d.ts +2 -2
- package/dist/types/operations/smart-rollup-originate-operation.d.ts +0 -1
- package/dist/types/operations/types.d.ts +4 -51
- package/dist/types/read-provider/interface.d.ts +0 -1
- package/dist/types/read-provider/rpc-read-adapter.d.ts +0 -1
- package/dist/types/signer/interface.d.ts +1 -1
- package/package.json +9 -9
- package/dist/lib/operations/tx-rollup-batch-operation.js +0 -52
- package/dist/lib/operations/tx-rollup-origination-operation.js +0 -52
- package/dist/types/operations/tx-rollup-batch-operation.d.ts +0 -21
- package/dist/types/operations/tx-rollup-origination-operation.d.ts +0 -24
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Taquito high-level functions
|
|
1
|
+
# Taquito high-level functions
|
|
2
2
|
|
|
3
3
|
*TypeDoc style documentation is available on-line [here](https://tezostaquito.io/typedoc/modules/_taquito_taquito.html)*
|
|
4
4
|
|
|
@@ -7,15 +7,15 @@ The `@taquito/taquito` package contains higher-level functionality that builds u
|
|
|
7
7
|
## CDN Bundle
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
|
-
<script src="https://unpkg.com/@taquito/taquito@
|
|
10
|
+
<script src="https://unpkg.com/@taquito/taquito@19.0.0-beta-RC.0/dist/taquito.min.js"
|
|
11
11
|
crossorigin="anonymous" integrity="sha384-IxvP0ECHi5oqLyz94wF85pU9+ktcsL1HHtA42MITxZsGbsUMEu/g+0Vkjj5vqiMR"></script>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## General Information
|
|
15
15
|
|
|
16
|
-
The `TezosToolkit` is a facade class that surfaces all of the library's capability and allows its configuration through different providers.
|
|
16
|
+
The `TezosToolkit` is a facade class that surfaces all of the library's capability and allows its configuration through different providers.
|
|
17
17
|
|
|
18
|
-
## Install
|
|
18
|
+
## Install
|
|
19
19
|
|
|
20
20
|
```
|
|
21
21
|
npm i --save @taquito/taquito
|
|
@@ -25,7 +25,7 @@ npm i --save @taquito/taquito
|
|
|
25
25
|
## Minimal configuration
|
|
26
26
|
### TezosToolkit instantiation
|
|
27
27
|
|
|
28
|
-
The `TezosToolkit` constructor takes at least an RPC URL as a parameter. When instantiating the toolkit with a URL, a default instance of `RpcClient` is created. The `RpcClient` class is used to interact with the Tezos network.
|
|
28
|
+
The `TezosToolkit` constructor takes at least an RPC URL as a parameter. When instantiating the toolkit with a URL, a default instance of `RpcClient` is created. The `RpcClient` class is used to interact with the Tezos network.
|
|
29
29
|
|
|
30
30
|
```ts
|
|
31
31
|
import { TezosToolkit } from '@taquito/taquito';
|
|
@@ -114,7 +114,7 @@ Tezos.setProvider(
|
|
|
114
114
|
|
|
115
115
|
## Estimation
|
|
116
116
|
|
|
117
|
-
Use the `estimate` member to estimate fees, gas and storage of operations.
|
|
117
|
+
Use the `estimate` member to estimate fees, gas and storage of operations.
|
|
118
118
|
|
|
119
119
|
```ts
|
|
120
120
|
const estimate = await Tezos.estimate.transfer(transferParams);
|
|
@@ -125,12 +125,12 @@ const estimate = await Tezos.estimate.transfer(transferParams);
|
|
|
125
125
|
Use the `stream` member to subscribe to specific operations:
|
|
126
126
|
|
|
127
127
|
```ts
|
|
128
|
-
Tezos.setProvider({
|
|
129
|
-
config: { shouldObservableSubscriptionRetry: true, streamerPollingIntervalMilliseconds: 15000 }
|
|
128
|
+
Tezos.setProvider({
|
|
129
|
+
config: { shouldObservableSubscriptionRetry: true, streamerPollingIntervalMilliseconds: 15000 }
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
const
|
|
133
|
-
and: [{ source: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: '
|
|
132
|
+
const bakerAttestationFilter = {
|
|
133
|
+
and: [{ source: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: 'attestation' }]
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
const bakerDelegation = {
|
|
@@ -138,7 +138,7 @@ const bakerDelegation = {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
const sub = tezos.stream.subscribeOperation({
|
|
141
|
-
or: [
|
|
141
|
+
or: [bakerAttestationFilter, bakerDelegation]
|
|
142
142
|
})
|
|
143
143
|
|
|
144
144
|
sub.on('data', console.log)
|
package/dist/lib/constants.js
CHANGED
|
@@ -48,6 +48,7 @@ var Protocols;
|
|
|
48
48
|
Protocols["PtMumbaii"] = "PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc";
|
|
49
49
|
Protocols["PtMumbai2"] = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1";
|
|
50
50
|
Protocols["PtNairobi"] = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf";
|
|
51
|
+
Protocols["ProxfordY"] = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH";
|
|
51
52
|
Protocols["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
|
|
52
53
|
})(Protocols || (exports.Protocols = Protocols = {}));
|
|
53
54
|
exports.protocols = {
|
|
@@ -65,7 +66,8 @@ exports.protocols = {
|
|
|
65
66
|
'015': [Protocols.PtLimaPtL],
|
|
66
67
|
'016': [Protocols.PtMumbai2],
|
|
67
68
|
'017': [Protocols.PtNairobi],
|
|
68
|
-
'
|
|
69
|
+
'019': [Protocols.ProxfordY],
|
|
70
|
+
'020': [Protocols.ProtoALpha],
|
|
69
71
|
};
|
|
70
72
|
var ChainIds;
|
|
71
73
|
(function (ChainIds) {
|
|
@@ -84,6 +86,7 @@ var ChainIds;
|
|
|
84
86
|
ChainIds["MUMBAINET"] = "NetXQw6nWSnrJ5t";
|
|
85
87
|
ChainIds["MUMBAINET2"] = "NetXgbcrNtXD2yA";
|
|
86
88
|
ChainIds["NAIROBINET"] = "NetXyuzvDo2Ugzb";
|
|
89
|
+
ChainIds["OXFORDNET2"] = "NetXxWsskGahzQB";
|
|
87
90
|
})(ChainIds || (exports.ChainIds = ChainIds = {}));
|
|
88
91
|
const getRevealGasLimit = (address) => Math.round((getRevealGasLimitInternal(address) * 11) / 10);
|
|
89
92
|
exports.getRevealGasLimit = getRevealGasLimit;
|
|
@@ -199,7 +199,7 @@ const createSmartRollupAddMessagesOperation = ({ source, fee, gasLimit, storageL
|
|
|
199
199
|
};
|
|
200
200
|
});
|
|
201
201
|
exports.createSmartRollupAddMessagesOperation = createSmartRollupAddMessagesOperation;
|
|
202
|
-
const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLimit, pvmKind, kernel,
|
|
202
|
+
const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLimit, pvmKind, kernel, parametersType, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
203
203
|
return {
|
|
204
204
|
kind: rpc_1.OpKind.SMART_ROLLUP_ORIGINATE,
|
|
205
205
|
source,
|
|
@@ -208,7 +208,6 @@ const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLim
|
|
|
208
208
|
storage_limit: storageLimit,
|
|
209
209
|
pvm_kind: pvmKind,
|
|
210
210
|
kernel,
|
|
211
|
-
origination_proof: originationProof,
|
|
212
211
|
parameters_ty: parametersType,
|
|
213
212
|
};
|
|
214
213
|
});
|
|
@@ -505,12 +505,7 @@ class RpcContractProvider extends provider_1.Provider {
|
|
|
505
505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
506
506
|
const publicKeyHash = yield this.signer.publicKeyHash();
|
|
507
507
|
const estimate = yield this.estimate(params, this.estimator.smartRollupOriginate.bind(this.estimator));
|
|
508
|
-
const
|
|
509
|
-
kind: params.pvmKind,
|
|
510
|
-
kernel: params.kernel,
|
|
511
|
-
});
|
|
512
|
-
const completeParams = Object.assign(Object.assign({}, params), { originationProof });
|
|
513
|
-
const prepared = yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({}, completeParams), estimate));
|
|
508
|
+
const prepared = yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({}, params), estimate));
|
|
514
509
|
const content = prepared.opOb.contents.find((op) => op.kind === rpc_1.OpKind.SMART_ROLLUP_ORIGINATE);
|
|
515
510
|
const opBytes = yield this.forge(prepared);
|
|
516
511
|
const { hash, context, forgedBytes, opResponse } = yield this.signAndInject(opBytes);
|
|
@@ -45,9 +45,6 @@ class SmartRollupOriginateOperation extends operations_1.Operation {
|
|
|
45
45
|
get kernel() {
|
|
46
46
|
return this.params.kernel;
|
|
47
47
|
}
|
|
48
|
-
get originationProof() {
|
|
49
|
-
return this.params.origination_proof;
|
|
50
|
-
}
|
|
51
48
|
get errors() {
|
|
52
49
|
var _a;
|
|
53
50
|
return (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.errors;
|
|
@@ -28,8 +28,6 @@ const isOpWithFee = (op) => {
|
|
|
28
28
|
'reveal',
|
|
29
29
|
'register_global_constant',
|
|
30
30
|
'increase_paid_storage',
|
|
31
|
-
'tx_rollup_origination',
|
|
32
|
-
'tx_rollup_submit_batch',
|
|
33
31
|
'transfer_ticket',
|
|
34
32
|
'update_consensus_key',
|
|
35
33
|
'smart_rollup_add_messages',
|
|
@@ -44,8 +42,6 @@ const isOpRequireReveal = (op) => {
|
|
|
44
42
|
'origination',
|
|
45
43
|
'register_global_constant',
|
|
46
44
|
'increase_paid_storage',
|
|
47
|
-
'tx_rollup_origination',
|
|
48
|
-
'tx_rollup_submit_batch',
|
|
49
45
|
'transfer_ticket',
|
|
50
46
|
'update_consensus_key',
|
|
51
47
|
'smart_rollup_add_messages',
|
|
@@ -637,13 +637,9 @@ class PrepareProvider extends provider_1.Provider {
|
|
|
637
637
|
var { fee, storageLimit, gasLimit } = _a, rest = __rest(_a, ["fee", "storageLimit", "gasLimit"]);
|
|
638
638
|
return __awaiter(this, void 0, void 0, function* () {
|
|
639
639
|
const { pkh } = yield this.getKeys();
|
|
640
|
-
const originationProof = yield this.rpc.getOriginationProof({
|
|
641
|
-
kind: rest.pvmKind,
|
|
642
|
-
kernel: rest.kernel,
|
|
643
|
-
});
|
|
644
640
|
const protocolConstants = yield this.context.readProvider.getProtocolConstants('head');
|
|
645
641
|
const DEFAULT_PARAMS = yield this.getAccountLimits(pkh, protocolConstants);
|
|
646
|
-
const op = yield (0, contract_1.createSmartRollupOriginateOperation)(Object.assign(Object.assign(
|
|
642
|
+
const op = yield (0, contract_1.createSmartRollupOriginateOperation)(Object.assign(Object.assign({}, mergeLimits({ fee, storageLimit, gasLimit }, DEFAULT_PARAMS)), rest));
|
|
647
643
|
const operation = yield this.addRevealOperationIfNeeded(op, pkh);
|
|
648
644
|
const ops = this.convertIntoArray(operation);
|
|
649
645
|
const hash = yield this.getBlockHash();
|
|
@@ -55,7 +55,7 @@ class RpcReadAdapter {
|
|
|
55
55
|
*/
|
|
56
56
|
getProtocolConstants(block) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const { time_between_blocks, minimal_block_delay, hard_gas_limit_per_operation, hard_gas_limit_per_block, hard_storage_limit_per_operation, cost_per_byte,
|
|
58
|
+
const { time_between_blocks, minimal_block_delay, hard_gas_limit_per_operation, hard_gas_limit_per_block, hard_storage_limit_per_operation, cost_per_byte, smart_rollup_origination_size, } = yield this.rpc.getConstants({ block: String(block) });
|
|
59
59
|
return {
|
|
60
60
|
time_between_blocks,
|
|
61
61
|
minimal_block_delay,
|
|
@@ -63,7 +63,6 @@ class RpcReadAdapter {
|
|
|
63
63
|
hard_gas_limit_per_block,
|
|
64
64
|
hard_storage_limit_per_operation,
|
|
65
65
|
cost_per_byte,
|
|
66
|
-
tx_rollup_origination_size,
|
|
67
66
|
smart_rollup_origination_size,
|
|
68
67
|
};
|
|
69
68
|
});
|
|
@@ -5,6 +5,8 @@ const errors_1 = require("./errors");
|
|
|
5
5
|
const opHashFilter = (op, filter) => op.hash === filter.opHash;
|
|
6
6
|
const sourceFilter = (x, filter) => {
|
|
7
7
|
switch (x.kind) {
|
|
8
|
+
case 'attestation':
|
|
9
|
+
return 'metadata' in x && x.metadata.delegate === filter.source;
|
|
8
10
|
case 'endorsement':
|
|
9
11
|
return 'metadata' in x && x.metadata.delegate === filter.source;
|
|
10
12
|
case 'activate_account':
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "bd52c12d05e329e4cf3a81fe55c4778a47879ccd",
|
|
7
|
+
"version": "19.0.0-beta-RC.0"
|
|
8
8
|
};
|
package/dist/taquito.es6.js
CHANGED
|
@@ -211,6 +211,7 @@ var Protocols;
|
|
|
211
211
|
Protocols["PtMumbaii"] = "PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc";
|
|
212
212
|
Protocols["PtMumbai2"] = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1";
|
|
213
213
|
Protocols["PtNairobi"] = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf";
|
|
214
|
+
Protocols["ProxfordY"] = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH";
|
|
214
215
|
Protocols["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
|
|
215
216
|
})(Protocols || (Protocols = {}));
|
|
216
217
|
const protocols = {
|
|
@@ -228,7 +229,8 @@ const protocols = {
|
|
|
228
229
|
'015': [Protocols.PtLimaPtL],
|
|
229
230
|
'016': [Protocols.PtMumbai2],
|
|
230
231
|
'017': [Protocols.PtNairobi],
|
|
231
|
-
'
|
|
232
|
+
'019': [Protocols.ProxfordY],
|
|
233
|
+
'020': [Protocols.ProtoALpha],
|
|
232
234
|
};
|
|
233
235
|
var ChainIds;
|
|
234
236
|
(function (ChainIds) {
|
|
@@ -247,6 +249,7 @@ var ChainIds;
|
|
|
247
249
|
ChainIds["MUMBAINET"] = "NetXQw6nWSnrJ5t";
|
|
248
250
|
ChainIds["MUMBAINET2"] = "NetXgbcrNtXD2yA";
|
|
249
251
|
ChainIds["NAIROBINET"] = "NetXyuzvDo2Ugzb";
|
|
252
|
+
ChainIds["OXFORDNET2"] = "NetXxWsskGahzQB";
|
|
250
253
|
})(ChainIds || (ChainIds = {}));
|
|
251
254
|
const getRevealGasLimit = (address) => Math.round((getRevealGasLimitInternal(address) * 11) / 10);
|
|
252
255
|
const getRevealGasLimitInternal = (address) => {
|
|
@@ -561,7 +564,7 @@ const createSmartRollupAddMessagesOperation = ({ source, fee, gasLimit, storageL
|
|
|
561
564
|
message,
|
|
562
565
|
};
|
|
563
566
|
});
|
|
564
|
-
const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLimit, pvmKind, kernel,
|
|
567
|
+
const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLimit, pvmKind, kernel, parametersType, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
565
568
|
return {
|
|
566
569
|
kind: OpKind.SMART_ROLLUP_ORIGINATE,
|
|
567
570
|
source,
|
|
@@ -570,7 +573,6 @@ const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLim
|
|
|
570
573
|
storage_limit: storageLimit,
|
|
571
574
|
pvm_kind: pvmKind,
|
|
572
575
|
kernel,
|
|
573
|
-
origination_proof: originationProof,
|
|
574
576
|
parameters_ty: parametersType,
|
|
575
577
|
};
|
|
576
578
|
});
|
|
@@ -597,8 +599,6 @@ const isOpWithFee = (op) => {
|
|
|
597
599
|
'reveal',
|
|
598
600
|
'register_global_constant',
|
|
599
601
|
'increase_paid_storage',
|
|
600
|
-
'tx_rollup_origination',
|
|
601
|
-
'tx_rollup_submit_batch',
|
|
602
602
|
'transfer_ticket',
|
|
603
603
|
'update_consensus_key',
|
|
604
604
|
'smart_rollup_add_messages',
|
|
@@ -612,8 +612,6 @@ const isOpRequireReveal = (op) => {
|
|
|
612
612
|
'origination',
|
|
613
613
|
'register_global_constant',
|
|
614
614
|
'increase_paid_storage',
|
|
615
|
-
'tx_rollup_origination',
|
|
616
|
-
'tx_rollup_submit_batch',
|
|
617
615
|
'transfer_ticket',
|
|
618
616
|
'update_consensus_key',
|
|
619
617
|
'smart_rollup_add_messages',
|
|
@@ -3060,13 +3058,9 @@ class PrepareProvider extends Provider {
|
|
|
3060
3058
|
var { fee, storageLimit, gasLimit } = _a, rest = __rest(_a, ["fee", "storageLimit", "gasLimit"]);
|
|
3061
3059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3062
3060
|
const { pkh } = yield this.getKeys();
|
|
3063
|
-
const originationProof = yield this.rpc.getOriginationProof({
|
|
3064
|
-
kind: rest.pvmKind,
|
|
3065
|
-
kernel: rest.kernel,
|
|
3066
|
-
});
|
|
3067
3061
|
const protocolConstants = yield this.context.readProvider.getProtocolConstants('head');
|
|
3068
3062
|
const DEFAULT_PARAMS = yield this.getAccountLimits(pkh, protocolConstants);
|
|
3069
|
-
const op = yield createSmartRollupOriginateOperation(Object.assign(Object.assign(
|
|
3063
|
+
const op = yield createSmartRollupOriginateOperation(Object.assign(Object.assign({}, mergeLimits({ fee, storageLimit, gasLimit }, DEFAULT_PARAMS)), rest));
|
|
3070
3064
|
const operation = yield this.addRevealOperationIfNeeded(op, pkh);
|
|
3071
3065
|
const ops = this.convertIntoArray(operation);
|
|
3072
3066
|
const hash = yield this.getBlockHash();
|
|
@@ -4815,9 +4809,6 @@ class SmartRollupOriginateOperation extends Operation {
|
|
|
4815
4809
|
get kernel() {
|
|
4816
4810
|
return this.params.kernel;
|
|
4817
4811
|
}
|
|
4818
|
-
get originationProof() {
|
|
4819
|
-
return this.params.origination_proof;
|
|
4820
|
-
}
|
|
4821
4812
|
get errors() {
|
|
4822
4813
|
var _a;
|
|
4823
4814
|
return (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.errors;
|
|
@@ -5295,12 +5286,7 @@ class RpcContractProvider extends Provider {
|
|
|
5295
5286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5296
5287
|
const publicKeyHash = yield this.signer.publicKeyHash();
|
|
5297
5288
|
const estimate = yield this.estimate(params, this.estimator.smartRollupOriginate.bind(this.estimator));
|
|
5298
|
-
const
|
|
5299
|
-
kind: params.pvmKind,
|
|
5300
|
-
kernel: params.kernel,
|
|
5301
|
-
});
|
|
5302
|
-
const completeParams = Object.assign(Object.assign({}, params), { originationProof });
|
|
5303
|
-
const prepared = yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({}, completeParams), estimate));
|
|
5289
|
+
const prepared = yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({}, params), estimate));
|
|
5304
5290
|
const content = prepared.opOb.contents.find((op) => op.kind === OpKind.SMART_ROLLUP_ORIGINATE);
|
|
5305
5291
|
const opBytes = yield this.forge(prepared);
|
|
5306
5292
|
const { hash, context, forgedBytes, opResponse } = yield this.signAndInject(opBytes);
|
|
@@ -5589,7 +5575,7 @@ class RpcReadAdapter {
|
|
|
5589
5575
|
*/
|
|
5590
5576
|
getProtocolConstants(block) {
|
|
5591
5577
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5592
|
-
const { time_between_blocks, minimal_block_delay, hard_gas_limit_per_operation, hard_gas_limit_per_block, hard_storage_limit_per_operation, cost_per_byte,
|
|
5578
|
+
const { time_between_blocks, minimal_block_delay, hard_gas_limit_per_operation, hard_gas_limit_per_block, hard_storage_limit_per_operation, cost_per_byte, smart_rollup_origination_size, } = yield this.rpc.getConstants({ block: String(block) });
|
|
5593
5579
|
return {
|
|
5594
5580
|
time_between_blocks,
|
|
5595
5581
|
minimal_block_delay,
|
|
@@ -5597,7 +5583,6 @@ class RpcReadAdapter {
|
|
|
5597
5583
|
hard_gas_limit_per_block,
|
|
5598
5584
|
hard_storage_limit_per_operation,
|
|
5599
5585
|
cost_per_byte,
|
|
5600
|
-
tx_rollup_origination_size,
|
|
5601
5586
|
smart_rollup_origination_size,
|
|
5602
5587
|
};
|
|
5603
5588
|
});
|
|
@@ -5771,6 +5756,8 @@ class InvalidFilterExpressionError extends ParameterValidationError {
|
|
|
5771
5756
|
const opHashFilter = (op, filter) => op.hash === filter.opHash;
|
|
5772
5757
|
const sourceFilter = (x, filter) => {
|
|
5773
5758
|
switch (x.kind) {
|
|
5759
|
+
case 'attestation':
|
|
5760
|
+
return 'metadata' in x && x.metadata.delegate === filter.source;
|
|
5774
5761
|
case 'endorsement':
|
|
5775
5762
|
return 'metadata' in x && x.metadata.delegate === filter.source;
|
|
5776
5763
|
case 'activate_account':
|
|
@@ -6203,8 +6190,8 @@ class Context {
|
|
|
6203
6190
|
|
|
6204
6191
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
6205
6192
|
const VERSION = {
|
|
6206
|
-
"commitHash": "
|
|
6207
|
-
"version": "
|
|
6193
|
+
"commitHash": "bd52c12d05e329e4cf3a81fe55c4778a47879ccd",
|
|
6194
|
+
"version": "19.0.0-beta-RC.0"
|
|
6208
6195
|
};
|
|
6209
6196
|
|
|
6210
6197
|
/**
|
package/dist/taquito.es6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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