@fxhash/config 0.0.8 → 0.0.9

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.
Files changed (61) hide show
  1. package/README.md +1 -0
  2. package/dist/api/eth.cjs +4 -2
  3. package/dist/api/eth.d.ts +4 -1
  4. package/dist/api/eth.js +3 -1
  5. package/dist/api/fxhash.cjs +4 -2
  6. package/dist/api/fxhash.d.ts +6 -1
  7. package/dist/api/fxhash.js +3 -1
  8. package/dist/chunk-2Z36EJVM.cjs +159 -0
  9. package/dist/chunk-2Z36EJVM.cjs.map +1 -0
  10. package/dist/chunk-3HYMO7HS.js +13 -0
  11. package/dist/chunk-3HYMO7HS.js.map +1 -0
  12. package/dist/chunk-3U7S5KQ5.js +45 -0
  13. package/dist/chunk-3U7S5KQ5.js.map +1 -0
  14. package/dist/{chunk-IYJZUHOI.js → chunk-6LCEWPDB.js} +20 -4
  15. package/dist/chunk-6LCEWPDB.js.map +1 -0
  16. package/dist/chunk-BDNQHSCV.cjs +13 -0
  17. package/dist/chunk-BDNQHSCV.cjs.map +1 -0
  18. package/dist/{chunk-M6DLQFBS.cjs → chunk-HFJTQFU5.cjs} +21 -5
  19. package/dist/chunk-HFJTQFU5.cjs.map +1 -0
  20. package/dist/chunk-M7HZ3LKE.js +19 -0
  21. package/dist/chunk-M7HZ3LKE.js.map +1 -0
  22. package/dist/chunk-VOYFMWZ7.js +159 -0
  23. package/dist/chunk-VOYFMWZ7.js.map +1 -0
  24. package/dist/chunk-VUNWHN5H.cjs +19 -0
  25. package/dist/chunk-VUNWHN5H.cjs.map +1 -0
  26. package/dist/chunk-XQC264QN.cjs +45 -0
  27. package/dist/chunk-XQC264QN.cjs.map +1 -0
  28. package/dist/config.cjs +8 -5
  29. package/dist/config.d.ts +16 -5
  30. package/dist/config.js +7 -4
  31. package/dist/contracts/eth.cjs +4 -2
  32. package/dist/contracts/eth.d.ts +24 -10
  33. package/dist/contracts/eth.js +3 -1
  34. package/dist/index.cjs +18 -7
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.js +16 -5
  38. package/dist/index.js.map +1 -1
  39. package/dist/types.cjs +7 -0
  40. package/dist/types.cjs.map +1 -0
  41. package/dist/types.d.ts +19 -0
  42. package/dist/types.js +7 -0
  43. package/dist/types.js.map +1 -0
  44. package/dist/utils/index.cjs +6 -5
  45. package/dist/utils/index.d.ts +1 -0
  46. package/dist/utils/index.js +5 -4
  47. package/package.json +1 -9
  48. package/dist/chunk-C6E7ASBV.js +0 -10
  49. package/dist/chunk-C6E7ASBV.js.map +0 -1
  50. package/dist/chunk-E7KQMDGP.cjs +0 -10
  51. package/dist/chunk-E7KQMDGP.cjs.map +0 -1
  52. package/dist/chunk-IYJZUHOI.js.map +0 -1
  53. package/dist/chunk-JQKT6SDR.cjs +0 -17
  54. package/dist/chunk-JQKT6SDR.cjs.map +0 -1
  55. package/dist/chunk-M6DLQFBS.cjs.map +0 -1
  56. package/dist/chunk-O34FLX72.cjs +0 -101
  57. package/dist/chunk-O34FLX72.cjs.map +0 -1
  58. package/dist/chunk-U462M4P2.js +0 -17
  59. package/dist/chunk-U462M4P2.js.map +0 -1
  60. package/dist/chunk-VRXN4ZLN.js +0 -101
  61. package/dist/chunk-VRXN4ZLN.js.map +0 -1
package/README.md CHANGED
@@ -9,5 +9,6 @@ import { config } from "@fxhash/config"
9
9
  ```
10
10
 
11
11
  This singleton will expose variables for testnet/mainnet based on the `FXHASH_ENV` .env variable.
12
+
12
13
  - Set `FXHASH_ENV=dev` to expose the config for testnet/dev environments
13
14
  - Set `FXHASH_ENV=prd` or `FXHASH_ENV=production` to expose the config for mainnet/production environments
package/dist/api/eth.cjs CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkE7KQMDGPcjs = require('../chunk-E7KQMDGP.cjs');
4
3
 
4
+ var _chunkVUNWHN5Hcjs = require('../chunk-VUNWHN5H.cjs');
5
5
 
6
- exports.ethTestnetApis = _chunkE7KQMDGPcjs.ethTestnetApis;
6
+
7
+
8
+ exports.ethMainnetApis = _chunkVUNWHN5Hcjs.ethMainnetApis; exports.ethTestnetApis = _chunkVUNWHN5Hcjs.ethTestnetApis;
7
9
  //# sourceMappingURL=eth.cjs.map
package/dist/api/eth.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  interface IEthApis {
2
2
  rpcs: string[];
3
3
  reservoir: string;
4
+ safe: string;
5
+ whitelist: string;
4
6
  }
5
7
  declare const ethTestnetApis: IEthApis;
8
+ declare const ethMainnetApis: IEthApis;
6
9
 
7
- export { IEthApis, ethTestnetApis };
10
+ export { IEthApis, ethMainnetApis, ethTestnetApis };
package/dist/api/eth.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import {
2
+ ethMainnetApis,
2
3
  ethTestnetApis
3
- } from "../chunk-C6E7ASBV.js";
4
+ } from "../chunk-M7HZ3LKE.js";
4
5
  export {
6
+ ethMainnetApis,
5
7
  ethTestnetApis
6
8
  };
7
9
  //# sourceMappingURL=eth.js.map
@@ -1,9 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkM6DLQFBScjs = require('../chunk-M6DLQFBS.cjs');
5
4
 
5
+ var _chunkHFJTQFU5cjs = require('../chunk-HFJTQFU5.cjs');
6
6
 
7
7
 
8
- exports.fxhashDevApis = _chunkM6DLQFBScjs.fxhashDevApis; exports.fxhashPrdApis = _chunkM6DLQFBScjs.fxhashPrdApis;
8
+
9
+
10
+ exports.fxhashDevApis = _chunkHFJTQFU5cjs.fxhashDevApis; exports.fxhashLocalApis = _chunkHFJTQFU5cjs.fxhashLocalApis; exports.fxhashPrdApis = _chunkHFJTQFU5cjs.fxhashPrdApis;
9
11
  //# sourceMappingURL=fxhash.cjs.map
@@ -1,13 +1,17 @@
1
1
  interface IFxhashApis {
2
2
  website: string;
3
3
  main: string;
4
+ hasura: string;
5
+ hasuraGql: string;
4
6
  file: string;
5
7
  fsEmulator: string;
6
8
  extract: string;
7
9
  media: string;
10
+ ethMetadata: string;
8
11
  ipfsGateway: string;
9
12
  ipfsGatewaySafe: string;
10
13
  onchfsProxy: string;
14
+ opensea: string;
11
15
  authority: {
12
16
  api: string;
13
17
  };
@@ -27,6 +31,7 @@ interface IFxhashApis {
27
31
  };
28
32
  }
29
33
  declare const fxhashDevApis: IFxhashApis;
34
+ declare const fxhashLocalApis: IFxhashApis;
30
35
  declare const fxhashPrdApis: IFxhashApis;
31
36
 
32
- export { IFxhashApis, fxhashDevApis, fxhashPrdApis };
37
+ export { IFxhashApis, fxhashDevApis, fxhashLocalApis, fxhashPrdApis };
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  fxhashDevApis,
3
+ fxhashLocalApis,
3
4
  fxhashPrdApis
4
- } from "../chunk-IYJZUHOI.js";
5
+ } from "../chunk-6LCEWPDB.js";
5
6
  export {
6
7
  fxhashDevApis,
8
+ fxhashLocalApis,
7
9
  fxhashPrdApis
8
10
  };
9
11
  //# sourceMappingURL=fxhash.js.map
@@ -0,0 +1,159 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkBDNQHSCVcjs = require('./chunk-BDNQHSCV.cjs');
4
+
5
+
6
+
7
+ var _chunkVUNWHN5Hcjs = require('./chunk-VUNWHN5H.cjs');
8
+
9
+
10
+
11
+
12
+ var _chunkHFJTQFU5cjs = require('./chunk-HFJTQFU5.cjs');
13
+
14
+
15
+
16
+ var _chunkNSIM63ECcjs = require('./chunk-NSIM63EC.cjs');
17
+
18
+
19
+
20
+ var _chunkXQC264QNcjs = require('./chunk-XQC264QN.cjs');
21
+
22
+
23
+
24
+ var _chunkLYBPFYQEcjs = require('./chunk-LYBPFYQE.cjs');
25
+
26
+ // src/config.ts
27
+ var fxhashConfig = {
28
+ networks: {
29
+ testnet: {
30
+ tez: {
31
+ contracts: _chunkLYBPFYQEcjs.tezosTestnetContracts,
32
+ config: {
33
+ network: "ghostnet",
34
+ chainId: _chunkBDNQHSCVcjs.BlockchainIdentifiers.TezosGhostnet
35
+ },
36
+ apis: _chunkNSIM63ECcjs.tezosTestnetApis
37
+ },
38
+ eth: {
39
+ contracts: _chunkXQC264QNcjs.ethTestnetContracts,
40
+ config: {
41
+ network: "Sepolia",
42
+ chainId: _chunkBDNQHSCVcjs.BlockchainIdentifiers.EthereumSepolia
43
+ },
44
+ apis: _chunkVUNWHN5Hcjs.ethTestnetApis
45
+ }
46
+ },
47
+ mainnet: {
48
+ tez: {
49
+ contracts: _chunkLYBPFYQEcjs.tezosMainnetContracts,
50
+ config: {
51
+ network: "mainnet",
52
+ chainId: _chunkBDNQHSCVcjs.BlockchainIdentifiers.TezosMainnet
53
+ },
54
+ apis: _chunkNSIM63ECcjs.tezosMainnetApis
55
+ },
56
+ eth: {
57
+ contracts: _chunkXQC264QNcjs.ethMainnetContracts,
58
+ config: {
59
+ network: "Ethereum",
60
+ chainId: _chunkBDNQHSCVcjs.BlockchainIdentifiers.EthereumMainnet
61
+ },
62
+ apis: _chunkVUNWHN5Hcjs.ethMainnetApis
63
+ }
64
+ }
65
+ },
66
+ envs: {
67
+ local: {
68
+ apis: _chunkHFJTQFU5cjs.fxhashLocalApis,
69
+ config: {
70
+ envName: "local",
71
+ gtMinPrice: "0",
72
+ walletConnectId: "111994543d1b754bab82c368d0e61ae5",
73
+ projectLockTime: 3600,
74
+ referrerShare: 0,
75
+ /**
76
+ * ! Beware ! Changing any of these 3 values will result in current
77
+ * projects breaking.
78
+ * https://github.com/fxhash/monorepo/issues/701
79
+ */
80
+ ethFeeReceiver: "0xe1f04609f7bC45e23a1BA4CD4a76f476755beBA6",
81
+ fxhashPrimaryFee: 1e3,
82
+ fxhashSecondaryFee: 2500,
83
+ fxhashTeamSafeAddress: "0x4F073947573FF44621cA25061Fb035c73a3014ab",
84
+ signerSafe: "0x4F073947573FF44621cA25061Fb035c73a3014ab",
85
+ moderationSafe: "0x4F073947573FF44621cA25061Fb035c73a3014ab",
86
+ wertRelayer: "0x2ff0ec69341f43cc462251bd49bb63681adafcb0"
87
+ }
88
+ },
89
+ dev: {
90
+ apis: _chunkHFJTQFU5cjs.fxhashDevApis,
91
+ config: {
92
+ envName: "development",
93
+ gtMinPrice: "0",
94
+ walletConnectId: "111994543d1b754bab82c368d0e61ae5",
95
+ projectLockTime: 3600,
96
+ referrerShare: 0,
97
+ /**
98
+ * ! Beware ! Changing any of these 3 values will result in current
99
+ * projects breaking.
100
+ * https://github.com/fxhash/monorepo/issues/701
101
+ */
102
+ ethFeeReceiver: "0xe1f04609f7bC45e23a1BA4CD4a76f476755beBA6",
103
+ fxhashPrimaryFee: 1e3,
104
+ fxhashSecondaryFee: 2500,
105
+ fxhashTeamSafeAddress: "0x4F073947573FF44621cA25061Fb035c73a3014ab",
106
+ signerSafe: "0x4F073947573FF44621cA25061Fb035c73a3014ab",
107
+ moderationSafe: "0x4F073947573FF44621cA25061Fb035c73a3014ab",
108
+ wertRelayer: "0x2ff0ec69341f43cc462251bd49bb63681adafcb0"
109
+ }
110
+ },
111
+ prd: {
112
+ apis: _chunkHFJTQFU5cjs.fxhashPrdApis,
113
+ config: {
114
+ envName: "production",
115
+ gtMinPrice: "0",
116
+ walletConnectId: "111994543d1b754bab82c368d0e61ae5",
117
+ projectLockTime: 3600,
118
+ referrerShare: 0,
119
+ /**
120
+ * ! Beware ! Changing any of these 3 values will result in current
121
+ * projects breaking.
122
+ * https://github.com/fxhash/monorepo/issues/701
123
+ */
124
+ ethFeeReceiver: "0xed650E40F7bd3812152D4BFA6740662F50e178DF",
125
+ fxhashPrimaryFee: 1e3,
126
+ fxhashSecondaryFee: 2500,
127
+ fxhashTeamSafeAddress: "0xD8b1905022d70e74c6c8aaA2baaf275fBe1634f1",
128
+ signerSafe: "0xB456aF77dEB65065462BD1f0D9098413E6CA4200",
129
+ moderationSafe: "0x99CDaECbe1be4B7232a4f2c79EF76D403886FE1E",
130
+ wertRelayer: "0xc16157e00b1bff1522c6f01246b4fb621da048d0"
131
+ }
132
+ }
133
+ }
134
+ };
135
+ var localConfig = getConfigForEnv("local");
136
+ var devConfig = getConfigForEnv("dev");
137
+ var prdConfig = getConfigForEnv("prd");
138
+
139
+ // src/utils/index.ts
140
+ function getBlockchainNetworkForEnv(env) {
141
+ return env === "prd" ? "mainnet" : "testnet";
142
+ }
143
+ function getConfigForEnv(env) {
144
+ const blockchainNetwork = getBlockchainNetworkForEnv(env);
145
+ return {
146
+ ...fxhashConfig.networks[blockchainNetwork],
147
+ ...fxhashConfig.envs[env]
148
+ };
149
+ }
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ exports.getBlockchainNetworkForEnv = getBlockchainNetworkForEnv; exports.getConfigForEnv = getConfigForEnv; exports.fxhashConfig = fxhashConfig; exports.localConfig = localConfig; exports.devConfig = devConfig; exports.prdConfig = prdConfig;
159
+ //# sourceMappingURL=chunk-2Z36EJVM.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config.ts","../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgGO,IAAM,eAA8B;AAAA,EACzC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,KAAK;AAAA,QACH,WAAW;AAAA,QACX,QAAQ;AAAA,UACN,SAAS;AAAA,UACT,SAAS,sBAAsB;AAAA,QACjC;AAAA,QACA,MAAM;AAAA,MACR;AAAA,MACA,KAAK;AAAA,QACH,WAAW;AAAA,QACX,QAAQ;AAAA,UACN,SAAS;AAAA,UACT,SAAS,sBAAsB;AAAA,QACjC;AAAA,QACA,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,KAAK;AAAA,QACH,WAAW;AAAA,QACX,QAAQ;AAAA,UACN,SAAS;AAAA,UACT,SAAS,sBAAsB;AAAA,QACjC;AAAA,QACA,MAAM;AAAA,MACR;AAAA,MACA,KAAK;AAAA,QACH,WAAW;AAAA,QACX,QAAQ;AAAA,UACN,SAAS;AAAA,UACT,SAAS,sBAAsB;AAAA,QACjC;AAAA,QACA,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,iBAAiB;AAAA,QACjB,iBAAiB;AAAA,QACjB,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAMf,gBAAgB;AAAA,QAChB,kBAAkB;AAAA,QAClB,oBAAoB;AAAA,QAEpB,uBAAuB;AAAA,QACvB,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA,KAAK;AAAA,MACH,MAAM;AAAA,MACN,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,iBAAiB;AAAA,QACjB,iBAAiB;AAAA,QACjB,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAMf,gBAAgB;AAAA,QAChB,kBAAkB;AAAA,QAClB,oBAAoB;AAAA,QAEpB,uBAAuB;AAAA,QACvB,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA,KAAK;AAAA,MACH,MAAM;AAAA,MACN,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,iBAAiB;AAAA,QACjB,iBAAiB;AAAA,QACjB,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAOf,gBAAgB;AAAA,QAChB,kBAAkB;AAAA,QAClB,oBAAoB;AAAA,QAEpB,uBAAuB;AAAA,QACvB,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,cAAc,gBAAgB,OAAO;AAC3C,IAAM,YAAY,gBAAgB,KAAK;AACvC,IAAM,YAAY,gBAAgB,KAAK;;;AC5MvC,SAAS,2BAA2B,KAA+B;AACxE,SAAO,QAAQ,QAAQ,YAAY;AACrC;AAEO,SAAS,gBAAgB,KAAmC;AACjE,QAAM,oBAAoB,2BAA2B,GAAG;AACxD,SAAO;AAAA,IACL,GAAG,aAAa,SAAS,iBAAiB;AAAA,IAC1C,GAAG,aAAa,KAAK,GAAG;AAAA,EAC1B;AACF","sourcesContent":["import { ethMainnetApis, ethTestnetApis, IEthApis } from \"api/eth\"\nimport { ITezosApis, tezosTestnetApis, tezosMainnetApis } from \"api/tezos\"\nimport {\n IFxhashApis,\n fxhashDevApis,\n fxhashLocalApis,\n fxhashPrdApis,\n} from \"api/fxhash\"\nimport {\n ITezosContracts,\n tezosMainnetContracts,\n tezosTestnetContracts,\n} from \"contracts/tezos\"\nimport {\n ethMainnetContracts,\n ethTestnetContracts,\n IEthContracts,\n} from \"contracts/eth\"\nimport { getConfigForEnv } from \"utils\"\nimport { BlockchainIdentifier, BlockchainIdentifiers } from \"types\"\n\nexport interface IFxhashNetworkConfig {\n network: string\n chainId: BlockchainIdentifier\n}\n\nexport interface IFxhashEnvConfig {\n envName: string\n gtMinPrice: string\n walletConnectId: string\n ethFeeReceiver: `0x${string}`\n wertRelayer: string\n fxhashPrimaryFee: number\n fxhashSecondaryFee: number\n projectLockTime: number\n referrerShare: number\n fxhashTeamSafeAddress: string\n signerSafe: string\n moderationSafe: string\n}\n\n// the variations supported by the config\nexport type TBlockchain = \"tez\" | \"eth\"\nexport type TBlockchainNetwork = \"testnet\" | \"mainnet\"\nexport type TEnv = \"dev\" | \"prd\" | \"local\"\n\ntype TBlockchainContacts = {\n [B in TBlockchain]: {\n tez: ITezosContracts\n eth: IEthContracts\n }[B]\n}\n\ntype TBlockchainApis = {\n [B in TBlockchain]: {\n tez: ITezosApis\n eth: IEthApis | null\n }[B]\n}\n\ntype TNetworkBlockchainConfig = {\n [B in TBlockchain]: {\n tez: IFxhashNetworkConfig\n eth: IFxhashNetworkConfig\n }[B]\n}\n\nexport type IFxhashConfig = {\n networks: {\n [N in TBlockchainNetwork]: {\n [B in TBlockchain]: {\n contracts: TBlockchainContacts[B]\n config: TNetworkBlockchainConfig[B]\n apis: TBlockchainApis[B]\n }\n }\n }\n envs: {\n [K in TEnv]: {\n apis: IFxhashApis\n config: IFxhashEnvConfig\n }\n }\n}\n\nexport type IFxhashConfigSingleEnv = {\n [B in TBlockchain]: {\n contracts: TBlockchainContacts[B]\n config: TNetworkBlockchainConfig[B]\n apis: TBlockchainApis[B]\n }\n} & {\n apis: IFxhashApis\n config: IFxhashEnvConfig\n}\n\nexport const fxhashConfig: IFxhashConfig = {\n networks: {\n testnet: {\n tez: {\n contracts: tezosTestnetContracts,\n config: {\n network: \"ghostnet\",\n chainId: BlockchainIdentifiers.TezosGhostnet,\n },\n apis: tezosTestnetApis,\n },\n eth: {\n contracts: ethTestnetContracts,\n config: {\n network: \"Sepolia\",\n chainId: BlockchainIdentifiers.EthereumSepolia,\n },\n apis: ethTestnetApis,\n },\n },\n mainnet: {\n tez: {\n contracts: tezosMainnetContracts,\n config: {\n network: \"mainnet\",\n chainId: BlockchainIdentifiers.TezosMainnet,\n },\n apis: tezosMainnetApis,\n },\n eth: {\n contracts: ethMainnetContracts,\n config: {\n network: \"Ethereum\",\n chainId: BlockchainIdentifiers.EthereumMainnet,\n },\n apis: ethMainnetApis,\n },\n },\n },\n envs: {\n local: {\n apis: fxhashLocalApis,\n config: {\n envName: \"local\",\n gtMinPrice: \"0\",\n walletConnectId: \"111994543d1b754bab82c368d0e61ae5\",\n projectLockTime: 3600,\n referrerShare: 0,\n /**\n * ! Beware ! Changing any of these 3 values will result in current\n * projects breaking.\n * https://github.com/fxhash/monorepo/issues/701\n */\n ethFeeReceiver: \"0xe1f04609f7bC45e23a1BA4CD4a76f476755beBA6\",\n fxhashPrimaryFee: 1000,\n fxhashSecondaryFee: 2500,\n\n fxhashTeamSafeAddress: \"0x4F073947573FF44621cA25061Fb035c73a3014ab\",\n signerSafe: \"0x4F073947573FF44621cA25061Fb035c73a3014ab\",\n moderationSafe: \"0x4F073947573FF44621cA25061Fb035c73a3014ab\",\n wertRelayer: \"0x2ff0ec69341f43cc462251bd49bb63681adafcb0\",\n },\n },\n dev: {\n apis: fxhashDevApis,\n config: {\n envName: \"development\",\n gtMinPrice: \"0\",\n walletConnectId: \"111994543d1b754bab82c368d0e61ae5\",\n projectLockTime: 3600,\n referrerShare: 0,\n /**\n * ! Beware ! Changing any of these 3 values will result in current\n * projects breaking.\n * https://github.com/fxhash/monorepo/issues/701\n */\n ethFeeReceiver: \"0xe1f04609f7bC45e23a1BA4CD4a76f476755beBA6\",\n fxhashPrimaryFee: 1000,\n fxhashSecondaryFee: 2500,\n\n fxhashTeamSafeAddress: \"0x4F073947573FF44621cA25061Fb035c73a3014ab\",\n signerSafe: \"0x4F073947573FF44621cA25061Fb035c73a3014ab\",\n moderationSafe: \"0x4F073947573FF44621cA25061Fb035c73a3014ab\",\n wertRelayer: \"0x2ff0ec69341f43cc462251bd49bb63681adafcb0\",\n },\n },\n prd: {\n apis: fxhashPrdApis,\n config: {\n envName: \"production\",\n gtMinPrice: \"0\",\n walletConnectId: \"111994543d1b754bab82c368d0e61ae5\",\n projectLockTime: 3600,\n referrerShare: 0,\n\n /**\n * ! Beware ! Changing any of these 3 values will result in current\n * projects breaking.\n * https://github.com/fxhash/monorepo/issues/701\n */\n ethFeeReceiver: \"0xed650E40F7bd3812152D4BFA6740662F50e178DF\",\n fxhashPrimaryFee: 1000,\n fxhashSecondaryFee: 2500,\n\n fxhashTeamSafeAddress: \"0xD8b1905022d70e74c6c8aaA2baaf275fBe1634f1\",\n signerSafe: \"0xB456aF77dEB65065462BD1f0D9098413E6CA4200\",\n moderationSafe: \"0x99CDaECbe1be4B7232a4f2c79EF76D403886FE1E\",\n wertRelayer: \"0xc16157e00b1bff1522c6f01246b4fb621da048d0\",\n },\n },\n },\n}\n\nexport const localConfig = getConfigForEnv(\"local\")\nexport const devConfig = getConfigForEnv(\"dev\")\nexport const prdConfig = getConfigForEnv(\"prd\")\n","import {\n TEnv,\n fxhashConfig,\n TBlockchainNetwork,\n IFxhashConfigSingleEnv,\n} from \"config\"\n\nexport function getBlockchainNetworkForEnv(env: TEnv): TBlockchainNetwork {\n return env === \"prd\" ? \"mainnet\" : \"testnet\"\n}\n\nexport function getConfigForEnv(env: TEnv): IFxhashConfigSingleEnv {\n const blockchainNetwork = getBlockchainNetworkForEnv(env)\n return {\n ...fxhashConfig.networks[blockchainNetwork],\n ...fxhashConfig.envs[env],\n }\n}\n"]}
@@ -0,0 +1,13 @@
1
+ // src/types.ts
2
+ var BlockchainIdentifiers = {
3
+ TezosGhostnet: "tezos:NetXnHfVqm9iesp",
4
+ TezosMainnet: "tezos:NetXdQprcVkpaWU",
5
+ EthereumMainnet: "eip155:1",
6
+ EthereumGoerli: "eip155:5",
7
+ EthereumSepolia: "eip155:11155111"
8
+ };
9
+
10
+ export {
11
+ BlockchainIdentifiers
12
+ };
13
+ //# sourceMappingURL=chunk-3HYMO7HS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types.ts"],"sourcesContent":["/**\n * A mapping of blockchains in their \"human-readable\" format with their proper\n * blockchain identifier.\n */\nexport const BlockchainIdentifiers = {\n TezosGhostnet: \"tezos:NetXnHfVqm9iesp\",\n TezosMainnet: \"tezos:NetXdQprcVkpaWU\",\n EthereumMainnet: \"eip155:1\",\n EthereumGoerli: \"eip155:5\",\n EthereumSepolia: \"eip155:11155111\",\n} as const\n\n/**\n * An union of all the blockchains supported by fxhash, defined by their chain\n * identifier. Can be used to facilitate typescript auto-completion with string\n * when enums aren't as good.\n */\nexport type BlockchainIdentifier =\n (typeof BlockchainIdentifiers)[keyof typeof BlockchainIdentifiers]\n"],"mappings":";AAIO,IAAM,wBAAwB;AAAA,EACnC,eAAe;AAAA,EACf,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;","names":[]}
@@ -0,0 +1,45 @@
1
+ // src/contracts/eth.ts
2
+ var ethTestnetContracts = {
3
+ multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
4
+ seaport_zone: "0x0000000006B429721d1F4c4cD256BF3A38c09Ac6",
5
+ project_factory_v1: "0x4e9ef916F55B5d4a27E6406C7Ce8bcd29c2693d6",
6
+ mint_ticket_factory_v1: "0xbaed21d8C57caf71578b9aE1E09a68721d0Dd02d",
7
+ dutch_auction_minter_v1: "0x2F8ea350E7F29BCaC2AEE5889d64df07EE3Fa98d",
8
+ fixed_price_minter_v1: "0xa6c9c758e80ec18e1a28d485b97400B11dCFCD64",
9
+ ticket_redeemer_v1: "0xdd29eA613e0553fc03f5762Bf643710a7987A216",
10
+ ipfs_renderer_v1: "0x17b9c8a7C6F9D3768D4DA75EBB6abDe9FBe900cf",
11
+ onchfs_renderer_v1: "0x25B087D2c87a0b34188a530dC9cCfDa30822AA8e",
12
+ randomizer_v1: "0x5962e4dEeDe2DB4A83259255D30c19F4397FD5A6",
13
+ role_registry_v1: "0x92B70c5C6E676BdC395DfD911c07392fc7C36E4F",
14
+ contract_registry_v1: "0xb7CFDcDb2c6a1D05D7b85FB4ae7B7bccd028010F",
15
+ gen_art_token_impl_v1: "0x1feeb359e96E6Dd6F19F1FC98e8FffDdf5AeaD58",
16
+ mint_ticket_impl_v1: "0x0303e3a5be6e9Fa21E72cE446a402a6AEec13c60",
17
+ onchfs_file_system: "0xc3f5ef1a0256b9ceb1452650db72344809bb3a85",
18
+ onchfs_content_store: "0x7c1730B7bE9424D0b983B84aEb254e3a2a105d91",
19
+ seaport: "0x00cA04c45da318d5b7E7B14D5381Ca59F09C73f0"
20
+ };
21
+ var ethMainnetContracts = {
22
+ multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
23
+ seaport_zone: "0x0000000006B429721d1F4c4cD256BF3A38c09Ac6",
24
+ project_factory_v1: "0x442295de8A31d65026dBc09c29d469F6854f188a",
25
+ mint_ticket_factory_v1: "0xDB92ed0e6265d042F05E5C2f6D2F99496e87D706",
26
+ dutch_auction_minter_v1: "0x1bC736a2b144096a4752534C557D7E6C311CcAF1",
27
+ fixed_price_minter_v1: "0xB645cFfD9bFB93c2c181d5Be0D6a8C1d81C2aEf3",
28
+ ticket_redeemer_v1: "0x3D72011b1bB52e33f9D81Fc5553FF4765e3f32c1",
29
+ ipfs_renderer_v1: "0x48F00F8314920ca0cd763D74acFe8cFE4024a274",
30
+ onchfs_renderer_v1: "0xe9fE6b2e494E40404AcB2b8B0a0Bc7b79FD03c83",
31
+ randomizer_v1: "0xED32Ed47A75e298433cF822E10645C04a0B95075",
32
+ role_registry_v1: "0x22b9Dd17BA1132C027d780bC0A784f08f244022B",
33
+ contract_registry_v1: "0x4DAc308c686D747A804B7E95db606695a529A750",
34
+ gen_art_token_impl_v1: "0x429AC1aA66220573Da6928bcce7384fe50e1284f",
35
+ mint_ticket_impl_v1: "0xc2743B0B901eDAA8ccd1A09914449A797e1079F1",
36
+ onchfs_file_system: "0x9e0f2864c6f125bbf599df6ca6e6c3774c5b2e04",
37
+ onchfs_content_store: "0xC6806fd75745bB5F5B32ADa19963898155f9DB91",
38
+ seaport: "0x00cA04c45da318d5b7E7B14D5381Ca59F09C73f0"
39
+ };
40
+
41
+ export {
42
+ ethTestnetContracts,
43
+ ethMainnetContracts
44
+ };
45
+ //# sourceMappingURL=chunk-3U7S5KQ5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/contracts/eth.ts"],"sourcesContent":["export interface IEthContracts {\n multicall3: `0x${string}`\n seaport_zone: `0x${string}`\n project_factory_v1: `0x${string}`\n fixed_price_minter_v1: `0x${string}`\n dutch_auction_minter_v1: `0x${string}`\n mint_ticket_factory_v1: `0x${string}`\n ticket_redeemer_v1: `0x${string}`\n ipfs_renderer_v1: `0x${string}`\n onchfs_renderer_v1: `0x${string}`\n randomizer_v1: `0x${string}`\n role_registry_v1: `0x${string}`\n contract_registry_v1: `0x${string}`\n gen_art_token_impl_v1: `0x${string}`\n mint_ticket_impl_v1: `0x${string}`\n onchfs_file_system: `0x${string}`\n onchfs_content_store: `0x${string}`\n seaport: `0x${string}`\n}\n\nexport const ethTestnetContracts: IEthContracts = {\n multicall3: \"0xcA11bde05977b3631167028862bE2a173976CA11\",\n seaport_zone: \"0x0000000006B429721d1F4c4cD256BF3A38c09Ac6\",\n project_factory_v1: \"0x4e9ef916F55B5d4a27E6406C7Ce8bcd29c2693d6\",\n mint_ticket_factory_v1: \"0xbaed21d8C57caf71578b9aE1E09a68721d0Dd02d\",\n dutch_auction_minter_v1: \"0x2F8ea350E7F29BCaC2AEE5889d64df07EE3Fa98d\",\n fixed_price_minter_v1: \"0xa6c9c758e80ec18e1a28d485b97400B11dCFCD64\",\n ticket_redeemer_v1: \"0xdd29eA613e0553fc03f5762Bf643710a7987A216\",\n ipfs_renderer_v1: \"0x17b9c8a7C6F9D3768D4DA75EBB6abDe9FBe900cf\",\n onchfs_renderer_v1: \"0x25B087D2c87a0b34188a530dC9cCfDa30822AA8e\",\n randomizer_v1: \"0x5962e4dEeDe2DB4A83259255D30c19F4397FD5A6\",\n role_registry_v1: \"0x92B70c5C6E676BdC395DfD911c07392fc7C36E4F\",\n contract_registry_v1: \"0xb7CFDcDb2c6a1D05D7b85FB4ae7B7bccd028010F\",\n gen_art_token_impl_v1: \"0x1feeb359e96E6Dd6F19F1FC98e8FffDdf5AeaD58\",\n mint_ticket_impl_v1: \"0x0303e3a5be6e9Fa21E72cE446a402a6AEec13c60\",\n onchfs_file_system: \"0xc3f5ef1a0256b9ceb1452650db72344809bb3a85\",\n onchfs_content_store: \"0x7c1730B7bE9424D0b983B84aEb254e3a2a105d91\",\n seaport: \"0x00cA04c45da318d5b7E7B14D5381Ca59F09C73f0\",\n}\n\n/**\n * TODO\n * -----------------------------------------------------------------------------\n * Put the actual addresses.\n */\nexport const ethMainnetContracts: IEthContracts = {\n multicall3: \"0xcA11bde05977b3631167028862bE2a173976CA11\",\n seaport_zone: \"0x0000000006B429721d1F4c4cD256BF3A38c09Ac6\",\n project_factory_v1: \"0x442295de8A31d65026dBc09c29d469F6854f188a\",\n mint_ticket_factory_v1: \"0xDB92ed0e6265d042F05E5C2f6D2F99496e87D706\",\n dutch_auction_minter_v1: \"0x1bC736a2b144096a4752534C557D7E6C311CcAF1\",\n fixed_price_minter_v1: \"0xB645cFfD9bFB93c2c181d5Be0D6a8C1d81C2aEf3\",\n ticket_redeemer_v1: \"0x3D72011b1bB52e33f9D81Fc5553FF4765e3f32c1\",\n ipfs_renderer_v1: \"0x48F00F8314920ca0cd763D74acFe8cFE4024a274\",\n onchfs_renderer_v1: \"0xe9fE6b2e494E40404AcB2b8B0a0Bc7b79FD03c83\",\n randomizer_v1: \"0xED32Ed47A75e298433cF822E10645C04a0B95075\",\n role_registry_v1: \"0x22b9Dd17BA1132C027d780bC0A784f08f244022B\",\n contract_registry_v1: \"0x4DAc308c686D747A804B7E95db606695a529A750\",\n gen_art_token_impl_v1: \"0x429AC1aA66220573Da6928bcce7384fe50e1284f\",\n mint_ticket_impl_v1: \"0xc2743B0B901eDAA8ccd1A09914449A797e1079F1\",\n onchfs_file_system: \"0x9e0f2864c6f125bbf599df6ca6e6c3774c5b2e04\",\n onchfs_content_store: \"0xC6806fd75745bB5F5B32ADa19963898155f9DB91\",\n seaport: \"0x00cA04c45da318d5b7E7B14D5381Ca59F09C73f0\",\n}\n"],"mappings":";AAoBO,IAAM,sBAAqC;AAAA,EAChD,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,wBAAwB;AAAA,EACxB,yBAAyB;AAAA,EACzB,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,SAAS;AACX;AAOO,IAAM,sBAAqC;AAAA,EAChD,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,wBAAwB;AAAA,EACxB,yBAAyB;AAAA,EACzB,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,SAAS;AACX;","names":[]}
@@ -1,14 +1,18 @@
1
1
  // src/api/fxhash.ts
2
2
  var fxhashDevApis = {
3
3
  website: "https://dev.fxhash-dev.xyz",
4
- main: "https://api.fxhash-dev.xyz/graphql",
4
+ main: "https://api.v2-temp.dev.fxhash-dev.xyz/graphql",
5
+ hasura: "https://api.v2.dev.fxhash-dev.xyz",
6
+ hasuraGql: "https://api.v2.dev.fxhash-dev.xyz/v1/graphql",
5
7
  file: "https://file-api.fxhash-dev.xyz",
6
8
  fsEmulator: "https://fs-emulator.fxhash-dev.xyz",
7
9
  extract: "https://extract.fxhash-dev.xyz",
8
- media: "https://media.fxhash-dev.xyz",
10
+ media: "https://media.dev.fxhash-dev.xyz",
11
+ ethMetadata: "https://media.dev.fxhash-dev.xyz/metadata/ethereum/",
9
12
  ipfsGateway: "https://gateway.fxhash-dev.xyz",
10
13
  ipfsGatewaySafe: "https://gateway.fxhash-dev2.xyz",
11
14
  onchfsProxy: "https://onchfs.fxhash-dev2.xyz",
15
+ opensea: "https://testnets-api.opensea.io/api/v2/chain/goerli",
12
16
  authority: {
13
17
  api: "NONE"
14
18
  },
@@ -27,17 +31,28 @@ var fxhashDevApis = {
27
31
  liveBackend: "_NONE"
28
32
  }
29
33
  };
34
+ var fxhashLocalApis = {
35
+ // todo: eventually, find a better way to inject the values from the
36
+ // docker-compose, maybe outside of this package idk
37
+ ...fxhashDevApis,
38
+ hasura: "http://host.docker.internal:8888",
39
+ hasuraGql: "http://host.docker.internal:8888/v1/graphql"
40
+ };
30
41
  var fxhashPrdApis = {
31
42
  website: "https://fxhash.xyz",
32
- main: "https://api.fxhash.xyz/graphql",
43
+ main: "https://api.v2-temp.fxhash.xyz/graphql",
44
+ hasura: "https://api.v2.fxhash.xyz",
45
+ hasuraGql: "https://api.v2.fxhash.xyz/v1/graphql",
33
46
  file: "https://file-api.fxhash.xyz",
34
47
  fsEmulator: "https://fs-emulator.fxhash.xyz",
35
48
  // placeholder
36
49
  extract: "https://extract.fxhash.xyz",
37
50
  media: "https://media.fxhash.xyz",
51
+ ethMetadata: "https://media.fxhash.xyz/metadata/ethereum/",
38
52
  ipfsGateway: "https://gateway.fxhash.xyz",
39
53
  ipfsGatewaySafe: "https://gateway.fxhash2.xyz",
40
54
  onchfsProxy: "https://onchfs.fxhash2.xyz",
55
+ opensea: "https://api.opensea.io/api/v2/chain/ethereum",
41
56
  authority: {
42
57
  api: "NONE"
43
58
  },
@@ -59,6 +74,7 @@ var fxhashPrdApis = {
59
74
 
60
75
  export {
61
76
  fxhashDevApis,
77
+ fxhashLocalApis,
62
78
  fxhashPrdApis
63
79
  };
64
- //# sourceMappingURL=chunk-IYJZUHOI.js.map
80
+ //# sourceMappingURL=chunk-6LCEWPDB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api/fxhash.ts"],"sourcesContent":["export interface IFxhashApis {\n website: string\n main: string\n hasura: string\n hasuraGql: string\n file: string\n fsEmulator: string\n extract: string\n media: string\n ethMetadata: string\n ipfsGateway: string\n ipfsGatewaySafe: string\n onchfsProxy: string\n opensea: string\n authority: {\n api: string\n }\n capture: {\n lambdas: {\n small: string\n medium: string\n large: string\n }\n }\n dashboard: {\n backend: string\n aggregator: string\n }\n events: {\n liveBackend: string\n }\n}\n\n// list of APIs dev leverages\nexport const fxhashDevApis: IFxhashApis = {\n website: \"https://dev.fxhash-dev.xyz\",\n main: \"https://api.v2-temp.dev.fxhash-dev.xyz/graphql\",\n hasura: \"https://api.v2.dev.fxhash-dev.xyz\",\n hasuraGql: \"https://api.v2.dev.fxhash-dev.xyz/v1/graphql\",\n file: \"https://file-api.fxhash-dev.xyz\",\n fsEmulator: \"https://fs-emulator.fxhash-dev.xyz\",\n extract: \"https://extract.fxhash-dev.xyz\",\n media: \"https://media.dev.fxhash-dev.xyz\",\n ethMetadata: \"https://media.dev.fxhash-dev.xyz/metadata/ethereum/\",\n ipfsGateway: \"https://gateway.fxhash-dev.xyz\",\n ipfsGatewaySafe: \"https://gateway.fxhash-dev2.xyz\",\n onchfsProxy: \"https://onchfs.fxhash-dev2.xyz\",\n opensea: \"https://testnets-api.opensea.io/api/v2/chain/goerli\",\n authority: {\n api: \"NONE\",\n },\n capture: {\n lambdas: {\n small:\n \"https://u5not5l323zczuwnrzxwkt34ra0eyidj.lambda-url.us-east-1.on.aws/\",\n medium:\n \"https://jgfz7a6km7fsqonej2sp3lqwvu0utnyy.lambda-url.us-east-1.on.aws/\",\n large:\n \"https://fzezvbp2f74yturkj4akjyrq3e0zswhb.lambda-url.us-east-1.on.aws/\",\n },\n },\n dashboard: {\n backend: \"https://live-minting.fxhash-dev.xyz\",\n aggregator: \"_NONE\",\n },\n events: {\n liveBackend: \"_NONE\",\n },\n}\n\n// list of APIs for when fxhash is ran locally\nexport const fxhashLocalApis: IFxhashApis = {\n // todo: eventually, find a better way to inject the values from the\n // docker-compose, maybe outside of this package idk\n ...fxhashDevApis,\n hasura: \"http://host.docker.internal:8888\",\n hasuraGql: \"http://host.docker.internal:8888/v1/graphql\",\n}\n\n// list of APIs prod leverages\nexport const fxhashPrdApis: IFxhashApis = {\n website: \"https://fxhash.xyz\",\n main: \"https://api.v2-temp.fxhash.xyz/graphql\",\n hasura: \"https://api.v2.fxhash.xyz\",\n hasuraGql: \"https://api.v2.fxhash.xyz/v1/graphql\",\n file: \"https://file-api.fxhash.xyz\",\n fsEmulator: \"https://fs-emulator.fxhash.xyz\", // placeholder\n extract: \"https://extract.fxhash.xyz\",\n media: \"https://media.fxhash.xyz\",\n ethMetadata: \"https://media.fxhash.xyz/metadata/ethereum/\",\n ipfsGateway: \"https://gateway.fxhash.xyz\",\n ipfsGatewaySafe: \"https://gateway.fxhash2.xyz\",\n onchfsProxy: \"https://onchfs.fxhash2.xyz\",\n opensea: \"https://api.opensea.io/api/v2/chain/ethereum\",\n authority: {\n api: \"NONE\",\n },\n capture: {\n lambdas: {\n small:\n \"https://7sz7knaaw3obgqxjyv3m4e5myu0lsbdp.lambda-url.us-east-1.on.aws/\",\n medium:\n \"https://tuupcq6eesbfk4veuzdfrhu7zm0zwuqy.lambda-url.us-east-1.on.aws/\",\n large:\n \"https://bojj24y6ucxmsyfi4uccdmiliy0dzhji.lambda-url.us-east-1.on.aws/\",\n },\n },\n dashboard: {\n backend: \"https://events.fxhash.xyz\",\n aggregator: \"NONE\",\n },\n events: {\n liveBackend: \"_NONE\",\n },\n}\n"],"mappings":";AAkCO,IAAM,gBAA6B;AAAA,EACxC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,IACT,KAAK;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,MACP,OACE;AAAA,MACF,QACE;AAAA,MACF,OACE;AAAA,IACJ;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,IACT,YAAY;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,EACf;AACF;AAGO,IAAM,kBAA+B;AAAA;AAAA;AAAA,EAG1C,GAAG;AAAA,EACH,QAAQ;AAAA,EACR,WAAW;AACb;AAGO,IAAM,gBAA6B;AAAA,EACxC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,IACT,KAAK;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,MACP,OACE;AAAA,MACF,QACE;AAAA,MACF,OACE;AAAA,IACJ;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,IACT,YAAY;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,EACf;AACF;","names":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/types.ts
2
+ var BlockchainIdentifiers = {
3
+ TezosGhostnet: "tezos:NetXnHfVqm9iesp",
4
+ TezosMainnet: "tezos:NetXdQprcVkpaWU",
5
+ EthereumMainnet: "eip155:1",
6
+ EthereumGoerli: "eip155:5",
7
+ EthereumSepolia: "eip155:11155111"
8
+ };
9
+
10
+
11
+
12
+ exports.BlockchainIdentifiers = BlockchainIdentifiers;
13
+ //# sourceMappingURL=chunk-BDNQHSCV.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types.ts"],"names":[],"mappings":";AAIO,IAAM,wBAAwB;AAAA,EACnC,eAAe;AAAA,EACf,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB","sourcesContent":["/**\n * A mapping of blockchains in their \"human-readable\" format with their proper\n * blockchain identifier.\n */\nexport const BlockchainIdentifiers = {\n TezosGhostnet: \"tezos:NetXnHfVqm9iesp\",\n TezosMainnet: \"tezos:NetXdQprcVkpaWU\",\n EthereumMainnet: \"eip155:1\",\n EthereumGoerli: \"eip155:5\",\n EthereumSepolia: \"eip155:11155111\",\n} as const\n\n/**\n * An union of all the blockchains supported by fxhash, defined by their chain\n * identifier. Can be used to facilitate typescript auto-completion with string\n * when enums aren't as good.\n */\nexport type BlockchainIdentifier =\n (typeof BlockchainIdentifiers)[keyof typeof BlockchainIdentifiers]\n"]}
@@ -1,14 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/api/fxhash.ts
2
2
  var fxhashDevApis = {
3
3
  website: "https://dev.fxhash-dev.xyz",
4
- main: "https://api.fxhash-dev.xyz/graphql",
4
+ main: "https://api.v2-temp.dev.fxhash-dev.xyz/graphql",
5
+ hasura: "https://api.v2.dev.fxhash-dev.xyz",
6
+ hasuraGql: "https://api.v2.dev.fxhash-dev.xyz/v1/graphql",
5
7
  file: "https://file-api.fxhash-dev.xyz",
6
8
  fsEmulator: "https://fs-emulator.fxhash-dev.xyz",
7
9
  extract: "https://extract.fxhash-dev.xyz",
8
- media: "https://media.fxhash-dev.xyz",
10
+ media: "https://media.dev.fxhash-dev.xyz",
11
+ ethMetadata: "https://media.dev.fxhash-dev.xyz/metadata/ethereum/",
9
12
  ipfsGateway: "https://gateway.fxhash-dev.xyz",
10
13
  ipfsGatewaySafe: "https://gateway.fxhash-dev2.xyz",
11
14
  onchfsProxy: "https://onchfs.fxhash-dev2.xyz",
15
+ opensea: "https://testnets-api.opensea.io/api/v2/chain/goerli",
12
16
  authority: {
13
17
  api: "NONE"
14
18
  },
@@ -27,17 +31,28 @@ var fxhashDevApis = {
27
31
  liveBackend: "_NONE"
28
32
  }
29
33
  };
34
+ var fxhashLocalApis = {
35
+ // todo: eventually, find a better way to inject the values from the
36
+ // docker-compose, maybe outside of this package idk
37
+ ...fxhashDevApis,
38
+ hasura: "http://host.docker.internal:8888",
39
+ hasuraGql: "http://host.docker.internal:8888/v1/graphql"
40
+ };
30
41
  var fxhashPrdApis = {
31
42
  website: "https://fxhash.xyz",
32
- main: "https://api.fxhash.xyz/graphql",
43
+ main: "https://api.v2-temp.fxhash.xyz/graphql",
44
+ hasura: "https://api.v2.fxhash.xyz",
45
+ hasuraGql: "https://api.v2.fxhash.xyz/v1/graphql",
33
46
  file: "https://file-api.fxhash.xyz",
34
47
  fsEmulator: "https://fs-emulator.fxhash.xyz",
35
48
  // placeholder
36
49
  extract: "https://extract.fxhash.xyz",
37
50
  media: "https://media.fxhash.xyz",
51
+ ethMetadata: "https://media.fxhash.xyz/metadata/ethereum/",
38
52
  ipfsGateway: "https://gateway.fxhash.xyz",
39
53
  ipfsGatewaySafe: "https://gateway.fxhash2.xyz",
40
54
  onchfsProxy: "https://onchfs.fxhash2.xyz",
55
+ opensea: "https://api.opensea.io/api/v2/chain/ethereum",
41
56
  authority: {
42
57
  api: "NONE"
43
58
  },
@@ -60,5 +75,6 @@ var fxhashPrdApis = {
60
75
 
61
76
 
62
77
 
63
- exports.fxhashDevApis = fxhashDevApis; exports.fxhashPrdApis = fxhashPrdApis;
64
- //# sourceMappingURL=chunk-M6DLQFBS.cjs.map
78
+
79
+ exports.fxhashDevApis = fxhashDevApis; exports.fxhashLocalApis = fxhashLocalApis; exports.fxhashPrdApis = fxhashPrdApis;
80
+ //# sourceMappingURL=chunk-HFJTQFU5.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api/fxhash.ts"],"names":[],"mappings":";AAkCO,IAAM,gBAA6B;AAAA,EACxC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,IACT,KAAK;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,MACP,OACE;AAAA,MACF,QACE;AAAA,MACF,OACE;AAAA,IACJ;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,IACT,YAAY;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,EACf;AACF;AAGO,IAAM,kBAA+B;AAAA;AAAA;AAAA,EAG1C,GAAG;AAAA,EACH,QAAQ;AAAA,EACR,WAAW;AACb;AAGO,IAAM,gBAA6B;AAAA,EACxC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,IACT,KAAK;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,MACP,OACE;AAAA,MACF,QACE;AAAA,MACF,OACE;AAAA,IACJ;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,IACT,YAAY;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,EACf;AACF","sourcesContent":["export interface IFxhashApis {\n website: string\n main: string\n hasura: string\n hasuraGql: string\n file: string\n fsEmulator: string\n extract: string\n media: string\n ethMetadata: string\n ipfsGateway: string\n ipfsGatewaySafe: string\n onchfsProxy: string\n opensea: string\n authority: {\n api: string\n }\n capture: {\n lambdas: {\n small: string\n medium: string\n large: string\n }\n }\n dashboard: {\n backend: string\n aggregator: string\n }\n events: {\n liveBackend: string\n }\n}\n\n// list of APIs dev leverages\nexport const fxhashDevApis: IFxhashApis = {\n website: \"https://dev.fxhash-dev.xyz\",\n main: \"https://api.v2-temp.dev.fxhash-dev.xyz/graphql\",\n hasura: \"https://api.v2.dev.fxhash-dev.xyz\",\n hasuraGql: \"https://api.v2.dev.fxhash-dev.xyz/v1/graphql\",\n file: \"https://file-api.fxhash-dev.xyz\",\n fsEmulator: \"https://fs-emulator.fxhash-dev.xyz\",\n extract: \"https://extract.fxhash-dev.xyz\",\n media: \"https://media.dev.fxhash-dev.xyz\",\n ethMetadata: \"https://media.dev.fxhash-dev.xyz/metadata/ethereum/\",\n ipfsGateway: \"https://gateway.fxhash-dev.xyz\",\n ipfsGatewaySafe: \"https://gateway.fxhash-dev2.xyz\",\n onchfsProxy: \"https://onchfs.fxhash-dev2.xyz\",\n opensea: \"https://testnets-api.opensea.io/api/v2/chain/goerli\",\n authority: {\n api: \"NONE\",\n },\n capture: {\n lambdas: {\n small:\n \"https://u5not5l323zczuwnrzxwkt34ra0eyidj.lambda-url.us-east-1.on.aws/\",\n medium:\n \"https://jgfz7a6km7fsqonej2sp3lqwvu0utnyy.lambda-url.us-east-1.on.aws/\",\n large:\n \"https://fzezvbp2f74yturkj4akjyrq3e0zswhb.lambda-url.us-east-1.on.aws/\",\n },\n },\n dashboard: {\n backend: \"https://live-minting.fxhash-dev.xyz\",\n aggregator: \"_NONE\",\n },\n events: {\n liveBackend: \"_NONE\",\n },\n}\n\n// list of APIs for when fxhash is ran locally\nexport const fxhashLocalApis: IFxhashApis = {\n // todo: eventually, find a better way to inject the values from the\n // docker-compose, maybe outside of this package idk\n ...fxhashDevApis,\n hasura: \"http://host.docker.internal:8888\",\n hasuraGql: \"http://host.docker.internal:8888/v1/graphql\",\n}\n\n// list of APIs prod leverages\nexport const fxhashPrdApis: IFxhashApis = {\n website: \"https://fxhash.xyz\",\n main: \"https://api.v2-temp.fxhash.xyz/graphql\",\n hasura: \"https://api.v2.fxhash.xyz\",\n hasuraGql: \"https://api.v2.fxhash.xyz/v1/graphql\",\n file: \"https://file-api.fxhash.xyz\",\n fsEmulator: \"https://fs-emulator.fxhash.xyz\", // placeholder\n extract: \"https://extract.fxhash.xyz\",\n media: \"https://media.fxhash.xyz\",\n ethMetadata: \"https://media.fxhash.xyz/metadata/ethereum/\",\n ipfsGateway: \"https://gateway.fxhash.xyz\",\n ipfsGatewaySafe: \"https://gateway.fxhash2.xyz\",\n onchfsProxy: \"https://onchfs.fxhash2.xyz\",\n opensea: \"https://api.opensea.io/api/v2/chain/ethereum\",\n authority: {\n api: \"NONE\",\n },\n capture: {\n lambdas: {\n small:\n \"https://7sz7knaaw3obgqxjyv3m4e5myu0lsbdp.lambda-url.us-east-1.on.aws/\",\n medium:\n \"https://tuupcq6eesbfk4veuzdfrhu7zm0zwuqy.lambda-url.us-east-1.on.aws/\",\n large:\n \"https://bojj24y6ucxmsyfi4uccdmiliy0dzhji.lambda-url.us-east-1.on.aws/\",\n },\n },\n dashboard: {\n backend: \"https://events.fxhash.xyz\",\n aggregator: \"NONE\",\n },\n events: {\n liveBackend: \"_NONE\",\n },\n}\n"]}
@@ -0,0 +1,19 @@
1
+ // src/api/eth.ts
2
+ var ethTestnetApis = {
3
+ rpcs: ["https://ethereum-sepolia-rpc.allthatnode.com"],
4
+ reservoir: "https://api-sepolia.reservoir.tools",
5
+ safe: "https://safe-transaction-sepolia.safe.global",
6
+ whitelist: "http://localhost:9999/whitelist/new"
7
+ };
8
+ var ethMainnetApis = {
9
+ rpcs: ["https://ethereum-mainnet-rpc.allthatnode.com"],
10
+ reservoir: "https://api.reservoir.tools",
11
+ safe: "https://safe-transaction-mainnet.safe.global/",
12
+ whitelist: "https://api.v2.dev.fxhash-dev.xyz/whitelist/new"
13
+ };
14
+
15
+ export {
16
+ ethTestnetApis,
17
+ ethMainnetApis
18
+ };
19
+ //# sourceMappingURL=chunk-M7HZ3LKE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api/eth.ts"],"sourcesContent":["export interface IEthApis {\n rpcs: string[]\n reservoir: string\n safe: string\n whitelist: string\n}\n\nexport const ethTestnetApis: IEthApis = {\n rpcs: [\"https://ethereum-sepolia-rpc.allthatnode.com\"],\n reservoir: \"https://api-sepolia.reservoir.tools\",\n safe: \"https://safe-transaction-sepolia.safe.global\",\n whitelist: \"http://localhost:9999/whitelist/new\",\n}\n\nexport const ethMainnetApis: IEthApis = {\n rpcs: [\"https://ethereum-mainnet-rpc.allthatnode.com\"],\n reservoir: \"https://api.reservoir.tools\",\n safe: \"https://safe-transaction-mainnet.safe.global/\",\n whitelist: \"https://api.v2.dev.fxhash-dev.xyz/whitelist/new\",\n}\n"],"mappings":";AAOO,IAAM,iBAA2B;AAAA,EACtC,MAAM,CAAC,8CAA8C;AAAA,EACrD,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AACb;AAEO,IAAM,iBAA2B;AAAA,EACtC,MAAM,CAAC,8CAA8C;AAAA,EACrD,WAAW;AAAA,EACX,MAAM;AAAA,EACN,WAAW;AACb;","names":[]}