Skip to content

Commit

Permalink
feat: add default dispute resolver id and sellers black lists (#545)
Browse files Browse the repository at this point in the history
* feat: add default dispute resolver id

* feat: add sellers black list

* refactor: change default dispute resolver to string

* Update packages/common/src/configs.ts

Co-authored-by: Ludovic Levalleux <levalleux_ludo@hotmail.com>

---------

Co-authored-by: Ludovic Levalleux <levalleux_ludo@hotmail.com>
  • Loading branch information
albertfolch-redeemeum and levalleux-ludo authored Aug 25, 2023
1 parent 2976d78 commit ec47a68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/common/src/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export const envConfigs: Record<EnvironmentType, ProtocolConfig[]> = {
envName: "local",
chainId: 31337,
configId: "local-31337-0",
sellersBlackList: "",
defaultDisputeResolverId: "1",
nativeCoin: chainIdToInfo.get(31337),
getTxExplorerUrl: chainIdToGraphTx.get(31337),
subgraphUrl: "http://127.0.0.1:8000/subgraphs/name/boson/corecomponents",
Expand Down Expand Up @@ -117,6 +119,9 @@ export const envConfigs: Record<EnvironmentType, ProtocolConfig[]> = {
envName: "testing",
chainId: 80001,
configId: "testing-80001-0",
sellersBlackList:
"https://raw.githubusercontent.com/BAppLimited/curationLists/main/bosonApp.io/testing/sellers/blacklist.json",
defaultDisputeResolverId: "13",
nativeCoin: chainIdToInfo.get(80001),
getTxExplorerUrl: chainIdToGraphTx.get(80001),
subgraphUrl:
Expand Down Expand Up @@ -144,6 +149,9 @@ export const envConfigs: Record<EnvironmentType, ProtocolConfig[]> = {
envName: "staging",
chainId: 80001,
configId: "staging-80001-0",
sellersBlackList:
"https://raw.githubusercontent.com/BAppLimited/curationLists/main/bosonApp.io/staging/sellers/blacklist.json",
defaultDisputeResolverId: "2",
nativeCoin: chainIdToInfo.get(80001),
getTxExplorerUrl: chainIdToGraphTx.get(80001),
subgraphUrl:
Expand Down Expand Up @@ -171,6 +179,9 @@ export const envConfigs: Record<EnvironmentType, ProtocolConfig[]> = {
envName: "production",
chainId: 137,
configId: "production-137-0",
sellersBlackList:
"https://raw.githubusercontent.com/BAppLimited/curationLists/main/bosonApp.io/production/sellers/blacklist.json",
defaultDisputeResolverId: "1",
nativeCoin: chainIdToInfo.get(137),
getTxExplorerUrl: chainIdToGraphTx.get(137),
subgraphUrl:
Expand Down
2 changes: 2 additions & 0 deletions packages/common/src/types/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export type ConfigId = `${EnvironmentType}-${ChainId}-${number}`;
export type ProtocolConfig = {
envName: EnvironmentType;
configId: ConfigId;
defaultDisputeResolverId: string;
sellersBlackList: string;
chainId: ChainId;
nativeCoin:
| undefined
Expand Down

0 comments on commit ec47a68

Please sign in to comment.