-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into snyk-upgrade-abd8049c82d7386edf156cd6eed051ad
Signed-off-by: Eric Le Ponner <[email protected]>
- Loading branch information
Showing
161 changed files
with
8,604 additions
and
3,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ services: | |
restart: "always" | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ./networks-config.json:/app/networks-config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[ | ||
{ | ||
"name": "mainnet", | ||
"displayName": "MAINNET", | ||
"url": "https://mainnet-public.mirrornode.hedera.com/", | ||
"ledgerID": "00", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "http://localhost:10000/contracts/", | ||
"serverURL": "http://localhost:5002/", | ||
"verifierURL": "http://localhost:3000/#/", | ||
"chainID": 295 | ||
} | ||
}, | ||
{ | ||
"name": "testnet", | ||
"displayName": "TESTNET", | ||
"url": "https://testnet.mirrornode.hedera.com/", | ||
"ledgerID": "01", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "http://localhost:10000/contracts/", | ||
"serverURL": "http://localhost:5002/", | ||
"verifierURL": "http://localhost:3000/#/", | ||
"chainID": 296 | ||
} | ||
}, | ||
{ | ||
"name": "previewnet", | ||
"displayName": "PREVIEWNET", | ||
"url": "https://previewnet.mirrornode.hedera.com/", | ||
"ledgerID": "02", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "http://localhost:10000/contracts/", | ||
"serverURL": "http://localhost:5002/", | ||
"verifierURL": "http://localhost:3000/#/", | ||
"chainID": 297 | ||
} | ||
}, | ||
{ | ||
"name": "localnode", | ||
"displayName": "LOCAL NODE", | ||
"url": "http://127.0.0.1:5551", | ||
"ledgerID": "FF", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "http://localhost:10000/contracts/", | ||
"serverURL": "http://localhost:5002/", | ||
"verifierURL": "http://localhost:3000/#/", | ||
"chainID": 298 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[ | ||
{ | ||
"name": "mainnet", | ||
"displayName": "MAINNET", | ||
"url": "https://mainnet-public.mirrornode.hedera.com/", | ||
"ledgerID": "00", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "https://repository.local/contracts/", | ||
"serverURL": "https://localhost/server/", | ||
"verifierURL": "https://localhost/#/", | ||
"chainID": 295 | ||
} | ||
}, | ||
{ | ||
"name": "testnet", | ||
"displayName": "TESTNET", | ||
"url": "https://testnet.mirrornode.hedera.com/", | ||
"ledgerID": "01", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "https://repository.local/contracts/", | ||
"serverURL": "https://localhost/server/", | ||
"verifierURL": "https://localhost/#/", | ||
"chainID": 296 | ||
} | ||
}, | ||
{ | ||
"name": "previewnet", | ||
"displayName": "PREVIEWNET", | ||
"url": "https://previewnet.mirrornode.hedera.com/", | ||
"ledgerID": "02", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "https://repository.local/contracts/", | ||
"serverURL": "https://localhost/server/", | ||
"verifierURL": "https://localhost/#/", | ||
"chainID": 297 | ||
} | ||
}, | ||
{ | ||
"name": "localnode", | ||
"displayName": "LOCAL NODE", | ||
"url": "http://127.0.0.1:5551", | ||
"ledgerID": "FF", | ||
"sourcifySetup": { | ||
"activate": true, | ||
"repoURL": "https://repository.local/contracts/", | ||
"serverURL": "https://localhost/server/", | ||
"verifierURL": "https://localhost/#/", | ||
"chainID": 298 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { fileURLToPath, URL } from 'node:url' | ||
|
||
import { defineConfig } from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
import pluginRewriteAll from 'vite-plugin-rewrite-all' | ||
import { nodePolyfills } from 'vite-plugin-node-polyfills' | ||
import * as child from "child_process" | ||
|
||
const commitHash = child.execSync("git rev-parse --short HEAD").toString() //i.e., 706e821 | ||
const tagAndCommitHash = child.execSync("git describe --always --tags").toString() //i.e., v23.5.0-1-g706e821 | ||
const buildDate = new Date().toUTCString() | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [ | ||
vue(), | ||
pluginRewriteAll(), // See vite issue: https://github.com/vitejs/vite/issues/2190 | ||
nodePolyfills({ // hashgraph/proto needs NodeJS buffers | ||
exclude: [ | ||
'fs', // Excludes the polyfill for `fs` and `node:fs`. | ||
], | ||
globals: { | ||
Buffer: true, | ||
global: false, | ||
process: false, | ||
}, | ||
protocolImports: false, | ||
}), | ||
], | ||
resolve: { | ||
alias: { | ||
'@': fileURLToPath(new URL('./src', import.meta.url)) | ||
} | ||
}, | ||
build: { | ||
commonjsOptions: { | ||
transformMixedEsModules: true, // else hashconnect crashes because require() is undefined :( | ||
}, | ||
}, | ||
define: { | ||
'import.meta.env.VITE_BUILD_SHORTCOMMITHASH': JSON.stringify(commitHash), | ||
'import.meta.env.VITE_BUILD_RELEASE': JSON.stringify(tagAndCommitHash), | ||
'import.meta.env.VITE_BUILD_TIME_UTC': JSON.stringify(buildDate), | ||
}, | ||
worker: { | ||
format: "es", | ||
} | ||
}) |
Oops, something went wrong.