Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate Polygon testnet from mumbai to amoy #140

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ REACT_APP_RNFT_LICENSE_TEMPLATE=ipfs://QmdN6tCBkiGiCyr7xEfsEysoYrdkacdU3P2mEdVC5
REACT_APP_FAIR_EXCHANGE_POLICY_RULES=ipfs://QmbVmAspK2wi6Xrm6yB75TLqgfv9PAVv3kWxdsyQpEm79D

# A Biconomy API key can be set here, to allow meta transactions in the widgets
REACT_APP_META_TX_API_KEY_MAP={"testing-80001-0":"xxxxxx", "testing-5-0":"xxxxxx"}
REACT_APP_META_TX_API_KEY_MAP={"testing-80002-0":"xxxxxx", "testing-11155111-0":"xxxxxx"}

# Biconomy API ids can be set here, to allow meta transactions to the protocol contracts
# As each contracts needs its own AipId, we need to consider protocol, and all supported ERC20 tokens
REACT_APP_META_TX_API_IDS_MAP={"testing-80001-0":{"protocol": "xxxxxx", "BOSON": "yyyyyy", "WETH", "zzzzzz"}, "testing-5-0":{"protocol": "xxxxxx", "BOSON": "yyyyyy", "WETH", "zzzzzz"}}
REACT_APP_META_TX_API_IDS_MAP={"testing-80002-0":{"protocol": "xxxxxx", "BOSON": "yyyyyy", "WETH", "zzzzzz"}, "testing-11155111-0":{"protocol": "xxxxxx", "BOSON": "yyyyyy", "WETH", "zzzzzz"}}


REACT_APP_MAGIC_API_KEY=
Expand Down
6 changes: 2 additions & 4 deletions docs/boson-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ The following table recaps all configurations, per environment
<tr><td>staging</td><td>
<table>
<tr><th>Configuration</th><th>Blockchain</th><th>Subgraph</th></tr>
<tr><td>staging-80001-0 </td><td>Polygon Mumbai (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/mumbai-staging</td></tr>
<tr><td>staging-5-0 </td><td>Ethereum Goerli (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/goerli-staging</td></tr>
<tr><td>staging-80002-0 </td><td>Polygon Mumbai (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/amoy-staging</td></tr>
<tr><td>staging-11155111-0 </td><td>Ethereum Sepolia (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/sepolia-staging</td></tr>
</table>
<table>
Expand All @@ -57,8 +56,7 @@ The following table recaps all configurations, per environment
<tr><td>testing</td><td>
<table>
<tr><th>Configuration</th><th>Blockchain</th><th>Subgraph</th></tr>
<tr><td>testing-80001-0</td><td>Polygon Mumbai (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/mumbai-testing</td></tr>
<tr><td>testing-5-0 </td><td>Ethereum Goerli (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/goerli-testing</td></tr>
<tr><td>testing-80002-0</td><td>Polygon Mumbai (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/amoy-testing</td></tr>
<tr><td>testing-11155111-0 </td><td>Ethereum Sepolia (testnet)</td><td>https://api.thegraph.com/subgraphs/name/bosonprotocol/sepolia-testing</td></tr>
</table>
<table>
Expand Down
52 changes: 26 additions & 26 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@bosonprotocol/react-kit": "^0.29.0",
"@bosonprotocol/react-kit": "^0.29.1-alpha.2",
"@krakenjs/zoid": "^10.3.3",
"@svgr/webpack": "^8.1.0",
"@testing-library/jest-dom": "^5.16.5",
Expand Down
2 changes: 1 addition & 1 deletion public/scripts/commit-button-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3>Commit button example</h3>

<script>
const instance = CommitButton({
configId: "testing-80001-0",
configId: "testing-80002-0",
productUuid: "086b32-3fcd-00d1-0624-67513e85415c",
sellerId: "138",
modalMargin: "2%",
Expand Down
3 changes: 1 addition & 2 deletions tests/www/test1.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
</style>
</head>
<body>
<button type="button" id="boson-redeem-1" class="bosonButton" data-config-id="testing-80001-0">Redeem (Mumbai)</button>
<button type="button" id="boson-redeem-2" class="bosonButton" data-config-id="testing-5-0">Redeem (Goerli)</button>
<button type="button" id="boson-redeem-1" class="bosonButton" data-config-id="testing-80002-0">Redeem (Amoy)</button>
<button type="button" id="boson-redeem-3" class="bosonButton" data-config-id="testing-11155111-0">Redeem (Sepolia)</button>
</body>
</html>
2 changes: 1 addition & 1 deletion tests/www/test2.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</style>
</head>
<body>
<button type="button" id="boson-redeem-1" class="bosonButton" data-config-id="testing-80001-0" data-target-origin="http://127.0.0.1:5500" data-wait-for-response="true" data-send-delivery-info-XMTP="false">Redeem</button>
<button type="button" id="boson-redeem-1" class="bosonButton" data-config-id="testing-80002-0" data-target-origin="http://127.0.0.1:5500" data-wait-for-response="true" data-send-delivery-info-XMTP="false">Redeem</button>
</body>
<script>
window.addEventListener("message", (event) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/www/test3.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
</style>
</head>
<body>
<button type="button" id="boson-redeem-1" class="bosonButton" data-config-id="testing-80001-0" data-send-delivery-info-XMTP="false" data-post-delivery-info-url="http://localhost:3666/deliveryInfo">Redeem</button>
<button type="button" id="boson-redeem-1" class="bosonButton" data-config-id="testing-80002-0" data-send-delivery-info-XMTP="false" data-post-delivery-info-url="http://localhost:3666/deliveryInfo">Redeem</button>
</body>
</html>
4 changes: 2 additions & 2 deletions tests/www/test4.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</style>
</head>
<body>
<button type="button" id="boson-commit-1" class="bosonButton" data-config-id="testing-80001-0" data-offer-id="5">Commit (Mumbai)</button>
<button type="button" id="boson-commit-2" class="bosonButton" data-config-id="testing-5-0" data-offer-id="2">Commit (Goerli)</button>
<button type="button" id="boson-commit-1" class="bosonButton" data-config-id="testing-80002-0" data-offer-id="5">Commit (Amoy)</button>
<button type="button" id="boson-commit-2" class="bosonButton" data-config-id="testing-11155111-0" data-offer-id="2">Commit (Sepolia)</button>
</body>
</html>
Loading