@fxhash/config 0.0.7 → 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 (74) 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-ERDWCIAM.cjs → chunk-LYBPFYQE.cjs} +2 -3
  21. package/dist/chunk-LYBPFYQE.cjs.map +1 -0
  22. package/dist/chunk-M7HZ3LKE.js +19 -0
  23. package/dist/chunk-M7HZ3LKE.js.map +1 -0
  24. package/dist/{chunk-RMEVNI56.js → chunk-OX246A4J.js} +2 -3
  25. package/dist/chunk-OX246A4J.js.map +1 -0
  26. package/dist/chunk-VOYFMWZ7.js +159 -0
  27. package/dist/chunk-VOYFMWZ7.js.map +1 -0
  28. package/dist/chunk-VUNWHN5H.cjs +19 -0
  29. package/dist/chunk-VUNWHN5H.cjs.map +1 -0
  30. package/dist/chunk-XQC264QN.cjs +45 -0
  31. package/dist/chunk-XQC264QN.cjs.map +1 -0
  32. package/dist/config.cjs +9 -6
  33. package/dist/config.d.ts +16 -5
  34. package/dist/config.js +8 -5
  35. package/dist/contracts/eth.cjs +4 -2
  36. package/dist/contracts/eth.d.ts +24 -10
  37. package/dist/contracts/eth.js +3 -1
  38. package/dist/contracts/tezos.cjs +2 -2
  39. package/dist/contracts/tezos.js +1 -1
  40. package/dist/index.cjs +19 -8
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +17 -6
  44. package/dist/index.js.map +1 -1
  45. package/dist/types.cjs +7 -0
  46. package/dist/types.cjs.map +1 -0
  47. package/dist/types.d.ts +19 -0
  48. package/dist/types.js +7 -0
  49. package/dist/types.js.map +1 -0
  50. package/dist/utils/index.cjs +7 -6
  51. package/dist/utils/index.d.ts +1 -0
  52. package/dist/utils/index.js +6 -5
  53. package/package.json +1 -9
  54. package/dist/chunk-BVCYEJNB.cjs +0 -101
  55. package/dist/chunk-BVCYEJNB.cjs.map +0 -1
  56. package/dist/chunk-ERDWCIAM.cjs.map +0 -1
  57. package/dist/chunk-IYJZUHOI.js.map +0 -1
  58. package/dist/chunk-J2OS6CXO.js +0 -10
  59. package/dist/chunk-J2OS6CXO.js.map +0 -1
  60. package/dist/chunk-JQKT6SDR.cjs +0 -17
  61. package/dist/chunk-JQKT6SDR.cjs.map +0 -1
  62. package/dist/chunk-M6DLQFBS.cjs.map +0 -1
  63. package/dist/chunk-QF4NKGXZ.js +0 -101
  64. package/dist/chunk-QF4NKGXZ.js.map +0 -1
  65. package/dist/chunk-RMEVNI56.js.map +0 -1
  66. package/dist/chunk-TBNL5UIE.cjs +0 -10
  67. package/dist/chunk-TBNL5UIE.cjs.map +0 -1
  68. package/dist/chunk-U462M4P2.js +0 -17
  69. package/dist/chunk-U462M4P2.js.map +0 -1
  70. package/dist/dev.cjs +0 -54
  71. package/dist/dev.cjs.map +0 -1
  72. package/dist/dev.d.ts +0 -4
  73. package/dist/dev.js +0 -54
  74. package/dist/dev.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 _chunkTBNL5UIEcjs = require('../chunk-TBNL5UIE.cjs');
4
3
 
4
+ var _chunkVUNWHN5Hcjs = require('../chunk-VUNWHN5H.cjs');
5
5
 
6
- exports.ethTestnetApis = _chunkTBNL5UIEcjs.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-J2OS6CXO.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"]}
@@ -71,12 +71,11 @@ var tezosMainnetContracts = {
71
71
  treasury: "KT1P2BXYb894MekrCcSrnidzQYPVqitLoVLc",
72
72
  user_moderation: "KT1TWWQ6FtLoosVfZgTKV2q68TMZaENhGm54",
73
73
  user_register: "KT1Ezht4PDKZri7aVppVGT4Jkw39sesaFnww",
74
- // TODO: set mainnet address here
75
- onchfs_files: "TODO"
74
+ onchfs_files: "KT1Ae7dT1gsLw2tRnUMXSCmEyF74KVkM6LUo"
76
75
  };
77
76
 
78
77
 
79
78
 
80
79
 
81
80
  exports.tezosTestnetContracts = tezosTestnetContracts; exports.tezosMainnetContracts = tezosMainnetContracts;
82
- //# sourceMappingURL=chunk-ERDWCIAM.cjs.map
81
+ //# sourceMappingURL=chunk-LYBPFYQE.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/contracts/tezos.ts"],"names":[],"mappings":";AAsCO,IAAM,wBAAyC;AAAA,EACpD,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,wBAAwB;AAAA,EACxB,iBAAiB;AAAA,EACjB,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,eAAe;AAAA,EACf,UAAU;AAAA,EACV,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAChB;AAEO,IAAM,wBAAyC;AAAA,EACpD,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,wBAAwB;AAAA,EACxB,iBAAiB;AAAA,EACjB,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,eAAe;AAAA,EACf,UAAU;AAAA,EACV,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAChB","sourcesContent":["export interface ITezosContracts {\n allowed_mint: string\n allowed_mint_issuer: string\n allowed_mint_issuer_v3: string\n allowed_mint_v3: string\n articles: string\n collaboration_factory: string\n consumable_database: string\n cycles: string\n gentk_v1: string\n gentk_v1_data: string\n gentk_v2: string\n gentk_v3: string\n issuer_tickets: string\n issuer_v0: string\n issuer_v1: string\n issuer_v2: string\n issuer_v3: string\n marketplace_v1: string\n marketplace_v2: string\n marketplace_v3: string\n moderation_articles: string\n moderation_team: string\n moderation_token: string\n moderation_token_v3: string\n moderation_user: string\n pricing_dutch_auction: string\n pricing_dutch_auction_v3: string\n pricing_fixed: string\n pricing_fixed_v3: string\n randomizer: string\n token_moderation: string\n treasury: string\n user_moderation: string\n user_register: string\n onchfs_files: string\n}\n// The Tezos Smart Contracts addresses on testnet\nexport const tezosTestnetContracts: ITezosContracts = {\n allowed_mint: \"KT1QwfqMUDRYVyxo9KhunY5YCx9qQ9LWcswr\",\n allowed_mint_issuer: \"KT1WDByFKQmgVynxSr2rzdijs5aSs7mo7eBM\",\n allowed_mint_issuer_v3: \"KT1S3UqrLgMpVivNWWmBUnkPCaSFHDJ4HYvb\",\n allowed_mint_v3: \"KT1HUE2A6CHNw4NZZBWjJyG38nysWWfusagu\",\n articles: \"KT1HV8NXUCKWC1tWNHSD8LPPiKPshQuXvb8r\",\n collaboration_factory: \"KT1WFXts7jwxpD9uGDKzyqTUTFaG222xmjoZ\",\n consumable_database: \"KT1FP9y1PJpJkXhdJCgYZhVbj9UBpxnA57Bx\",\n cycles: \"KT1BJBcvtgZM2Kf4rUapmp4AhXtWCmznxd6F\",\n gentk_v1: \"KT1ExHjELnDuat9io3HkDcrBhHmek7h8EVXG\",\n gentk_v1_data: \"KT1SquPSN9oiMUWHG9coKRJAwz8Afe4c6izT\",\n gentk_v2: \"KT1NkZho1yRkDdQnN4Mz93sDYyY2pPrEHTNs\",\n gentk_v3: \"KT1TtVAyjh4Ahdm8sLZwFnL7tqoLf59XrK2h\",\n issuer_tickets: \"KT19PBsvmB2CwFqXftzb5gNJfxrEDFdSxGKZ\",\n issuer_v0: \"KT1PyfrDD85RxUWz8dMHoC92MxdPzecSQ5t9\",\n issuer_v1: \"KT1QwWVZogqPZZtGSVxGpLkEWar7LFvAsMdd\",\n issuer_v2: \"KT1Sy7X6TubmZ39G8CHVrUcxjc3jiF68P8oB\",\n issuer_v3: \"KT1DfymMp3qD5Pd5ujPjp7UsQbppY9yY1Hbf\",\n marketplace_v1: \"KT1DbivePcuUzCp5RaAQWxPSLV9G2Ys4faUR\",\n marketplace_v2: \"KT1HFYtf4vNCr4xRDZxLKc5asUdCsPUTTW9R\",\n marketplace_v3: \"KT1J6rt4d9U785DZWYEPvQ2fR1e71gxP42Lj\",\n moderation_articles: \"KT1Qg78fa81Xyjh65yNqUgVucubHUyq6VmgL\",\n moderation_team: \"KT1RsfyWzHs1EEWMzFLmKnJTQwPqRzsnF3Dp\",\n moderation_token: \"KT1PokFR36CcXKh3jUnjncabcuPWm5BMiqjt\",\n moderation_token_v3: \"KT1C1J38YR6eDvRBDEDaypptCFda9aH7FRbJ\",\n moderation_user: \"KT1Q3s7mYpscCnwsyndrVZg9WqBCmw99n37g\",\n pricing_dutch_auction: \"KT1BqikbUisiBBd9WvPiqnTwLY8Pm68p2Aua\",\n pricing_dutch_auction_v3: \"KT1QCboxZ28SqsfyZWTDrkSpZzU6xjZXBsFb\",\n pricing_fixed: \"KT1PAsf9Zc9FGJA9iLE1Ab2vPkMDsh4hyZVi\",\n pricing_fixed_v3: \"KT1Mqyy5JPknNzNJtgF93SHpFHv4VcYrNZry\",\n randomizer: \"KT1QmdsrJWJgK3VXid8q7D4sPipVoc9jh12x\",\n token_moderation: \"KT1BHfPDMRp2q48ZkmmnK7TRzQRdFnp6XVKq\",\n treasury: \"KT1MbDbRhZPs5TzZEXkT142ePoccFHfohBoo\",\n user_moderation: \"KT1LmZjoitx2itnB1qCbHMrT3V64RbuSPf3a\",\n user_register: \"KT1XaikgmBDQANBvkFqyFhSpgAZJAXpiDFGE\",\n onchfs_files: \"KT1FA8AGGcJha6S6MqfBUiibwTaYhK8u7s9Q\",\n}\n// The Tezos Smart Contracts on mainnet\nexport const tezosMainnetContracts: ITezosContracts = {\n allowed_mint: \"KT1VDQwskdfHkSbA9W6CSEnxnh1u1XU8K8Gu\",\n allowed_mint_issuer: \"KT1Djz5ix2yEGmV7PMq3GYq17TvMMkd1anT2\",\n allowed_mint_issuer_v3: \"KT1LJ4R4xoEWMgTjrGrdHJAeHLYFaB4RsoVK\",\n allowed_mint_v3: \"KT1KgEjxqfRCMwtCGifT6fDPwC35RptTUEvE\",\n articles: \"KT1GtbuswcNMGhHF2TSuH1Yfaqn16do8Qtva\",\n collaboration_factory: \"KT1JrUPSCt1r2MB2J7Lk2KwiWSYr3Mr414ck\",\n consumable_database: \"KT1Wm3zZqRd6JBbZWuatKYZCmnqUMy2Y79BL\",\n cycles: \"KT1BgD9SPfysnMz3vkfm6ZEaGFKCVcE5ay91\",\n gentk_v1: \"KT1KEa8z6vWXDJrVqtMrAeDVzsvxat3kHaCE\",\n gentk_v1_data: \"KT1WRpPyXHSCbTfDQFWVXbMpxxvf7Y7KChxc\",\n gentk_v2: \"KT1U6EHmNxJTkvaWJ4ThczG4FSDaHC21ssvi\",\n gentk_v3: \"KT1EfsNuqwLAWDd3o4pvfUx1CAh5GMdTrRvr\",\n issuer_tickets: \"KT19etLCjCCzTLFFAxsxLFsVYMRPetr2bTD5\",\n issuer_v0: \"KT1AEVuykWeuuFX7QkEAMNtffzwhe1Z98hJS\",\n issuer_v1: \"KT1XCoGnfupWk7Sp8536EfrxcP73LmT68Nyr\",\n issuer_v2: \"KT1BJC12dG17CVvPKJ1VYaNnaT5mzfnUTwXv\",\n issuer_v3: \"KT1Xpmp15KfqoePNW9HczFmqaGNHwadV2a3b\",\n marketplace_v1: \"KT1Xo5B7PNBAeynZPmca4bRh6LQow4og1Zb9\",\n marketplace_v2: \"KT1GbyoDi7H1sfXmimXpptZJuCdHMh66WS9u\",\n marketplace_v3: \"KT1M1NyU9X4usEimt2f3kDaijZnDMNBu42Ja\",\n moderation_articles: \"KT1A36z7nG4zPDbhjyrzhYf9SCn5ipPZeRMQ\",\n moderation_team: \"KT1FvGQcPxzuJkJsdWFQiGkueSNT5mqpFDrf\",\n moderation_token: \"KT18tPu7uXy9PJ97i3qCLsr7an4X6sQ5qxU7\",\n moderation_token_v3: \"KT1UBWXN1KxTh4eurrCTCH7aEjqdrM3HjP6R\",\n moderation_user: \"KT1Wn2kkKmdbyLWBiLXWCkE7fKj1LsLKar2A\",\n pricing_dutch_auction: \"KT1EzLrXRCXij42pKfbZPn48PuxrnVki1aYY\",\n pricing_dutch_auction_v3: \"KT1MFgHKorMWXeVL6qrpgjZmemirafppSg9q\",\n pricing_fixed: \"KT1FHzHxuMaNLYG8LdniY45M6RCfkF3AoXFh\",\n pricing_fixed_v3: \"KT1V24J6FVuKPU3xy6gVF6wJ3zdRXBheQhaV\",\n randomizer: \"KT1XYgKrzBbzsckGvXTPgxFyN7KNZ9RPYVWf\",\n token_moderation: \"KT1HgVuzNWVvnX16fahbV2LrnpwifYKoFMRd\",\n treasury: \"KT1P2BXYb894MekrCcSrnidzQYPVqitLoVLc\",\n user_moderation: \"KT1TWWQ6FtLoosVfZgTKV2q68TMZaENhGm54\",\n user_register: \"KT1Ezht4PDKZri7aVppVGT4Jkw39sesaFnww\",\n onchfs_files: \"KT1Ae7dT1gsLw2tRnUMXSCmEyF74KVkM6LUo\",\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":[]}
@@ -71,12 +71,11 @@ var tezosMainnetContracts = {
71
71
  treasury: "KT1P2BXYb894MekrCcSrnidzQYPVqitLoVLc",
72
72
  user_moderation: "KT1TWWQ6FtLoosVfZgTKV2q68TMZaENhGm54",
73
73
  user_register: "KT1Ezht4PDKZri7aVppVGT4Jkw39sesaFnww",
74
- // TODO: set mainnet address here
75
- onchfs_files: "TODO"
74
+ onchfs_files: "KT1Ae7dT1gsLw2tRnUMXSCmEyF74KVkM6LUo"
76
75
  };
77
76
 
78
77
  export {
79
78
  tezosTestnetContracts,
80
79
  tezosMainnetContracts
81
80
  };
82
- //# sourceMappingURL=chunk-RMEVNI56.js.map
81
+ //# sourceMappingURL=chunk-OX246A4J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/contracts/tezos.ts"],"sourcesContent":["export interface ITezosContracts {\n allowed_mint: string\n allowed_mint_issuer: string\n allowed_mint_issuer_v3: string\n allowed_mint_v3: string\n articles: string\n collaboration_factory: string\n consumable_database: string\n cycles: string\n gentk_v1: string\n gentk_v1_data: string\n gentk_v2: string\n gentk_v3: string\n issuer_tickets: string\n issuer_v0: string\n issuer_v1: string\n issuer_v2: string\n issuer_v3: string\n marketplace_v1: string\n marketplace_v2: string\n marketplace_v3: string\n moderation_articles: string\n moderation_team: string\n moderation_token: string\n moderation_token_v3: string\n moderation_user: string\n pricing_dutch_auction: string\n pricing_dutch_auction_v3: string\n pricing_fixed: string\n pricing_fixed_v3: string\n randomizer: string\n token_moderation: string\n treasury: string\n user_moderation: string\n user_register: string\n onchfs_files: string\n}\n// The Tezos Smart Contracts addresses on testnet\nexport const tezosTestnetContracts: ITezosContracts = {\n allowed_mint: \"KT1QwfqMUDRYVyxo9KhunY5YCx9qQ9LWcswr\",\n allowed_mint_issuer: \"KT1WDByFKQmgVynxSr2rzdijs5aSs7mo7eBM\",\n allowed_mint_issuer_v3: \"KT1S3UqrLgMpVivNWWmBUnkPCaSFHDJ4HYvb\",\n allowed_mint_v3: \"KT1HUE2A6CHNw4NZZBWjJyG38nysWWfusagu\",\n articles: \"KT1HV8NXUCKWC1tWNHSD8LPPiKPshQuXvb8r\",\n collaboration_factory: \"KT1WFXts7jwxpD9uGDKzyqTUTFaG222xmjoZ\",\n consumable_database: \"KT1FP9y1PJpJkXhdJCgYZhVbj9UBpxnA57Bx\",\n cycles: \"KT1BJBcvtgZM2Kf4rUapmp4AhXtWCmznxd6F\",\n gentk_v1: \"KT1ExHjELnDuat9io3HkDcrBhHmek7h8EVXG\",\n gentk_v1_data: \"KT1SquPSN9oiMUWHG9coKRJAwz8Afe4c6izT\",\n gentk_v2: \"KT1NkZho1yRkDdQnN4Mz93sDYyY2pPrEHTNs\",\n gentk_v3: \"KT1TtVAyjh4Ahdm8sLZwFnL7tqoLf59XrK2h\",\n issuer_tickets: \"KT19PBsvmB2CwFqXftzb5gNJfxrEDFdSxGKZ\",\n issuer_v0: \"KT1PyfrDD85RxUWz8dMHoC92MxdPzecSQ5t9\",\n issuer_v1: \"KT1QwWVZogqPZZtGSVxGpLkEWar7LFvAsMdd\",\n issuer_v2: \"KT1Sy7X6TubmZ39G8CHVrUcxjc3jiF68P8oB\",\n issuer_v3: \"KT1DfymMp3qD5Pd5ujPjp7UsQbppY9yY1Hbf\",\n marketplace_v1: \"KT1DbivePcuUzCp5RaAQWxPSLV9G2Ys4faUR\",\n marketplace_v2: \"KT1HFYtf4vNCr4xRDZxLKc5asUdCsPUTTW9R\",\n marketplace_v3: \"KT1J6rt4d9U785DZWYEPvQ2fR1e71gxP42Lj\",\n moderation_articles: \"KT1Qg78fa81Xyjh65yNqUgVucubHUyq6VmgL\",\n moderation_team: \"KT1RsfyWzHs1EEWMzFLmKnJTQwPqRzsnF3Dp\",\n moderation_token: \"KT1PokFR36CcXKh3jUnjncabcuPWm5BMiqjt\",\n moderation_token_v3: \"KT1C1J38YR6eDvRBDEDaypptCFda9aH7FRbJ\",\n moderation_user: \"KT1Q3s7mYpscCnwsyndrVZg9WqBCmw99n37g\",\n pricing_dutch_auction: \"KT1BqikbUisiBBd9WvPiqnTwLY8Pm68p2Aua\",\n pricing_dutch_auction_v3: \"KT1QCboxZ28SqsfyZWTDrkSpZzU6xjZXBsFb\",\n pricing_fixed: \"KT1PAsf9Zc9FGJA9iLE1Ab2vPkMDsh4hyZVi\",\n pricing_fixed_v3: \"KT1Mqyy5JPknNzNJtgF93SHpFHv4VcYrNZry\",\n randomizer: \"KT1QmdsrJWJgK3VXid8q7D4sPipVoc9jh12x\",\n token_moderation: \"KT1BHfPDMRp2q48ZkmmnK7TRzQRdFnp6XVKq\",\n treasury: \"KT1MbDbRhZPs5TzZEXkT142ePoccFHfohBoo\",\n user_moderation: \"KT1LmZjoitx2itnB1qCbHMrT3V64RbuSPf3a\",\n user_register: \"KT1XaikgmBDQANBvkFqyFhSpgAZJAXpiDFGE\",\n onchfs_files: \"KT1FA8AGGcJha6S6MqfBUiibwTaYhK8u7s9Q\",\n}\n// The Tezos Smart Contracts on mainnet\nexport const tezosMainnetContracts: ITezosContracts = {\n allowed_mint: \"KT1VDQwskdfHkSbA9W6CSEnxnh1u1XU8K8Gu\",\n allowed_mint_issuer: \"KT1Djz5ix2yEGmV7PMq3GYq17TvMMkd1anT2\",\n allowed_mint_issuer_v3: \"KT1LJ4R4xoEWMgTjrGrdHJAeHLYFaB4RsoVK\",\n allowed_mint_v3: \"KT1KgEjxqfRCMwtCGifT6fDPwC35RptTUEvE\",\n articles: \"KT1GtbuswcNMGhHF2TSuH1Yfaqn16do8Qtva\",\n collaboration_factory: \"KT1JrUPSCt1r2MB2J7Lk2KwiWSYr3Mr414ck\",\n consumable_database: \"KT1Wm3zZqRd6JBbZWuatKYZCmnqUMy2Y79BL\",\n cycles: \"KT1BgD9SPfysnMz3vkfm6ZEaGFKCVcE5ay91\",\n gentk_v1: \"KT1KEa8z6vWXDJrVqtMrAeDVzsvxat3kHaCE\",\n gentk_v1_data: \"KT1WRpPyXHSCbTfDQFWVXbMpxxvf7Y7KChxc\",\n gentk_v2: \"KT1U6EHmNxJTkvaWJ4ThczG4FSDaHC21ssvi\",\n gentk_v3: \"KT1EfsNuqwLAWDd3o4pvfUx1CAh5GMdTrRvr\",\n issuer_tickets: \"KT19etLCjCCzTLFFAxsxLFsVYMRPetr2bTD5\",\n issuer_v0: \"KT1AEVuykWeuuFX7QkEAMNtffzwhe1Z98hJS\",\n issuer_v1: \"KT1XCoGnfupWk7Sp8536EfrxcP73LmT68Nyr\",\n issuer_v2: \"KT1BJC12dG17CVvPKJ1VYaNnaT5mzfnUTwXv\",\n issuer_v3: \"KT1Xpmp15KfqoePNW9HczFmqaGNHwadV2a3b\",\n marketplace_v1: \"KT1Xo5B7PNBAeynZPmca4bRh6LQow4og1Zb9\",\n marketplace_v2: \"KT1GbyoDi7H1sfXmimXpptZJuCdHMh66WS9u\",\n marketplace_v3: \"KT1M1NyU9X4usEimt2f3kDaijZnDMNBu42Ja\",\n moderation_articles: \"KT1A36z7nG4zPDbhjyrzhYf9SCn5ipPZeRMQ\",\n moderation_team: \"KT1FvGQcPxzuJkJsdWFQiGkueSNT5mqpFDrf\",\n moderation_token: \"KT18tPu7uXy9PJ97i3qCLsr7an4X6sQ5qxU7\",\n moderation_token_v3: \"KT1UBWXN1KxTh4eurrCTCH7aEjqdrM3HjP6R\",\n moderation_user: \"KT1Wn2kkKmdbyLWBiLXWCkE7fKj1LsLKar2A\",\n pricing_dutch_auction: \"KT1EzLrXRCXij42pKfbZPn48PuxrnVki1aYY\",\n pricing_dutch_auction_v3: \"KT1MFgHKorMWXeVL6qrpgjZmemirafppSg9q\",\n pricing_fixed: \"KT1FHzHxuMaNLYG8LdniY45M6RCfkF3AoXFh\",\n pricing_fixed_v3: \"KT1V24J6FVuKPU3xy6gVF6wJ3zdRXBheQhaV\",\n randomizer: \"KT1XYgKrzBbzsckGvXTPgxFyN7KNZ9RPYVWf\",\n token_moderation: \"KT1HgVuzNWVvnX16fahbV2LrnpwifYKoFMRd\",\n treasury: \"KT1P2BXYb894MekrCcSrnidzQYPVqitLoVLc\",\n user_moderation: \"KT1TWWQ6FtLoosVfZgTKV2q68TMZaENhGm54\",\n user_register: \"KT1Ezht4PDKZri7aVppVGT4Jkw39sesaFnww\",\n onchfs_files: \"KT1Ae7dT1gsLw2tRnUMXSCmEyF74KVkM6LUo\",\n}\n"],"mappings":";AAsCO,IAAM,wBAAyC;AAAA,EACpD,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,wBAAwB;AAAA,EACxB,iBAAiB;AAAA,EACjB,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,eAAe;AAAA,EACf,UAAU;AAAA,EACV,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAChB;AAEO,IAAM,wBAAyC;AAAA,EACpD,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,wBAAwB;AAAA,EACxB,iBAAiB;AAAA,EACjB,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,eAAe;AAAA,EACf,UAAU;AAAA,EACV,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,uBAAuB;AAAA,EACvB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAChB;","names":[]}