Skip to content

Commit 0b55131

Browse files
authored
Merge pull request #277 from OceanProtocolEnterprise/feat/stage
Feat/stage
2 parents ea8f0f1 + 2478f73 commit 0b55131

31 files changed

+1406
-128
lines changed

chains.config.cjs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// see: https://github.com/oceanprotocol/ocean.js/blob/e07a7cb6ecea12b39ed96f994b4abe37806799a1/src/utils/ConfigHelper.ts#L8
33

44
const chains = [
5+
// ───────────────────────────
6+
// Ethereum Sepolia
7+
// ───────────────────────────
58
{
69
chainId: 11155111,
710
isDefault: false,
@@ -25,6 +28,10 @@ const chains = [
2528
subgraphUri: 'https://subgraph.dev.pontus-x.eu',
2629
explorerUri: 'https://explorer.pontus-x.eu/devnet/pontusx'
2730
},
31+
32+
// ───────────────────────────
33+
// Optimism Sepolia
34+
// ───────────────────────────
2835
{
2936
chainId: 11155420,
3037
isDefault: false,
@@ -51,6 +58,10 @@ const chains = [
5158
subgraphUri: 'https://subgraph.dev.pontus-x.eu',
5259
explorerUri: 'https://explorer.pontus-x.eu/devnet/pontusx'
5360
},
61+
62+
// ───────────────────────────
63+
// Pontus-X Testnet (default)
64+
// ───────────────────────────
5465
{
5566
chainId: 8996,
5667
isDefault: true,
@@ -73,6 +84,42 @@ const chains = [
7384
nodeUri: 'https://rpc.test.pontus-x.eu',
7485
subgraphUri: 'https://subgraph.test.pontus-x.eu',
7586
explorerUri: 'https://explorer.pontus-x.eu/testnet/pontusx'
87+
},
88+
89+
// ───────────────────────────
90+
// Ethereum Mainnet
91+
// ───────────────────────────
92+
{
93+
chainId: 1,
94+
isDefault: false,
95+
isCustom: false,
96+
network: 'ethereum',
97+
oceanTokenSymbol: 'OCEAN',
98+
startBlock: 0,
99+
transactionBlockTimeout: 50,
100+
transactionConfirmationBlocks: 1,
101+
transactionPollingTimeout: 750,
102+
gasFeeMultiplier: 1.1,
103+
nodeUri: 'https://rpc.ankr.com/eth',
104+
explorerUri: 'https://etherscan.io'
105+
},
106+
107+
// ───────────────────────────
108+
// Optimism Mainnet
109+
// ───────────────────────────
110+
{
111+
chainId: 10,
112+
isDefault: false,
113+
isCustom: false,
114+
network: 'optimism',
115+
oceanTokenSymbol: 'OCEAN',
116+
startBlock: 0,
117+
transactionBlockTimeout: 50,
118+
transactionConfirmationBlocks: 1,
119+
transactionPollingTimeout: 750,
120+
gasFeeMultiplier: 1.1,
121+
nodeUri: 'https://mainnet.optimism.io',
122+
explorerUri: 'https://optimistic.etherscan.io'
76123
}
77124
]
78125

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
{
2-
"title": "Request test tokens",
3-
"subtitle": "You can claim some test tokens for your address once every 24 hours.",
4-
"body": "Click on the button below to request Sepolia and OCEAN test payment tokens. You will receive both, the Sepolia for testnet and OCEAN token as well as the payment token."
2+
"testnet": {
3+
"title": "How to Request Tokens?",
4+
"subtitle": "You can claim some tokens for your address once every 24 hours.",
5+
"body": "Request testnet gas and payment tokens for your connected network using the faucets below. These tokens allow you to test transactions without using real funds."
6+
},
7+
"mainnet": {
8+
"title": "How to Add Funds?",
9+
"subtitle": "To access and/or purchase specific products and services on the market you will need to have sufficient funds of the required token in your Metamask wallet. Tokens can either be sent directly to your wallet or purchased on trusted token exchanges such as:",
10+
"body": "Make sure to acquire the native gas token (ETH on Ethereum Mainnet) and any required tokens for the specific products or services you wish to access.",
11+
"exchanges": [
12+
{
13+
"name": "Kraken",
14+
"url": "https://www.kraken.com/"
15+
},
16+
{
17+
"name": "Crypto.com",
18+
"url": "https://crypto.com/"
19+
},
20+
{
21+
"name": "ByBit",
22+
"url": "https://www.bybit.com/"
23+
},
24+
{
25+
"name": "Bitpanda",
26+
"url": "https://www.bitpanda.com/"
27+
},
28+
{
29+
"name": "OKX",
30+
"url": "https://www.okx.com/"
31+
},
32+
{
33+
"name": "Coinbase",
34+
"url": "https://www.coinbase.com/"
35+
}
36+
]
37+
}
538
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"title": "Import custom tokens",
3-
"subtitle": "Before you can claim some test tokens you need to import the token's contract address to MetaMask",
4-
"body": "Click on the button below to import the OCEAN test payment token. Please be aware, that OCEAN is also using a OCEAN labelled network token to facilitate fee payments.",
2+
"title": "Import Custom Tokens",
3+
"subtitle": "Before you can claim some tokens you need to import the token's contract address to MetaMask",
4+
"body": "The demonstration marketplace currently supports the following tokens. To use the tokens on the connected network, you will need to add the tokens to your MetaMask wallet.",
55
"image": "/images/onboarding/import_ocean_token.png"
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"title": "Good job! You are ready to explore the portal, scroll down to see more.",
2+
"title": "Good job! You are ready to explore the portal.",
33
"body": "One last thing: we are never going to ask for your private key, remember to never share it with anyone!",
44
"image": "/images/onboarding/ready.png"
55
}

content/onboarding/steps/ssi.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"title": "Set up your SSI Wallet",
3+
"subtitle": "Self-Sovereign Identity (SSI) is a digital framework that gives individuals and organizations full ownership and control over their data.",
4+
"body": "Access your company’s SSI Wallet interface to configure the DIDs and Verifiable Credentials.",
5+
"image": "/images/onboarding/ssi_wallet.png"
6+
}

content/pages/editMetadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"title": "URL",
114114
"label": "URL",
115115
"placeholder": "e.g. https://file.com/license.json",
116-
"help": "A SPDX identifier of the license applicable to this service.",
116+
"help": "The license that governs how this dataset or its content can be used, shared, or modified. Examples include: https://file.com/license.json, MIT, Apache 2.0, or GPL licenses.",
117117
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
118118
"prominentHelp": true,
119119
"type": "files",

content/publish/form.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"name": "license",
4747
"label": "URL",
4848
"placeholder": "e.g. https://file.com/license.json",
49-
"help": "A SPDX identifier of the license applicable to this service.",
49+
"help": "The license that governs how this dataset or its content can be used, shared, or modified. Examples include : https://file.com/license.json, MIT, Apache 2.0, or GPL licenses.",
5050
"type": "files",
5151
"required": true
5252
},
@@ -160,7 +160,7 @@
160160
"type": "checkbox",
161161
"options": ["Terms and Conditions"],
162162
"prefixes": ["I agree to the"],
163-
"actions": ["/terms"],
163+
"actions": ["/privacy/en#terms-and-conditions"],
164164
"required": true
165165
},
166166
{
256 KB
Loading

src/@hooks/useEnterpriseFeeCollector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function useEnterpriseFeeCollector() {
3434
async (tokenAddress: string) => {
3535
try {
3636
const isTokenApproved =
37-
await enterpriseFeeColletor.contract.isTokenAllowed(
37+
await enterpriseFeeColletor?.contract?.isTokenAllowed(
3838
tokenAddress
3939
)
4040

src/@images/exchanges/bitpanda.svg

Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)