@taquito/local-forging 14.2.0 → 15.0.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 (41) hide show
  1. package/dist/lib/constants.js +10 -2
  2. package/dist/lib/constants.js.map +1 -1
  3. package/dist/lib/decoder.js +2 -0
  4. package/dist/lib/decoder.js.map +1 -1
  5. package/dist/lib/encoder.js +2 -0
  6. package/dist/lib/encoder.js.map +1 -1
  7. package/dist/lib/michelson/codec.js +3 -3
  8. package/dist/lib/michelson/codec.js.map +1 -1
  9. package/dist/lib/proto14-kathmandu/codec-proto14.js +80 -0
  10. package/dist/lib/proto14-kathmandu/codec-proto14.js.map +1 -0
  11. package/dist/lib/proto14-kathmandu/constants-proto14.js +184 -0
  12. package/dist/lib/proto14-kathmandu/constants-proto14.js.map +1 -0
  13. package/dist/lib/proto14-kathmandu/decoder-proto14.js +52 -0
  14. package/dist/lib/proto14-kathmandu/decoder-proto14.js.map +1 -0
  15. package/dist/lib/proto14-kathmandu/encoder-proto14.js +51 -0
  16. package/dist/lib/proto14-kathmandu/encoder-proto14.js.map +1 -0
  17. package/dist/lib/proto14-kathmandu/michelson/codec-proto14.js +150 -0
  18. package/dist/lib/proto14-kathmandu/michelson/codec-proto14.js.map +1 -0
  19. package/dist/lib/protocols.js +3 -1
  20. package/dist/lib/protocols.js.map +1 -1
  21. package/dist/lib/schema/operation.js +14 -1
  22. package/dist/lib/schema/operation.js.map +1 -1
  23. package/dist/lib/taquito-local-forging.js +22 -8
  24. package/dist/lib/taquito-local-forging.js.map +1 -1
  25. package/dist/lib/validator.js +2 -0
  26. package/dist/lib/validator.js.map +1 -1
  27. package/dist/lib/version.js +2 -2
  28. package/dist/taquito-local-forging.es6.js +541 -18
  29. package/dist/taquito-local-forging.es6.js.map +1 -1
  30. package/dist/taquito-local-forging.umd.js +541 -18
  31. package/dist/taquito-local-forging.umd.js.map +1 -1
  32. package/dist/types/constants.d.ts +3 -1
  33. package/dist/types/proto14-kathmandu/codec-proto14.d.ts +15 -0
  34. package/dist/types/proto14-kathmandu/constants-proto14.d.ts +12 -0
  35. package/dist/types/proto14-kathmandu/decoder-proto14.d.ts +5 -0
  36. package/dist/types/proto14-kathmandu/encoder-proto14.d.ts +4 -0
  37. package/dist/types/proto14-kathmandu/michelson/codec-proto14.d.ts +14 -0
  38. package/dist/types/protocols.d.ts +1 -0
  39. package/dist/types/schema/operation.d.ts +13 -0
  40. package/dist/types/taquito-local-forging.d.ts +1 -1
  41. package/package.json +4 -4
@@ -39,7 +39,9 @@ export declare enum CODEC {
39
39
  TX_ROLLUP_ORIGINATION_PARAM = "tx_rollup_origination_param",
40
40
  TX_ROLLUP_ID = "tx_rollup_id",
41
41
  TX_ROLLUP_BATCH_CONTENT = "tx_rollup_batch_content",
42
- OP_INCREASE_PAID_STORAGE = "increase_paid_storage"
42
+ OP_INCREASE_PAID_STORAGE = "increase_paid_storage",
43
+ OP_UPDATE_CONSENSUS_KEY = "update_consensus_key",
44
+ OP_DRAIN_DELEGATE = "drain_delegate"
43
45
  }
44
46
  export declare const opMapping: {
45
47
  [key: string]: string;
@@ -0,0 +1,15 @@
1
+ import { MichelsonValue } from '../michelson/codec';
2
+ import { Uint8ArrayConsumer } from '../uint8array-consumer';
3
+ export declare const parametersDecoderProto14: (val: Uint8ArrayConsumer) => {
4
+ entrypoint: string;
5
+ value: string | number | object | undefined;
6
+ } | undefined;
7
+ export declare const entrypointEncoderProto14: (entrypoint: string) => string;
8
+ export declare const entrypointDecoderProto14: (value: Uint8ArrayConsumer) => string;
9
+ export declare const parametersEncoderProto14: (val: {
10
+ entrypoint: string;
11
+ value: MichelsonValue;
12
+ }) => string;
13
+ export declare const valueParameterEncoderProto14: (value: MichelsonValue) => string;
14
+ export declare const valueParameterDecoderProto14: (val: Uint8ArrayConsumer) => string | number | object | undefined;
15
+ export declare const entrypointNameEncoderProto14: (entrypoint: string) => string;
@@ -0,0 +1,12 @@
1
+ export declare const opMappingProto14: {
2
+ [key: string]: string;
3
+ };
4
+ export declare const opMappingReverseProto14: {
5
+ [key: string]: string;
6
+ };
7
+ export declare const entrypointMappingProto14: {
8
+ [key: string]: string;
9
+ };
10
+ export declare const entrypointMappingReverseProto14: {
11
+ [key: string]: string;
12
+ };
@@ -0,0 +1,5 @@
1
+ import { Uint8ArrayConsumer } from '../uint8array-consumer';
2
+ export declare type Decoder = (val: Uint8ArrayConsumer) => string | number | object | undefined;
3
+ export declare const decodersProto14: {
4
+ [key: string]: Decoder;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare type Encoder<T> = (val: T) => string;
2
+ export declare const encodersProto14: {
3
+ [key: string]: Encoder<any>;
4
+ };
@@ -0,0 +1,14 @@
1
+ import { Uint8ArrayConsumer } from '../../uint8array-consumer';
2
+ import { Decoder, Encoder } from '../../taquito-local-forging';
3
+ import { MichelsonValue, PrimValue } from '../../michelson/codec';
4
+ export declare const scriptEncoderProto14: Encoder<{
5
+ code: MichelsonValue;
6
+ storage: MichelsonValue;
7
+ }>;
8
+ export declare const scriptDecoderProto14: Decoder;
9
+ export declare const valueEncoderProto14: Encoder<MichelsonValue>;
10
+ export declare const valueDecoderProto14: Decoder;
11
+ export declare const primEncoderProto14: Encoder<PrimValue>;
12
+ export declare const primDecoderProto14: (value: Uint8ArrayConsumer, preamble: Uint8Array) => Partial<PrimValue>;
13
+ export declare const primViewDecoderProto14: (value: Uint8ArrayConsumer, result: Partial<PrimValue>) => Partial<PrimValue>;
14
+ export declare const decodeCombPair: Decoder;
@@ -11,6 +11,7 @@ export declare enum ProtocolsHash {
11
11
  Psithaca2 = "Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",
12
12
  PtJakart2 = "PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",
13
13
  PtKathman = "PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",
14
+ PtLimaPtL = "PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",
14
15
  ProtoALpha = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"
15
16
  }
16
17
  export declare function ProtoInferiorTo(a: ProtocolsHash, b: ProtocolsHash): boolean;
@@ -114,6 +114,19 @@ export declare const IncreasePaidStorageSchema: {
114
114
  amount: CODEC;
115
115
  destination: CODEC;
116
116
  };
117
+ export declare const UpdateConsensusKeySchema: {
118
+ source: CODEC;
119
+ fee: CODEC;
120
+ counter: CODEC;
121
+ gas_limit: CODEC;
122
+ storage_limit: CODEC;
123
+ pk: CODEC;
124
+ };
125
+ export declare const DrainDelegateSchema: {
126
+ consensus_key: CODEC;
127
+ delegate: CODEC;
128
+ destination: CODEC;
129
+ };
117
130
  export declare const operationEncoder: (encoders: {
118
131
  [key: string]: (val: object) => string;
119
132
  }) => (operation: {
@@ -13,7 +13,7 @@ export * from './interface';
13
13
  export { VERSION } from './version';
14
14
  export { ProtocolsHash } from './protocols';
15
15
  export declare function getCodec(codec: CODEC, _proto: ProtocolsHash): {
16
- encoder: import("./encoder").Encoder<any>;
16
+ encoder: import("./proto14-kathmandu/encoder-proto14").Encoder<any>;
17
17
  decoder: (hex: string) => any;
18
18
  };
19
19
  export declare class LocalForger implements Forger {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/local-forging",
3
- "version": "14.2.0",
3
+ "version": "15.0.0",
4
4
  "description": "Provide local forging functionality to be with taquito",
5
5
  "keywords": [
6
6
  "tezos",
@@ -68,11 +68,11 @@
68
68
  ]
69
69
  },
70
70
  "dependencies": {
71
- "@taquito/utils": "*",
71
+ "@taquito/utils": "^15.0.0",
72
72
  "bignumber.js": "^9.1.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@taquito/rpc": "*",
75
+ "@taquito/rpc": "^15.0.0",
76
76
  "@types/bluebird": "^3.5.36",
77
77
  "@types/estree": "^1.0.0",
78
78
  "@types/jest": "^26.0.23",
@@ -105,5 +105,5 @@
105
105
  "webpack": "^5.74.0",
106
106
  "webpack-cli": "^4.10.0"
107
107
  },
108
- "gitHead": "01924663dda2aa0d4d49a5e43c27146b498ad40b"
108
+ "gitHead": "2fac29978cbf052946a05b4a6159202a6534589e"
109
109
  }