@1delta/calldatalib 0.0.38 → 0.0.42

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.
@@ -10,6 +10,12 @@ exports.encodeStargateV2BridgeSimpleTaxi = encodeStargateV2BridgeSimpleTaxi;
10
10
  exports.encodeStargateV2BridgeSimpleBus = encodeStargateV2BridgeSimpleBus;
11
11
  exports.encodeAcrossBridgeToken = encodeAcrossBridgeToken;
12
12
  exports.encodeAcrossBridgeNative = encodeAcrossBridgeNative;
13
+ exports.encodeAcrossHeader = encodeAcrossHeader;
14
+ exports.encodeAcrossParams = encodeAcrossParams;
15
+ exports.encodeSquidRouterCall = encodeSquidRouterCall;
16
+ exports.encodeSquidRouterCallPartial = encodeSquidRouterCallPartial;
17
+ exports.encodeGasZipBridge = encodeGasZipBridge;
18
+ exports.encodeGasZipEvmBridge = encodeGasZipEvmBridge;
13
19
  exports.encodePermit2TransferFrom = encodePermit2TransferFrom;
14
20
  exports.encodeNextGenDexUnlock = encodeNextGenDexUnlock;
15
21
  exports.encodeBalancerV3FlashLoan = encodeBalancerV3FlashLoan;
@@ -167,6 +173,8 @@ var BridgeIds;
167
173
  (function (BridgeIds) {
168
174
  BridgeIds[BridgeIds["STARGATE_V2"] = 0] = "STARGATE_V2";
169
175
  BridgeIds[BridgeIds["ACROSS"] = 10] = "ACROSS";
176
+ BridgeIds[BridgeIds["SQUID_ROUTER"] = 20] = "SQUID_ROUTER";
177
+ BridgeIds[BridgeIds["GASZIP"] = 30] = "GASZIP";
170
178
  })(BridgeIds || (exports.BridgeIds = BridgeIds = {}));
171
179
  var DexTypeMappings;
172
180
  (function (DexTypeMappings) {
@@ -254,69 +262,87 @@ function encodeStargateV2BridgeSimpleTaxi(asset, stargatePool, dstEid, receiver,
254
262
  function encodeStargateV2BridgeSimpleBus(asset, stargatePool, dstEid, receiver, refundReceiver, amount, isNative, slippage, fee) {
255
263
  return encodeStargateV2Bridge(asset, stargatePool, dstEid, receiver, refundReceiver, amount, slippage, fee, true, isNative, (0, utils_js_1.newbytes)(0), (0, utils_js_1.newbytes)(0));
256
264
  }
257
- function encodeAcrossBridgeToken(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, receiver, message) {
258
- const bridgeData = (0, utils_js_1.encodePacked)([
259
- "uint8",
260
- "uint8",
261
- "address",
262
- "address",
263
- "address",
264
- "bytes32",
265
- "uint128",
266
- "uint128",
267
- "uint32",
268
- "uint32",
269
- "bytes32",
270
- "uint16",
271
- "bytes",
272
- ], [
265
+ function encodeAcrossBridgeToken(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message) {
266
+ return (0, utils_js_1.encodePacked)(["bytes", "bytes"], [
267
+ encodeAcrossHeader(spokePool, depositor, sendingAssetId, receivingAssetId, amount, false),
268
+ encodeAcrossParams(fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message),
269
+ ]);
270
+ }
271
+ function encodeAcrossBridgeNative(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message) {
272
+ return (0, utils_js_1.encodePacked)(["bytes", "bytes"], [
273
+ encodeAcrossHeader(spokePool, depositor, sendingAssetId, receivingAssetId, amount, true),
274
+ encodeAcrossParams(fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message),
275
+ ]);
276
+ }
277
+ function encodeAcrossHeader(spokePool, depositor, sendingAssetId, receivingAssetId, amount, isNative) {
278
+ return (0, utils_js_1.encodePacked)(["uint8", "uint8", "address", "address", "address", "bytes32", "uint128"], [
273
279
  (0, utils_js_1.uint8)(ComposerCommands.BRIDGING),
274
280
  (0, utils_js_1.uint8)(BridgeIds.ACROSS),
275
281
  spokePool,
276
282
  depositor,
277
283
  sendingAssetId,
278
284
  receivingAssetId,
279
- (0, utils_js_1.generateAmountBitmap)((0, utils_js_1.uint128)(amount), false, false),
285
+ (0, utils_js_1.generateAmountBitmap)((0, utils_js_1.uint128)(amount), false, isNative),
286
+ ]);
287
+ }
288
+ function encodeAcrossParams(fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message) {
289
+ return (0, utils_js_1.encodePacked)(["uint128", "uint32", "uint32", "uint8", "uint8", "bytes32", "uint32", "uint16", "bytes"], [
280
290
  fixedFee,
281
291
  feePercentage,
282
292
  destinationChainId,
293
+ fromTokenDecimals,
294
+ toTokenDecimals,
283
295
  receiver,
296
+ deadline,
284
297
  (0, utils_js_1.uint16)(message.length / 2 - 1),
285
298
  message,
286
299
  ]);
287
- return bridgeData;
288
- }
289
- function encodeAcrossBridgeNative(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, receiver, message) {
290
- const bridgeData = (0, utils_js_1.encodePacked)([
291
- "uint8",
292
- "uint8",
293
- "address",
294
- "address",
295
- "address",
296
- "bytes32",
297
- "uint128",
298
- "uint128",
299
- "uint32",
300
- "uint32",
301
- "bytes32",
302
- "uint16",
303
- "bytes",
304
- ], [
300
+ }
301
+ function encodeSquidRouterCall(asset, gateway, bridgedTokenSymbol, amount, destinationChain, destinationAddress, payload, gasRefundRecipient, enableExpress, nativeAmount) {
302
+ const partialData = encodeSquidRouterCallPartial(asset, gateway, bridgedTokenSymbol, amount, destinationChain, destinationAddress, payload);
303
+ return (0, utils_js_1.encodePacked)(["bytes", "uint128", "address", "uint8", "bytes", "bytes", "bytes", "bytes"], [
304
+ partialData,
305
+ (0, utils_js_1.uint128)(nativeAmount),
306
+ gasRefundRecipient,
307
+ (0, utils_js_1.uint8)(enableExpress ? 1 : 0),
308
+ bridgedTokenSymbol,
309
+ destinationChain,
310
+ destinationAddress,
311
+ payload,
312
+ ]);
313
+ }
314
+ function encodeSquidRouterCallPartial(asset, gateway, bridgedTokenSymbol, amount, destinationChain, destinationAddress, payload) {
315
+ return (0, utils_js_1.encodePacked)(["uint8", "uint8", "address", "address", "uint16", "uint16", "uint16", "uint16", "uint128"], [
305
316
  (0, utils_js_1.uint8)(ComposerCommands.BRIDGING),
306
- (0, utils_js_1.uint8)(BridgeIds.ACROSS),
307
- spokePool,
308
- depositor,
309
- sendingAssetId,
310
- receivingAssetId,
311
- (0, utils_js_1.generateAmountBitmap)((0, utils_js_1.uint128)(amount), false, true),
312
- fixedFee,
313
- feePercentage,
314
- destinationChainId,
317
+ (0, utils_js_1.uint8)(BridgeIds.SQUID_ROUTER),
318
+ gateway,
319
+ asset,
320
+ (0, utils_js_1.uint16)(bridgedTokenSymbol.length / 2 - 1),
321
+ (0, utils_js_1.uint16)(destinationChain.length / 2 - 1),
322
+ (0, utils_js_1.uint16)(destinationAddress.length / 2 - 1),
323
+ (0, utils_js_1.uint16)(payload.length / 2 - 1),
324
+ (0, utils_js_1.uint128)(amount),
325
+ ]);
326
+ }
327
+ function encodeGasZipBridge(gasZipRouter, receiver, amount, destinationChainId) {
328
+ return (0, utils_js_1.encodePacked)(["uint8", "uint8", "address", "bytes32", "uint128", "uint256"], [
329
+ (0, utils_js_1.uint8)(ComposerCommands.BRIDGING),
330
+ (0, utils_js_1.uint8)(BridgeIds.GASZIP),
331
+ gasZipRouter,
315
332
  receiver,
316
- (0, utils_js_1.uint16)(message.length / 2 - 1),
317
- message,
333
+ (0, utils_js_1.uint128)(amount),
334
+ destinationChainId,
335
+ ]);
336
+ }
337
+ function encodeGasZipEvmBridge(gasZipRouter, receiver, amount, destinationChainId) {
338
+ return (0, utils_js_1.encodePacked)(["uint8", "uint8", "address", "bytes32", "uint128", "uint256"], [
339
+ (0, utils_js_1.uint8)(ComposerCommands.BRIDGING),
340
+ (0, utils_js_1.uint8)(BridgeIds.GASZIP),
341
+ gasZipRouter,
342
+ (0, utils_js_1.rightPadZero)(receiver),
343
+ (0, utils_js_1.uint128)(amount),
344
+ destinationChainId,
318
345
  ]);
319
- return bridgeData;
320
346
  }
321
347
  function encodePermit2TransferFrom(token, receiver, amount) {
322
348
  return (0, utils_js_1.encodePacked)(["uint8", "uint8", "address", "address", "uint128"], [(0, utils_js_1.uint8)(ComposerCommands.TRANSFERS), (0, utils_js_1.uint8)(TransferIds.PERMIT2_TRANSFER_FROM), token, receiver, (0, utils_js_1.uint128)(amount)]);
package/dist/cjs/utils.js CHANGED
@@ -14,6 +14,7 @@ exports.encodePacked = encodePacked;
14
14
  exports.generateAmountBitmap = generateAmountBitmap;
15
15
  exports.getMorphoCollateral = getMorphoCollateral;
16
16
  exports.getMorphoLoanAsset = getMorphoLoanAsset;
17
+ exports.rightPadZero = rightPadZero;
17
18
  exports.newbytes = newbytes;
18
19
  exports.bytes = bytes;
19
20
  const viem_1 = require("viem");
@@ -69,6 +70,9 @@ function getMorphoLoanAsset(market) {
69
70
  const slice = market.slice(2, 42);
70
71
  return `0x${slice}`;
71
72
  }
73
+ function rightPadZero(address) {
74
+ return (address.toLowerCase() + "0".repeat(24));
75
+ }
72
76
  function newbytes(length) {
73
77
  return ("0x" + "0".repeat(length * 2));
74
78
  }
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { zeroAddress } from "viem";
3
- import { encodePacked, uint128, uint8, uint16, uint256, generateAmountBitmap, newbytes, bytes, getMorphoCollateral, getMorphoLoanAsset, } from "./utils.js";
3
+ import { encodePacked, uint128, uint8, uint16, uint256, generateAmountBitmap, newbytes, bytes, getMorphoCollateral, getMorphoLoanAsset, rightPadZero, } from "./utils.js";
4
4
  export var SweepType;
5
5
  (function (SweepType) {
6
6
  SweepType[SweepType["VALIDATE"] = 0] = "VALIDATE";
@@ -94,6 +94,8 @@ export var BridgeIds;
94
94
  (function (BridgeIds) {
95
95
  BridgeIds[BridgeIds["STARGATE_V2"] = 0] = "STARGATE_V2";
96
96
  BridgeIds[BridgeIds["ACROSS"] = 10] = "ACROSS";
97
+ BridgeIds[BridgeIds["SQUID_ROUTER"] = 20] = "SQUID_ROUTER";
98
+ BridgeIds[BridgeIds["GASZIP"] = 30] = "GASZIP";
97
99
  })(BridgeIds || (BridgeIds = {}));
98
100
  export var DexTypeMappings;
99
101
  (function (DexTypeMappings) {
@@ -181,69 +183,87 @@ export function encodeStargateV2BridgeSimpleTaxi(asset, stargatePool, dstEid, re
181
183
  export function encodeStargateV2BridgeSimpleBus(asset, stargatePool, dstEid, receiver, refundReceiver, amount, isNative, slippage, fee) {
182
184
  return encodeStargateV2Bridge(asset, stargatePool, dstEid, receiver, refundReceiver, amount, slippage, fee, true, isNative, newbytes(0), newbytes(0));
183
185
  }
184
- export function encodeAcrossBridgeToken(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, receiver, message) {
185
- const bridgeData = encodePacked([
186
- "uint8",
187
- "uint8",
188
- "address",
189
- "address",
190
- "address",
191
- "bytes32",
192
- "uint128",
193
- "uint128",
194
- "uint32",
195
- "uint32",
196
- "bytes32",
197
- "uint16",
198
- "bytes",
199
- ], [
186
+ export function encodeAcrossBridgeToken(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message) {
187
+ return encodePacked(["bytes", "bytes"], [
188
+ encodeAcrossHeader(spokePool, depositor, sendingAssetId, receivingAssetId, amount, false),
189
+ encodeAcrossParams(fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message),
190
+ ]);
191
+ }
192
+ export function encodeAcrossBridgeNative(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message) {
193
+ return encodePacked(["bytes", "bytes"], [
194
+ encodeAcrossHeader(spokePool, depositor, sendingAssetId, receivingAssetId, amount, true),
195
+ encodeAcrossParams(fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message),
196
+ ]);
197
+ }
198
+ export function encodeAcrossHeader(spokePool, depositor, sendingAssetId, receivingAssetId, amount, isNative) {
199
+ return encodePacked(["uint8", "uint8", "address", "address", "address", "bytes32", "uint128"], [
200
200
  uint8(ComposerCommands.BRIDGING),
201
201
  uint8(BridgeIds.ACROSS),
202
202
  spokePool,
203
203
  depositor,
204
204
  sendingAssetId,
205
205
  receivingAssetId,
206
- generateAmountBitmap(uint128(amount), false, false),
206
+ generateAmountBitmap(uint128(amount), false, isNative),
207
+ ]);
208
+ }
209
+ export function encodeAcrossParams(fixedFee, feePercentage, destinationChainId, fromTokenDecimals, toTokenDecimals, receiver, deadline, message) {
210
+ return encodePacked(["uint128", "uint32", "uint32", "uint8", "uint8", "bytes32", "uint32", "uint16", "bytes"], [
207
211
  fixedFee,
208
212
  feePercentage,
209
213
  destinationChainId,
214
+ fromTokenDecimals,
215
+ toTokenDecimals,
210
216
  receiver,
217
+ deadline,
211
218
  uint16(message.length / 2 - 1),
212
219
  message,
213
220
  ]);
214
- return bridgeData;
215
- }
216
- export function encodeAcrossBridgeNative(spokePool, depositor, sendingAssetId, receivingAssetId, amount, fixedFee, feePercentage, destinationChainId, receiver, message) {
217
- const bridgeData = encodePacked([
218
- "uint8",
219
- "uint8",
220
- "address",
221
- "address",
222
- "address",
223
- "bytes32",
224
- "uint128",
225
- "uint128",
226
- "uint32",
227
- "uint32",
228
- "bytes32",
229
- "uint16",
230
- "bytes",
231
- ], [
221
+ }
222
+ export function encodeSquidRouterCall(asset, gateway, bridgedTokenSymbol, amount, destinationChain, destinationAddress, payload, gasRefundRecipient, enableExpress, nativeAmount) {
223
+ const partialData = encodeSquidRouterCallPartial(asset, gateway, bridgedTokenSymbol, amount, destinationChain, destinationAddress, payload);
224
+ return encodePacked(["bytes", "uint128", "address", "uint8", "bytes", "bytes", "bytes", "bytes"], [
225
+ partialData,
226
+ uint128(nativeAmount),
227
+ gasRefundRecipient,
228
+ uint8(enableExpress ? 1 : 0),
229
+ bridgedTokenSymbol,
230
+ destinationChain,
231
+ destinationAddress,
232
+ payload,
233
+ ]);
234
+ }
235
+ export function encodeSquidRouterCallPartial(asset, gateway, bridgedTokenSymbol, amount, destinationChain, destinationAddress, payload) {
236
+ return encodePacked(["uint8", "uint8", "address", "address", "uint16", "uint16", "uint16", "uint16", "uint128"], [
232
237
  uint8(ComposerCommands.BRIDGING),
233
- uint8(BridgeIds.ACROSS),
234
- spokePool,
235
- depositor,
236
- sendingAssetId,
237
- receivingAssetId,
238
- generateAmountBitmap(uint128(amount), false, true),
239
- fixedFee,
240
- feePercentage,
241
- destinationChainId,
238
+ uint8(BridgeIds.SQUID_ROUTER),
239
+ gateway,
240
+ asset,
241
+ uint16(bridgedTokenSymbol.length / 2 - 1),
242
+ uint16(destinationChain.length / 2 - 1),
243
+ uint16(destinationAddress.length / 2 - 1),
244
+ uint16(payload.length / 2 - 1),
245
+ uint128(amount),
246
+ ]);
247
+ }
248
+ export function encodeGasZipBridge(gasZipRouter, receiver, amount, destinationChainId) {
249
+ return encodePacked(["uint8", "uint8", "address", "bytes32", "uint128", "uint256"], [
250
+ uint8(ComposerCommands.BRIDGING),
251
+ uint8(BridgeIds.GASZIP),
252
+ gasZipRouter,
242
253
  receiver,
243
- uint16(message.length / 2 - 1),
244
- message,
254
+ uint128(amount),
255
+ destinationChainId,
256
+ ]);
257
+ }
258
+ export function encodeGasZipEvmBridge(gasZipRouter, receiver, amount, destinationChainId) {
259
+ return encodePacked(["uint8", "uint8", "address", "bytes32", "uint128", "uint256"], [
260
+ uint8(ComposerCommands.BRIDGING),
261
+ uint8(BridgeIds.GASZIP),
262
+ gasZipRouter,
263
+ rightPadZero(receiver),
264
+ uint128(amount),
265
+ destinationChainId,
245
266
  ]);
246
- return bridgeData;
247
267
  }
248
268
  export function encodePermit2TransferFrom(token, receiver, amount) {
249
269
  return encodePacked(["uint8", "uint8", "address", "address", "uint128"], [uint8(ComposerCommands.TRANSFERS), uint8(TransferIds.PERMIT2_TRANSFER_FROM), token, receiver, uint128(amount)]);
package/dist/esm/utils.js CHANGED
@@ -51,6 +51,9 @@ export function getMorphoLoanAsset(market) {
51
51
  const slice = market.slice(2, 42);
52
52
  return `0x${slice}`;
53
53
  }
54
+ export function rightPadZero(address) {
55
+ return (address.toLowerCase() + "0".repeat(24));
56
+ }
54
57
  export function newbytes(length) {
55
58
  return ("0x" + "0".repeat(length * 2));
56
59
  }
@@ -78,7 +78,9 @@ export declare enum ComposerCommands {
78
78
  }
79
79
  export declare enum BridgeIds {
80
80
  STARGATE_V2 = 0,
81
- ACROSS = 10
81
+ ACROSS = 10,
82
+ SQUID_ROUTER = 20,
83
+ GASZIP = 30
82
84
  }
83
85
  export declare enum DexTypeMappings {
84
86
  UNISWAP_V3_ID = 0,
@@ -116,8 +118,14 @@ export declare function encodePermit(permitId: bigint, target: Address, data: He
116
118
  export declare function encodeStargateV2BridgePartial(amount: bigint, slippage: number, fee: bigint, isBusMode: boolean, isNative: boolean, composeMsg: Hex, extraOptions: Hex): Hex;
117
119
  export declare function encodeStargateV2BridgeSimpleTaxi(asset: Address, stargatePool: Address, dstEid: number, receiver: Hex, refundReceiver: Address, amount: bigint, isNative: boolean, slippage: number, fee: bigint): Hex;
118
120
  export declare function encodeStargateV2BridgeSimpleBus(asset: Address, stargatePool: Address, dstEid: number, receiver: Hex, refundReceiver: Address, amount: bigint, isNative: boolean, slippage: number, fee: bigint): Hex;
119
- export declare function encodeAcrossBridgeToken(spokePool: Address, depositor: Address, sendingAssetId: Address, receivingAssetId: Hex, amount: bigint, fixedFee: bigint, feePercentage: number, destinationChainId: number, receiver: Hex, message: Hex): Hex;
120
- export declare function encodeAcrossBridgeNative(spokePool: Address, depositor: Address, sendingAssetId: Address, receivingAssetId: Hex, amount: bigint, fixedFee: bigint, feePercentage: number, destinationChainId: number, receiver: Hex, message: Hex): Hex;
121
+ export declare function encodeAcrossBridgeToken(spokePool: Address, depositor: Address, sendingAssetId: Address, receivingAssetId: Hex, amount: bigint, fixedFee: bigint, feePercentage: number, destinationChainId: number, fromTokenDecimals: number, toTokenDecimals: number, receiver: Hex, deadline: number, message: Hex): Hex;
122
+ export declare function encodeAcrossBridgeNative(spokePool: Address, depositor: Address, sendingAssetId: Address, receivingAssetId: Hex, amount: bigint, fixedFee: bigint, feePercentage: number, destinationChainId: number, fromTokenDecimals: number, toTokenDecimals: number, receiver: Hex, deadline: number, message: Hex): Hex;
123
+ export declare function encodeAcrossHeader(spokePool: Address, depositor: Address, sendingAssetId: Address, receivingAssetId: Hex, amount: bigint, isNative: boolean): Hex;
124
+ export declare function encodeAcrossParams(fixedFee: bigint, feePercentage: number, destinationChainId: number, fromTokenDecimals: number, toTokenDecimals: number, receiver: Hex, deadline: number, message: Hex): Hex;
125
+ export declare function encodeSquidRouterCall(asset: Address, gateway: Address, bridgedTokenSymbol: Hex, amount: bigint, destinationChain: Hex, destinationAddress: Hex, payload: Hex, gasRefundRecipient: Address, enableExpress: boolean, nativeAmount: bigint): Hex;
126
+ export declare function encodeSquidRouterCallPartial(asset: Address, gateway: Address, bridgedTokenSymbol: Hex, amount: bigint, destinationChain: Hex, destinationAddress: Hex, payload: Hex): Hex;
127
+ export declare function encodeGasZipBridge(gasZipRouter: Address, receiver: Hex, amount: bigint, destinationChainId: bigint): Hex;
128
+ export declare function encodeGasZipEvmBridge(gasZipRouter: Address, receiver: Address, amount: bigint, destinationChainId: bigint): Hex;
121
129
  export declare function encodePermit2TransferFrom(token: Address, receiver: Address, amount: bigint): Hex;
122
130
  export declare function encodeNextGenDexUnlock(singleton: Address, id: bigint, d: Hex): Hex;
123
131
  export declare function encodeBalancerV3FlashLoan(singleton: Address, poolId: bigint, asset: Address, receiver: Address, amount: bigint, flashData: Hex): Hex;
@@ -15,5 +15,6 @@ export declare function encodePacked(types: string[], values: any[]): Hex;
15
15
  export declare function generateAmountBitmap(amount: bigint, useShares: boolean, native: boolean): bigint;
16
16
  export declare function getMorphoCollateral(market: Hex): Address;
17
17
  export declare function getMorphoLoanAsset(market: Hex): Address;
18
+ export declare function rightPadZero(address: Address): Hex;
18
19
  export declare function newbytes(length: number): Hex;
19
20
  export declare function bytes(value: Hex): Hex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/calldatalib",
3
- "version": "0.0.38",
3
+ "version": "0.0.42",
4
4
  "description": "Generated CalldataLib TypeScript functions for 1delta smart contracts",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",