@proton/wrap-constants 0.2.21 → 0.2.24
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/coins.d.ts +4 -2
- package/dist/parsers/index.d.ts +1 -0
- package/dist/parsers/login.d.ts +892 -0
- package/dist/wrap-constants.cjs.development.js +12 -4
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +12 -5
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +7 -5
- package/src/parsers/index.ts +2 -1
- package/src/parsers/login.ts +9 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.24",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"resolutions": {
|
|
45
45
|
"typescript": "4.5"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "35a911e6bb4063bf75af92dd40fa93bb2484f9cd"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
|
@@ -28,7 +28,8 @@ export enum Chains {
|
|
|
28
28
|
TerraMainnet = 'Terra',
|
|
29
29
|
RippleMainnet = 'Ripple',
|
|
30
30
|
SolanaMainnet = 'Solana',
|
|
31
|
-
MetalXTestnet = 'Metal X-Chain (Testnet)'
|
|
31
|
+
MetalXTestnet = 'Metal X-Chain (Testnet)',
|
|
32
|
+
MetalCTestnet = 'Metal C-Chain (Testnet)'
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export enum Networks {
|
|
@@ -39,6 +40,7 @@ export enum Networks {
|
|
|
39
40
|
BEP20 = 'bep20',
|
|
40
41
|
XLM = 'xlm',
|
|
41
42
|
AVM = 'avm',
|
|
43
|
+
EVM = 'evm',
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export const similarChains = {
|
|
@@ -273,12 +275,12 @@ export const initializeCoins = (protonChain: string): {
|
|
|
273
275
|
...(IS_TESTNET ? [{
|
|
274
276
|
wallet: 'METAL',
|
|
275
277
|
symbol: 'METAL',
|
|
276
|
-
chain: Chains.
|
|
277
|
-
network: Networks.
|
|
278
|
-
precision:
|
|
278
|
+
chain: Chains.MetalCTestnet,
|
|
279
|
+
network: Networks.EVM,
|
|
280
|
+
precision: 18,
|
|
279
281
|
contract: '',
|
|
280
282
|
provider: Providers.METAL,
|
|
281
|
-
hasWithdrawMemo:
|
|
283
|
+
hasWithdrawMemo: false
|
|
282
284
|
}]: [])
|
|
283
285
|
],
|
|
284
286
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
|
package/src/parsers/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "nestjs-zod/z"
|
|
2
|
+
import { generateAuthParser } from "./auth"
|
|
3
|
+
|
|
4
|
+
export const loginAccountParamsV3Parser = z.object({
|
|
5
|
+
email: z.string().optional(),
|
|
6
|
+
verificationCode: z.string().optional(),
|
|
7
|
+
}).merge(generateAuthParser)
|
|
8
|
+
|
|
9
|
+
export type LoginAccountParamsV3 = z.infer<typeof loginAccountParamsV3Parser>
|