@taquito/local-forging 21.0.4 → 22.0.0-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.
@@ -0,0 +1,285 @@
1
+ "use strict";
2
+ /*
3
+ * Some code in this file is originally from sotez
4
+ * Copyright (c) 2018 Andrew Kishino
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.entrypointMappingReverse = exports.entrypointMapping = exports.kindMappingReverse = exports.kindMapping = exports.opMappingReverse = exports.opMapping = exports.CODEC = exports.ENTRYPOINT_MAX_LENGTH = void 0;
8
+ const utils_1 = require("./utils");
9
+ // See: https://tezos.gitlab.io/protocols/005_babylon.html#transactions-now-have-an-entrypoint
10
+ exports.ENTRYPOINT_MAX_LENGTH = 31;
11
+ var CODEC;
12
+ (function (CODEC) {
13
+ CODEC["SECRET"] = "secret";
14
+ CODEC["RAW"] = "raw";
15
+ CODEC["TZ1"] = "tz1";
16
+ CODEC["BRANCH"] = "branch";
17
+ CODEC["ZARITH"] = "zarith";
18
+ CODEC["PUBLIC_KEY"] = "public_key";
19
+ CODEC["PKH"] = "pkh";
20
+ CODEC["PKH_ARR"] = "pkhArr";
21
+ CODEC["DELEGATE"] = "delegate";
22
+ CODEC["SCRIPT"] = "script";
23
+ CODEC["BALLOT_STATEMENT"] = "ballotStmt";
24
+ CODEC["PROPOSAL"] = "proposal";
25
+ CODEC["PROPOSAL_ARR"] = "proposalArr";
26
+ CODEC["INT32"] = "int32";
27
+ CODEC["INT16"] = "int16";
28
+ CODEC["PARAMETERS"] = "parameters";
29
+ CODEC["ADDRESS"] = "address";
30
+ CODEC["SMART_CONTRACT_ADDRESS"] = "smart_contract_address";
31
+ CODEC["SMART_ROLLUP_ADDRESS"] = "smart_rollup_address";
32
+ CODEC["SMART_ROLLUP_COMMITMENT_HASH"] = "smart_rollup_commitment_hash";
33
+ CODEC["VALUE"] = "value";
34
+ CODEC["PADDED_BYTES"] = "padded_bytes";
35
+ CODEC["SMART_ROLLUP_MESSAGE"] = "smart_rollup_message";
36
+ CODEC["MANAGER"] = "manager";
37
+ CODEC["BLOCK_PAYLOAD_HASH"] = "blockPayloadHash";
38
+ CODEC["ENTRYPOINT"] = "entrypoint";
39
+ CODEC["OPERATION"] = "operation";
40
+ CODEC["OP_ACTIVATE_ACCOUNT"] = "activate_account";
41
+ CODEC["OP_DELEGATION"] = "delegation";
42
+ CODEC["OP_TRANSACTION"] = "transaction";
43
+ CODEC["OP_ORIGINATION"] = "origination";
44
+ CODEC["OP_BALLOT"] = "ballot";
45
+ CODEC["OP_FAILING_NOOP"] = "failing_noop";
46
+ CODEC["OP_ATTESTATION"] = "attestation";
47
+ CODEC["OP_ATTESTATION_WITH_DAL"] = "attestation_with_dal";
48
+ CODEC["OP_SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
49
+ CODEC["OP_REVEAL"] = "reveal";
50
+ CODEC["OP_PROPOSALS"] = "proposals";
51
+ CODEC["OP_REGISTER_GLOBAL_CONSTANT"] = "register_global_constant";
52
+ CODEC["OP_TRANSFER_TICKET"] = "transfer_ticket";
53
+ CODEC["BURN_LIMIT"] = "burn_limit";
54
+ CODEC["OP_INCREASE_PAID_STORAGE"] = "increase_paid_storage";
55
+ CODEC["OP_UPDATE_CONSENSUS_KEY"] = "update_consensus_key";
56
+ CODEC["OP_DRAIN_DELEGATE"] = "drain_delegate";
57
+ CODEC["DEPOSITS_LIMIT"] = "deposits_limit";
58
+ CODEC["OP_SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
59
+ CODEC["OP_SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate";
60
+ CODEC["PVM_KIND"] = "pvm_kind";
61
+ CODEC["OP_SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
62
+ CODEC["OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
63
+ CODEC["OP_DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
64
+ CODEC["SLOT_HEADER"] = "slot_header";
65
+ })(CODEC || (exports.CODEC = CODEC = {}));
66
+ // See https://tezos.gitlab.io/shell/p2p_api.html#alpha-michelson-v1-primitives-enumeration-unsigned-8-bit-integer
67
+ exports.opMapping = {
68
+ '00': 'parameter',
69
+ '01': 'storage',
70
+ '02': 'code',
71
+ '03': 'False',
72
+ '04': 'Elt',
73
+ '05': 'Left',
74
+ '06': 'None',
75
+ '07': 'Pair',
76
+ '08': 'Right',
77
+ '09': 'Some',
78
+ '0a': 'True',
79
+ '0b': 'Unit',
80
+ '0c': 'PACK',
81
+ '0d': 'UNPACK',
82
+ '0e': 'BLAKE2B',
83
+ '0f': 'SHA256',
84
+ '10': 'SHA512',
85
+ '11': 'ABS',
86
+ '12': 'ADD',
87
+ '13': 'AMOUNT',
88
+ '14': 'AND',
89
+ '15': 'BALANCE',
90
+ '16': 'CAR',
91
+ '17': 'CDR',
92
+ '18': 'CHECK_SIGNATURE',
93
+ '19': 'COMPARE',
94
+ '1a': 'CONCAT',
95
+ '1b': 'CONS',
96
+ '1c': 'CREATE_ACCOUNT', // Removed in Edo
97
+ '1d': 'CREATE_CONTRACT', // Removed in Edo
98
+ '1e': 'IMPLICIT_ACCOUNT',
99
+ '1f': 'DIP',
100
+ '20': 'DROP',
101
+ '21': 'DUP',
102
+ '22': 'EDIV',
103
+ '23': 'EMPTY_MAP',
104
+ '24': 'EMPTY_SET',
105
+ '25': 'EQ',
106
+ '26': 'EXEC',
107
+ '27': 'FAILWITH',
108
+ '28': 'GE',
109
+ '29': 'GET',
110
+ '2a': 'GT',
111
+ '2b': 'HASH_KEY',
112
+ '2c': 'IF',
113
+ '2d': 'IF_CONS',
114
+ '2e': 'IF_LEFT',
115
+ '2f': 'IF_NONE',
116
+ '30': 'INT',
117
+ '31': 'LAMBDA',
118
+ '32': 'LE',
119
+ '33': 'LEFT',
120
+ '34': 'LOOP',
121
+ '35': 'LSL',
122
+ '36': 'LSR',
123
+ '37': 'LT',
124
+ '38': 'MAP',
125
+ '39': 'MEM',
126
+ '3a': 'MUL',
127
+ '3b': 'NEG',
128
+ '3c': 'NEQ',
129
+ '3d': 'NIL',
130
+ '3e': 'NONE',
131
+ '3f': 'NOT',
132
+ '40': 'NOW',
133
+ '41': 'OR',
134
+ '42': 'PAIR',
135
+ '43': 'PUSH',
136
+ '44': 'RIGHT',
137
+ '45': 'SIZE',
138
+ '46': 'SOME',
139
+ '47': 'SOURCE',
140
+ '48': 'SENDER',
141
+ '49': 'SELF',
142
+ '4a': 'STEPS_TO_QUOTA', // Removed in Edo
143
+ '4b': 'SUB',
144
+ '4c': 'SWAP',
145
+ '4d': 'TRANSFER_TOKENS',
146
+ '4e': 'SET_DELEGATE',
147
+ '4f': 'UNIT',
148
+ '50': 'UPDATE',
149
+ '51': 'XOR',
150
+ '52': 'ITER',
151
+ '53': 'LOOP_LEFT',
152
+ '54': 'ADDRESS',
153
+ '55': 'CONTRACT',
154
+ '56': 'ISNAT',
155
+ '57': 'CAST',
156
+ '58': 'RENAME',
157
+ '59': 'bool',
158
+ '5a': 'contract',
159
+ '5b': 'int',
160
+ '5c': 'key',
161
+ '5d': 'key_hash',
162
+ '5e': 'lambda',
163
+ '5f': 'list',
164
+ '60': 'map',
165
+ '61': 'big_map',
166
+ '62': 'nat',
167
+ '63': 'option',
168
+ '64': 'or',
169
+ '65': 'pair',
170
+ '66': 'set',
171
+ '67': 'signature',
172
+ '68': 'string',
173
+ '69': 'bytes',
174
+ '6a': 'mutez',
175
+ '6b': 'timestamp',
176
+ '6c': 'unit',
177
+ '6d': 'operation',
178
+ '6e': 'address',
179
+ '6f': 'SLICE',
180
+ '70': 'DIG',
181
+ '71': 'DUG',
182
+ '72': 'EMPTY_BIG_MAP',
183
+ '73': 'APPLY',
184
+ '74': 'chain_id',
185
+ '75': 'CHAIN_ID',
186
+ '76': 'LEVEL',
187
+ '77': 'SELF_ADDRESS',
188
+ '78': 'never',
189
+ '79': 'NEVER',
190
+ '7a': 'UNPAIR',
191
+ '7b': 'VOTING_POWER',
192
+ '7c': 'TOTAL_VOTING_POWER',
193
+ '7d': 'KECCAK',
194
+ '7e': 'SHA3',
195
+ '7f': 'PAIRING_CHECK',
196
+ '80': 'bls12_381_g1',
197
+ '81': 'bls12_381_g2',
198
+ '82': 'bls12_381_fr',
199
+ '83': 'sapling_state',
200
+ '84': 'sapling_transaction_deprecated',
201
+ '85': 'SAPLING_EMPTY_STATE',
202
+ '86': 'SAPLING_VERIFY_UPDATE',
203
+ '87': 'ticket',
204
+ '88': 'TICKET_DEPRECATED',
205
+ '89': 'READ_TICKET',
206
+ '8a': 'SPLIT_TICKET',
207
+ '8b': 'JOIN_TICKETS',
208
+ '8c': 'GET_AND_UPDATE',
209
+ '8d': 'chest',
210
+ '8e': 'chest_key',
211
+ '8f': 'OPEN_CHEST',
212
+ '90': 'VIEW',
213
+ '91': 'view',
214
+ '92': 'constant',
215
+ '93': 'SUB_MUTEZ',
216
+ '94': 'tx_rollup_l2_address',
217
+ '95': 'MIN_BLOCK_TIME',
218
+ '96': 'sapling_transaction',
219
+ '97': 'EMIT',
220
+ '98': 'Lambda_rec',
221
+ '99': 'LAMBDA_REC',
222
+ '9a': 'TICKET',
223
+ '9b': 'BYTES',
224
+ '9c': 'NAT',
225
+ '9d': 'Ticket',
226
+ };
227
+ exports.opMappingReverse = (() => {
228
+ const result = {};
229
+ Object.keys(exports.opMapping).forEach((key) => {
230
+ result[exports.opMapping[key]] = key;
231
+ });
232
+ return result;
233
+ })();
234
+ // See https://tezos.gitlab.io/shell/p2p_api.html
235
+ exports.kindMapping = {
236
+ 0x04: 'activate_account',
237
+ 0x6b: 'reveal',
238
+ 0x6e: 'delegation',
239
+ 0x6c: 'transaction',
240
+ 0x6d: 'origination',
241
+ 0x06: 'ballot',
242
+ 0x15: 'attestation',
243
+ 0x17: 'attestation_with_dal',
244
+ 0x01: 'seed_nonce_revelation',
245
+ 0x05: 'proposals',
246
+ 0x6f: 'register_global_constant',
247
+ 0x9e: 'transfer_ticket',
248
+ 0x70: 'set_deposits_limit',
249
+ 0x71: 'increase_paid_storage',
250
+ 0x72: 'update_consensus_key',
251
+ 0x09: 'drain_delegate',
252
+ 0xc8: 'smart_rollup_originate',
253
+ 0xc9: 'smart_rollup_add_messages',
254
+ 0xce: 'smart_rollup_execute_outbox_message',
255
+ 0xe6: 'dal_publish_commitment',
256
+ 0x11: 'failing_noop',
257
+ };
258
+ exports.kindMappingReverse = (() => {
259
+ const result = {};
260
+ Object.keys(exports.kindMapping).forEach((key) => {
261
+ const keyNum = typeof key === 'string' ? parseInt(key, 10) : key;
262
+ result[exports.kindMapping[keyNum]] = (0, utils_1.pad)(keyNum, 2);
263
+ });
264
+ return result;
265
+ })();
266
+ // See https://tezos.gitlab.io/protocols/005_babylon.html#transactions-now-have-an-entrypoint
267
+ exports.entrypointMapping = {
268
+ '00': 'default',
269
+ '01': 'root',
270
+ '02': 'do',
271
+ '03': 'set_delegate',
272
+ '04': 'remove_delegate',
273
+ '05': 'deposit',
274
+ '06': 'stake',
275
+ '07': 'unstake',
276
+ '08': 'finalize_unstake',
277
+ '09': 'set_delegate_parameters',
278
+ };
279
+ exports.entrypointMappingReverse = (() => {
280
+ const result = {};
281
+ Object.keys(exports.entrypointMapping).forEach((key) => {
282
+ result[exports.entrypointMapping[key]] = key;
283
+ });
284
+ return result;
285
+ })();
@@ -53,6 +53,7 @@ var CODEC;
53
53
  CODEC["BURN_LIMIT"] = "burn_limit";
54
54
  CODEC["OP_INCREASE_PAID_STORAGE"] = "increase_paid_storage";
55
55
  CODEC["OP_UPDATE_CONSENSUS_KEY"] = "update_consensus_key";
56
+ CODEC["SIGNATURE_PROOF"] = "signature_proof";
56
57
  CODEC["OP_DRAIN_DELEGATE"] = "drain_delegate";
57
58
  CODEC["DEPOSITS_LIMIT"] = "deposits_limit";
58
59
  CODEC["OP_SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.decodersProto021 = void 0;
4
+ const codec_proto021_1 = require("./codec-proto021");
5
+ const constants_proto021_1 = require("./constants-proto021");
6
+ const codec_1 = require("./michelson/codec");
7
+ const operation_proto021_1 = require("./schema/operation-proto021");
8
+ const utils_1 = require("./utils");
9
+ exports.decodersProto021 = {
10
+ [constants_proto021_1.CODEC.SECRET]: (val) => (0, utils_1.toHexString)(val.consume(20)),
11
+ [constants_proto021_1.CODEC.RAW]: (val) => (0, utils_1.toHexString)(val.consume(32)),
12
+ [constants_proto021_1.CODEC.TZ1]: codec_proto021_1.tz1Decoder,
13
+ [constants_proto021_1.CODEC.BRANCH]: codec_proto021_1.branchDecoder,
14
+ [constants_proto021_1.CODEC.ZARITH]: codec_proto021_1.zarithDecoder,
15
+ [constants_proto021_1.CODEC.PUBLIC_KEY]: codec_proto021_1.publicKeyDecoder,
16
+ [constants_proto021_1.CODEC.PKH]: codec_proto021_1.publicKeyHashDecoder,
17
+ [constants_proto021_1.CODEC.PKH_ARR]: codec_proto021_1.publicKeyHashesDecoder,
18
+ [constants_proto021_1.CODEC.DELEGATE]: codec_proto021_1.delegateDecoder,
19
+ [constants_proto021_1.CODEC.INT32]: codec_proto021_1.int32Decoder,
20
+ [constants_proto021_1.CODEC.SCRIPT]: codec_1.scriptDecoder,
21
+ [constants_proto021_1.CODEC.BALLOT_STATEMENT]: codec_proto021_1.ballotDecoder,
22
+ [constants_proto021_1.CODEC.PROPOSAL]: codec_proto021_1.proposalDecoder,
23
+ [constants_proto021_1.CODEC.PROPOSAL_ARR]: codec_proto021_1.proposalsDecoder,
24
+ [constants_proto021_1.CODEC.PARAMETERS]: codec_proto021_1.parametersDecoder,
25
+ [constants_proto021_1.CODEC.ADDRESS]: codec_proto021_1.addressDecoder,
26
+ [constants_proto021_1.CODEC.SMART_ROLLUP_ADDRESS]: codec_proto021_1.smartRollupAddressDecoder,
27
+ [constants_proto021_1.CODEC.SMART_CONTRACT_ADDRESS]: codec_proto021_1.smartContractAddressDecoder,
28
+ [constants_proto021_1.CODEC.SMART_ROLLUP_COMMITMENT_HASH]: codec_proto021_1.smartRollupCommitmentHashDecoder,
29
+ [constants_proto021_1.CODEC.VALUE]: codec_proto021_1.valueParameterDecoder,
30
+ [constants_proto021_1.CODEC.INT16]: codec_proto021_1.int16Decoder,
31
+ [constants_proto021_1.CODEC.BLOCK_PAYLOAD_HASH]: codec_proto021_1.blockPayloadHashDecoder,
32
+ [constants_proto021_1.CODEC.ENTRYPOINT]: codec_proto021_1.entrypointNameDecoder,
33
+ [constants_proto021_1.CODEC.BURN_LIMIT]: codec_proto021_1.burnLimitDecoder,
34
+ [constants_proto021_1.CODEC.DEPOSITS_LIMIT]: codec_proto021_1.depositsLimitDecoder,
35
+ [constants_proto021_1.CODEC.PVM_KIND]: codec_proto021_1.pvmKindDecoder,
36
+ [constants_proto021_1.CODEC.PADDED_BYTES]: codec_proto021_1.paddedBytesDecoder,
37
+ [constants_proto021_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_proto021_1.smartRollupMessageDecoder,
38
+ [constants_proto021_1.CODEC.SLOT_HEADER]: codec_proto021_1.slotHeaderDecoder,
39
+ };
40
+ exports.decodersProto021[constants_proto021_1.CODEC.OPERATION] = (0, operation_proto021_1.operationDecoder)(exports.decodersProto021);
41
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.ActivationSchema)(val);
42
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_FAILING_NOOP] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.FailingNoopSchema)(val);
43
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_DELEGATION] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.DelegationSchema)(val);
44
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.TransactionSchema)(val);
45
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.OriginationSchema)(val);
46
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_BALLOT] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.BallotSchema)(val);
47
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_ATTESTATION] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.AttestationSchema)(val);
48
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_ATTESTATION_WITH_DAL] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.AttestationWithDalSchema)(val);
49
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.SeedNonceRevelationSchema)(val);
50
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.ProposalsSchema)(val);
51
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_REVEAL] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.RevealSchema)(val);
52
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.RegisterGlobalConstantSchema)(val);
53
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.TransferTicketSchema)(val);
54
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.IncreasePaidStorageSchema)(val);
55
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.UpdateConsensusKeySchema)(val);
56
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.DrainDelegateSchema)(val);
57
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.SmartRollupOriginateSchema)(val);
58
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.SmartRollupAddMessagesSchema)(val);
59
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.SmartRollupExecuteOutboxMessageSchema)(val);
60
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.DalPublishCommitmentSchema)(val);
61
+ exports.decodersProto021[constants_proto021_1.CODEC.MANAGER] = (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.ManagerOperationSchema);
62
+ exports.decodersProto021[constants_proto021_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => (0, operation_proto021_1.schemaDecoder)(exports.decodersProto021)(operation_proto021_1.SetDepositsLimitSchema)(val);
@@ -32,6 +32,7 @@ exports.decoders = {
32
32
  [constants_1.CODEC.ENTRYPOINT]: codec_1.entrypointNameDecoder,
33
33
  [constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitDecoder,
34
34
  [constants_1.CODEC.DEPOSITS_LIMIT]: codec_1.depositsLimitDecoder,
35
+ [constants_1.CODEC.SIGNATURE_PROOF]: codec_1.signatureProofDecoder,
35
36
  [constants_1.CODEC.PVM_KIND]: codec_1.pvmKindDecoder,
36
37
  [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesDecoder,
37
38
  [constants_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_1.smartRollupMessageDecoder,
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encodersProto021 = void 0;
4
+ const codec_proto021_1 = require("./codec-proto021");
5
+ const constants_proto021_1 = require("./constants-proto021");
6
+ const codec_1 = require("./michelson/codec");
7
+ const operation_proto021_1 = require("./schema/operation-proto021");
8
+ exports.encodersProto021 = {
9
+ [constants_proto021_1.CODEC.SECRET]: (val) => val,
10
+ [constants_proto021_1.CODEC.RAW]: (val) => val,
11
+ [constants_proto021_1.CODEC.TZ1]: codec_proto021_1.tz1Encoder,
12
+ [constants_proto021_1.CODEC.BRANCH]: codec_proto021_1.branchEncoder,
13
+ [constants_proto021_1.CODEC.ZARITH]: codec_proto021_1.zarithEncoder,
14
+ [constants_proto021_1.CODEC.PUBLIC_KEY]: codec_proto021_1.publicKeyEncoder,
15
+ [constants_proto021_1.CODEC.PKH]: codec_proto021_1.publicKeyHashEncoder,
16
+ [constants_proto021_1.CODEC.PKH_ARR]: codec_proto021_1.publicKeyHashesEncoder,
17
+ [constants_proto021_1.CODEC.DELEGATE]: codec_proto021_1.delegateEncoder,
18
+ [constants_proto021_1.CODEC.SCRIPT]: codec_1.scriptEncoder,
19
+ [constants_proto021_1.CODEC.BALLOT_STATEMENT]: codec_proto021_1.ballotEncoder,
20
+ [constants_proto021_1.CODEC.PROPOSAL]: codec_proto021_1.proposalEncoder,
21
+ [constants_proto021_1.CODEC.PROPOSAL_ARR]: codec_proto021_1.proposalsEncoder,
22
+ [constants_proto021_1.CODEC.INT32]: codec_proto021_1.int32Encoder,
23
+ [constants_proto021_1.CODEC.PARAMETERS]: codec_proto021_1.parametersEncoder,
24
+ [constants_proto021_1.CODEC.ADDRESS]: codec_proto021_1.addressEncoder,
25
+ [constants_proto021_1.CODEC.SMART_ROLLUP_ADDRESS]: codec_proto021_1.smartRollupAddressEncoder,
26
+ [constants_proto021_1.CODEC.SMART_CONTRACT_ADDRESS]: codec_proto021_1.smartContractAddressEncoder,
27
+ [constants_proto021_1.CODEC.SMART_ROLLUP_COMMITMENT_HASH]: codec_proto021_1.smartRollupCommitmentHashEncoder,
28
+ [constants_proto021_1.CODEC.VALUE]: codec_proto021_1.valueParameterEncoder,
29
+ [constants_proto021_1.CODEC.INT16]: codec_proto021_1.int16Encoder,
30
+ [constants_proto021_1.CODEC.BLOCK_PAYLOAD_HASH]: codec_proto021_1.blockPayloadHashEncoder,
31
+ [constants_proto021_1.CODEC.ENTRYPOINT]: codec_proto021_1.entrypointNameEncoder,
32
+ [constants_proto021_1.CODEC.BURN_LIMIT]: codec_proto021_1.burnLimitEncoder,
33
+ [constants_proto021_1.CODEC.DEPOSITS_LIMIT]: codec_proto021_1.depositsLimitEncoder,
34
+ [constants_proto021_1.CODEC.PVM_KIND]: codec_proto021_1.pvmKindEncoder,
35
+ [constants_proto021_1.CODEC.PADDED_BYTES]: codec_proto021_1.paddedBytesEncoder,
36
+ [constants_proto021_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_proto021_1.smartRollupMessageEncoder,
37
+ [constants_proto021_1.CODEC.SLOT_HEADER]: codec_proto021_1.slotHeaderEncoder,
38
+ };
39
+ exports.encodersProto021[constants_proto021_1.CODEC.OPERATION] = (0, operation_proto021_1.operationEncoder)(exports.encodersProto021);
40
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.ActivationSchema)(val);
41
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_DELEGATION] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.DelegationSchema)(val);
42
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.TransactionSchema)(val);
43
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.OriginationSchema)(val);
44
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_BALLOT] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.BallotSchema)(val);
45
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_ATTESTATION] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.AttestationSchema)(val);
46
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_ATTESTATION_WITH_DAL] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.AttestationWithDalSchema)(val);
47
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.SeedNonceRevelationSchema)(val);
48
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.ProposalsSchema)(val);
49
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_REVEAL] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.RevealSchema)(val);
50
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.RegisterGlobalConstantSchema)(val);
51
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.TransferTicketSchema)(val);
52
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.IncreasePaidStorageSchema)(val);
53
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.UpdateConsensusKeySchema)(val);
54
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.DrainDelegateSchema)(val);
55
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.SmartRollupOriginateSchema)(val);
56
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.SmartRollupAddMessagesSchema)(val);
57
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.SmartRollupExecuteOutboxMessageSchema)(val);
58
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.DalPublishCommitmentSchema)(val);
59
+ exports.encodersProto021[constants_proto021_1.CODEC.MANAGER] = (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.ManagerOperationSchema);
60
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.SetDepositsLimitSchema)(val);
61
+ exports.encodersProto021[constants_proto021_1.CODEC.OP_FAILING_NOOP] = (val) => (0, operation_proto021_1.schemaEncoder)(exports.encodersProto021)(operation_proto021_1.FailingNoopSchema)(val);
@@ -31,6 +31,7 @@ exports.encoders = {
31
31
  [constants_1.CODEC.ENTRYPOINT]: codec_1.entrypointNameEncoder,
32
32
  [constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitEncoder,
33
33
  [constants_1.CODEC.DEPOSITS_LIMIT]: codec_1.depositsLimitEncoder,
34
+ [constants_1.CODEC.SIGNATURE_PROOF]: codec_1.signatureProofEncoder,
34
35
  [constants_1.CODEC.PVM_KIND]: codec_1.pvmKindEncoder,
35
36
  [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesEncoder,
36
37
  [constants_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_1.smartRollupMessageEncoder,
@@ -24,6 +24,7 @@ var ProtocolsHash;
24
24
  ProtocolsHash["PtParisBx"] = "PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ";
25
25
  ProtocolsHash["PsParisCZ"] = "PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi";
26
26
  ProtocolsHash["PsQuebecn"] = "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg";
27
+ ProtocolsHash["PsRiotuma"] = "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7";
27
28
  ProtocolsHash["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
28
29
  })(ProtocolsHash || (exports.ProtocolsHash = ProtocolsHash = {}));
29
30
  const protoLevel = {
@@ -47,7 +48,8 @@ const protoLevel = {
47
48
  PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ: 20,
48
49
  PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi: 20,
49
50
  PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg: 21,
50
- ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK: 22,
51
+ PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7: 22,
52
+ ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK: 23,
51
53
  };
52
54
  function ProtoInferiorTo(a, b) {
53
55
  return protoLevel[a] < protoLevel[b];