@getpara/shared 1.0.0 → 1.0.2

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/cjs/index.js CHANGED
@@ -14,5 +14,5 @@ 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
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- __exportStar(require("./utils"), exports);
17
+ __exportStar(require("./types/index.js"), exports);
18
+ __exportStar(require("./utils/index.js"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OnRampPurchaseStatus = exports.OnRampPurchaseType = exports.ON_RAMP_ASSETS = exports.OnRampAsset = exports.OnRampProvider = void 0;
3
+ exports.OnRampMethod = exports.OnRampPurchaseStatus = exports.OnRampPurchaseType = exports.ON_RAMP_ASSETS = exports.OnRampAsset = exports.OnRampProvider = void 0;
4
4
  var OnRampProvider;
5
5
  (function (OnRampProvider) {
6
6
  OnRampProvider["RAMP"] = "RAMP";
@@ -46,3 +46,10 @@ var OnRampPurchaseStatus;
46
46
  OnRampPurchaseStatus["FINISHED"] = "FINISHED";
47
47
  OnRampPurchaseStatus["CANCELLED"] = "CANCELLED";
48
48
  })(OnRampPurchaseStatus || (exports.OnRampPurchaseStatus = OnRampPurchaseStatus = {}));
49
+ var OnRampMethod;
50
+ (function (OnRampMethod) {
51
+ OnRampMethod["ACH"] = "ACH";
52
+ OnRampMethod["DEBIT"] = "Debit";
53
+ OnRampMethod["CREDIT"] = "Credit";
54
+ OnRampMethod["APPLE_PAY"] = "Apple Pay";
55
+ })(OnRampMethod || (exports.OnRampMethod = OnRampMethod = {}));
@@ -14,9 +14,9 @@ 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
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./assets"), exports);
18
- __exportStar(require("./auth"), exports);
19
- __exportStar(require("./params"), exports);
20
- __exportStar(require("./partner"), exports);
21
- __exportStar(require("./theme"), exports);
22
- __exportStar(require("./wallet"), exports);
17
+ __exportStar(require("./assets.js"), exports);
18
+ __exportStar(require("./auth.js"), exports);
19
+ __exportStar(require("./params.js"), exports);
20
+ __exportStar(require("./partner.js"), exports);
21
+ __exportStar(require("./theme.js"), exports);
22
+ __exportStar(require("./wallet.js"), exports);
@@ -1,7 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sharedUtils = void 0;
4
- // Shared utilities will be added here as needed
5
- exports.sharedUtils = {
6
- // Placeholder for shared utilities
7
- };
3
+ exports.NETWORK_METADATA = void 0;
4
+ exports.getChainId = getChainId;
5
+ exports.getNetworkFromChainId = getNetworkFromChainId;
6
+ exports.NETWORK_METADATA = [
7
+ { evmChainId: '11155111', internalId: 'SEPOLIA', zerionId: 'ethereum-sepolia', name: 'Sepolia' },
8
+ { evmChainId: '1', internalId: 'ETHEREUM', zerionId: 'ethereum', name: 'Ethereum' },
9
+ { evmChainId: '137', internalId: 'POLYGON', zerionId: 'polygon', name: 'Polygon' },
10
+ { evmChainId: '42220', internalId: 'CELO', zerionId: 'celo', name: 'Celo' },
11
+ { evmChainId: '8453', internalId: 'BASE', zerionId: 'base', name: 'Base' },
12
+ { evmChainId: '42161', internalId: 'ARBITRUM', zerionId: 'arbitrum', name: 'Arbitrum' },
13
+ { evmChainId: '10', internalId: 'OPTIMISM', zerionId: 'optimism', name: 'Optimism' },
14
+ { evmChainId: '80094', internalId: 'BERACHAIN', zerionId: 'berachain', name: 'Berachain' },
15
+ { internalId: 'SOLANA', name: 'Solana' },
16
+ { internalId: 'SOLANA_DEVNET', name: 'Solana Devnet' },
17
+ { internalId: 'COSMOS', name: 'Cosmos' },
18
+ ];
19
+ function getChainId(network) {
20
+ return exports.NETWORK_METADATA.find(({ internalId: n }) => n === network)?.evmChainId ?? undefined;
21
+ }
22
+ function getNetworkFromChainId(chainId) {
23
+ return chainId ? exports.NETWORK_METADATA.find(({ evmChainId: c }) => c?.toString() === chainId)?.internalId : undefined;
24
+ }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './types';
2
- export * from './utils';
1
+ export * from './types/index.js';
2
+ export * from './utils/index.js';
@@ -43,3 +43,10 @@ export var OnRampPurchaseStatus;
43
43
  OnRampPurchaseStatus["FINISHED"] = "FINISHED";
44
44
  OnRampPurchaseStatus["CANCELLED"] = "CANCELLED";
45
45
  })(OnRampPurchaseStatus || (OnRampPurchaseStatus = {}));
46
+ export var OnRampMethod;
47
+ (function (OnRampMethod) {
48
+ OnRampMethod["ACH"] = "ACH";
49
+ OnRampMethod["DEBIT"] = "Debit";
50
+ OnRampMethod["CREDIT"] = "Credit";
51
+ OnRampMethod["APPLE_PAY"] = "Apple Pay";
52
+ })(OnRampMethod || (OnRampMethod = {}));
@@ -1,6 +1,6 @@
1
- export * from './assets';
2
- export * from './auth';
3
- export * from './params';
4
- export * from './partner';
5
- export * from './theme';
6
- export * from './wallet';
1
+ export * from './assets.js';
2
+ export * from './auth.js';
3
+ export * from './params.js';
4
+ export * from './partner.js';
5
+ export * from './theme.js';
6
+ export * from './wallet.js';
@@ -1,4 +1,19 @@
1
- // Shared utilities will be added here as needed
2
- export const sharedUtils = {
3
- // Placeholder for shared utilities
4
- };
1
+ export const NETWORK_METADATA = [
2
+ { evmChainId: '11155111', internalId: 'SEPOLIA', zerionId: 'ethereum-sepolia', name: 'Sepolia' },
3
+ { evmChainId: '1', internalId: 'ETHEREUM', zerionId: 'ethereum', name: 'Ethereum' },
4
+ { evmChainId: '137', internalId: 'POLYGON', zerionId: 'polygon', name: 'Polygon' },
5
+ { evmChainId: '42220', internalId: 'CELO', zerionId: 'celo', name: 'Celo' },
6
+ { evmChainId: '8453', internalId: 'BASE', zerionId: 'base', name: 'Base' },
7
+ { evmChainId: '42161', internalId: 'ARBITRUM', zerionId: 'arbitrum', name: 'Arbitrum' },
8
+ { evmChainId: '10', internalId: 'OPTIMISM', zerionId: 'optimism', name: 'Optimism' },
9
+ { evmChainId: '80094', internalId: 'BERACHAIN', zerionId: 'berachain', name: 'Berachain' },
10
+ { internalId: 'SOLANA', name: 'Solana' },
11
+ { internalId: 'SOLANA_DEVNET', name: 'Solana Devnet' },
12
+ { internalId: 'COSMOS', name: 'Cosmos' },
13
+ ];
14
+ export function getChainId(network) {
15
+ return NETWORK_METADATA.find(({ internalId: n }) => n === network)?.evmChainId ?? undefined;
16
+ }
17
+ export function getNetworkFromChainId(chainId) {
18
+ return chainId ? NETWORK_METADATA.find(({ evmChainId: c }) => c?.toString() === chainId)?.internalId : undefined;
19
+ }
@@ -1,3 +1,3 @@
1
- export * from './types';
2
- export * from './utils';
1
+ export * from './types/index.js';
2
+ export * from './utils/index.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
@@ -55,8 +55,20 @@ export type OnRampPurchaseCreateParams = Omit<IOnRampPurchase, 'id' | 'userId'>
55
55
  defaultAsset?: TOnRampAsset;
56
56
  };
57
57
  export type OnRampPurchaseUpdateParams = Omit<IOnRampPurchase, 'id' | 'userId'>;
58
- type ProviderAssetInfo = [string, Partial<Record<OnRampPurchaseType, boolean>>];
58
+ export type OfframpDepositRequest = OnRampPurchaseUpdateParams & {
59
+ chainId?: string;
60
+ destinationAddress: string;
61
+ contractAddress?: string | null;
62
+ };
63
+ export type ProviderAssetInfo = [string, Partial<Record<OnRampPurchaseType, boolean>>];
59
64
  export type OnRampAssetInfo = Record<TWalletType, Partial<Record<TNetwork, Partial<Record<TOnRampAsset, Partial<Record<OnRampProvider, ProviderAssetInfo>>>>>>>;
65
+ export type OnRampAssetInfoRow = [TWalletType, TNetwork, TOnRampAsset, Partial<Record<OnRampProvider, ProviderAssetInfo>>];
66
+ export declare enum OnRampMethod {
67
+ ACH = "ACH",
68
+ DEBIT = "Debit",
69
+ CREDIT = "Credit",
70
+ APPLE_PAY = "Apple Pay"
71
+ }
60
72
  export type OnRampAssets = Partial<Record<TNetwork, true | TOnRampAsset[]>>;
61
73
  export type OnRampConfig = {
62
74
  isBuyEnabled: boolean;
@@ -70,15 +82,35 @@ export type OnRampConfig = {
70
82
  defaultOnRampNetwork?: TNetwork;
71
83
  defaultBuyAmount?: [string, string];
72
84
  };
73
- export type AssetMetadata = {
85
+ export type AssetValue<Currency extends string = 'USD'> = {
86
+ /**
87
+ * The value of the asset(s) in the chosen currency.
88
+ */
89
+ value: number;
90
+ /**
91
+ * The currency in which the value is denominated.
92
+ */
93
+ currency: Currency;
94
+ };
95
+ export type WithAssetValue<Currency extends string = 'USD'> = {
96
+ /**
97
+ * The value of the asset(s).
98
+ */
99
+ value?: AssetValue<Currency>;
100
+ };
101
+ export type AssetMetadata<Currency extends string = 'USD'> = {
74
102
  /**
75
103
  * The Para ID string for the asset.
76
104
  */
77
- internalId: TOnRampAsset;
105
+ internalId?: TOnRampAsset;
78
106
  /**
79
107
  * The Zerion ID for the asset.
80
108
  */
81
- zerionId: string;
109
+ zerionId?: string;
110
+ /**
111
+ * The custom asset ID for the asset.
112
+ */
113
+ customAssetId?: string;
82
114
  /**
83
115
  * The name of the asset.
84
116
  */
@@ -88,62 +120,66 @@ export type AssetMetadata = {
88
120
  */
89
121
  symbol: string;
90
122
  /**
91
- * The reported value of the asset in the chosen currency.
123
+ * The URL for the asset's icon logo.
92
124
  */
93
- value: number;
125
+ logoUrl?: string;
94
126
  /**
95
- * The currency in which the value is denominated.
127
+ * The number of decimals for the asset.
96
128
  */
97
- currency: 'USD';
129
+ decimals?: number;
130
+ /**
131
+ * The current price of the asset.
132
+ */
133
+ price?: AssetValue<Currency>;
98
134
  };
99
135
  export type AssetMetadataIndexed = Partial<Record<TOnRampAsset, AssetMetadata>>;
100
136
  export type NetworkMetadata = {
101
137
  /**
102
138
  * The Para ID string for the network.
103
139
  */
104
- internalId: TNetwork;
140
+ internalId?: TNetwork;
105
141
  /**
106
142
  * The Zerion ID for the network.
107
143
  */
108
- zerionId: string;
144
+ zerionId?: string;
145
+ /**
146
+ * The custom network ID for the network.
147
+ */
148
+ customNetworkId?: string;
149
+ /**
150
+ * The display name for the network.
151
+ */
152
+ name?: string;
153
+ /**
154
+ * The EVM chain ID for the network, if applicable.
155
+ */
156
+ evmChainId?: `${number}`;
109
157
  };
110
158
  type WithAssetMetadata = {
111
159
  /**
112
160
  * The metadata for the asset.
113
161
  */
114
- metadata: AssetMetadata;
162
+ metadata?: AssetMetadata;
115
163
  };
116
164
  type WithNetworkMetadata = {
117
165
  /**
118
166
  * The metadata for the network.
119
167
  */
120
- metadata: NetworkMetadata;
168
+ metadata?: NetworkMetadata;
121
169
  };
122
- type Balance = {
123
- /**
124
- * The value of the asset in the chosen currency.
125
- */
126
- value: number;
170
+ type WithContractAddress = {
127
171
  /**
128
- * The currency in which the value is denominated.
172
+ * The asset's contract address on this network.
129
173
  */
130
- currency: string;
174
+ contractAddress?: string;
175
+ };
176
+ type AssetBalance<Currency extends string = 'USD'> = WithAssetValue<Currency> & {
131
177
  /**
132
178
  * The quantity of the asset.
133
179
  */
134
180
  quantity: number;
135
181
  };
136
- type AggregateBalance = {
137
- /**
138
- * The total value of all asset/network combinations in the current domain.
139
- */
140
- totalValue: number;
141
- /**
142
- * The currency in which the total value is denominated.
143
- */
144
- currency: string;
145
- };
146
- export type WalletBalance = AggregateBalance & {
182
+ export type WalletBalance<Currency extends string = 'USD'> = WithAssetValue<Currency> & {
147
183
  /**
148
184
  * The type of the wallet.
149
185
  */
@@ -155,31 +191,133 @@ export type WalletBalance = AggregateBalance & {
155
191
  /**
156
192
  * An array of the enumerated assets included in the balance calculation.
157
193
  */
158
- assets: (AggregateBalance & WithAssetMetadata & {
194
+ assets: (WithAssetValue<Currency> & WithAssetMetadata & {
159
195
  /**
160
196
  * The total quantity of the asset in this wallet, across all networks.
161
197
  */
162
- totalQuantity: number;
198
+ quantity: number;
163
199
  /**
164
200
  * An array of networks on which the asset has non-zero balances in this wallet.
165
201
  */
166
- networks: (Balance & WithNetworkMetadata)[];
202
+ networks: (AssetBalance<Currency> & WithNetworkMetadata & WithContractAddress)[];
167
203
  })[];
168
204
  /**
169
205
  * An array of networks on which the wallet has non-zero balances.
170
206
  */
171
- networks: (AggregateBalance & WithNetworkMetadata & {
207
+ networks: (WithAssetValue<Currency> & WithNetworkMetadata & {
172
208
  /**
173
209
  * An array of assets on this network in the wallet.
174
210
  */
175
- assets: (Balance & WithAssetMetadata)[];
211
+ assets: (AssetBalance<Currency> & WithAssetMetadata & WithContractAddress)[];
176
212
  })[];
177
213
  };
178
- export type ProfileBalance = AggregateBalance & {
214
+ export type ProfileBalance<Currency extends string = 'USD'> = WithAssetValue<Currency> & {
179
215
  /**
180
216
  * An array including the wallets connected in this session and their respective balances and assets.
181
217
  */
182
- wallets: WalletBalance[];
218
+ wallets: WalletBalance<Currency>[];
219
+ };
220
+ export type CustomAsset<Currency extends string = 'USD'> = Omit<AssetMetadata<Currency>, 'internalId' | 'zerionId' | 'value' | 'currency'> & {
221
+ /**
222
+ * A list of definitions for networks that implement the asset.
223
+ */
224
+ networks: (WithContractAddress & {
225
+ /**
226
+ * The network definition. Either one of the standard network ID strings defined in `TNetwork` or an object of the form: `{ name: string; rpcUrl: string; evmChainId: string }
227
+ */
228
+ network: TNetwork | (Omit<NetworkMetadata, 'internalId' | 'zerionId' | 'evmChainId'> & {
229
+ /**
230
+ * The EVM chain ID for the network.
231
+ */
232
+ evmChainId: `${number}`;
233
+ /**
234
+ * The EVM RPC URL for the network.
235
+ */
236
+ rpcUrl: string;
237
+ });
238
+ })[];
239
+ /**
240
+ * A URL for fetching the asset's current price in the chosen currency.
241
+ *
242
+ * The endpoint should accept a GET request and return a JSON response with the type `{ value: string; currency: string; }`.
243
+ */
244
+ priceUrl?: string;
245
+ /**
246
+ * The price of the asset on this network. This price will remain constant for aggregated balance calculations.
247
+ */
248
+ price?: AssetValue<Currency>;
183
249
  };
250
+ export type BalanceDisplayType = 'AGGREGATED' | 'CUSTOM_TOKEN';
251
+ export type BalancesConfig<Currency extends string = 'USD'> = {
252
+ /**
253
+ * The type of balance data to display.
254
+ *
255
+ * - `'AGGREGATED'` will display the combined USD value of all standard assets and/or any additional custom assets you specify.
256
+ * - `'CUSTOM_ASSET'` will display only the quantities of the asset you specify, without any currency conversion.
257
+ */
258
+ displayType: 'AGGREGATED' | 'CUSTOM_ASSET';
259
+ } & ({
260
+ displayType: 'AGGREGATED';
261
+ /**
262
+ * Whether to exclude standard assets from the balance calculation. If true, the only balances calculated will be those for any additional assets you specify.
263
+ */
264
+ excludeStandardAssets?: boolean;
265
+ /**
266
+ * An array of custom assets to include in the balance calculation.
267
+ *
268
+ * To include each additional asset in the balance calculation you must provide at least one implementation network and contract address. You must also supply the USD price as either a fixed value in the form `{ value: string; currency: string }` or a `priceUrl` endpoint. The endpoint must accept a GET request and return the price in that same format as JSON.
269
+ *
270
+ * @example
271
+ * ```ts
272
+ * [{
273
+ * name: 'Custom Token',
274
+ * symbol: 'CUSTOM',
275
+ * priceUrl: 'http://your-domain.com/api/para/price?symbol=CUSTOM',
276
+ * networks: [
277
+ * {
278
+ * network: 'ETHEREUM',
279
+ * contractAddress: '0x0000000000000000000000000000000000000000',
280
+ * },
281
+ * {
282
+ * network: {
283
+ * evmChainId: '1234567',
284
+ * rpcUrl: 'https://your-domain.com/rpc',
285
+ * name: 'Custom Chain',
286
+ * },
287
+ * contractAddress: '0x0000000000000000000000000000000000000000',
288
+ * },
289
+ * ],
290
+ * }, {
291
+ * name: 'Custom Stablecoin',
292
+ * symbol: 'CSTABLE',
293
+ * price: { value: 1.00, currency: 'USD' },
294
+ * networks: [
295
+ * {
296
+ * network: 'ETHEREUM',
297
+ * contractAddress: '0x0000000000000000000000000000000000000000',
298
+ * },
299
+ * }]
300
+ * ```
301
+ */
302
+ additionalAssets?: CustomAsset<Currency>[];
303
+ } | {
304
+ displayType: 'CUSTOM_ASSET';
305
+ /**
306
+ * The custom asset to display in the Para Modal. Only this token's balances will be displayed, with no currency conversion.
307
+ *
308
+ * @example
309
+ * {
310
+ * name: 'Custom Token',
311
+ * symbol: 'CUSTOM',
312
+ * networks: [
313
+ * {
314
+ * network: 'ETHEREUM',
315
+ * contractAddress: '0x0000000000000000000000000000000000000000',
316
+ * },
317
+ * ],
318
+ * }
319
+ */
320
+ asset: CustomAsset<Currency>;
321
+ });
184
322
  export {};
185
323
  //# sourceMappingURL=assets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/types/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE7D,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,0DAA0D;AAC1D,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,cAAc,+GAYjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,oBAAY,kBAAkB;IAC5B,GAAG,QAAQ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CAC9B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,cAAc,CAAC;AAE/D,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,MAAM,GAAG,KAAK,IAAI;IAC5D;;;;;OAKG;IACH,WAAW,EAAE,YAAY,GAAG,cAAc,CAAC;CAC5C,GAAG,CACA;IACE,WAAW,EAAE,YAAY,CAAC;IAC1B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC;CAC5C,GACD;IACE,WAAW,EAAE,cAAc,CAAC;IAC5B;;;;;;;;;;;;;;OAcG;IACH,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;CAC9B,CACJ,CAAC"}
@@ -1,7 +1,7 @@
1
- export * from './assets';
2
- export * from './auth';
3
- export * from './params';
4
- export * from './partner';
5
- export * from './theme';
6
- export * from './wallet';
1
+ export * from './assets.js';
2
+ export * from './auth.js';
3
+ export * from './params.js';
4
+ export * from './partner.js';
5
+ export * from './theme.js';
6
+ export * from './wallet.js';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { BalancesConfig } from './assets';
1
2
  import { EmailProps } from './partner';
2
3
  import { TWalletType } from './wallet';
3
4
  export type ResendVerificationCodeParams = EmailProps & {
@@ -9,7 +10,9 @@ export type GetProfileBalanceParams = {
9
10
  wallets?: {
10
11
  type: TWalletType;
11
12
  address: string;
13
+ walletId?: string;
12
14
  }[];
15
+ config?: BalancesConfig;
13
16
  refetch?: boolean;
14
17
  };
15
18
  //# sourceMappingURL=params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,4BAA4B,GAAG,UAAU,GAAG;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,WAAW,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,4BAA4B,GAAG,UAAU,GAAG;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,WAAW,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtE,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -1,2 +1,5 @@
1
- export declare const sharedUtils: {};
1
+ import { NetworkMetadata, TNetwork } from '../types/index.js';
2
+ export declare const NETWORK_METADATA: NetworkMetadata[];
3
+ export declare function getChainId(network: TNetwork): `${number}` | undefined;
4
+ export declare function getNetworkFromChainId(chainId?: string | undefined): TNetwork | undefined;
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,IAEvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE9D,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAY7C,CAAC;AAEF,wBAAgB,UAAU,CAAC,OAAO,EAAE,QAAQ,GAAG,GAAG,MAAM,EAAE,GAAG,SAAS,CAErE;AAED,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAExF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/shared",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Shared types and utilities for Para applications",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -24,14 +24,11 @@
24
24
  "dev": "tsc -p tsconfig.dev.json --watch",
25
25
  "clean": "rm -rf dist && find src -name '*.d.ts' -delete && find src -name '*.d.ts.map' -delete && find src -name '*.js' -delete",
26
26
  "type-check": "tsc --noEmit",
27
- "version": "npm version",
27
+ "version": "yarn version",
28
28
  "publish": "npm publish"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.8.3"
32
32
  },
33
- "sideEffects": false,
34
- "publishConfig": {
35
- "access": "restricted"
36
- }
33
+ "sideEffects": false
37
34
  }