Skip to content

Commit

Permalink
Merge pull request #38 from bosonprotocol/raise-dispute-link
Browse files Browse the repository at this point in the history
feat: link "raise dispute" button to dr center according to env
  • Loading branch information
levalleux-ludo authored Aug 8, 2023
2 parents fbe6450 + 1ab9f9f commit b2ccc54
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 86 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_TESTING=https://interface-test.on.fleek.co
REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_STAGING=https://interface-staging.on.fleek.co/#/chat/{id}
REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_PRODUCTION=https://bosonapp.io/#/chat/{id}

# Raise Dispute URL (per envionment)
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_TESTING=https://drcenter-test.on.fleek.co/#/exchange/{id}/raise-dispute
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_STAGING=https://drcenter-staging.on.fleek.co/#/exchange/{id}/raise-dispute
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_PRODUCTION=https://drcenter-production.on.fleek.co/#/exchange/{id}/raise-dispute

# Default Dispute Period (in days)
REACT_APP_DEFAULT_DISPUTE_PERIOD_DAYS=30

Expand Down
3 changes: 3 additions & 0 deletions .fleek.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_TESTING": "https://interface-test.on.fleek.co/#/chat/{id}",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_STAGING": "https://interface-staging.on.fleek.co/#/chat/{id}",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_PRODUCTION": "https://bosonapp.io/#/chat/{id}",
"REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_TESTING": "https://drcenter-test.on.fleek.co/#/exchange/{id}/raise-dispute",
"REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_STAGING": "https://drcenter-staging.on.fleek.co/#/exchange/{id}/raise-dispute",
"REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_PRODUCTION": "https://drcenter-production.on.fleek.co/#/exchange/{id}/raise-dispute",
"REACT_APP_BUYER_SELLER_AGREEMENT_TEMPLATE": "ipfs://QmXfDShmggHm7BzMbkzv2rRowwPyJ55mypGp32qKSPGto4",
"REACT_APP_RNFT_LICENSE_TEMPLATE": "ipfs://QmUxAXqM6smDYj7TvS9oDe5kRoAVmkqcyWCKEeNsD6JA97",
"REACT_APP_FAIR_EXCHANGE_POLICY_RULES": "ipfs://QmV3Wy2wmrFdEXzhyhvvaW25Q8w2wTd2UypFVyhwsdBE8T"
Expand Down
18 changes: 1 addition & 17 deletions .fleek_production.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,6 @@
"build": {
"baseDir": "",
"publicDir": "build",
"command": "npm run build",
"environment": {
"REACT_APP_DEFAULT_TOKENS_LIST_TESTING": "[{\"symbol\":\"MATIC\",\"name\":\"MATIC\",\"address\":\"0x0000000000000000000000000000000000000000\",\"decimals\":\"18\"},{\"symbol\":\"WETH\",\"name\":\"Wrapped Ether\",\"address\":\"0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa\",\"decimals\":\"18\"},{\"symbol\":\"BOSON\",\"name\":\"Boson Token (PoS)\",\"address\":\"0x1f5431E8679630790E8EbA3a9b41d1BB4d41aeD0\",\"decimals\":\"18\"},{\"symbol\":\"USDC\",\"name\":\"Mumbai USD Coin\",\"address\":\"0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747\",\"decimals\":\"6\"},{\"symbol\":\"DAI\",\"name\":\"DAI\",\"address\":\"0x001b3b4d0f3714ca98ba10f6042daebf0b1b7b6f\",\"decimals\":\"18\"},{\"symbol\":\"USDT\",\"name\":\"Tether USD\",\"address\":\"0xA02f6adc7926efeBBd59Fd43A84f4E0c0c91e832\",\"decimals\":\"6\"}]",
"REACT_APP_DEFAULT_TOKENS_LIST_STAGING": "[{\"symbol\":\"MATIC\",\"name\":\"MATIC\",\"address\":\"0x0000000000000000000000000000000000000000\",\"decimals\":\"18\"},{\"symbol\":\"WETH\",\"name\":\"Wrapped Ether\",\"address\":\"0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa\",\"decimals\":\"18\"},{\"symbol\":\"BOSON\",\"name\":\"Boson Token (PoS)\",\"address\":\"0x1f5431E8679630790E8EbA3a9b41d1BB4d41aeD0\",\"decimals\":\"18\"},{\"symbol\":\"USDC\",\"name\":\"Mumbai USD Coin\",\"address\":\"0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747\",\"decimals\":\"6\"},{\"symbol\":\"DAI\",\"name\":\"DAI\",\"address\":\"0x001b3b4d0f3714ca98ba10f6042daebf0b1b7b6f\",\"decimals\":\"18\"},{\"symbol\":\"USDT\",\"name\":\"Tether USD\",\"address\":\"0xA02f6adc7926efeBBd59Fd43A84f4E0c0c91e832\",\"decimals\":\"6\"}]",
"REACT_APP_DEFAULT_TOKENS_LIST_PRODUCTION": "[{\"symbol\":\"MATIC\",\"name\":\"MATIC\",\"address\":\"0x0000000000000000000000000000000000000000\",\"decimals\":\"18\"},{\"symbol\":\"WETH\",\"name\":\"Wrapped Ether\",\"address\":\"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619\",\"decimals\":\"18\"},{\"symbol\":\"BOSON\",\"name\":\"Boson Token (PoS)\",\"address\":\"0x9B3B0703D392321AD24338Ff1f846650437A43C9\",\"decimals\":\"18\"},{\"symbol\":\"USDC\",\"name\":\"USD Coin (PoS)\",\"address\":\"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\"decimals\":\"6\"},{\"symbol\":\"DAI\",\"name\":\"(PoS) Dai Stablecoin\",\"address\":\"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063\",\"decimals\":\"18\"},{\"symbol\":\"USDT\",\"name\":\"(PoS) Tether USD\",\"address\":\"0xc2132D05D31c914a87C6611C10748AEb04B58e8F\",\"decimals\":\"6\"}]",
"REACT_APP_DEFAULT_DISPUTE_RESOLVER_ID_TESTING": "13",
"REACT_APP_DEFAULT_DISPUTE_RESOLVER_ID_STAGING": "2",
"REACT_APP_DEFAULT_DISPUTE_RESOLVER_ID_PRODUCTION": "1",
"REACT_APP_DEFAULT_DISPUTE_PERIOD_DAYS": "30",
"REACT_APP_DEFAULT_RESOLUTION_PERIOD_DAYS": "15",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_TESTING": "https://interface-test.on.fleek.co/#/chat/{id}",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_STAGING": "https://interface-staging.on.fleek.co/#/chat/{id}",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_PRODUCTION": "https://bosonapp.io/#/chat/{id}",
"REACT_APP_BUYER_SELLER_AGREEMENT_TEMPLATE": "ipfs://QmXfDShmggHm7BzMbkzv2rRowwPyJ55mypGp32qKSPGto4",
"REACT_APP_RNFT_LICENSE_TEMPLATE": "ipfs://QmUxAXqM6smDYj7TvS9oDe5kRoAVmkqcyWCKEeNsD6JA97",
"REACT_APP_FAIR_EXCHANGE_POLICY_RULES": "ipfs://QmV3Wy2wmrFdEXzhyhvvaW25Q8w2wTd2UypFVyhwsdBE8T"
}
"command": "npm run build"
}
}
18 changes: 1 addition & 17 deletions .fleek_staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,6 @@
"build": {
"baseDir": "",
"publicDir": "build",
"command": "npm run build",
"environment": {
"REACT_APP_DEFAULT_TOKENS_LIST_TESTING": "[{\"symbol\":\"MATIC\",\"name\":\"MATIC\",\"address\":\"0x0000000000000000000000000000000000000000\",\"decimals\":\"18\"},{\"symbol\":\"WETH\",\"name\":\"Wrapped Ether\",\"address\":\"0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa\",\"decimals\":\"18\"},{\"symbol\":\"BOSON\",\"name\":\"Boson Token (PoS)\",\"address\":\"0x1f5431E8679630790E8EbA3a9b41d1BB4d41aeD0\",\"decimals\":\"18\"},{\"symbol\":\"USDC\",\"name\":\"Mumbai USD Coin\",\"address\":\"0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747\",\"decimals\":\"6\"},{\"symbol\":\"DAI\",\"name\":\"DAI\",\"address\":\"0x001b3b4d0f3714ca98ba10f6042daebf0b1b7b6f\",\"decimals\":\"18\"},{\"symbol\":\"USDT\",\"name\":\"Tether USD\",\"address\":\"0xA02f6adc7926efeBBd59Fd43A84f4E0c0c91e832\",\"decimals\":\"6\"}]",
"REACT_APP_DEFAULT_TOKENS_LIST_STAGING": "[{\"symbol\":\"MATIC\",\"name\":\"MATIC\",\"address\":\"0x0000000000000000000000000000000000000000\",\"decimals\":\"18\"},{\"symbol\":\"WETH\",\"name\":\"Wrapped Ether\",\"address\":\"0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa\",\"decimals\":\"18\"},{\"symbol\":\"BOSON\",\"name\":\"Boson Token (PoS)\",\"address\":\"0x1f5431E8679630790E8EbA3a9b41d1BB4d41aeD0\",\"decimals\":\"18\"},{\"symbol\":\"USDC\",\"name\":\"Mumbai USD Coin\",\"address\":\"0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747\",\"decimals\":\"6\"},{\"symbol\":\"DAI\",\"name\":\"DAI\",\"address\":\"0x001b3b4d0f3714ca98ba10f6042daebf0b1b7b6f\",\"decimals\":\"18\"},{\"symbol\":\"USDT\",\"name\":\"Tether USD\",\"address\":\"0xA02f6adc7926efeBBd59Fd43A84f4E0c0c91e832\",\"decimals\":\"6\"}]",
"REACT_APP_DEFAULT_TOKENS_LIST_PRODUCTION": "[{\"symbol\":\"MATIC\",\"name\":\"MATIC\",\"address\":\"0x0000000000000000000000000000000000000000\",\"decimals\":\"18\"},{\"symbol\":\"WETH\",\"name\":\"Wrapped Ether\",\"address\":\"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619\",\"decimals\":\"18\"},{\"symbol\":\"BOSON\",\"name\":\"Boson Token (PoS)\",\"address\":\"0x9B3B0703D392321AD24338Ff1f846650437A43C9\",\"decimals\":\"18\"},{\"symbol\":\"USDC\",\"name\":\"USD Coin (PoS)\",\"address\":\"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\"decimals\":\"6\"},{\"symbol\":\"DAI\",\"name\":\"(PoS) Dai Stablecoin\",\"address\":\"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063\",\"decimals\":\"18\"},{\"symbol\":\"USDT\",\"name\":\"(PoS) Tether USD\",\"address\":\"0xc2132D05D31c914a87C6611C10748AEb04B58e8F\",\"decimals\":\"6\"}]",
"REACT_APP_DEFAULT_DISPUTE_RESOLVER_ID_TESTING": "13",
"REACT_APP_DEFAULT_DISPUTE_RESOLVER_ID_STAGING": "2",
"REACT_APP_DEFAULT_DISPUTE_RESOLVER_ID_PRODUCTION": "1",
"REACT_APP_DEFAULT_DISPUTE_PERIOD_DAYS": "30",
"REACT_APP_DEFAULT_RESOLUTION_PERIOD_DAYS": "15",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_TESTING": "https://interface-test.on.fleek.co/#/chat/{id}",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_STAGING": "https://interface-staging.on.fleek.co/#/chat/{id}",
"REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_PRODUCTION": "https://bosonapp.io/#/chat/{id}",
"REACT_APP_BUYER_SELLER_AGREEMENT_TEMPLATE": "ipfs://QmXfDShmggHm7BzMbkzv2rRowwPyJ55mypGp32qKSPGto4",
"REACT_APP_RNFT_LICENSE_TEMPLATE": "ipfs://QmUxAXqM6smDYj7TvS9oDe5kRoAVmkqcyWCKEeNsD6JA97",
"REACT_APP_FAIR_EXCHANGE_POLICY_RULES": "ipfs://QmV3Wy2wmrFdEXzhyhvvaW25Q8w2wTd2UypFVyhwsdBE8T"
}
"command": "npm run build"
}
}
3 changes: 3 additions & 0 deletions .github/workflows/ci_reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_TESTING: "https://interface-test.on.fleek.co/#/chat/{id}"
REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_STAGING: "https://interface-staging.on.fleek.co/#/chat/{id}"
REACT_APP_CONTACT_SELLER_FOR_EXCHANGE_PRODUCTION: "https://bosonapp.io/#/chat/{id}"
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_TESTING: "https://drcenter-test.on.fleek.co/#/exchange/{id}/raise-dispute"
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_STAGING: "https://drcenter-staging.on.fleek.co/#/exchange/{id}/raise-dispute"
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_PRODUCTION: "https://drcenter-production.on.fleek.co/#/exchange/{id}/raise-dispute"
REACT_APP_BUYER_SELLER_AGREEMENT_TEMPLATE: "ipfs://QmXfDShmggHm7BzMbkzv2rRowwPyJ55mypGp32qKSPGto4"
REACT_APP_RNFT_LICENSE_TEMPLATE: "ipfs://QmUxAXqM6smDYj7TvS9oDe5kRoAVmkqcyWCKEeNsD6JA97"
REACT_APP_FAIR_EXCHANGE_POLICY_RULES: "ipfs://QmV3Wy2wmrFdEXzhyhvvaW25Q8w2wTd2UypFVyhwsdBE8T"
Expand Down
98 changes: 49 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b2ccc54

Please sign in to comment.