@taquito/local-forging 23.0.2 → 23.1.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.
@@ -1,74 +0,0 @@
1
- export declare const ENTRYPOINT_MAX_LENGTH = 31;
2
- export declare enum CODEC {
3
- SECRET = "secret",
4
- RAW = "raw",
5
- TZ1 = "tz1",
6
- BRANCH = "branch",
7
- ZARITH = "zarith",
8
- PUBLIC_KEY = "public_key",
9
- PKH = "pkh",
10
- PKH_ARR = "pkhArr",
11
- DELEGATE = "delegate",
12
- SCRIPT = "script",
13
- BALLOT_STATEMENT = "ballotStmt",
14
- PROPOSAL = "proposal",
15
- PROPOSAL_ARR = "proposalArr",
16
- INT32 = "int32",
17
- INT16 = "int16",
18
- PARAMETERS = "parameters",
19
- ADDRESS = "address",
20
- SMART_CONTRACT_ADDRESS = "smart_contract_address",
21
- SMART_ROLLUP_ADDRESS = "smart_rollup_address",
22
- SMART_ROLLUP_COMMITMENT_HASH = "smart_rollup_commitment_hash",
23
- VALUE = "value",
24
- PADDED_BYTES = "padded_bytes",
25
- SMART_ROLLUP_MESSAGE = "smart_rollup_message",
26
- MANAGER = "manager",
27
- BLOCK_PAYLOAD_HASH = "blockPayloadHash",
28
- ENTRYPOINT = "entrypoint",
29
- OPERATION = "operation",
30
- OP_ACTIVATE_ACCOUNT = "activate_account",
31
- OP_DELEGATION = "delegation",
32
- OP_TRANSACTION = "transaction",
33
- OP_ORIGINATION = "origination",
34
- OP_BALLOT = "ballot",
35
- OP_FAILING_NOOP = "failing_noop",
36
- OP_ATTESTATION = "attestation",
37
- OP_ATTESTATION_WITH_DAL = "attestation_with_dal",
38
- OP_SEED_NONCE_REVELATION = "seed_nonce_revelation",
39
- OP_REVEAL = "reveal",
40
- OP_PROPOSALS = "proposals",
41
- OP_REGISTER_GLOBAL_CONSTANT = "register_global_constant",
42
- OP_TRANSFER_TICKET = "transfer_ticket",
43
- BURN_LIMIT = "burn_limit",
44
- OP_INCREASE_PAID_STORAGE = "increase_paid_storage",
45
- OP_UPDATE_CONSENSUS_KEY = "update_consensus_key",
46
- SIGNATURE_PROOF = "signature_proof",
47
- OP_DRAIN_DELEGATE = "drain_delegate",
48
- DEPOSITS_LIMIT = "deposits_limit",
49
- OP_SET_DEPOSITS_LIMIT = "set_deposits_limit",
50
- OP_SMART_ROLLUP_ORIGINATE = "smart_rollup_originate",
51
- PVM_KIND = "pvm_kind",
52
- OP_SMART_ROLLUP_ADD_MESSAGES = "smart_rollup_add_messages",
53
- OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE = "smart_rollup_execute_outbox_message",
54
- OP_DAL_PUBLISH_COMMITMENT = "dal_publish_commitment",
55
- SLOT_HEADER = "slot_header"
56
- }
57
- export declare const opMapping: {
58
- [key: string]: string;
59
- };
60
- export declare const opMappingReverse: {
61
- [key: string]: string;
62
- };
63
- export declare const kindMapping: {
64
- [key: number]: string;
65
- };
66
- export declare const kindMappingReverse: {
67
- [key: string]: string;
68
- };
69
- export declare const entrypointMapping: {
70
- [key: string]: string;
71
- };
72
- export declare const entrypointMappingReverse: {
73
- [key: string]: string;
74
- };
@@ -1,5 +0,0 @@
1
- import { Uint8ArrayConsumer } from './uint8array-consumer';
2
- export type Decoder = (val: Uint8ArrayConsumer) => string | number | object | undefined;
3
- export declare const decoders: {
4
- [key: string]: Decoder;
5
- };
@@ -1,4 +0,0 @@
1
- export type Encoder<T> = (val: T) => string;
2
- export declare const encoders: {
3
- [key: string]: Encoder<any>;
4
- };
@@ -1,49 +0,0 @@
1
- import { Decoder } from '../decoder-proto022';
2
- import { Uint8ArrayConsumer } from '../uint8array-consumer';
3
- import { Encoder } from '../encoder-proto022';
4
- export type PrimValue = {
5
- prim: string;
6
- args?: MichelsonValue[];
7
- annots?: string[];
8
- };
9
- export type BytesValue = {
10
- bytes: string;
11
- };
12
- export type StringValue = {
13
- string: string;
14
- };
15
- export type IntValue = {
16
- int: string;
17
- };
18
- export type MichelsonValue = PrimValue | BytesValue | StringValue | IntValue | (PrimValue | BytesValue | StringValue | IntValue)[];
19
- export declare const isPrim: (value: MichelsonValue) => value is PrimValue;
20
- export declare const isBytes: (value: MichelsonValue) => value is BytesValue;
21
- export declare const isString: (value: MichelsonValue) => value is StringValue;
22
- export declare const isInt: (value: MichelsonValue) => value is IntValue;
23
- export declare const scriptEncoder: Encoder<{
24
- code: MichelsonValue;
25
- storage: MichelsonValue;
26
- }>;
27
- export declare const scriptDecoder: Decoder;
28
- export declare const valueEncoder: Encoder<MichelsonValue>;
29
- export declare const valueDecoder: Decoder;
30
- export declare const extractRequiredLen: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array;
31
- /**
32
- * @description parse bytes into multiple items of an array
33
- * @param value Uint8ArrayConsumer class of forged segment to parse
34
- * @param bytesLength default 4 bytes for length of variable bytes
35
- * @returns array of Uint8Array values for each array item
36
- */
37
- export declare const stripLengthPrefixFromBytes: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array[];
38
- export declare const bytesEncoder: Encoder<BytesValue>;
39
- export declare const bytesDecoder: Decoder;
40
- export declare const stringEncoder: Encoder<StringValue>;
41
- export declare const stringDecoder: Decoder;
42
- export declare const intEncoder: Encoder<IntValue>;
43
- export declare const intDecoder: (value: Uint8ArrayConsumer) => IntValue;
44
- export declare const primEncoder: Encoder<PrimValue>;
45
- export declare const primDecoder: (value: Uint8ArrayConsumer, preamble: Uint8Array) => Partial<PrimValue>;
46
- export declare const primViewDecoder: (value: Uint8ArrayConsumer, result: Partial<PrimValue>) => Partial<PrimValue>;
47
- export declare const decodeCombPair: Decoder;
48
- export declare const encodeAnnots: Encoder<string[]>;
49
- export declare const decodeAnnots: Decoder;
@@ -1,188 +0,0 @@
1
- import { Decoder } from '../decoder-proto022';
2
- import { Uint8ArrayConsumer } from '../uint8array-consumer';
3
- import { CODEC } from '../constants-proto022';
4
- export declare const ManagerOperationSchema: {
5
- branch: CODEC;
6
- contents: CODEC[];
7
- };
8
- export declare const ActivationSchema: {
9
- pkh: CODEC;
10
- secret: CODEC;
11
- };
12
- export declare const RevealSchema: {
13
- source: CODEC;
14
- fee: CODEC;
15
- counter: CODEC;
16
- gas_limit: CODEC;
17
- storage_limit: CODEC;
18
- public_key: CODEC;
19
- };
20
- export declare const DelegationSchema: {
21
- source: CODEC;
22
- fee: CODEC;
23
- counter: CODEC;
24
- gas_limit: CODEC;
25
- storage_limit: CODEC;
26
- delegate: CODEC;
27
- };
28
- export declare const TransactionSchema: {
29
- source: CODEC;
30
- fee: CODEC;
31
- counter: CODEC;
32
- gas_limit: CODEC;
33
- storage_limit: CODEC;
34
- amount: CODEC;
35
- destination: CODEC;
36
- parameters: CODEC;
37
- };
38
- export declare const OriginationSchema: {
39
- source: CODEC;
40
- fee: CODEC;
41
- counter: CODEC;
42
- gas_limit: CODEC;
43
- storage_limit: CODEC;
44
- balance: CODEC;
45
- delegate: CODEC;
46
- script: CODEC;
47
- };
48
- export declare const BallotSchema: {
49
- source: CODEC;
50
- period: CODEC;
51
- proposal: CODEC;
52
- ballot: CODEC;
53
- };
54
- export declare const AttestationSchema: {
55
- slot: CODEC;
56
- level: CODEC;
57
- round: CODEC;
58
- block_payload_hash: CODEC;
59
- };
60
- export declare const AttestationWithDalSchema: {
61
- slot: CODEC;
62
- level: CODEC;
63
- round: CODEC;
64
- block_payload_hash: CODEC;
65
- dal_attestation: CODEC;
66
- };
67
- export declare const SeedNonceRevelationSchema: {
68
- level: CODEC;
69
- nonce: CODEC;
70
- };
71
- export declare const ProposalsSchema: {
72
- source: CODEC;
73
- period: CODEC;
74
- proposals: CODEC;
75
- };
76
- export declare const RegisterGlobalConstantSchema: {
77
- source: CODEC;
78
- fee: CODEC;
79
- counter: CODEC;
80
- gas_limit: CODEC;
81
- storage_limit: CODEC;
82
- value: CODEC;
83
- };
84
- export declare const TransferTicketSchema: {
85
- source: CODEC;
86
- fee: CODEC;
87
- counter: CODEC;
88
- gas_limit: CODEC;
89
- storage_limit: CODEC;
90
- ticket_contents: CODEC;
91
- ticket_ty: CODEC;
92
- ticket_ticketer: CODEC;
93
- ticket_amount: CODEC;
94
- destination: CODEC;
95
- entrypoint: CODEC;
96
- };
97
- export declare const IncreasePaidStorageSchema: {
98
- source: CODEC;
99
- fee: CODEC;
100
- counter: CODEC;
101
- gas_limit: CODEC;
102
- storage_limit: CODEC;
103
- amount: CODEC;
104
- destination: CODEC;
105
- };
106
- export declare const UpdateConsensusKeySchema: {
107
- source: CODEC;
108
- fee: CODEC;
109
- counter: CODEC;
110
- gas_limit: CODEC;
111
- storage_limit: CODEC;
112
- pk: CODEC;
113
- proof: CODEC;
114
- };
115
- export declare const DrainDelegateSchema: {
116
- consensus_key: CODEC;
117
- delegate: CODEC;
118
- destination: CODEC;
119
- };
120
- export declare const SetDepositsLimitSchema: {
121
- source: CODEC;
122
- fee: CODEC;
123
- counter: CODEC;
124
- gas_limit: CODEC;
125
- storage_limit: CODEC;
126
- limit: CODEC;
127
- };
128
- export declare const SmartRollupOriginateSchema: {
129
- source: CODEC;
130
- fee: CODEC;
131
- counter: CODEC;
132
- gas_limit: CODEC;
133
- storage_limit: CODEC;
134
- pvm_kind: CODEC;
135
- kernel: CODEC;
136
- parameters_ty: CODEC;
137
- whitelist: CODEC;
138
- };
139
- export declare const SmartRollupAddMessagesSchema: {
140
- source: CODEC;
141
- fee: CODEC;
142
- counter: CODEC;
143
- gas_limit: CODEC;
144
- storage_limit: CODEC;
145
- message: CODEC;
146
- };
147
- export declare const SmartRollupExecuteOutboxMessageSchema: {
148
- source: CODEC;
149
- fee: CODEC;
150
- counter: CODEC;
151
- gas_limit: CODEC;
152
- storage_limit: CODEC;
153
- rollup: CODEC;
154
- cemented_commitment: CODEC;
155
- output_proof: CODEC;
156
- };
157
- export declare const DalPublishCommitmentSchema: {
158
- source: CODEC;
159
- fee: CODEC;
160
- counter: CODEC;
161
- gas_limit: CODEC;
162
- storage_limit: CODEC;
163
- slot_header: CODEC;
164
- };
165
- export declare const FailingNoopSchema: {
166
- arbitrary: CODEC;
167
- };
168
- export declare const operationEncoder: (encoders: {
169
- [key: string]: (val: object) => string;
170
- }) => (operation: {
171
- kind: string;
172
- }) => string;
173
- export declare const operationDecoder: (decoders: {
174
- [key: string]: Decoder;
175
- }) => (value: Uint8ArrayConsumer) => {
176
- kind: string;
177
- };
178
- type Schema = Record<string, CODEC | CODEC[]>;
179
- export type Value = Record<keyof Schema, unknown[]>;
180
- export declare const schemaEncoder: (encoders: {
181
- [key: string]: (val: object) => string;
182
- }) => (schema: Schema) => (value: Value) => string;
183
- export declare const schemaDecoder: (decoders: {
184
- [key: string]: Decoder;
185
- }) => (schema: {
186
- [key: string]: string | string[];
187
- }) => (value: Uint8ArrayConsumer) => {};
188
- export {};
@@ -1,13 +0,0 @@
1
- import { OpKind } from '@taquito/rpc';
2
- import { OperationContents } from '@taquito/rpc';
3
- /**
4
- * @returns A boolean value to indicate whether the operation kind is valid or not
5
- */
6
- export declare const validateOperationKind: (opKind: OpKind) => boolean;
7
- /**
8
- * returns 0 when the two array of properties are identical or the passed property
9
- * does not have any missing parameters from the corresponding schema
10
- *
11
- * @returns array element differences if there are missing required property keys
12
- */
13
- export declare const validateMissingProperty: (operationContent: OperationContents) => string[];