@taquito/michelson-encoder 17.3.2 → 17.4.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/dist/lib/errors.js +0 -1
- package/dist/lib/michelson-map.js +7 -8
- package/dist/lib/schema/errors.js +0 -1
- package/dist/lib/schema/event-schema.js +1 -2
- package/dist/lib/schema/model.js +0 -1
- package/dist/lib/schema/parameter.js +7 -8
- package/dist/lib/schema/storage.js +14 -15
- package/dist/lib/schema/types.js +0 -1
- package/dist/lib/schema/view-schema.js +20 -21
- package/dist/lib/taquito-michelson-encoder.js +5 -2
- package/dist/lib/tokens/bigmap.js +0 -1
- package/dist/lib/tokens/bls12-381-fr.js +0 -1
- package/dist/lib/tokens/bls12-381-g1.js +0 -1
- package/dist/lib/tokens/bls12-381-g2.js +0 -1
- package/dist/lib/tokens/chain-id.js +1 -2
- package/dist/lib/tokens/chest-key.js +0 -1
- package/dist/lib/tokens/chest.js +0 -1
- package/dist/lib/tokens/comparable/address.js +4 -5
- package/dist/lib/tokens/comparable/bool.js +0 -1
- package/dist/lib/tokens/comparable/bytes.js +2 -3
- package/dist/lib/tokens/comparable/int.js +0 -1
- package/dist/lib/tokens/comparable/key_hash.js +3 -4
- package/dist/lib/tokens/comparable/mutez.js +0 -1
- package/dist/lib/tokens/comparable/nat.js +0 -1
- package/dist/lib/tokens/comparable/string.js +0 -1
- package/dist/lib/tokens/comparable/timestamp.js +0 -1
- package/dist/lib/tokens/comparable/tx_rollup_l2_address.js +4 -5
- package/dist/lib/tokens/constant.js +0 -1
- package/dist/lib/tokens/contract.js +2 -3
- package/dist/lib/tokens/createToken.js +0 -1
- package/dist/lib/tokens/key.js +3 -4
- package/dist/lib/tokens/lambda.js +0 -1
- package/dist/lib/tokens/list.js +0 -1
- package/dist/lib/tokens/map.js +0 -1
- package/dist/lib/tokens/never.js +0 -1
- package/dist/lib/tokens/operation.js +0 -1
- package/dist/lib/tokens/option.js +0 -1
- package/dist/lib/tokens/or.js +0 -1
- package/dist/lib/tokens/pair.js +0 -1
- package/dist/lib/tokens/sapling-state.js +0 -1
- package/dist/lib/tokens/sapling-transaction-deprecated.js +0 -1
- package/dist/lib/tokens/sapling-transaction.js +0 -1
- package/dist/lib/tokens/set.js +0 -1
- package/dist/lib/tokens/signature.js +1 -2
- package/dist/lib/tokens/ticket-deprecated.js +0 -1
- package/dist/lib/tokens/ticket.js +0 -1
- package/dist/lib/tokens/token.js +0 -1
- package/dist/lib/tokens/tokens.js +0 -1
- package/dist/lib/tokens/unit.js +0 -1
- package/dist/lib/version.js +2 -3
- package/dist/taquito-michelson-encoder.es6.js +4217 -4217
- package/dist/taquito-michelson-encoder.es6.js.map +1 -1
- package/dist/taquito-michelson-encoder.umd.js +4217 -4224
- package/dist/taquito-michelson-encoder.umd.js.map +1 -1
- package/dist/types/errors.d.ts +17 -17
- package/dist/types/michelson-map.d.ts +82 -82
- package/dist/types/schema/errors.d.ts +83 -83
- package/dist/types/schema/event-schema.d.ts +12 -12
- package/dist/types/schema/model.d.ts +62 -62
- package/dist/types/schema/parameter.d.ts +59 -59
- package/dist/types/schema/storage.d.ts +101 -101
- package/dist/types/schema/types.d.ts +105 -105
- package/dist/types/schema/view-schema.d.ts +53 -53
- package/dist/types/taquito-michelson-encoder.d.ts +17 -17
- package/dist/types/tokens/bigmap.d.ts +61 -61
- package/dist/types/tokens/bls12-381-fr.d.ts +56 -56
- package/dist/types/tokens/bls12-381-g1.d.ts +52 -52
- package/dist/types/tokens/bls12-381-g2.d.ts +52 -52
- package/dist/types/tokens/chain-id.d.ts +56 -56
- package/dist/types/tokens/chest-key.d.ts +52 -52
- package/dist/types/tokens/chest.d.ts +52 -52
- package/dist/types/tokens/comparable/address.d.ts +66 -66
- package/dist/types/tokens/comparable/bool.d.ts +37 -37
- package/dist/types/tokens/comparable/bytes.d.ts +57 -57
- package/dist/types/tokens/comparable/int.d.ts +61 -61
- package/dist/types/tokens/comparable/key_hash.d.ts +59 -59
- package/dist/types/tokens/comparable/mutez.d.ts +58 -58
- package/dist/types/tokens/comparable/nat.d.ts +60 -60
- package/dist/types/tokens/comparable/string.d.ts +36 -36
- package/dist/types/tokens/comparable/timestamp.d.ts +39 -39
- package/dist/types/tokens/comparable/tx_rollup_l2_address.d.ts +64 -64
- package/dist/types/tokens/constant.d.ts +56 -56
- package/dist/types/tokens/contract.d.ts +53 -53
- package/dist/types/tokens/createToken.d.ts +18 -18
- package/dist/types/tokens/key.d.ts +62 -62
- package/dist/types/tokens/lambda.d.ts +34 -34
- package/dist/types/tokens/list.d.ts +53 -53
- package/dist/types/tokens/map.d.ts +57 -57
- package/dist/types/tokens/never.d.ts +46 -46
- package/dist/types/tokens/operation.d.ts +29 -29
- package/dist/types/tokens/option.d.ts +44 -44
- package/dist/types/tokens/or.d.ts +56 -56
- package/dist/types/tokens/pair.d.ts +54 -54
- package/dist/types/tokens/sapling-state.d.ts +53 -53
- package/dist/types/tokens/sapling-transaction-deprecated.d.ts +49 -49
- package/dist/types/tokens/sapling-transaction.d.ts +49 -49
- package/dist/types/tokens/set.d.ts +48 -48
- package/dist/types/tokens/signature.d.ts +58 -58
- package/dist/types/tokens/ticket-deprecated.d.ts +47 -47
- package/dist/types/tokens/ticket.d.ts +47 -47
- package/dist/types/tokens/token.d.ts +56 -56
- package/dist/types/tokens/tokens.d.ts +37 -37
- package/dist/types/tokens/unit.d.ts +39 -39
- package/dist/types/version.d.ts +4 -4
- package/package.json +27 -29
- package/signature.json +3 -5
- package/dist/lib/errors.js.map +0 -1
- package/dist/lib/michelson-map.js.map +0 -1
- package/dist/lib/schema/errors.js.map +0 -1
- package/dist/lib/schema/event-schema.js.map +0 -1
- package/dist/lib/schema/model.js.map +0 -1
- package/dist/lib/schema/parameter.js.map +0 -1
- package/dist/lib/schema/storage.js.map +0 -1
- package/dist/lib/schema/types.js.map +0 -1
- package/dist/lib/schema/view-schema.js.map +0 -1
- package/dist/lib/taquito-michelson-encoder.js.map +0 -1
- package/dist/lib/tokens/bigmap.js.map +0 -1
- package/dist/lib/tokens/bls12-381-fr.js.map +0 -1
- package/dist/lib/tokens/bls12-381-g1.js.map +0 -1
- package/dist/lib/tokens/bls12-381-g2.js.map +0 -1
- package/dist/lib/tokens/chain-id.js.map +0 -1
- package/dist/lib/tokens/chest-key.js.map +0 -1
- package/dist/lib/tokens/chest.js.map +0 -1
- package/dist/lib/tokens/comparable/address.js.map +0 -1
- package/dist/lib/tokens/comparable/bool.js.map +0 -1
- package/dist/lib/tokens/comparable/bytes.js.map +0 -1
- package/dist/lib/tokens/comparable/int.js.map +0 -1
- package/dist/lib/tokens/comparable/key_hash.js.map +0 -1
- package/dist/lib/tokens/comparable/mutez.js.map +0 -1
- package/dist/lib/tokens/comparable/nat.js.map +0 -1
- package/dist/lib/tokens/comparable/string.js.map +0 -1
- package/dist/lib/tokens/comparable/timestamp.js.map +0 -1
- package/dist/lib/tokens/comparable/tx_rollup_l2_address.js.map +0 -1
- package/dist/lib/tokens/constant.js.map +0 -1
- package/dist/lib/tokens/contract.js.map +0 -1
- package/dist/lib/tokens/createToken.js.map +0 -1
- package/dist/lib/tokens/key.js.map +0 -1
- package/dist/lib/tokens/lambda.js.map +0 -1
- package/dist/lib/tokens/list.js.map +0 -1
- package/dist/lib/tokens/map.js.map +0 -1
- package/dist/lib/tokens/never.js.map +0 -1
- package/dist/lib/tokens/operation.js.map +0 -1
- package/dist/lib/tokens/option.js.map +0 -1
- package/dist/lib/tokens/or.js.map +0 -1
- package/dist/lib/tokens/pair.js.map +0 -1
- package/dist/lib/tokens/sapling-state.js.map +0 -1
- package/dist/lib/tokens/sapling-transaction-deprecated.js.map +0 -1
- package/dist/lib/tokens/sapling-transaction.js.map +0 -1
- package/dist/lib/tokens/set.js.map +0 -1
- package/dist/lib/tokens/signature.js.map +0 -1
- package/dist/lib/tokens/ticket-deprecated.js.map +0 -1
- package/dist/lib/tokens/ticket.js.map +0 -1
- package/dist/lib/tokens/token.js.map +0 -1
- package/dist/lib/tokens/tokens.js.map +0 -1
- package/dist/lib/tokens/unit.js.map +0 -1
- package/dist/lib/version.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { BaseTokenSchema } from '../schema/types';
|
|
2
|
-
import { SemanticEncoding, Token, TokenFactory } from './token';
|
|
3
|
-
export declare class OperationToken extends Token {
|
|
4
|
-
protected val: {
|
|
5
|
-
prim: string;
|
|
6
|
-
args: any[];
|
|
7
|
-
annots: any[];
|
|
8
|
-
};
|
|
9
|
-
protected idx: number;
|
|
10
|
-
protected fac: TokenFactory;
|
|
11
|
-
static prim: 'operation';
|
|
12
|
-
constructor(val: {
|
|
13
|
-
prim: string;
|
|
14
|
-
args: any[];
|
|
15
|
-
annots: any[];
|
|
16
|
-
}, idx: number, fac: TokenFactory);
|
|
17
|
-
Execute(val: any): {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
Encode(...args: any[]): any;
|
|
21
|
-
EncodeObject(val: any, semantic?: SemanticEncoding): any;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
ExtractSchema(): "operation";
|
|
27
|
-
generateSchema(): BaseTokenSchema;
|
|
28
|
-
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
29
|
-
}
|
|
1
|
+
import { BaseTokenSchema } from '../schema/types';
|
|
2
|
+
import { SemanticEncoding, Token, TokenFactory } from './token';
|
|
3
|
+
export declare class OperationToken extends Token {
|
|
4
|
+
protected val: {
|
|
5
|
+
prim: string;
|
|
6
|
+
args: any[];
|
|
7
|
+
annots: any[];
|
|
8
|
+
};
|
|
9
|
+
protected idx: number;
|
|
10
|
+
protected fac: TokenFactory;
|
|
11
|
+
static prim: 'operation';
|
|
12
|
+
constructor(val: {
|
|
13
|
+
prim: string;
|
|
14
|
+
args: any[];
|
|
15
|
+
annots: any[];
|
|
16
|
+
}, idx: number, fac: TokenFactory);
|
|
17
|
+
Execute(val: any): {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
Encode(...args: any[]): any;
|
|
21
|
+
EncodeObject(val: any, semantic?: SemanticEncoding): any;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
ExtractSchema(): "operation";
|
|
27
|
+
generateSchema(): BaseTokenSchema;
|
|
28
|
+
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
29
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { OptionTokenSchema } from '../schema/types';
|
|
2
|
-
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding } from './token';
|
|
3
|
-
export declare class OptionToken extends ComparableToken {
|
|
4
|
-
protected val: {
|
|
5
|
-
prim: string;
|
|
6
|
-
args: any[];
|
|
7
|
-
annots: any[];
|
|
8
|
-
};
|
|
9
|
-
protected idx: number;
|
|
10
|
-
protected fac: TokenFactory;
|
|
11
|
-
static prim: 'option';
|
|
12
|
-
constructor(val: {
|
|
13
|
-
prim: string;
|
|
14
|
-
args: any[];
|
|
15
|
-
annots: any[];
|
|
16
|
-
}, idx: number, fac: TokenFactory);
|
|
17
|
-
subToken(): Token;
|
|
18
|
-
schema(): Token;
|
|
19
|
-
annot(): string;
|
|
20
|
-
Encode(args: any): any;
|
|
21
|
-
EncodeObject(args: any, semantic?: SemanticEncoding): any;
|
|
22
|
-
Execute(val: any, semantics?: Semantic): {
|
|
23
|
-
Some: any;
|
|
24
|
-
} | null;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
ExtractSchema(): {
|
|
30
|
-
Some: any;
|
|
31
|
-
};
|
|
32
|
-
generateSchema(): OptionTokenSchema;
|
|
33
|
-
ExtractSignature(): any[][];
|
|
34
|
-
get KeySchema(): ComparableToken;
|
|
35
|
-
compare(val1: any, val2: any): number;
|
|
36
|
-
ToKey(val: any): {
|
|
37
|
-
Some: any;
|
|
38
|
-
} | null;
|
|
39
|
-
ToBigMapKey(val: any): {
|
|
40
|
-
key: any;
|
|
41
|
-
type: Omit<import("@taquito/rpc").MichelsonV1ExpressionExtended, "annots">;
|
|
42
|
-
};
|
|
43
|
-
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
44
|
-
}
|
|
1
|
+
import { OptionTokenSchema } from '../schema/types';
|
|
2
|
+
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding } from './token';
|
|
3
|
+
export declare class OptionToken extends ComparableToken {
|
|
4
|
+
protected val: {
|
|
5
|
+
prim: string;
|
|
6
|
+
args: any[];
|
|
7
|
+
annots: any[];
|
|
8
|
+
};
|
|
9
|
+
protected idx: number;
|
|
10
|
+
protected fac: TokenFactory;
|
|
11
|
+
static prim: 'option';
|
|
12
|
+
constructor(val: {
|
|
13
|
+
prim: string;
|
|
14
|
+
args: any[];
|
|
15
|
+
annots: any[];
|
|
16
|
+
}, idx: number, fac: TokenFactory);
|
|
17
|
+
subToken(): Token;
|
|
18
|
+
schema(): Token;
|
|
19
|
+
annot(): string;
|
|
20
|
+
Encode(args: any): any;
|
|
21
|
+
EncodeObject(args: any, semantic?: SemanticEncoding): any;
|
|
22
|
+
Execute(val: any, semantics?: Semantic): {
|
|
23
|
+
Some: any;
|
|
24
|
+
} | null;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
ExtractSchema(): {
|
|
30
|
+
Some: any;
|
|
31
|
+
};
|
|
32
|
+
generateSchema(): OptionTokenSchema;
|
|
33
|
+
ExtractSignature(): any[][];
|
|
34
|
+
get KeySchema(): ComparableToken;
|
|
35
|
+
compare(val1: any, val2: any): number;
|
|
36
|
+
ToKey(val: any): {
|
|
37
|
+
Some: any;
|
|
38
|
+
} | null;
|
|
39
|
+
ToBigMapKey(val: any): {
|
|
40
|
+
key: any;
|
|
41
|
+
type: Omit<import("@taquito/rpc").MichelsonV1ExpressionExtended, "annots">;
|
|
42
|
+
};
|
|
43
|
+
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
44
|
+
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { OrTokenSchema } from '../schema/types';
|
|
2
|
-
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding, TokenValidationError } from './token';
|
|
3
|
-
/**
|
|
4
|
-
* @category Error
|
|
5
|
-
* @description Error that indicates a failure happening when parsing encoding/executing an OrToken
|
|
6
|
-
*/
|
|
7
|
-
export declare class OrValidationError extends TokenValidationError {
|
|
8
|
-
value: any;
|
|
9
|
-
token: OrToken;
|
|
10
|
-
name: string;
|
|
11
|
-
constructor(value: any, token: OrToken, message: string);
|
|
12
|
-
}
|
|
13
|
-
export declare class OrToken extends ComparableToken {
|
|
14
|
-
protected val: {
|
|
15
|
-
prim: string;
|
|
16
|
-
args: any[];
|
|
17
|
-
annots: any[];
|
|
18
|
-
};
|
|
19
|
-
protected idx: number;
|
|
20
|
-
protected fac: TokenFactory;
|
|
21
|
-
static prim: 'or';
|
|
22
|
-
constructor(val: {
|
|
23
|
-
prim: string;
|
|
24
|
-
args: any[];
|
|
25
|
-
annots: any[];
|
|
26
|
-
}, idx: number, fac: TokenFactory);
|
|
27
|
-
Encode(args: any[]): any;
|
|
28
|
-
ExtractSignature(): any;
|
|
29
|
-
/**
|
|
30
|
-
* @throws {@link OrValidationError}
|
|
31
|
-
*/
|
|
32
|
-
EncodeObject(args: any, semantic?: SemanticEncoding): any;
|
|
33
|
-
/**
|
|
34
|
-
* @throws {@link OrValidationError}
|
|
35
|
-
*/
|
|
36
|
-
private validateJavascriptObject;
|
|
37
|
-
/**
|
|
38
|
-
* @throws {@link OrValidationError}
|
|
39
|
-
*/
|
|
40
|
-
Execute(val: any, semantics?: Semantic): any;
|
|
41
|
-
private traversal;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
ExtractSchema(): any;
|
|
47
|
-
generateSchema(): OrTokenSchema;
|
|
48
|
-
private findToken;
|
|
49
|
-
compare(val1: any, val2: any): any;
|
|
50
|
-
ToKey(val: any): any;
|
|
51
|
-
ToBigMapKey(val: any): {
|
|
52
|
-
key: any;
|
|
53
|
-
type: Omit<import("@taquito/rpc").MichelsonV1ExpressionExtended, "annots">;
|
|
54
|
-
};
|
|
55
|
-
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
56
|
-
}
|
|
1
|
+
import { OrTokenSchema } from '../schema/types';
|
|
2
|
+
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding, TokenValidationError } from './token';
|
|
3
|
+
/**
|
|
4
|
+
* @category Error
|
|
5
|
+
* @description Error that indicates a failure happening when parsing encoding/executing an OrToken
|
|
6
|
+
*/
|
|
7
|
+
export declare class OrValidationError extends TokenValidationError {
|
|
8
|
+
value: any;
|
|
9
|
+
token: OrToken;
|
|
10
|
+
name: string;
|
|
11
|
+
constructor(value: any, token: OrToken, message: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class OrToken extends ComparableToken {
|
|
14
|
+
protected val: {
|
|
15
|
+
prim: string;
|
|
16
|
+
args: any[];
|
|
17
|
+
annots: any[];
|
|
18
|
+
};
|
|
19
|
+
protected idx: number;
|
|
20
|
+
protected fac: TokenFactory;
|
|
21
|
+
static prim: 'or';
|
|
22
|
+
constructor(val: {
|
|
23
|
+
prim: string;
|
|
24
|
+
args: any[];
|
|
25
|
+
annots: any[];
|
|
26
|
+
}, idx: number, fac: TokenFactory);
|
|
27
|
+
Encode(args: any[]): any;
|
|
28
|
+
ExtractSignature(): any;
|
|
29
|
+
/**
|
|
30
|
+
* @throws {@link OrValidationError}
|
|
31
|
+
*/
|
|
32
|
+
EncodeObject(args: any, semantic?: SemanticEncoding): any;
|
|
33
|
+
/**
|
|
34
|
+
* @throws {@link OrValidationError}
|
|
35
|
+
*/
|
|
36
|
+
private validateJavascriptObject;
|
|
37
|
+
/**
|
|
38
|
+
* @throws {@link OrValidationError}
|
|
39
|
+
*/
|
|
40
|
+
Execute(val: any, semantics?: Semantic): any;
|
|
41
|
+
private traversal;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
ExtractSchema(): any;
|
|
47
|
+
generateSchema(): OrTokenSchema;
|
|
48
|
+
private findToken;
|
|
49
|
+
compare(val1: any, val2: any): any;
|
|
50
|
+
ToKey(val: any): any;
|
|
51
|
+
ToBigMapKey(val: any): {
|
|
52
|
+
key: any;
|
|
53
|
+
type: Omit<import("@taquito/rpc").MichelsonV1ExpressionExtended, "annots">;
|
|
54
|
+
};
|
|
55
|
+
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
56
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding } from './token';
|
|
2
|
-
import { PairTokenSchema } from '../schema/types';
|
|
3
|
-
import { MichelsonV1Expression, MichelsonV1ExpressionExtended } from '@taquito/rpc';
|
|
4
|
-
import { TaquitoError } from '@taquito/core';
|
|
5
|
-
/**
|
|
6
|
-
* @category Error
|
|
7
|
-
* @description Error that indicates in invalid token argument being passed
|
|
8
|
-
*/
|
|
9
|
-
export declare class TokenArgumentValidationError extends TaquitoError {
|
|
10
|
-
message: string;
|
|
11
|
-
name: string;
|
|
12
|
-
constructor(message: string);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @category Error
|
|
16
|
-
* @description Error that indicates a failure occurring when doing a comparison of tokens
|
|
17
|
-
*/
|
|
18
|
-
export declare class TokenComparisonError extends TaquitoError {
|
|
19
|
-
val1: string;
|
|
20
|
-
val2: string;
|
|
21
|
-
name: string;
|
|
22
|
-
constructor(val1: string, val2: string);
|
|
23
|
-
}
|
|
24
|
-
export declare class PairToken extends ComparableToken {
|
|
25
|
-
static prim: 'pair';
|
|
26
|
-
constructor(val: MichelsonV1Expression, idx: number, fac: TokenFactory);
|
|
27
|
-
private args;
|
|
28
|
-
private tokens;
|
|
29
|
-
Encode(args: any[]): any;
|
|
30
|
-
ExtractSignature(): any;
|
|
31
|
-
ToBigMapKey(val: any): {
|
|
32
|
-
key: any;
|
|
33
|
-
type: Omit<MichelsonV1ExpressionExtended, "annots">;
|
|
34
|
-
};
|
|
35
|
-
ToKey(val: any): {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
};
|
|
38
|
-
EncodeObject(args: any, semantic?: SemanticEncoding): any;
|
|
39
|
-
private traversal;
|
|
40
|
-
Execute(val: any, semantics?: Semantic): {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
ExtractSchema(): any;
|
|
48
|
-
generateSchema(): PairTokenSchema;
|
|
49
|
-
/**
|
|
50
|
-
* @throws {@link TokenComparisonError}
|
|
51
|
-
*/
|
|
52
|
-
compare(val1: any, val2: any): number;
|
|
53
|
-
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
54
|
-
}
|
|
1
|
+
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding } from './token';
|
|
2
|
+
import { PairTokenSchema } from '../schema/types';
|
|
3
|
+
import { MichelsonV1Expression, MichelsonV1ExpressionExtended } from '@taquito/rpc';
|
|
4
|
+
import { TaquitoError } from '@taquito/core';
|
|
5
|
+
/**
|
|
6
|
+
* @category Error
|
|
7
|
+
* @description Error that indicates in invalid token argument being passed
|
|
8
|
+
*/
|
|
9
|
+
export declare class TokenArgumentValidationError extends TaquitoError {
|
|
10
|
+
message: string;
|
|
11
|
+
name: string;
|
|
12
|
+
constructor(message: string);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @category Error
|
|
16
|
+
* @description Error that indicates a failure occurring when doing a comparison of tokens
|
|
17
|
+
*/
|
|
18
|
+
export declare class TokenComparisonError extends TaquitoError {
|
|
19
|
+
val1: string;
|
|
20
|
+
val2: string;
|
|
21
|
+
name: string;
|
|
22
|
+
constructor(val1: string, val2: string);
|
|
23
|
+
}
|
|
24
|
+
export declare class PairToken extends ComparableToken {
|
|
25
|
+
static prim: 'pair';
|
|
26
|
+
constructor(val: MichelsonV1Expression, idx: number, fac: TokenFactory);
|
|
27
|
+
private args;
|
|
28
|
+
private tokens;
|
|
29
|
+
Encode(args: any[]): any;
|
|
30
|
+
ExtractSignature(): any;
|
|
31
|
+
ToBigMapKey(val: any): {
|
|
32
|
+
key: any;
|
|
33
|
+
type: Omit<MichelsonV1ExpressionExtended, "annots">;
|
|
34
|
+
};
|
|
35
|
+
ToKey(val: any): {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
EncodeObject(args: any, semantic?: SemanticEncoding): any;
|
|
39
|
+
private traversal;
|
|
40
|
+
Execute(val: any, semantics?: Semantic): {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
ExtractSchema(): any;
|
|
48
|
+
generateSchema(): PairTokenSchema;
|
|
49
|
+
/**
|
|
50
|
+
* @throws {@link TokenComparisonError}
|
|
51
|
+
*/
|
|
52
|
+
compare(val1: any, val2: any): number;
|
|
53
|
+
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
54
|
+
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { SaplingStateTokenSchema } from '../schema/types';
|
|
2
|
-
import { Semantic, SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
|
|
3
|
-
/**
|
|
4
|
-
* @category Error
|
|
5
|
-
* @description Error that indicates a failure happening when parsing encoding/executing a Sapling State
|
|
6
|
-
*/
|
|
7
|
-
export declare class SaplingStateValidationError extends TokenValidationError {
|
|
8
|
-
value: any;
|
|
9
|
-
token: SaplingStateToken;
|
|
10
|
-
name: string;
|
|
11
|
-
constructor(value: any, token: SaplingStateToken, message: string);
|
|
12
|
-
}
|
|
13
|
-
export declare class SaplingStateToken extends Token {
|
|
14
|
-
protected val: {
|
|
15
|
-
prim: string;
|
|
16
|
-
args: any[];
|
|
17
|
-
annots: any[];
|
|
18
|
-
};
|
|
19
|
-
protected idx: number;
|
|
20
|
-
protected fac: TokenFactory;
|
|
21
|
-
static prim: 'sapling_state';
|
|
22
|
-
constructor(val: {
|
|
23
|
-
prim: string;
|
|
24
|
-
args: any[];
|
|
25
|
-
annots: any[];
|
|
26
|
-
}, idx: number, fac: TokenFactory);
|
|
27
|
-
private isValid;
|
|
28
|
-
/**
|
|
29
|
-
* @throws {@link SaplingStateValidationError}
|
|
30
|
-
*/
|
|
31
|
-
Execute(val: {
|
|
32
|
-
int: string;
|
|
33
|
-
}, semantic?: Semantic): any;
|
|
34
|
-
/**
|
|
35
|
-
* @throws {@link SaplingStateValidationError}
|
|
36
|
-
*/
|
|
37
|
-
Encode(args: any[]): any;
|
|
38
|
-
/**
|
|
39
|
-
* @throws {@link SaplingStateValidationError}
|
|
40
|
-
*/
|
|
41
|
-
EncodeObject(val: any, semantic?: SemanticEncoding): any;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
ExtractSchema(): {
|
|
47
|
-
sapling_state: {
|
|
48
|
-
'memo-size': number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
generateSchema(): SaplingStateTokenSchema;
|
|
52
|
-
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
53
|
-
}
|
|
1
|
+
import { SaplingStateTokenSchema } from '../schema/types';
|
|
2
|
+
import { Semantic, SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
|
|
3
|
+
/**
|
|
4
|
+
* @category Error
|
|
5
|
+
* @description Error that indicates a failure happening when parsing encoding/executing a Sapling State
|
|
6
|
+
*/
|
|
7
|
+
export declare class SaplingStateValidationError extends TokenValidationError {
|
|
8
|
+
value: any;
|
|
9
|
+
token: SaplingStateToken;
|
|
10
|
+
name: string;
|
|
11
|
+
constructor(value: any, token: SaplingStateToken, message: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class SaplingStateToken extends Token {
|
|
14
|
+
protected val: {
|
|
15
|
+
prim: string;
|
|
16
|
+
args: any[];
|
|
17
|
+
annots: any[];
|
|
18
|
+
};
|
|
19
|
+
protected idx: number;
|
|
20
|
+
protected fac: TokenFactory;
|
|
21
|
+
static prim: 'sapling_state';
|
|
22
|
+
constructor(val: {
|
|
23
|
+
prim: string;
|
|
24
|
+
args: any[];
|
|
25
|
+
annots: any[];
|
|
26
|
+
}, idx: number, fac: TokenFactory);
|
|
27
|
+
private isValid;
|
|
28
|
+
/**
|
|
29
|
+
* @throws {@link SaplingStateValidationError}
|
|
30
|
+
*/
|
|
31
|
+
Execute(val: {
|
|
32
|
+
int: string;
|
|
33
|
+
}, semantic?: Semantic): any;
|
|
34
|
+
/**
|
|
35
|
+
* @throws {@link SaplingStateValidationError}
|
|
36
|
+
*/
|
|
37
|
+
Encode(args: any[]): any;
|
|
38
|
+
/**
|
|
39
|
+
* @throws {@link SaplingStateValidationError}
|
|
40
|
+
*/
|
|
41
|
+
EncodeObject(val: any, semantic?: SemanticEncoding): any;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
ExtractSchema(): {
|
|
47
|
+
sapling_state: {
|
|
48
|
+
'memo-size': number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
generateSchema(): SaplingStateTokenSchema;
|
|
52
|
+
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
53
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { SaplingTransactionDeprecatedTokenSchema } from '../schema/types';
|
|
2
|
-
import { SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
|
|
3
|
-
/**
|
|
4
|
-
* @category Error
|
|
5
|
-
* @description Error that indicates a failure happening when parsing encoding/executing a Sapling Transaction Deprecated
|
|
6
|
-
*/
|
|
7
|
-
export declare class SaplingTransactionDeprecatedValidationError extends TokenValidationError {
|
|
8
|
-
value: any;
|
|
9
|
-
token: SaplingTransactionDeprecatedToken;
|
|
10
|
-
name: string;
|
|
11
|
-
constructor(value: any, token: SaplingTransactionDeprecatedToken, message: string);
|
|
12
|
-
}
|
|
13
|
-
export declare class SaplingTransactionDeprecatedToken extends Token {
|
|
14
|
-
protected val: {
|
|
15
|
-
prim: string;
|
|
16
|
-
args: any[];
|
|
17
|
-
annots: any[];
|
|
18
|
-
};
|
|
19
|
-
protected idx: number;
|
|
20
|
-
protected fac: TokenFactory;
|
|
21
|
-
static prim: 'sapling_transaction_deprecated';
|
|
22
|
-
constructor(val: {
|
|
23
|
-
prim: string;
|
|
24
|
-
args: any[];
|
|
25
|
-
annots: any[];
|
|
26
|
-
}, idx: number, fac: TokenFactory);
|
|
27
|
-
/**
|
|
28
|
-
* @throws {@link SaplingTransactionDeprecatedValidationError}
|
|
29
|
-
*/
|
|
30
|
-
Execute(_val: any): void;
|
|
31
|
-
/**
|
|
32
|
-
* @throws {@link SaplingTransactionDeprecatedValidationError}
|
|
33
|
-
*/
|
|
34
|
-
private validateBytes;
|
|
35
|
-
private convertUint8ArrayToHexString;
|
|
36
|
-
Encode(args: any[]): any;
|
|
37
|
-
EncodeObject(val: string | Uint8Array, semantic?: SemanticEncoding): import("@taquito/rpc").MichelsonV1Expression;
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
ExtractSchema(): {
|
|
43
|
-
sapling_transaction_deprecated: {
|
|
44
|
-
'memo-size': number;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
generateSchema(): SaplingTransactionDeprecatedTokenSchema;
|
|
48
|
-
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
49
|
-
}
|
|
1
|
+
import { SaplingTransactionDeprecatedTokenSchema } from '../schema/types';
|
|
2
|
+
import { SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
|
|
3
|
+
/**
|
|
4
|
+
* @category Error
|
|
5
|
+
* @description Error that indicates a failure happening when parsing encoding/executing a Sapling Transaction Deprecated
|
|
6
|
+
*/
|
|
7
|
+
export declare class SaplingTransactionDeprecatedValidationError extends TokenValidationError {
|
|
8
|
+
value: any;
|
|
9
|
+
token: SaplingTransactionDeprecatedToken;
|
|
10
|
+
name: string;
|
|
11
|
+
constructor(value: any, token: SaplingTransactionDeprecatedToken, message: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class SaplingTransactionDeprecatedToken extends Token {
|
|
14
|
+
protected val: {
|
|
15
|
+
prim: string;
|
|
16
|
+
args: any[];
|
|
17
|
+
annots: any[];
|
|
18
|
+
};
|
|
19
|
+
protected idx: number;
|
|
20
|
+
protected fac: TokenFactory;
|
|
21
|
+
static prim: 'sapling_transaction_deprecated';
|
|
22
|
+
constructor(val: {
|
|
23
|
+
prim: string;
|
|
24
|
+
args: any[];
|
|
25
|
+
annots: any[];
|
|
26
|
+
}, idx: number, fac: TokenFactory);
|
|
27
|
+
/**
|
|
28
|
+
* @throws {@link SaplingTransactionDeprecatedValidationError}
|
|
29
|
+
*/
|
|
30
|
+
Execute(_val: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* @throws {@link SaplingTransactionDeprecatedValidationError}
|
|
33
|
+
*/
|
|
34
|
+
private validateBytes;
|
|
35
|
+
private convertUint8ArrayToHexString;
|
|
36
|
+
Encode(args: any[]): any;
|
|
37
|
+
EncodeObject(val: string | Uint8Array, semantic?: SemanticEncoding): import("@taquito/rpc").MichelsonV1Expression;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
ExtractSchema(): {
|
|
43
|
+
sapling_transaction_deprecated: {
|
|
44
|
+
'memo-size': number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
generateSchema(): SaplingTransactionDeprecatedTokenSchema;
|
|
48
|
+
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
|
|
49
|
+
}
|