Skip to content
Open
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
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=development
NET=sepolia
2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=production
NET=mainnet
14 changes: 14 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# When running npm run build, the following environment variables are required to be set in the CI/CD environment variables
# NODE_ENV=development
# NET=local
# Suggest to use npm run build:(dev|test|prod) to build the website

# Clone this file to .env with the following values filled in / or set in CI/CD environment variables
## Required for mainnet
STABILITY_API_KEY=
## Required
INFURA_API_KEY=
## Optional
ALCHEMY_API_KEY=
MAGIC_API_KEY=
OKLINK_API_KEY=
2 changes: 2 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=test
NET=local
3 changes: 0 additions & 3 deletions .env_sample

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: npm install, build
run: |
npm install
npm run build
npm run build:prod
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@0.10.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint_and_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/synpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
# https://github.com/drptbl/synpress-setup-example/blob/1d980157ef343de54f786e1115e1da590f1ba1d1/.github/workflows/e2e.yml#L49-L102
name: Synpress e2e Test
runs-on: ubuntu-latest
timeout-minutes: 30
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/testcafe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
testcafe:
name: Testcafe e2e Test
runs-on: ubuntu-latest
timeout-minutes: 30
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
13 changes: 9 additions & 4 deletions .testcaferc-dev.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"appCommand": "npm run serve-static",
"src": ["src/**/*.spec.ts"],
"browsers": ["chrome:headless"],
"concurrency": 4
}
"src": [
"src/**/*.spec.ts",
"!src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome"
],
"concurrency": 1
}
15 changes: 15 additions & 0 deletions .testcaferc-dev2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Splitting nested-documents test into a separate file, error with testcafe v3 native automation
// https://github.com/DevExpress/testcafe/issues/8243
// https://stackoverflow.com/questions/76806603/how-to-use-disablenativeautomation-in-testcafe-for-one-test-only
module.exports = {
"appCommand": "npm run serve-static",
"src": [
"src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome"
],
"concurrency": 1,
"disableNativeAutomation": true,
// "debugOnFail": "false"
}
16 changes: 10 additions & 6 deletions .testcaferc-prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"appCommand": "npm run serve-static",
"src": ["src/**/*.spec.ts"],
"browsers": ["chrome:headless"],
"src": [
"src/**/*.spec.ts",
"!src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome:headless"
],
"concurrency": 4,
"cache": true,
"selectorTimeout": 45000,
Expand All @@ -10,9 +15,8 @@
"ajaxRequestTimeout": 120000,
"pageRequestTimeout": 180000,
"browserInitTimeout": 180000,
"testExecutionTimeout": 60000,
"runExecutionTimeout": 300000,
"disableMultipleWindows": false,
"testExecutionTimeout": 180000,
"runExecutionTimeout": 1000000,
"color": true,
"speed": 1,
"reporter": [
Expand All @@ -34,4 +38,4 @@
"takeOnFails": true,
"fullPage": true
}
}
}
44 changes: 44 additions & 0 deletions .testcaferc-prod2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Splitting nested-documents test into a separate file, error with testcafe v3 native automation
// https://github.com/DevExpress/testcafe/issues/8243
// https://stackoverflow.com/questions/76806603/how-to-use-disablenativeautomation-in-testcafe-for-one-test-only
module.exports = {
"appCommand": "npm run serve-static",
"src": [
"src/**/nested-documents.spec.ts"
],
"browsers": [
"chrome:headless"
],
"concurrency": 1,
"cache": true,
"selectorTimeout": 45000,
"assertionTimeout": 25000,
"pageLoadTimeout": 60000,
"ajaxRequestTimeout": 120000,
"pageRequestTimeout": 180000,
"browserInitTimeout": 180000,
"testExecutionTimeout": 180000,
"runExecutionTimeout": 1000000,
"disableNativeAutomation": true,
"color": true,
"speed": 1,
"reporter": [
{
"name": "spec"
},
{
"name": "spec",
"output": "artifacts/report.json"
}
],
"quarantineMode": {
"successThreshold": 1,
"attemptLimit": 3
},
"screenshots": {
"path": "artifacts/screenshots",
"pathPattern": "${USERAGENT}/test-${TEST_INDEX}-${USERAGENT}-${FILE_INDEX}.png",
"takeOnFails": true,
"fullPage": true
}
}
2 changes: 1 addition & 1 deletion TERMS_OF_USE.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ title: Terms of Use
13. #### Nature of Service and Special Terms
1. Developed and pioneered by the Infocomm Media Development Authority (IMDA), TradeTrust was designed to address the challenges of paper-based international trade. TradeTrust is a set of international standards and frameworks supported by open-source software that utilises blockchain-powered technology to digitalise the end-to-end processing of trade documents to ensure that documents issued can be verified in terms of their source and authenticity. Through a holistic framework made of four key components – legal harmonisation, accreditation structure, standards development and open-source software – TradeTrust seeks to make digitalised trade robust, legally recognisable, and inclusive for all stakeholders in the ecosystem, resulting in faster, simpler and more secure trade processes
2. To use the Service, you will need to upload a document onto the site.
3. IMDA is NOT responsible for the fulfilment and response of third party blockchain network, or of the functioning of any third party software or technology (such as Ethereum and Polygon).
3. IMDA is NOT responsible for the fulfillment and response of third party blockchain network, or of the functioning of any third party software or technology (such as Ethereum and Polygon).
4. Please note that separate terms (and not these Terms of Use) may govern the relationship between you and the document issuer/verifier/presenter, or any person accessing or providing a copy of the relevant document. For the avoidance of doubt, IMDA is not responsible for the contents of the document or the legal acceptability of the document. IMDA makes no representations or warranties concerning the powers or authority of the document issuer/verifier/presenter.
14. #### Third party software/services
1. [Google Analytics](https://policies.google.com/technologies/partner-sites)
Expand Down
Loading