@fxhash/config 0.0.8 → 0.0.10
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 +19 -2
- package/dist/api/base.d.ts +11 -0
- package/dist/api/eth.d.ts +10 -6
- package/dist/api/fxhash.d.ts +9 -32
- package/dist/api/tezos.d.ts +7 -8
- package/dist/config/algolia.d.ts +11 -0
- package/dist/config/gpu.d.ts +11 -0
- package/dist/config/metadata.d.ts +15 -0
- package/dist/config.d.ts +13 -67
- package/dist/constants.d.ts +2 -0
- package/dist/contracts/base.d.ts +30 -0
- package/dist/contracts/eth.d.ts +30 -13
- package/dist/contracts/tezos.d.ts +40 -40
- package/dist/errors/metadata.d.ts +14 -0
- package/dist/helpers.d.ts +6 -0
- package/dist/index.d.ts +14 -12
- package/dist/index.js +814 -26
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +166 -0
- package/dist/utils/contracts.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -11
- package/dist/utils/ipfs.d.ts +25 -0
- package/package.json +17 -27
- package/dist/api/eth.cjs +0 -7
- package/dist/api/eth.cjs.map +0 -1
- package/dist/api/eth.js +0 -7
- package/dist/api/eth.js.map +0 -1
- package/dist/api/fxhash.cjs +0 -9
- package/dist/api/fxhash.cjs.map +0 -1
- package/dist/api/fxhash.js +0 -9
- package/dist/api/fxhash.js.map +0 -1
- package/dist/api/tezos.cjs +0 -9
- package/dist/api/tezos.cjs.map +0 -1
- package/dist/api/tezos.js +0 -9
- package/dist/api/tezos.js.map +0 -1
- package/dist/chunk-7WY5VFHS.js +0 -27
- package/dist/chunk-7WY5VFHS.js.map +0 -1
- package/dist/chunk-C6E7ASBV.js +0 -10
- package/dist/chunk-C6E7ASBV.js.map +0 -1
- package/dist/chunk-E7KQMDGP.cjs +0 -10
- package/dist/chunk-E7KQMDGP.cjs.map +0 -1
- package/dist/chunk-IYJZUHOI.js +0 -64
- package/dist/chunk-IYJZUHOI.js.map +0 -1
- package/dist/chunk-JQKT6SDR.cjs +0 -17
- package/dist/chunk-JQKT6SDR.cjs.map +0 -1
- package/dist/chunk-LYBPFYQE.cjs +0 -81
- package/dist/chunk-LYBPFYQE.cjs.map +0 -1
- package/dist/chunk-M6DLQFBS.cjs +0 -64
- package/dist/chunk-M6DLQFBS.cjs.map +0 -1
- package/dist/chunk-NSIM63EC.cjs +0 -27
- package/dist/chunk-NSIM63EC.cjs.map +0 -1
- package/dist/chunk-O34FLX72.cjs +0 -101
- package/dist/chunk-O34FLX72.cjs.map +0 -1
- package/dist/chunk-OX246A4J.js +0 -81
- package/dist/chunk-OX246A4J.js.map +0 -1
- package/dist/chunk-U462M4P2.js +0 -17
- package/dist/chunk-U462M4P2.js.map +0 -1
- package/dist/chunk-VRXN4ZLN.js +0 -101
- package/dist/chunk-VRXN4ZLN.js.map +0 -1
- package/dist/config.cjs +0 -16
- package/dist/config.cjs.map +0 -1
- package/dist/config.js +0 -16
- package/dist/config.js.map +0 -1
- package/dist/contracts/eth.cjs +0 -7
- package/dist/contracts/eth.cjs.map +0 -1
- package/dist/contracts/eth.js +0 -7
- package/dist/contracts/eth.js.map +0 -1
- package/dist/contracts/tezos.cjs +0 -9
- package/dist/contracts/tezos.cjs.map +0 -1
- package/dist/contracts/tezos.js +0 -9
- package/dist/contracts/tezos.js.map +0 -1
- package/dist/index.cjs +0 -51
- package/dist/index.cjs.map +0 -1
- package/dist/utils/index.cjs +0 -14
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js +0 -14
- package/dist/utils/index.js.map +0 -1
package/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
# fxhash
|
1
|
+
# @fxhash/config
|
2
2
|
|
3
|
-
|
3
|
+
This contains all variables used within all modules of fx(package)
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```
|
8
|
+
pnpm add @fxhash/config
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usage
|
4
12
|
|
5
13
|
For you application you usually want to use the config like this:
|
6
14
|
|
@@ -9,5 +17,14 @@ import { config } from "@fxhash/config"
|
|
9
17
|
```
|
10
18
|
|
11
19
|
This singleton will expose variables for testnet/mainnet based on the `FXHASH_ENV` .env variable.
|
20
|
+
|
12
21
|
- Set `FXHASH_ENV=dev` to expose the config for testnet/dev environments
|
13
22
|
- Set `FXHASH_ENV=prd` or `FXHASH_ENV=production` to expose the config for mainnet/production environments
|
23
|
+
|
24
|
+
> Note: If the `@fxhash/config` package is used on the client side you also have to set the `NEXT_PUBLIC_FXHASH_ENV` or `REACT_APP_FXHASH_ENV` environment variable.
|
25
|
+
|
26
|
+
### Local development
|
27
|
+
|
28
|
+
Additional to the testnet and mainnet specific configuration there is the 3rd option for `local` development. This option is designed to be used within the fxhash monorepository. You can use it by setting the `FXHASH_ENV=local` environment variable. Since all services are dockerised there is an additional `localDocker` configuration. This configuration is automatically used when the `@fxhash/config` package is used inside a docker container and the `FXHASH_ENV` is set to `local`. The `localDocker` configuration basically just replaces all "localhost" urls with "host.docker.internal".
|
29
|
+
|
30
|
+
- Set `FXHASH_ENV=local` to expose the config for local development within the fxhash monorepository
|
package/dist/api/eth.d.ts
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
interface IEthApis {
|
2
|
-
|
3
|
-
|
1
|
+
export interface IEthApis {
|
2
|
+
rpcs: string[];
|
3
|
+
reservoir: string;
|
4
|
+
safe: string;
|
5
|
+
whitelist: string;
|
6
|
+
alchemy: {
|
7
|
+
rpc: string
|
8
|
+
};
|
4
9
|
}
|
5
|
-
declare const ethTestnetApis: IEthApis;
|
6
|
-
|
7
|
-
export { IEthApis, ethTestnetApis };
|
10
|
+
export declare const ethTestnetApis: IEthApis;
|
11
|
+
export declare const ethMainnetApis: IEthApis;
|
package/dist/api/fxhash.d.ts
CHANGED
@@ -1,32 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
onchfsProxy: string;
|
11
|
-
authority: {
|
12
|
-
api: string;
|
13
|
-
};
|
14
|
-
capture: {
|
15
|
-
lambdas: {
|
16
|
-
small: string;
|
17
|
-
medium: string;
|
18
|
-
large: string;
|
19
|
-
};
|
20
|
-
};
|
21
|
-
dashboard: {
|
22
|
-
backend: string;
|
23
|
-
aggregator: string;
|
24
|
-
};
|
25
|
-
events: {
|
26
|
-
liveBackend: string;
|
27
|
-
};
|
28
|
-
}
|
29
|
-
declare const fxhashDevApis: IFxhashApis;
|
30
|
-
declare const fxhashPrdApis: IFxhashApis;
|
31
|
-
|
32
|
-
export { IFxhashApis, fxhashDevApis, fxhashPrdApis };
|
1
|
+
import { IFxhashApis, TEnv } from "../types.js";
|
2
|
+
export declare const fxhashDevApis: IFxhashApis;
|
3
|
+
export declare const fxhashLocalApis: IFxhashApis;
|
4
|
+
export declare const fxhashLocalDockerApis: IFxhashApis;
|
5
|
+
export declare const fxhashPrdApis: IFxhashApis;
|
6
|
+
/**
|
7
|
+
* Given some env, returns the associated APIs config.
|
8
|
+
*/
|
9
|
+
export declare function fxApisByEnv(env: TEnv): IFxhashApis;
|
package/dist/api/tezos.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
interface ITezosApis {
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
export interface ITezosApis {
|
2
|
+
tzktWebsite: string;
|
3
|
+
tzkt: string;
|
4
|
+
tzktPro: string;
|
5
|
+
rpcs: string[];
|
5
6
|
}
|
6
|
-
declare const tezosTestnetApis: ITezosApis;
|
7
|
-
declare const tezosMainnetApis: ITezosApis;
|
8
|
-
|
9
|
-
export { ITezosApis, tezosMainnetApis, tezosTestnetApis };
|
7
|
+
export declare const tezosTestnetApis: ITezosApis;
|
8
|
+
export declare const tezosMainnetApis: ITezosApis;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export type AlgoliaConfig = {
|
2
|
+
appId: string
|
3
|
+
enabled: boolean
|
4
|
+
indexGenerativeTokens: string
|
5
|
+
indexOffers: string
|
6
|
+
indexUsers: string
|
7
|
+
indexArticles: string
|
8
|
+
indexAccounts: string
|
9
|
+
};
|
10
|
+
export declare const algoliaConfigDev: AlgoliaConfig;
|
11
|
+
export declare const algoliaConfigProd: AlgoliaConfig;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
declare const GPU_VERSIONS: readonly ["v111", "v132"];
|
2
|
+
type GPUVersion = (typeof GPU_VERSIONS)[number];
|
3
|
+
interface GPURenderingVersionConfig {
|
4
|
+
date: string;
|
5
|
+
version: string;
|
6
|
+
batchArn: string;
|
7
|
+
}
|
8
|
+
export type GPURenderingConfig = Record<GPUVersion, GPURenderingVersionConfig>;
|
9
|
+
export declare const gpuRenderingConfigDev: GPURenderingConfig;
|
10
|
+
export declare const gpuRenderingConfigProd: GPURenderingConfig;
|
11
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { type Result } from "@fxhash/utils";
|
2
|
+
import { type AppMetadataError } from "../errors/metadata.js";
|
3
|
+
import { IAppMetadata, TEnv } from "../types.js";
|
4
|
+
/**
|
5
|
+
* Get application metadata by merging some cross-env metadata with an
|
6
|
+
* environment-specific URL (application front-end).
|
7
|
+
*/
|
8
|
+
export declare function fxAppEnvMetadata(env: TEnv): IAppMetadata;
|
9
|
+
/**
|
10
|
+
* Test whether some value is a valid {@link IAppMetadata} interface. If not,
|
11
|
+
* the issue causing it to be invalid is returned as a failure.
|
12
|
+
* @param value Any value which should be tested for being valid App Metadata
|
13
|
+
* @returns A Result with void success or failure with the issue
|
14
|
+
*/
|
15
|
+
export declare function isAppMetadataValid(value: any): Result<void, AppMetadataError>;
|
package/dist/config.d.ts
CHANGED
@@ -1,68 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
import { IEthContracts } from './contracts/eth.js';
|
6
|
-
|
7
|
-
interface IFxhashNetworkConfig {
|
8
|
-
network: string;
|
9
|
-
}
|
10
|
-
interface IFxhashEnvConfig {
|
11
|
-
envName: string;
|
12
|
-
gtMinPrice: string;
|
13
|
-
ETH_WALLET_CONNECT_ID: string;
|
14
|
-
ETH_CHAIN_ID: string;
|
15
|
-
}
|
16
|
-
type TBlockchain = "tez" | "eth";
|
17
|
-
type TBlockchainNetwork = "testnet" | "mainnet";
|
18
|
-
type TEnv = "dev" | "prd";
|
19
|
-
type TBlockchainContacts = {
|
20
|
-
[B in TBlockchain]: {
|
21
|
-
tez: ITezosContracts;
|
22
|
-
eth: IEthContracts | null;
|
23
|
-
}[B];
|
24
|
-
};
|
25
|
-
type TBlockchainApis = {
|
26
|
-
[B in TBlockchain]: {
|
27
|
-
tez: ITezosApis;
|
28
|
-
eth: IEthApis | null;
|
29
|
-
}[B];
|
30
|
-
};
|
31
|
-
type TNetworkBlockchainConfig = {
|
32
|
-
[B in TBlockchain]: {
|
33
|
-
tez: IFxhashNetworkConfig;
|
34
|
-
eth: IFxhashNetworkConfig;
|
35
|
-
}[B];
|
36
|
-
};
|
37
|
-
type IFxhashConfig = {
|
38
|
-
networks: {
|
39
|
-
[N in TBlockchainNetwork]: {
|
40
|
-
[B in TBlockchain]: {
|
41
|
-
contracts: TBlockchainContacts[B];
|
42
|
-
config: TNetworkBlockchainConfig[B];
|
43
|
-
apis: TBlockchainApis[B];
|
44
|
-
};
|
45
|
-
};
|
46
|
-
};
|
47
|
-
envs: {
|
48
|
-
[K in TEnv]: {
|
49
|
-
apis: IFxhashApis;
|
50
|
-
config: IFxhashEnvConfig;
|
51
|
-
};
|
52
|
-
};
|
53
|
-
};
|
54
|
-
type IFxhashConfigSingleEnv = {
|
55
|
-
[B in TBlockchain]: {
|
56
|
-
contracts: TBlockchainContacts[B];
|
57
|
-
config: TNetworkBlockchainConfig[B];
|
58
|
-
apis: TBlockchainApis[B];
|
59
|
-
};
|
60
|
-
} & {
|
61
|
-
apis: IFxhashApis;
|
62
|
-
config: IFxhashEnvConfig;
|
63
|
-
};
|
1
|
+
import { type IFxhashConfig, type IFxhashConfigSingleEnv, type TBlockchainNetwork, type TEnv } from "./types.js";
|
2
|
+
/**
|
3
|
+
* --------------------------------------------------------
|
4
|
+
*/
|
64
5
|
declare const fxhashConfig: IFxhashConfig;
|
65
|
-
declare
|
66
|
-
declare
|
67
|
-
|
68
|
-
export
|
6
|
+
export declare function getBlockchainNetworkForEnv(env: TEnv): TBlockchainNetwork;
|
7
|
+
export declare function getConfigForEnv(env: TEnv): IFxhashConfigSingleEnv;
|
8
|
+
export declare const localConfig: IFxhashConfigSingleEnv;
|
9
|
+
export declare const localDockerConfig: IFxhashConfigSingleEnv;
|
10
|
+
export declare const devConfig: IFxhashConfigSingleEnv;
|
11
|
+
export declare const prdConfig: IFxhashConfigSingleEnv;
|
12
|
+
declare let config: IFxhashConfigSingleEnv;
|
13
|
+
declare function setConfig(userConfig: Partial<IFxhashConfigSingleEnv>): IFxhashConfigSingleEnv;
|
14
|
+
export { fxhashConfig, config, setConfig };
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export declare const AUTH_JWT_PK_DEV = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1hF8JwAxIiFWzbXIgeOK\nBzf6SZlT3S1YampzVgy4pw1G0aKwHnyvC+HrRfkEOCGxX24DqbEpZby2LjKF9bfa\nOLrERrNSNrDLXbf3ipKQrnEBu2UdT2pE5UF/SwJUTdGczb78EId0yIjuZ26qZcQg\nPr1ji6FgdOOdEwdphl4x1dlQzgMgjhRcPwf9NsBx3R6l/ut2o38Qa8azxM7XBg8F\nUlsKGy4/jY2OIEKCravCoXmpeX9pxploED/DoJJI9FZXVB7/91iIb6MI0Ycby+xo\nGL/cF+ZYSVRoFexji4vpycJfltW5YJ8jHSveZWa6LXqM6LY7zRFmlxb3SF4tsDTT\nPQIDAQAB\n-----END PUBLIC KEY-----";
|
2
|
+
export declare const AUTH_JWT_PK_PRD = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtwl1CRvpN7MZeGGDTy8x\n+W3EkZfBzZqEp3vahCaqBdMkMhy7oB1pUU7pjb34tg9epnKdKo0cZn+Bw1LkSKWh\nZ1DSbgCdNR47qKb4xN8mZ5VvEw/64+nUXbCOikX+rMqSE2tNeNU3KOYr8VQYt9dv\n/J0xFwsr0aa4m23dmJ/oPLA8eR8lZk++fEZsbezKH3i9zz73I0UAivijM0S9lYeB\nNkT5zOaAJARzl69hEMQAv9qUkokwPSHlcG+LakhTGYAyMe3w/KHXVRkWjuCUgUJf\n90oveckX4dhMbHbz9ba1p3hpmwdmlRzljIIE2GQYawA8eNLsOb/z6V8HGMbCL/N9\nJwIDAQAB\n-----END PUBLIC KEY-----";
|
@@ -0,0 +1,30 @@
|
|
1
|
+
export interface IBaseContracts {
|
2
|
+
multicall3: `0x${string}`;
|
3
|
+
seaport_zone: `0x${string}`;
|
4
|
+
issuer_factory_v1: `0x${string}`;
|
5
|
+
fixed_price_minter_v1: `0x${string}`;
|
6
|
+
dutch_auction_minter_v1: `0x${string}`;
|
7
|
+
mint_ticket_factory_v1: `0x${string}`;
|
8
|
+
ticket_redeemer_v1: `0x${string}`;
|
9
|
+
ipfs_renderer_v1: `0x${string}`;
|
10
|
+
onchfs_renderer_v1: `0x${string}`;
|
11
|
+
randomizer_v1: `0x${string}`;
|
12
|
+
role_registry_v1: `0x${string}`;
|
13
|
+
contract_registry_v1: `0x${string}`;
|
14
|
+
gen_art_token_impl_v1: `0x${string}`;
|
15
|
+
mint_ticket_impl_v1: `0x${string}`;
|
16
|
+
onchfs_file_system: `0x${string}`;
|
17
|
+
onchfs_content_store: `0x${string}`;
|
18
|
+
seaport: `0x${string}`;
|
19
|
+
fxhashTeamSafeAddress: `0x${string}`;
|
20
|
+
signerSafe: `0x${string}`;
|
21
|
+
moderationSafe: `0x${string}`;
|
22
|
+
farcaster_frame_fixed_price_minter_v1: `0x${string}`;
|
23
|
+
fx_token: `0x${string}`;
|
24
|
+
fx_airdrop: `0x${string}`;
|
25
|
+
fx_tez_airdrop: `0x${string}`;
|
26
|
+
fx_token_launchpad: `0x${string}`;
|
27
|
+
fx_project_factory: `0x${string}`;
|
28
|
+
}
|
29
|
+
export declare const baseTestnetContracts: IBaseContracts;
|
30
|
+
export declare const baseMainnetContracts: IBaseContracts;
|
package/dist/contracts/eth.d.ts
CHANGED
@@ -1,14 +1,31 @@
|
|
1
|
-
interface IEthContracts {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
export interface IEthContracts {
|
2
|
+
multicall3: `0x${string}`;
|
3
|
+
seaport_zone: `0x${string}`;
|
4
|
+
issuer_factory_v1: `0x${string}`;
|
5
|
+
fixed_price_minter_v1: `0x${string}`;
|
6
|
+
dutch_auction_minter_v1: `0x${string}`;
|
7
|
+
mint_ticket_factory_v1: `0x${string}`;
|
8
|
+
ticket_redeemer_v1: `0x${string}`;
|
9
|
+
ipfs_renderer_v1: `0x${string}`;
|
10
|
+
onchfs_renderer_v1: `0x${string}`;
|
11
|
+
randomizer_v1: `0x${string}`;
|
12
|
+
role_registry_v1: `0x${string}`;
|
13
|
+
contract_registry_v1: `0x${string}`;
|
14
|
+
gen_art_token_impl_v1: `0x${string}`;
|
15
|
+
mint_ticket_impl_v1: `0x${string}`;
|
16
|
+
onchfs_file_system: `0x${string}`;
|
17
|
+
onchfs_content_store: `0x${string}`;
|
18
|
+
seaport: `0x${string}`;
|
19
|
+
fxhashTeamSafeAddress: `0x${string}`;
|
20
|
+
signerSafe: `0x${string}`;
|
21
|
+
moderationSafe: `0x${string}`;
|
22
|
+
farcaster_frame_fixed_price_minter_v1: `0x${string}`;
|
23
|
+
fx_token: `0x${string}`;
|
11
24
|
}
|
12
|
-
declare const ethTestnetContracts: IEthContracts;
|
13
|
-
|
14
|
-
|
25
|
+
export declare const ethTestnetContracts: IEthContracts;
|
26
|
+
/**
|
27
|
+
* TODO
|
28
|
+
* -----------------------------------------------------------------------------
|
29
|
+
* Put the actual addresses.
|
30
|
+
*/
|
31
|
+
export declare const ethMainnetContracts: IEthContracts;
|
@@ -1,41 +1,41 @@
|
|
1
|
-
interface ITezosContracts {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
1
|
+
export interface ITezosContracts {
|
2
|
+
allowed_mint: string;
|
3
|
+
allowed_mint_issuer: string;
|
4
|
+
allowed_mint_issuer_v3: string;
|
5
|
+
allowed_mint_v3: string;
|
6
|
+
articles: string;
|
7
|
+
card_proxy: string;
|
8
|
+
collaboration_factory: string;
|
9
|
+
consumable_database: string;
|
10
|
+
cycles: string;
|
11
|
+
gentk_v1: string;
|
12
|
+
gentk_v1_data: string;
|
13
|
+
gentk_v2: string;
|
14
|
+
gentk_v3: string;
|
15
|
+
issuer_tickets: string;
|
16
|
+
issuer_v0: string;
|
17
|
+
issuer_v1: string;
|
18
|
+
issuer_v2: string;
|
19
|
+
issuer_v3: string;
|
20
|
+
marketplace_v1: string;
|
21
|
+
marketplace_v2: string;
|
22
|
+
marketplace_v3: string;
|
23
|
+
moderation_articles: string;
|
24
|
+
moderation_team: string;
|
25
|
+
moderation_token: string;
|
26
|
+
moderation_token_v3: string;
|
27
|
+
moderation_user: string;
|
28
|
+
pricing_dutch_auction: string;
|
29
|
+
pricing_dutch_auction_v3: string;
|
30
|
+
pricing_fixed: string;
|
31
|
+
pricing_fixed_v3: string;
|
32
|
+
randomizer: string;
|
33
|
+
randomizer_v2: string;
|
34
|
+
token_moderation: string;
|
35
|
+
treasury: string;
|
36
|
+
user_moderation: string;
|
37
|
+
user_register: string;
|
38
|
+
onchfs_files: string;
|
37
39
|
}
|
38
|
-
declare const tezosTestnetContracts: ITezosContracts;
|
39
|
-
declare const tezosMainnetContracts: ITezosContracts;
|
40
|
-
|
41
|
-
export { ITezosContracts, tezosMainnetContracts, tezosTestnetContracts };
|
40
|
+
export declare const tezosTestnetContracts: ITezosContracts;
|
41
|
+
export declare const tezosMainnetContracts: ITezosContracts;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { type IRichErrorMessages, RichError, type RichErrorUnion } from "@fxhash/errors";
|
2
|
+
export declare class AppMetadataInvalidTypeError extends RichError {
|
3
|
+
name: "AppMetadataInvalidTypeError";
|
4
|
+
messages: {
|
5
|
+
dev: string
|
6
|
+
};
|
7
|
+
}
|
8
|
+
export declare class AppMetadataMissingPropertiesError extends RichError {
|
9
|
+
name: "AppMetadataMissingPropertiesError";
|
10
|
+
constructor(messages: IRichErrorMessages);
|
11
|
+
constructor(properties: string[]);
|
12
|
+
}
|
13
|
+
export declare const AppMetadataErrors: (typeof AppMetadataInvalidTypeError | typeof AppMetadataMissingPropertiesError)[];
|
14
|
+
export type AppMetadataError = RichErrorUnion<typeof AppMetadataErrors>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { TEnv } from "./types.js";
|
2
|
+
export declare function getDockerInternalUrl(url: string): string;
|
3
|
+
export declare const isProd: boolean;
|
4
|
+
export declare const isLocal: boolean;
|
5
|
+
export declare const isDockerLocal: boolean;
|
6
|
+
export declare function getEnv(): TEnv;
|
package/dist/index.d.ts
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
import {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
export
|
1
|
+
import { type IEthApis, ethTestnetApis } from "./api/eth.js";
|
2
|
+
import { type ITezosApis, tezosTestnetApis, tezosMainnetApis } from "./api/tezos.js";
|
3
|
+
import { fxhashDevApis, fxhashPrdApis } from "./api/fxhash.js";
|
4
|
+
import { type ITezosContracts, tezosMainnetContracts, tezosTestnetContracts } from "./contracts/tezos.js";
|
5
|
+
import { type IEthContracts, ethTestnetContracts } from "./contracts/eth.js";
|
6
|
+
import { type GPURenderingConfig } from "./config/gpu.js";
|
7
|
+
import { fxhashConfig, prdConfig, devConfig, localConfig, config, setConfig } from "./config.js";
|
8
|
+
import { type IFxhashEnvConfig, type IFxhashNetworkConfig, type TBlockchain, type TBlockchainNetwork, type TEnv, type IFxhashConfig } from "./types.js";
|
9
|
+
export { ethTestnetApis, tezosTestnetApis, tezosMainnetApis, fxhashDevApis, fxhashPrdApis, tezosTestnetContracts, tezosMainnetContracts, ethTestnetContracts, fxhashConfig, devConfig, prdConfig, localConfig, config, setConfig, type IEthApis, type ITezosApis, type ITezosContracts, type IEthContracts, type IFxhashEnvConfig, type IFxhashNetworkConfig, type TBlockchain, type TBlockchainNetwork, type TEnv, type IFxhashConfig, type GPURenderingConfig };
|
10
|
+
export * from "./types.js";
|
11
|
+
export * from "./helpers.js";
|
12
|
+
export * from "./utils/index.js";
|
13
|
+
export { isAppMetadataValid } from "./config/metadata.js";
|
14
|
+
export default fxhashConfig;
|