@mixerx/config 0.5.2 → 1.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/README.md +35 -19
- package/dist/assertions.d.ts +2 -34
- package/dist/assertions.js +196 -195
- package/dist/assertions.js.map +1 -1
- package/dist/check-shape.d.ts +0 -1
- package/dist/check-shape.js +2 -5
- package/dist/check-shape.js.map +1 -1
- package/dist/config.d.ts +5 -70
- package/dist/config.js +85 -342
- package/dist/config.js.map +1 -1
- package/dist/guards.d.ts +1 -2
- package/dist/guards.js +1 -1
- package/dist/guards.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +12 -41
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +55 -146
- package/dist/types.js +3 -2
- package/dist/types.js.map +1 -1
- package/package.json +27 -12
- package/dist/assertions.d.ts.map +0 -1
- package/dist/check-shape.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/guards.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -13,49 +13,20 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
17
|
+
exports.isSupportedNetId = exports.networkConfigByNetId = exports.instances = exports.getNetworkConfig = exports.getInstancesForNetId = exports.config = exports.assertValidConfigShape = void 0;
|
|
18
|
+
const assertions_js_1 = require("./assertions.js");
|
|
19
|
+
const config_js_1 = require("./config.js");
|
|
20
|
+
(0, assertions_js_1.assertValidConfigShape)(config_js_1.config);
|
|
21
21
|
__exportStar(require("./types.js"), exports);
|
|
22
|
-
var
|
|
23
|
-
Object.defineProperty(exports, "
|
|
24
|
-
|
|
25
|
-
Object.defineProperty(exports, "
|
|
26
|
-
Object.defineProperty(exports, "
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
-
Object.defineProperty(exports, "
|
|
29
|
-
Object.defineProperty(exports, "
|
|
30
|
-
Object.defineProperty(exports, "tornadoTrees", { enumerable: true, get: function () { return config_js_1.tornadoTrees; } });
|
|
31
|
-
Object.defineProperty(exports, "governance", { enumerable: true, get: function () { return config_js_1.governance; } });
|
|
32
|
-
Object.defineProperty(exports, "governanceImpl", { enumerable: true, get: function () { return config_js_1.governanceImpl; } });
|
|
33
|
-
Object.defineProperty(exports, "tornadoProxy", { enumerable: true, get: function () { return config_js_1.tornadoProxy; } });
|
|
34
|
-
Object.defineProperty(exports, "tornadoProxyLight", { enumerable: true, get: function () { return config_js_1.tornadoProxyLight; } });
|
|
35
|
-
Object.defineProperty(exports, "rewardVerifier", { enumerable: true, get: function () { return config_js_1.rewardVerifier; } });
|
|
36
|
-
Object.defineProperty(exports, "treeUpdateVerifier", { enumerable: true, get: function () { return config_js_1.treeUpdateVerifier; } });
|
|
37
|
-
Object.defineProperty(exports, "withdrawVerifier", { enumerable: true, get: function () { return config_js_1.withdrawVerifier; } });
|
|
38
|
-
Object.defineProperty(exports, "poseidonHasher2", { enumerable: true, get: function () { return config_js_1.poseidonHasher2; } });
|
|
39
|
-
Object.defineProperty(exports, "poseidonHasher3", { enumerable: true, get: function () { return config_js_1.poseidonHasher3; } });
|
|
40
|
-
Object.defineProperty(exports, "feeManager", { enumerable: true, get: function () { return config_js_1.feeManager; } });
|
|
41
|
-
Object.defineProperty(exports, "tornadoStakingRewards", { enumerable: true, get: function () { return config_js_1.tornadoStakingRewards; } });
|
|
42
|
-
Object.defineProperty(exports, "relayerRegistry", { enumerable: true, get: function () { return config_js_1.relayerRegistry; } });
|
|
43
|
-
Object.defineProperty(exports, "tornadoRouter", { enumerable: true, get: function () { return config_js_1.tornadoRouter; } });
|
|
44
|
-
Object.defineProperty(exports, "mixerXRouter", { enumerable: true, get: function () { return config_js_1.mixerXRouter; } });
|
|
45
|
-
Object.defineProperty(exports, "instanceRegistry", { enumerable: true, get: function () { return config_js_1.instanceRegistry; } });
|
|
46
|
-
Object.defineProperty(exports, "deployer", { enumerable: true, get: function () { return config_js_1.deployer; } });
|
|
47
|
-
Object.defineProperty(exports, "relayerRegistryProxy", { enumerable: true, get: function () { return config_js_1.relayerRegistryProxy; } });
|
|
48
|
-
Object.defineProperty(exports, "aggregator", { enumerable: true, get: function () { return config_js_1.aggregator; } });
|
|
49
|
-
Object.defineProperty(exports, "offchainOracle", { enumerable: true, get: function () { return config_js_1.offchainOracle; } });
|
|
50
|
-
Object.defineProperty(exports, "governanceProxy", { enumerable: true, get: function () { return config_js_1.governanceProxy; } });
|
|
51
|
-
Object.defineProperty(exports, "tornadoProxyMainnet", { enumerable: true, get: function () { return config_js_1.tornadoProxyMainnet; } });
|
|
52
|
-
Object.defineProperty(exports, "mixerxToken", { enumerable: true, get: function () { return config_js_1.mixerxToken; } });
|
|
53
|
-
Object.defineProperty(exports, "wrappedStablecoin", { enumerable: true, get: function () { return config_js_1.wrappedStablecoin; } });
|
|
54
|
-
Object.defineProperty(exports, "networkConfigByNetId", { enumerable: true, get: function () { return config_js_1.networkConfigByNetId; } });
|
|
55
|
-
Object.defineProperty(exports, "getNetworkConfig", { enumerable: true, get: function () { return config_js_1.getNetworkConfig; } });
|
|
56
|
-
Object.defineProperty(exports, "getInstancesForNetId", { enumerable: true, get: function () { return config_js_1.getInstancesForNetId; } });
|
|
22
|
+
var assertions_js_2 = require("./assertions.js");
|
|
23
|
+
Object.defineProperty(exports, "assertValidConfigShape", { enumerable: true, get: function () { return assertions_js_2.assertValidConfigShape; } });
|
|
24
|
+
var config_js_2 = require("./config.js");
|
|
25
|
+
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return config_js_2.config; } });
|
|
26
|
+
Object.defineProperty(exports, "getInstancesForNetId", { enumerable: true, get: function () { return config_js_2.getInstancesForNetId; } });
|
|
27
|
+
Object.defineProperty(exports, "getNetworkConfig", { enumerable: true, get: function () { return config_js_2.getNetworkConfig; } });
|
|
28
|
+
Object.defineProperty(exports, "instances", { enumerable: true, get: function () { return config_js_2.instances; } });
|
|
29
|
+
Object.defineProperty(exports, "networkConfigByNetId", { enumerable: true, get: function () { return config_js_2.networkConfigByNetId; } });
|
|
57
30
|
var guards_js_1 = require("./guards.js");
|
|
58
31
|
Object.defineProperty(exports, "isSupportedNetId", { enumerable: true, get: function () { return guards_js_1.isSupportedNetId; } });
|
|
59
|
-
var assertions_js_1 = require("./assertions.js");
|
|
60
|
-
Object.defineProperty(exports, "assertValidConfigShape", { enumerable: true, get: function () { return assertions_js_1.assertValidConfigShape; } });
|
|
61
32
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mDAAyD;AACzD,2CAAqC;AAErC,IAAA,sCAAsB,EAAC,kBAAM,CAAC,CAAC;AAE/B,6CAA2B;AAC3B,iDAAyD;AAAhD,uHAAA,sBAAsB,OAAA;AAC/B,yCAMqB;AALnB,mGAAA,MAAM,OAAA;AACN,iHAAA,oBAAoB,OAAA;AACpB,6GAAA,gBAAgB,OAAA;AAChB,sGAAA,SAAS,OAAA;AACT,iHAAA,oBAAoB,OAAA;AAEtB,yCAA+C;AAAtC,6GAAA,gBAAgB,OAAA","sourcesContent":["import { assertValidConfigShape } from './assertions.js';\r\nimport { config } from './config.js';\r\n\r\nassertValidConfigShape(config);\r\n\r\nexport * from './types.js';\r\nexport { assertValidConfigShape } from './assertions.js';\r\nexport {\r\n config,\r\n getInstancesForNetId,\r\n getNetworkConfig,\r\n instances,\r\n networkConfigByNetId,\r\n} from './config.js';\r\nexport { isSupportedNetId } from './guards.js';\r\n"]}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,157 +1,66 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const SEPOLIA_NET_ID: 11155111;
|
|
2
|
+
export declare const SUPPORTED_NET_IDS: readonly [11155111];
|
|
2
3
|
export type availableIds = (typeof SUPPORTED_NET_IDS)[number];
|
|
3
4
|
export type AvailableId = availableIds;
|
|
4
|
-
export type
|
|
5
|
-
address: string;
|
|
6
|
-
};
|
|
7
|
-
export type TokenConfig = {
|
|
8
|
-
address: string;
|
|
9
|
-
symbol: string;
|
|
10
|
-
decimals: number;
|
|
11
|
-
};
|
|
5
|
+
export type EvmAddress = `0x${string}`;
|
|
12
6
|
export type PoolKind = 'fixed' | 'custom';
|
|
13
7
|
export type PoolAssetType = 'native' | 'erc20';
|
|
14
|
-
export type
|
|
15
|
-
export type Torn = {
|
|
16
|
-
address: string;
|
|
17
|
-
capitalization: string;
|
|
18
|
-
pausePeriod: number;
|
|
19
|
-
distribution: {
|
|
20
|
-
airdrop: {
|
|
21
|
-
to: string;
|
|
22
|
-
amount: string;
|
|
23
|
-
};
|
|
24
|
-
miningV2: {
|
|
25
|
-
to: string;
|
|
26
|
-
amount: string;
|
|
27
|
-
};
|
|
28
|
-
governance: {
|
|
29
|
-
to: string;
|
|
30
|
-
amount: string;
|
|
31
|
-
};
|
|
32
|
-
team1: {
|
|
33
|
-
to: string;
|
|
34
|
-
amount: string;
|
|
35
|
-
};
|
|
36
|
-
team2: {
|
|
37
|
-
to: string;
|
|
38
|
-
amount: string;
|
|
39
|
-
};
|
|
40
|
-
team3: {
|
|
41
|
-
to: string;
|
|
42
|
-
amount: string;
|
|
43
|
-
};
|
|
44
|
-
team4: {
|
|
45
|
-
to: string;
|
|
46
|
-
amount: string;
|
|
47
|
-
};
|
|
48
|
-
team5: {
|
|
49
|
-
to: string;
|
|
50
|
-
amount: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export type Mining = {
|
|
55
|
-
address: string;
|
|
56
|
-
initialBalance: string;
|
|
57
|
-
rates: Array<{
|
|
58
|
-
instance: string;
|
|
59
|
-
value: string;
|
|
60
|
-
}>;
|
|
61
|
-
};
|
|
62
|
-
export type VestingInfo = {
|
|
63
|
-
address: string;
|
|
64
|
-
cliff: number;
|
|
65
|
-
duration: number;
|
|
66
|
-
beneficiary?: string;
|
|
67
|
-
};
|
|
68
|
-
export type Vesting = {
|
|
69
|
-
team1: VestingInfo;
|
|
70
|
-
team2: VestingInfo;
|
|
71
|
-
team3: VestingInfo;
|
|
72
|
-
team4: VestingInfo;
|
|
73
|
-
team5: VestingInfo;
|
|
74
|
-
governance: VestingInfo;
|
|
75
|
-
};
|
|
76
|
-
export type Voucher = {
|
|
77
|
-
address: string;
|
|
78
|
-
duration: number;
|
|
79
|
-
};
|
|
80
|
-
export type RewardSwap = {
|
|
81
|
-
address: string;
|
|
82
|
-
poolWeight: number;
|
|
83
|
-
};
|
|
84
|
-
export type TornadoTrees = {
|
|
85
|
-
address: string;
|
|
86
|
-
levels: number;
|
|
87
|
-
};
|
|
88
|
-
type InstanceCurrencyBase = {
|
|
89
|
-
instanceAddress: Record<number | string, string | undefined>;
|
|
90
|
-
deploymentBlock?: DeploymentBlockMap;
|
|
91
|
-
symbol: string;
|
|
92
|
-
decimals: number;
|
|
93
|
-
};
|
|
94
|
-
export type NativeInstanceCurrency = InstanceCurrencyBase & {
|
|
8
|
+
export type NativeInstanceCurrency = Readonly<{
|
|
95
9
|
assetType: 'native';
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
10
|
+
decimals: number;
|
|
11
|
+
denominations: readonly string[];
|
|
12
|
+
deploymentBlock: Readonly<Record<string, number>>;
|
|
13
|
+
instanceAddress: Readonly<Record<string, EvmAddress>>;
|
|
14
|
+
symbol: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type Erc20InstanceCurrency = Readonly<{
|
|
99
17
|
assetType: 'erc20';
|
|
100
|
-
|
|
101
|
-
|
|
18
|
+
decimals: number;
|
|
19
|
+
denominations: readonly string[];
|
|
20
|
+
deploymentBlock: Readonly<Record<string, number>>;
|
|
21
|
+
instanceAddress: Readonly<Record<string, EvmAddress>>;
|
|
22
|
+
symbol: string;
|
|
23
|
+
tokenAddress: EvmAddress;
|
|
24
|
+
}>;
|
|
102
25
|
export type InstanceCurrency = NativeInstanceCurrency | Erc20InstanceCurrency;
|
|
103
|
-
export type Instances = Partial<Record<availableIds, Record<string, InstanceCurrency>>>;
|
|
104
26
|
export type CurrencyConfig = InstanceCurrency;
|
|
105
|
-
export type
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
feeManager
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
relayerRegistry?: string;
|
|
134
|
-
rewardSwap?: string;
|
|
135
|
-
rewardVerifier?: string;
|
|
136
|
-
tornadoRouter?: string;
|
|
137
|
-
tornadoProxy?: string;
|
|
138
|
-
tornadoProxyLight?: string;
|
|
139
|
-
tornadoStakingRewards?: string;
|
|
140
|
-
tornadoTrees?: string;
|
|
141
|
-
treeUpdateVerifier?: string;
|
|
142
|
-
verifier?: string;
|
|
143
|
-
voucher?: string;
|
|
144
|
-
withdrawVerifier?: string;
|
|
145
|
-
};
|
|
146
|
-
export type NetworkTokensConfig = {
|
|
147
|
-
mixerXTokenAddress: string;
|
|
148
|
-
mixerXTokenSymbol: string;
|
|
27
|
+
export type Instances = Readonly<Partial<Record<availableIds, Readonly<Record<string, InstanceCurrency>>>>>;
|
|
28
|
+
export type NetworkContractsConfig = Readonly<{
|
|
29
|
+
aggregator: EvmAddress;
|
|
30
|
+
config: EvmAddress;
|
|
31
|
+
erc20PoolFactory: EvmAddress;
|
|
32
|
+
erc20PoolFactoryDeploymentBlock: number;
|
|
33
|
+
ensRegistryAddress: EvmAddress;
|
|
34
|
+
ensRegistryDeploymentBlock: number;
|
|
35
|
+
ethPoolFactory: EvmAddress;
|
|
36
|
+
ethPoolFactoryDeploymentBlock: number;
|
|
37
|
+
fds: EvmAddress;
|
|
38
|
+
feeManager: EvmAddress;
|
|
39
|
+
hasher: EvmAddress;
|
|
40
|
+
huffVerifier: EvmAddress;
|
|
41
|
+
instanceRegistry: EvmAddress;
|
|
42
|
+
instanceRegistryDeploymentBlock: number;
|
|
43
|
+
mixerXRouter: EvmAddress;
|
|
44
|
+
noteBackup: EvmAddress;
|
|
45
|
+
offchainOracleAddress: EvmAddress;
|
|
46
|
+
pauser: EvmAddress;
|
|
47
|
+
relayerRegistry: EvmAddress;
|
|
48
|
+
relayerRegistryAddress: EvmAddress;
|
|
49
|
+
relayerRegistryDeploymentBlock: number;
|
|
50
|
+
roles: EvmAddress;
|
|
51
|
+
verifier: EvmAddress;
|
|
52
|
+
}>;
|
|
53
|
+
export type NetworkTokensConfig = Readonly<{
|
|
54
|
+
mixerXTokenAddress: EvmAddress;
|
|
149
55
|
mixerXTokenDecimals: number;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
56
|
+
mixerXTokenSymbol: string;
|
|
57
|
+
wrappedStablecoinAddress: EvmAddress;
|
|
58
|
+
}>;
|
|
59
|
+
export type NetworkConfig = Readonly<{
|
|
153
60
|
contracts: NetworkContractsConfig;
|
|
154
61
|
tokens: NetworkTokensConfig;
|
|
155
|
-
}
|
|
156
|
-
export {
|
|
157
|
-
|
|
62
|
+
}>;
|
|
63
|
+
export type MixerXConfig = Readonly<{
|
|
64
|
+
instances: Instances;
|
|
65
|
+
networkConfigByNetId: Readonly<Partial<Record<availableIds, NetworkConfig>>>;
|
|
66
|
+
}>;
|
package/dist/types.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SUPPORTED_NET_IDS = void 0;
|
|
4
|
-
exports.
|
|
3
|
+
exports.SUPPORTED_NET_IDS = exports.SEPOLIA_NET_ID = void 0;
|
|
4
|
+
exports.SEPOLIA_NET_ID = 11_155_111;
|
|
5
|
+
exports.SUPPORTED_NET_IDS = Object.freeze([exports.SEPOLIA_NET_ID]);
|
|
5
6
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,UAAmB,CAAC;AACrC,QAAA,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,sBAAc,CAAU,CAAC,CAAC","sourcesContent":["export const SEPOLIA_NET_ID = 11_155_111 as const;\r\nexport const SUPPORTED_NET_IDS = Object.freeze([SEPOLIA_NET_ID] as const);\r\n\r\nexport type availableIds = (typeof SUPPORTED_NET_IDS)[number];\r\nexport type AvailableId = availableIds;\r\nexport type EvmAddress = `0x${string}`;\r\nexport type PoolKind = 'fixed' | 'custom';\r\nexport type PoolAssetType = 'native' | 'erc20';\r\n\r\nexport type NativeInstanceCurrency = Readonly<{\r\n assetType: 'native';\r\n decimals: number;\r\n denominations: readonly string[];\r\n deploymentBlock: Readonly<Record<string, number>>;\r\n instanceAddress: Readonly<Record<string, EvmAddress>>;\r\n symbol: string;\r\n}>;\r\n\r\nexport type Erc20InstanceCurrency = Readonly<{\r\n assetType: 'erc20';\r\n decimals: number;\r\n denominations: readonly string[];\r\n deploymentBlock: Readonly<Record<string, number>>;\r\n instanceAddress: Readonly<Record<string, EvmAddress>>;\r\n symbol: string;\r\n tokenAddress: EvmAddress;\r\n}>;\r\n\r\nexport type InstanceCurrency = NativeInstanceCurrency | Erc20InstanceCurrency;\r\nexport type CurrencyConfig = InstanceCurrency;\r\nexport type Instances = Readonly<Partial<Record<availableIds, Readonly<Record<string, InstanceCurrency>>>>>;\r\n\r\nexport type NetworkContractsConfig = Readonly<{\r\n aggregator: EvmAddress;\r\n config: EvmAddress;\r\n erc20PoolFactory: EvmAddress;\r\n erc20PoolFactoryDeploymentBlock: number;\r\n ensRegistryAddress: EvmAddress;\r\n ensRegistryDeploymentBlock: number;\r\n ethPoolFactory: EvmAddress;\r\n ethPoolFactoryDeploymentBlock: number;\r\n fds: EvmAddress;\r\n feeManager: EvmAddress;\r\n hasher: EvmAddress;\r\n huffVerifier: EvmAddress;\r\n instanceRegistry: EvmAddress;\r\n instanceRegistryDeploymentBlock: number;\r\n mixerXRouter: EvmAddress;\r\n noteBackup: EvmAddress;\r\n offchainOracleAddress: EvmAddress;\r\n pauser: EvmAddress;\r\n relayerRegistry: EvmAddress;\r\n relayerRegistryAddress: EvmAddress;\r\n relayerRegistryDeploymentBlock: number;\r\n roles: EvmAddress;\r\n verifier: EvmAddress;\r\n}>;\r\n\r\nexport type NetworkTokensConfig = Readonly<{\r\n mixerXTokenAddress: EvmAddress;\r\n mixerXTokenDecimals: number;\r\n mixerXTokenSymbol: string;\r\n wrappedStablecoinAddress: EvmAddress;\r\n}>;\r\n\r\nexport type NetworkConfig = Readonly<{\r\n contracts: NetworkContractsConfig;\r\n tokens: NetworkTokensConfig;\r\n}>;\r\n\r\nexport type MixerXConfig = Readonly<{\r\n instances: Instances;\r\n networkConfigByNetId: Readonly<Partial<Record<availableIds, NetworkConfig>>>;\r\n}>;\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mixerx/config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"license": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Validated, immutable Sepolia contract and pool configuration for MixerX",
|
|
5
|
+
"license": "GPL-3.0-only",
|
|
6
|
+
"packageManager": "yarn@4.12.0",
|
|
6
7
|
"type": "commonjs",
|
|
7
8
|
"main": "dist/index.js",
|
|
8
9
|
"types": "dist/index.d.ts",
|
|
9
|
-
"sideEffects":
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"./dist/index.js",
|
|
12
|
+
"./dist/check-shape.js"
|
|
13
|
+
],
|
|
10
14
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
15
|
+
"node": ">=24.12.0"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/zkusd-mixerx/mixerx-config.git"
|
|
12
20
|
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mixerx",
|
|
23
|
+
"sepolia",
|
|
24
|
+
"ethereum",
|
|
25
|
+
"configuration"
|
|
26
|
+
],
|
|
13
27
|
"exports": {
|
|
14
28
|
".": {
|
|
15
29
|
"types": "./dist/index.d.ts",
|
|
@@ -19,14 +33,15 @@
|
|
|
19
33
|
"files": [
|
|
20
34
|
"dist"
|
|
21
35
|
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "yarn build && node --test tests/*.test.mjs",
|
|
24
|
-
"build": "tsc -p tsconfig.json",
|
|
25
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
26
|
-
"check:shape": "node dist/check-shape.js"
|
|
27
|
-
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "yarn build && yarn check:shape && node --test tests/*.test.mjs",
|
|
38
|
+
"build": "tsc -p tsconfig.json",
|
|
39
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
40
|
+
"check:shape": "node dist/check-shape.js",
|
|
41
|
+
"prepack": "yarn test"
|
|
42
|
+
},
|
|
28
43
|
"devDependencies": {
|
|
29
|
-
"@types/node": "^
|
|
44
|
+
"@types/node": "^24.0.0",
|
|
30
45
|
"typescript": "^5.3.0"
|
|
31
46
|
}
|
|
32
47
|
}
|
package/dist/assertions.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["../src/assertions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAEP,SAAS,EACT,MAAM,EACN,aAAa,EAEb,UAAU,EACV,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAiOpB,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;CAC9D,GAAG,IAAI,CAqCP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-shape.d.ts","sourceRoot":"","sources":["../src/check-shape.ts"],"names":[],"mappings":""}
|
package/dist/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,MAAM,EACN,aAAa,EAEb,UAAU,EACV,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,YAAY,EACb,MAAM,YAAY,CAAC;AAoBpB,eAAO,MAAM,IAAI,EAAE,IAclB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAStB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,OAoCrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,SAiHvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,CA8D7E,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,CAE/E;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,SAAS,CAEtG;AAqBD,eAAO,MAAM,O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
|
package/dist/guards.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../src/guards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAErE"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,UAAU,EACV,YAAY,EACZ,UAAU,EACV,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,wBAAyB,CAAC;AAExD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9D,MAAM,MAAM,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