@hyperlane-xyz/sdk 28.1.0 → 29.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.
- package/dist/consts/multisigIsm.d.ts.map +1 -1
- package/dist/consts/multisigIsm.js +4 -2
- package/dist/consts/multisigIsm.js.map +1 -1
- package/dist/core/types.d.ts +22 -22
- package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js +2 -1
- package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js.map +1 -1
- package/dist/fee/EvmTokenFeeModule.hardhat-test.js +44 -19
- package/dist/fee/EvmTokenFeeModule.hardhat-test.js.map +1 -1
- package/dist/fee/EvmTokenFeeReader.d.ts +1 -1
- package/dist/fee/EvmTokenFeeReader.d.ts.map +1 -1
- package/dist/fee/EvmTokenFeeReader.hardhat-test.d.ts +1 -1
- package/dist/fee/EvmTokenFeeReader.hardhat-test.js +12 -3
- package/dist/fee/EvmTokenFeeReader.hardhat-test.js.map +1 -1
- package/dist/fee/EvmTokenFeeReader.js +5 -3
- package/dist/fee/EvmTokenFeeReader.js.map +1 -1
- package/dist/fee/types.d.ts +20 -20
- package/dist/fee/types.d.ts.map +1 -1
- package/dist/fee/types.js +12 -6
- package/dist/fee/types.js.map +1 -1
- package/dist/fee/types.test.js +67 -5
- package/dist/fee/types.test.js.map +1 -1
- package/dist/fee/utils.d.ts +25 -2
- package/dist/fee/utils.d.ts.map +1 -1
- package/dist/fee/utils.js +39 -7
- package/dist/fee/utils.js.map +1 -1
- package/dist/fee/utils.test.d.ts +2 -0
- package/dist/fee/utils.test.d.ts.map +1 -0
- package/dist/fee/utils.test.js +54 -0
- package/dist/fee/utils.test.js.map +1 -0
- package/dist/ica/types.d.ts +18 -18
- package/dist/metadata/customZodTypes.d.ts +3 -0
- package/dist/metadata/customZodTypes.d.ts.map +1 -1
- package/dist/metadata/customZodTypes.js +6 -0
- package/dist/metadata/customZodTypes.js.map +1 -1
- package/dist/providers/transactions/submitter/builder/types.d.ts +26 -0
- package/dist/providers/transactions/submitter/builder/types.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts +13 -0
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.js +1 -0
- package/dist/providers/transactions/submitter/ethersV5/types.js.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.test.js +15 -1
- package/dist/providers/transactions/submitter/ethersV5/types.test.js.map +1 -1
- package/dist/providers/transactions/submitter/types.d.ts +6 -0
- package/dist/providers/transactions/submitter/types.d.ts.map +1 -1
- package/dist/router/types.d.ts +18 -18
- package/dist/token/adapters/StarknetTokenAdapter.d.ts.map +1 -1
- package/dist/token/adapters/StarknetTokenAdapter.js +2 -4
- package/dist/token/adapters/StarknetTokenAdapter.js.map +1 -1
- package/dist/token/configUtils.test.js +5 -5
- package/dist/token/configUtils.test.js.map +1 -1
- package/dist/token/deploy.hardhat-test.js +2 -2
- package/dist/token/deploy.hardhat-test.js.map +1 -1
- package/dist/token/types.d.ts +57 -57
- package/dist/token/types.test.js +5 -5
- package/dist/token/types.test.js.map +1 -1
- package/package.json +13 -12
package/dist/fee/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/fee/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/fee/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,SAAU,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAiC,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAIxD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAKpD;AAED;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,QAAa,CAAC;AAE7D;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAcvE"}
|
package/dist/fee/utils.js
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { assert } from '@hyperlane-xyz/utils';
|
|
2
|
+
export const MAX_BPS = 10000n;
|
|
3
|
+
/**
|
|
4
|
+
* Maximum decimal places supported for fractional bps values.
|
|
5
|
+
* The precision scaling in convertToBps/convertFromBps uses 10^MAX_BPS_DECIMALS
|
|
6
|
+
* as a multiplier. Values with more decimal places will be rejected to prevent
|
|
7
|
+
* silent precision loss during bigint arithmetic.
|
|
8
|
+
*/
|
|
9
|
+
export const MAX_BPS_DECIMALS = 4;
|
|
10
|
+
/**
|
|
11
|
+
* Bigint precision multiplier for fractional bps arithmetic.
|
|
12
|
+
* Equals 10^MAX_BPS_DECIMALS = 10_000n.
|
|
13
|
+
*/
|
|
14
|
+
export const BPS_PRECISION = BigInt(10 ** MAX_BPS_DECIMALS);
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if bps has at most MAX_BPS_DECIMALS decimal places.
|
|
17
|
+
* Uses epsilon comparison to avoid IEEE 754 false positives
|
|
18
|
+
* (e.g. 0.3 * 10000 = 2999.9999... which strict equality would wrongly reject).
|
|
19
|
+
*/
|
|
20
|
+
export function isBpsPrecisionValid(bps) {
|
|
21
|
+
const factor = 10 ** MAX_BPS_DECIMALS;
|
|
22
|
+
const scaled = bps * factor;
|
|
23
|
+
return Math.abs(Math.round(scaled) - scaled) <= 1e-9;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Validates that a bps value does not exceed MAX_BPS_DECIMALS decimal places.
|
|
27
|
+
* @throws Error if bps has too many decimal places
|
|
28
|
+
*/
|
|
29
|
+
export function assertBpsPrecision(bps) {
|
|
30
|
+
assert(isBpsPrecisionValid(bps), `bps must have at most ${MAX_BPS_DECIMALS} decimal places, got ${bps}`);
|
|
31
|
+
}
|
|
2
32
|
/**
|
|
3
33
|
* Assumed maximum transfer amount for zero-supply tokens.
|
|
4
34
|
* 10^36 is astronomically large (10^18 tokens with 18 decimals).
|
|
@@ -10,14 +40,16 @@ export const ASSUMED_MAX_AMOUNT_FOR_ZERO_SUPPLY = 10n ** 36n;
|
|
|
10
40
|
* Converts fee parameters to basis points (BPS)
|
|
11
41
|
* @param maxFee - Maximum fee amount
|
|
12
42
|
* @param halfAmount - Half of the amount at which maxFee is applied
|
|
13
|
-
* @returns Fee in basis points
|
|
43
|
+
* @returns Fee in basis points (up to MAX_BPS_DECIMALS decimal places)
|
|
14
44
|
* @throws Error if halfAmount is zero to prevent division by zero
|
|
15
45
|
*/
|
|
16
46
|
export function convertToBps(maxFee, halfAmount) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
47
|
+
assert(halfAmount !== 0n, 'halfAmount must be > 0 to prevent division by zero');
|
|
48
|
+
// Use precision scaling to preserve fractional bps (e.g., 1.5)
|
|
49
|
+
// Multiply by BPS_PRECISION before bigint division, then divide back in Number space
|
|
50
|
+
const scaledBps = (maxFee * MAX_BPS * BPS_PRECISION) / (halfAmount * 2n);
|
|
51
|
+
// Round to MAX_BPS_DECIMALS decimal places to prevent floating point drift
|
|
52
|
+
const factor = 10 ** MAX_BPS_DECIMALS;
|
|
53
|
+
return (Math.round((Number(scaledBps) / Number(BPS_PRECISION)) * factor) / factor);
|
|
22
54
|
}
|
|
23
55
|
//# sourceMappingURL=utils.js.map
|
package/dist/fee/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/fee/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,MAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.js","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AG,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,MAAM,CAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../src/fee/utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { expect } from 'chai';
|
|
2
|
+
import { BPS_PRECISION, assertBpsPrecision, convertToBps, isBpsPrecisionValid, } from './utils.js';
|
|
3
|
+
describe('isBpsPrecisionValid', () => {
|
|
4
|
+
it('should return true for integer bps values', () => {
|
|
5
|
+
expect(isBpsPrecisionValid(1)).to.be.true;
|
|
6
|
+
expect(isBpsPrecisionValid(100)).to.be.true;
|
|
7
|
+
expect(isBpsPrecisionValid(10000)).to.be.true;
|
|
8
|
+
});
|
|
9
|
+
it('should return true for values that are IEEE 754 edge cases', () => {
|
|
10
|
+
// These were falsely rejected before the epsilon fix
|
|
11
|
+
expect(isBpsPrecisionValid(0.1)).to.be.true;
|
|
12
|
+
expect(isBpsPrecisionValid(0.3)).to.be.true;
|
|
13
|
+
expect(isBpsPrecisionValid(33.33)).to.be.true;
|
|
14
|
+
});
|
|
15
|
+
it('should return true for valid fractional values up to 4 decimal places', () => {
|
|
16
|
+
expect(isBpsPrecisionValid(1.5)).to.be.true;
|
|
17
|
+
expect(isBpsPrecisionValid(0.0001)).to.be.true;
|
|
18
|
+
expect(isBpsPrecisionValid(1.2345)).to.be.true;
|
|
19
|
+
});
|
|
20
|
+
it('should return false for values with more than 4 decimal places', () => {
|
|
21
|
+
expect(isBpsPrecisionValid(0.00001)).to.be.false;
|
|
22
|
+
expect(isBpsPrecisionValid(1.23456)).to.be.false;
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
describe('assertBpsPrecision', () => {
|
|
26
|
+
it('should not throw for valid fractional values including IEEE 754 edge cases', () => {
|
|
27
|
+
expect(() => assertBpsPrecision(0.1)).to.not.throw();
|
|
28
|
+
expect(() => assertBpsPrecision(0.3)).to.not.throw();
|
|
29
|
+
expect(() => assertBpsPrecision(1.5)).to.not.throw();
|
|
30
|
+
expect(() => assertBpsPrecision(0.0001)).to.not.throw();
|
|
31
|
+
});
|
|
32
|
+
it('should throw for values exceeding 4 decimal places', () => {
|
|
33
|
+
expect(() => assertBpsPrecision(0.00001)).to.throw(/at most 4 decimal places/);
|
|
34
|
+
expect(() => assertBpsPrecision(1.23456)).to.throw(/at most 4 decimal places/);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
describe('BPS_PRECISION', () => {
|
|
38
|
+
it('should equal 10n ** 4n = 10000n', () => {
|
|
39
|
+
expect(BPS_PRECISION).to.equal(10000n);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
describe('convertToBps', () => {
|
|
43
|
+
it('should throw for halfAmount = 0', () => {
|
|
44
|
+
expect(() => convertToBps(100n, 0n)).to.throw(/halfAmount must be > 0/);
|
|
45
|
+
});
|
|
46
|
+
it('should return a number rounded to 4 decimal places', () => {
|
|
47
|
+
const result = convertToBps(10n, 1000n);
|
|
48
|
+
expect(result).to.be.a('number');
|
|
49
|
+
// Verify it rounds to at most 4 decimal places
|
|
50
|
+
const decimals = result.toString().split('.')[1]?.length ?? 0;
|
|
51
|
+
expect(decimals).to.be.at.most(4);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=utils.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../src/fee/utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;Q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;IAC5B,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACzC,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC5D,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACxC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QACjC,+CAA+C;QAC/C,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC;QAC9D,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/ica/types.d.ts
CHANGED
|
@@ -387,33 +387,33 @@ export declare const IcaRouterConfigSchema: z.ZodObject<{
|
|
|
387
387
|
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
388
388
|
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
389
389
|
type: z.ZodLiteral<import("../index.js").TokenFeeType.LinearFee>;
|
|
390
|
-
bps: z.ZodOptional<z.ZodEffects<z.
|
|
390
|
+
bps: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>>;
|
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
392
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
393
393
|
owner: string;
|
|
394
394
|
maxFee?: bigint | undefined;
|
|
395
395
|
halfAmount?: bigint | undefined;
|
|
396
|
-
bps?:
|
|
396
|
+
bps?: number | undefined;
|
|
397
397
|
}, {
|
|
398
398
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
399
399
|
owner: string;
|
|
400
400
|
maxFee?: string | number | bigint | undefined;
|
|
401
401
|
halfAmount?: string | number | bigint | undefined;
|
|
402
|
-
bps?: string | number |
|
|
402
|
+
bps?: string | number | undefined;
|
|
403
403
|
}>, {
|
|
404
404
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
405
405
|
owner: string;
|
|
406
406
|
maxFee?: bigint | undefined;
|
|
407
407
|
halfAmount?: bigint | undefined;
|
|
408
|
-
bps?:
|
|
408
|
+
bps?: number | undefined;
|
|
409
409
|
}, {
|
|
410
410
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
411
411
|
owner: string;
|
|
412
412
|
maxFee?: string | number | bigint | undefined;
|
|
413
413
|
halfAmount?: string | number | bigint | undefined;
|
|
414
|
-
bps?: string | number |
|
|
414
|
+
bps?: string | number | undefined;
|
|
415
415
|
}>, {
|
|
416
|
-
bps:
|
|
416
|
+
bps: number;
|
|
417
417
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
418
418
|
owner: string;
|
|
419
419
|
maxFee?: bigint | undefined;
|
|
@@ -423,7 +423,7 @@ export declare const IcaRouterConfigSchema: z.ZodObject<{
|
|
|
423
423
|
owner: string;
|
|
424
424
|
maxFee?: string | number | bigint | undefined;
|
|
425
425
|
halfAmount?: string | number | bigint | undefined;
|
|
426
|
-
bps?: string | number |
|
|
426
|
+
bps?: string | number | undefined;
|
|
427
427
|
}>, z.ZodEffects<z.ZodObject<{
|
|
428
428
|
owner: z.ZodString;
|
|
429
429
|
} & {
|
|
@@ -636,7 +636,7 @@ export declare const IcaRouterConfigSchema: z.ZodObject<{
|
|
|
636
636
|
address: string;
|
|
637
637
|
}> | undefined;
|
|
638
638
|
tokenFee?: {
|
|
639
|
-
bps:
|
|
639
|
+
bps: number;
|
|
640
640
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
641
641
|
owner: string;
|
|
642
642
|
maxFee?: bigint | undefined;
|
|
@@ -783,7 +783,7 @@ export declare const IcaRouterConfigSchema: z.ZodObject<{
|
|
|
783
783
|
owner: string;
|
|
784
784
|
maxFee?: string | number | bigint | undefined;
|
|
785
785
|
halfAmount?: string | number | bigint | undefined;
|
|
786
|
-
bps?: string | number |
|
|
786
|
+
bps?: string | number | undefined;
|
|
787
787
|
} | {
|
|
788
788
|
type: import("../index.js").TokenFeeType.ProgressiveFee;
|
|
789
789
|
owner: string;
|
|
@@ -1179,33 +1179,33 @@ export declare const DerivedIcaRouterConfigSchema: z.ZodObject<{
|
|
|
1179
1179
|
maxFee: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
1180
1180
|
halfAmount: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>>;
|
|
1181
1181
|
type: z.ZodLiteral<import("../index.js").TokenFeeType.LinearFee>;
|
|
1182
|
-
bps: z.ZodOptional<z.ZodEffects<z.
|
|
1182
|
+
bps: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>>;
|
|
1183
1183
|
}, "strip", z.ZodTypeAny, {
|
|
1184
1184
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
1185
1185
|
owner: string;
|
|
1186
1186
|
maxFee?: bigint | undefined;
|
|
1187
1187
|
halfAmount?: bigint | undefined;
|
|
1188
|
-
bps?:
|
|
1188
|
+
bps?: number | undefined;
|
|
1189
1189
|
}, {
|
|
1190
1190
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
1191
1191
|
owner: string;
|
|
1192
1192
|
maxFee?: string | number | bigint | undefined;
|
|
1193
1193
|
halfAmount?: string | number | bigint | undefined;
|
|
1194
|
-
bps?: string | number |
|
|
1194
|
+
bps?: string | number | undefined;
|
|
1195
1195
|
}>, {
|
|
1196
1196
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
1197
1197
|
owner: string;
|
|
1198
1198
|
maxFee?: bigint | undefined;
|
|
1199
1199
|
halfAmount?: bigint | undefined;
|
|
1200
|
-
bps?:
|
|
1200
|
+
bps?: number | undefined;
|
|
1201
1201
|
}, {
|
|
1202
1202
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
1203
1203
|
owner: string;
|
|
1204
1204
|
maxFee?: string | number | bigint | undefined;
|
|
1205
1205
|
halfAmount?: string | number | bigint | undefined;
|
|
1206
|
-
bps?: string | number |
|
|
1206
|
+
bps?: string | number | undefined;
|
|
1207
1207
|
}>, {
|
|
1208
|
-
bps:
|
|
1208
|
+
bps: number;
|
|
1209
1209
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
1210
1210
|
owner: string;
|
|
1211
1211
|
maxFee?: bigint | undefined;
|
|
@@ -1215,7 +1215,7 @@ export declare const DerivedIcaRouterConfigSchema: z.ZodObject<{
|
|
|
1215
1215
|
owner: string;
|
|
1216
1216
|
maxFee?: string | number | bigint | undefined;
|
|
1217
1217
|
halfAmount?: string | number | bigint | undefined;
|
|
1218
|
-
bps?: string | number |
|
|
1218
|
+
bps?: string | number | undefined;
|
|
1219
1219
|
}>, z.ZodEffects<z.ZodObject<{
|
|
1220
1220
|
owner: z.ZodString;
|
|
1221
1221
|
} & {
|
|
@@ -1431,7 +1431,7 @@ export declare const DerivedIcaRouterConfigSchema: z.ZodObject<{
|
|
|
1431
1431
|
address: string;
|
|
1432
1432
|
}> | undefined;
|
|
1433
1433
|
tokenFee?: {
|
|
1434
|
-
bps:
|
|
1434
|
+
bps: number;
|
|
1435
1435
|
type: import("../index.js").TokenFeeType.LinearFee;
|
|
1436
1436
|
owner: string;
|
|
1437
1437
|
maxFee?: bigint | undefined;
|
|
@@ -1579,7 +1579,7 @@ export declare const DerivedIcaRouterConfigSchema: z.ZodObject<{
|
|
|
1579
1579
|
owner: string;
|
|
1580
1580
|
maxFee?: string | number | bigint | undefined;
|
|
1581
1581
|
halfAmount?: string | number | bigint | undefined;
|
|
1582
|
-
bps?: string | number |
|
|
1582
|
+
bps?: string | number | undefined;
|
|
1583
1583
|
} | {
|
|
1584
1584
|
type: import("../index.js").TokenFeeType.ProgressiveFee;
|
|
1585
1585
|
owner: string;
|
|
@@ -37,5 +37,8 @@ export declare const ZHash: z.ZodString;
|
|
|
37
37
|
/** Zod ChainName schema */
|
|
38
38
|
export declare const ZChainName: z.ZodString;
|
|
39
39
|
export declare const ZBigNumberish: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, z.ZodString]>, bigint, string | number | bigint>;
|
|
40
|
+
/** Zod BPS (basis points) schema — accepts number or decimal string, transforms to number.
|
|
41
|
+
* Supports fractional values (e.g., 1.5 bps). */
|
|
42
|
+
export declare const ZBps: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>, number, string | number>;
|
|
40
43
|
export declare const ZBytes32String: z.ZodEffects<z.ZodString, string, string>;
|
|
41
44
|
//# sourceMappingURL=customZodTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customZodTypes.d.ts","sourceRoot":"","sources":["../../src/metadata/customZodTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACpE,OAAO,EAAE,CAAC,EACV,YA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AC;AACxE,uGAAuG;AACvG,eAAO,MAAM,KAAK,aAIf,CAAC;AACJ,2BAA2B;AAC3B,eAAO,MAAM,UAAU,aAAuC,CAAC;AAE/D,eAAO,MAAM,aAAa,mHAIN,CAAC;AAErB;kDACkD;AAClD,eAAO,MAAM,IAAI,sHAGsD,CAAC;AAExE,eAAO,MAAM,cAAc,2CAMa,CAAC"}
|
|
@@ -53,6 +53,12 @@ export const ZBigNumberish = z
|
|
|
53
53
|
.or(ZUint)
|
|
54
54
|
.or(z.string().regex(/^[0-9]+$/))
|
|
55
55
|
.transform(BigInt);
|
|
56
|
+
/** Zod BPS (basis points) schema — accepts number or decimal string, transforms to number.
|
|
57
|
+
* Supports fractional values (e.g., 1.5 bps). */
|
|
58
|
+
export const ZBps = z
|
|
59
|
+
.union([z.number().nonnegative(), z.string().regex(/^\d+(\.\d+)?$/)])
|
|
60
|
+
.transform((val) => Number(val))
|
|
61
|
+
.refine((val) => Number.isFinite(val), 'bps must be a finite number');
|
|
56
62
|
export const ZBytes32String = z
|
|
57
63
|
.string()
|
|
58
64
|
.regex(/^0x[0-9a-fA-F]{64}$/, 'Must be a 0x prefixed 64-character hexadecimal string (32 bytes)')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customZodTypes.js","sourceRoot":"","sources":["../../src/metadata/customZodTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAU,EACV,YAAwB;IAExB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAiB,CAAC;IAC3D,OAAO,CAAC;SACL,UAAU,CAAC,OAAO,CAAC;SACnB,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACd,SAAS,CAAC,CAAC,GAAG,EAAc,EAAE;QAC7B,OAAO,WAAW,CAAC,QAAQ,C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AC;KACT,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAChC,SAAS,CAAC,MAAM,CAAC,CAAC;AAErB;kDACkD;AAClD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC;KAClB,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;KACpE,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;KAC/B,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,6BAA6B,CAAC,CAAC;AAExE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,KAAK,CACJ,qBAAqB,EACrB,kEAAkE,CACnE;KACA,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const SubmissionStrategySchema: z.ZodObject<{
|
|
|
6
6
|
submitter: z.ZodUnion<[z.ZodObject<{
|
|
7
7
|
chain: z.ZodString;
|
|
8
8
|
userAddress: z.ZodOptional<z.ZodString>;
|
|
9
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
9
10
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
10
11
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11
12
|
type: z.ZodLiteral<TxSubmitterType.JSON_RPC>;
|
|
@@ -14,15 +15,18 @@ export declare const SubmissionStrategySchema: z.ZodObject<{
|
|
|
14
15
|
chain: string;
|
|
15
16
|
privateKey?: string | undefined;
|
|
16
17
|
userAddress?: string | undefined;
|
|
18
|
+
accountAddress?: string | undefined;
|
|
17
19
|
extraParams?: Record<string, string> | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
type: TxSubmitterType.JSON_RPC;
|
|
20
22
|
chain: string;
|
|
21
23
|
privateKey?: string | undefined;
|
|
22
24
|
userAddress?: string | undefined;
|
|
25
|
+
accountAddress?: string | undefined;
|
|
23
26
|
extraParams?: Record<string, string> | undefined;
|
|
24
27
|
}>, z.ZodObject<{
|
|
25
28
|
chain: z.ZodString;
|
|
29
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
26
30
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
27
31
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
32
|
userAddress: z.ZodString;
|
|
@@ -32,12 +36,14 @@ export declare const SubmissionStrategySchema: z.ZodObject<{
|
|
|
32
36
|
chain: string;
|
|
33
37
|
userAddress: string;
|
|
34
38
|
privateKey?: string | undefined;
|
|
39
|
+
accountAddress?: string | undefined;
|
|
35
40
|
extraParams?: Record<string, string> | undefined;
|
|
36
41
|
}, {
|
|
37
42
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
38
43
|
chain: string;
|
|
39
44
|
userAddress: string;
|
|
40
45
|
privateKey?: string | undefined;
|
|
46
|
+
accountAddress?: string | undefined;
|
|
41
47
|
extraParams?: Record<string, string> | undefined;
|
|
42
48
|
}>, z.ZodObject<{
|
|
43
49
|
chain: z.ZodString;
|
|
@@ -73,12 +79,14 @@ export declare const SubmissionStrategySchema: z.ZodObject<{
|
|
|
73
79
|
chain: string;
|
|
74
80
|
privateKey?: string | undefined;
|
|
75
81
|
userAddress?: string | undefined;
|
|
82
|
+
accountAddress?: string | undefined;
|
|
76
83
|
extraParams?: Record<string, string> | undefined;
|
|
77
84
|
} | {
|
|
78
85
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
79
86
|
chain: string;
|
|
80
87
|
userAddress: string;
|
|
81
88
|
privateKey?: string | undefined;
|
|
89
|
+
accountAddress?: string | undefined;
|
|
82
90
|
extraParams?: Record<string, string> | undefined;
|
|
83
91
|
} | {
|
|
84
92
|
type: TxSubmitterType.GNOSIS_SAFE;
|
|
@@ -96,12 +104,14 @@ export declare const SubmissionStrategySchema: z.ZodObject<{
|
|
|
96
104
|
chain: string;
|
|
97
105
|
privateKey?: string | undefined;
|
|
98
106
|
userAddress?: string | undefined;
|
|
107
|
+
accountAddress?: string | undefined;
|
|
99
108
|
extraParams?: Record<string, string> | undefined;
|
|
100
109
|
} | {
|
|
101
110
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
102
111
|
chain: string;
|
|
103
112
|
userAddress: string;
|
|
104
113
|
privateKey?: string | undefined;
|
|
114
|
+
accountAddress?: string | undefined;
|
|
105
115
|
extraParams?: Record<string, string> | undefined;
|
|
106
116
|
} | {
|
|
107
117
|
type: TxSubmitterType.GNOSIS_SAFE;
|
|
@@ -129,6 +139,7 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
129
139
|
submitter: z.ZodUnion<[z.ZodObject<{
|
|
130
140
|
chain: z.ZodString;
|
|
131
141
|
userAddress: z.ZodOptional<z.ZodString>;
|
|
142
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
132
143
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
133
144
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
134
145
|
type: z.ZodLiteral<TxSubmitterType.JSON_RPC>;
|
|
@@ -137,15 +148,18 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
137
148
|
chain: string;
|
|
138
149
|
privateKey?: string | undefined;
|
|
139
150
|
userAddress?: string | undefined;
|
|
151
|
+
accountAddress?: string | undefined;
|
|
140
152
|
extraParams?: Record<string, string> | undefined;
|
|
141
153
|
}, {
|
|
142
154
|
type: TxSubmitterType.JSON_RPC;
|
|
143
155
|
chain: string;
|
|
144
156
|
privateKey?: string | undefined;
|
|
145
157
|
userAddress?: string | undefined;
|
|
158
|
+
accountAddress?: string | undefined;
|
|
146
159
|
extraParams?: Record<string, string> | undefined;
|
|
147
160
|
}>, z.ZodObject<{
|
|
148
161
|
chain: z.ZodString;
|
|
162
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
149
163
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
150
164
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
165
|
userAddress: z.ZodString;
|
|
@@ -155,12 +169,14 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
155
169
|
chain: string;
|
|
156
170
|
userAddress: string;
|
|
157
171
|
privateKey?: string | undefined;
|
|
172
|
+
accountAddress?: string | undefined;
|
|
158
173
|
extraParams?: Record<string, string> | undefined;
|
|
159
174
|
}, {
|
|
160
175
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
161
176
|
chain: string;
|
|
162
177
|
userAddress: string;
|
|
163
178
|
privateKey?: string | undefined;
|
|
179
|
+
accountAddress?: string | undefined;
|
|
164
180
|
extraParams?: Record<string, string> | undefined;
|
|
165
181
|
}>, z.ZodObject<{
|
|
166
182
|
chain: z.ZodString;
|
|
@@ -196,12 +212,14 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
196
212
|
chain: string;
|
|
197
213
|
privateKey?: string | undefined;
|
|
198
214
|
userAddress?: string | undefined;
|
|
215
|
+
accountAddress?: string | undefined;
|
|
199
216
|
extraParams?: Record<string, string> | undefined;
|
|
200
217
|
} | {
|
|
201
218
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
202
219
|
chain: string;
|
|
203
220
|
userAddress: string;
|
|
204
221
|
privateKey?: string | undefined;
|
|
222
|
+
accountAddress?: string | undefined;
|
|
205
223
|
extraParams?: Record<string, string> | undefined;
|
|
206
224
|
} | {
|
|
207
225
|
type: TxSubmitterType.GNOSIS_SAFE;
|
|
@@ -219,12 +237,14 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
219
237
|
chain: string;
|
|
220
238
|
privateKey?: string | undefined;
|
|
221
239
|
userAddress?: string | undefined;
|
|
240
|
+
accountAddress?: string | undefined;
|
|
222
241
|
extraParams?: Record<string, string> | undefined;
|
|
223
242
|
} | {
|
|
224
243
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
225
244
|
chain: string;
|
|
226
245
|
userAddress: string;
|
|
227
246
|
privateKey?: string | undefined;
|
|
247
|
+
accountAddress?: string | undefined;
|
|
228
248
|
extraParams?: Record<string, string> | undefined;
|
|
229
249
|
} | {
|
|
230
250
|
type: TxSubmitterType.GNOSIS_SAFE;
|
|
@@ -242,12 +262,14 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
242
262
|
chain: string;
|
|
243
263
|
privateKey?: string | undefined;
|
|
244
264
|
userAddress?: string | undefined;
|
|
265
|
+
accountAddress?: string | undefined;
|
|
245
266
|
extraParams?: Record<string, string> | undefined;
|
|
246
267
|
} | {
|
|
247
268
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
248
269
|
chain: string;
|
|
249
270
|
userAddress: string;
|
|
250
271
|
privateKey?: string | undefined;
|
|
272
|
+
accountAddress?: string | undefined;
|
|
251
273
|
extraParams?: Record<string, string> | undefined;
|
|
252
274
|
} | {
|
|
253
275
|
type: TxSubmitterType.GNOSIS_SAFE;
|
|
@@ -265,12 +287,14 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
265
287
|
chain: string;
|
|
266
288
|
privateKey?: string | undefined;
|
|
267
289
|
userAddress?: string | undefined;
|
|
290
|
+
accountAddress?: string | undefined;
|
|
268
291
|
extraParams?: Record<string, string> | undefined;
|
|
269
292
|
} | {
|
|
270
293
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
271
294
|
chain: string;
|
|
272
295
|
userAddress: string;
|
|
273
296
|
privateKey?: string | undefined;
|
|
297
|
+
accountAddress?: string | undefined;
|
|
274
298
|
extraParams?: Record<string, string> | undefined;
|
|
275
299
|
} | {
|
|
276
300
|
type: TxSubmitterType.GNOSIS_SAFE;
|
|
@@ -288,12 +312,14 @@ export declare const ChainSubmissionStrategySchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
288
312
|
chain: string;
|
|
289
313
|
privateKey?: string | undefined;
|
|
290
314
|
userAddress?: string | undefined;
|
|
315
|
+
accountAddress?: string | undefined;
|
|
291
316
|
extraParams?: Record<string, string> | undefined;
|
|
292
317
|
} | {
|
|
293
318
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
294
319
|
chain: string;
|
|
295
320
|
userAddress: string;
|
|
296
321
|
privateKey?: string | undefined;
|
|
322
|
+
accountAddress?: string | undefined;
|
|
297
323
|
extraParams?: Record<string, string> | undefined;
|
|
298
324
|
} | {
|
|
299
325
|
type: TxSubmitterType.GNOSIS_SAFE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/providers/transactions/submitter/builder/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/providers/transactions/submitter/builder/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EA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ZodOptional<z.ZodString>;
|
|
33
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
33
34
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
34
35
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
36
37
|
chain: string;
|
|
37
38
|
privateKey?: string | undefined;
|
|
38
39
|
userAddress?: string | undefined;
|
|
40
|
+
accountAddress?: string | undefined;
|
|
39
41
|
extraParams?: Record<string, string> | undefined;
|
|
40
42
|
}, {
|
|
41
43
|
chain: string;
|
|
42
44
|
privateKey?: string | undefined;
|
|
43
45
|
userAddress?: string | undefined;
|
|
46
|
+
accountAddress?: string | undefined;
|
|
44
47
|
extraParams?: Record<string, string> | undefined;
|
|
45
48
|
}>;
|
|
46
49
|
export type EV5JsonRpcTxSubmitterProps = z.infer<typeof EV5JsonRpcTxSubmitterPropsSchema>;
|
|
@@ -48,10 +51,12 @@ export declare const isJsonRpcSubmitterConfig: (config: unknown) => config is {
|
|
|
48
51
|
chain: string;
|
|
49
52
|
privateKey?: string | undefined;
|
|
50
53
|
userAddress?: string | undefined;
|
|
54
|
+
accountAddress?: string | undefined;
|
|
51
55
|
extraParams?: Record<string, string> | undefined;
|
|
52
56
|
};
|
|
53
57
|
export declare const EV5ImpersonatedAccountTxSubmitterPropsSchema: z.ZodObject<{
|
|
54
58
|
chain: z.ZodString;
|
|
59
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
55
60
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
56
61
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
57
62
|
} & {
|
|
@@ -60,11 +65,13 @@ export declare const EV5ImpersonatedAccountTxSubmitterPropsSchema: z.ZodObject<{
|
|
|
60
65
|
chain: string;
|
|
61
66
|
userAddress: string;
|
|
62
67
|
privateKey?: string | undefined;
|
|
68
|
+
accountAddress?: string | undefined;
|
|
63
69
|
extraParams?: Record<string, string> | undefined;
|
|
64
70
|
}, {
|
|
65
71
|
chain: string;
|
|
66
72
|
userAddress: string;
|
|
67
73
|
privateKey?: string | undefined;
|
|
74
|
+
accountAddress?: string | undefined;
|
|
68
75
|
extraParams?: Record<string, string> | undefined;
|
|
69
76
|
}>;
|
|
70
77
|
export type EV5ImpersonatedAccountTxSubmitterProps = z.infer<typeof EV5ImpersonatedAccountTxSubmitterPropsSchema>;
|
|
@@ -92,6 +99,7 @@ export declare const EvmTimelockControllerSubmitterPropsSchema: z.ZodSchema<EvmT
|
|
|
92
99
|
export declare const EvmSubmitterMetadataSchema: z.ZodUnion<[z.ZodObject<{
|
|
93
100
|
chain: z.ZodString;
|
|
94
101
|
userAddress: z.ZodOptional<z.ZodString>;
|
|
102
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
95
103
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
96
104
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
97
105
|
type: z.ZodLiteral<TxSubmitterType.JSON_RPC>;
|
|
@@ -100,15 +108,18 @@ export declare const EvmSubmitterMetadataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
100
108
|
chain: string;
|
|
101
109
|
privateKey?: string | undefined;
|
|
102
110
|
userAddress?: string | undefined;
|
|
111
|
+
accountAddress?: string | undefined;
|
|
103
112
|
extraParams?: Record<string, string> | undefined;
|
|
104
113
|
}, {
|
|
105
114
|
type: TxSubmitterType.JSON_RPC;
|
|
106
115
|
chain: string;
|
|
107
116
|
privateKey?: string | undefined;
|
|
108
117
|
userAddress?: string | undefined;
|
|
118
|
+
accountAddress?: string | undefined;
|
|
109
119
|
extraParams?: Record<string, string> | undefined;
|
|
110
120
|
}>, z.ZodObject<{
|
|
111
121
|
chain: z.ZodString;
|
|
122
|
+
accountAddress: z.ZodOptional<z.ZodString>;
|
|
112
123
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
113
124
|
extraParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
114
125
|
userAddress: z.ZodString;
|
|
@@ -118,12 +129,14 @@ export declare const EvmSubmitterMetadataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
118
129
|
chain: string;
|
|
119
130
|
userAddress: string;
|
|
120
131
|
privateKey?: string | undefined;
|
|
132
|
+
accountAddress?: string | undefined;
|
|
121
133
|
extraParams?: Record<string, string> | undefined;
|
|
122
134
|
}, {
|
|
123
135
|
type: TxSubmitterType.IMPERSONATED_ACCOUNT;
|
|
124
136
|
chain: string;
|
|
125
137
|
userAddress: string;
|
|
126
138
|
privateKey?: string | undefined;
|
|
139
|
+
accountAddress?: string | undefined;
|
|
127
140
|
extraParams?: Record<string, string> | undefined;
|
|
128
141
|
}>, z.ZodObject<{
|
|
129
142
|
chain: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/providers/transactions/submitter/ethersV5/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAQ/C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,eAAO,MAAM,mCAAmC;;;;;;;;;EAG9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAI5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/providers/transactions/submitter/ethersV5/types.ts"],"names":[],"mappings":"A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M,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,eAAe,CAAC,mBAAmB,CAAC;IAC1C,KAAK,EAAE,SAAS,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,oBAAoB,CAAC;CACzC,CAAC;AAGF,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,SAAS,CAAC,mCAAmC,CAWpG,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gLAmBrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -14,6 +14,7 @@ export const EV5GnosisSafeTxBuilderPropsSchema = z.object({
|
|
|
14
14
|
export const EV5JsonRpcTxSubmitterPropsSchema = z.object({
|
|
15
15
|
chain: ZChainName,
|
|
16
16
|
userAddress: ZHash.optional(),
|
|
17
|
+
accountAddress: ZHash.optional(),
|
|
17
18
|
privateKey: ZHash.optional(),
|
|
18
19
|
extraParams: z.record(z.string(), z.string()).optional(),
|
|
19
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/providers/transactions/submitter/ethersV5/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EACL,aAAa,EACb,cAAc,EACd,UAAU,EACV,KAAK,GACN,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,CAAC,MAAM,mCAAm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