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

feat: raw demo #1361

Merged
merged 25 commits into from
Feb 19, 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
7 changes: 5 additions & 2 deletions app/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ module.exports = {
}
],
rules: {
'unicorn/no-keyword-prefix': ['error', { disallowedPrefixes: ['new', 'for'] }],
'unicorn/no-null': ['off'],
'unicorn/filename-case': ['off'],
'unicorn/prefer-module': ['off'],
'unicorn/prefer-includes': ['off'],
'unicorn/no-null': ['off'],
'unicorn/no-array-reduce': ['off'],
'unicorn/new-for-builtins': ['off'],
'unicorn/prefer-node-protocol': ['off'],
'unicorn/no-keyword-prefix': ['error', { disallowedPrefixes: ['new', 'for'] }],
'unicorn/consistent-function-scoping': ['off', { checkArrowFunctions: false }],
'unicorn/prefer-top-level-await': ['off'],
'unicorn/prefer-event-target': ['off'],
Expand Down Expand Up @@ -65,11 +66,13 @@ module.exports = {
}
}
],
'no-ex-assign': ['off'],
'no-mixed-operators': ['off'],
'no-multiple-empty-lines': ['off'],
'no-unexpected-multiline': ['off'],
'@typescript-eslint/triple-slash-reference': ['off'],
'@typescript-eslint/no-var-requires': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/prefer-namespace-keyword': ['off'],
'@typescript-eslint/no-empty-interface': ['off'],
'@typescript-eslint/consistent-type-imports': [
Expand Down
2 changes: 1 addition & 1 deletion app/app.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
packages = {
app = nodePkgs.buildNpmPackage {
npmDepsHash = "sha256-wCExLYvXK6DYlPQmxzAE+Ojh5jgxeAlrwK8cdBem2mg=";
npmDepsHash = "sha256-4119Nww/E1BU8NwrkS2C4sA7YD5siWeUb5kYzfRifoM=";
src = ./.;
sourceRoot = "app";
pname = "app";
Expand Down
13 changes: 11 additions & 2 deletions app/environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
interface EnvironmentVariables {
readonly NODE_ENV: 'development' | 'production' | 'test'
readonly PORT: string
readonly VERSION: string // from package.json#version
readonly COMMIT_SHA: string
// from package.json#version
readonly PUBLIC_VERSION: string
readonly VITE_UNION_RPC_URL: string
readonly VITE_UNION_REST_URL: string
readonly VITE_UNION_GRAPHQL_URL: string
readonly VITE_UNION_CHAIN_ID: string
readonly VITE_UNION_CHAIN_NAME: string
readonly VITE_UCS01_EVM_ADDRESS: string
readonly VITE_UCS01_UNION_ADDRESS: string
readonly VITE_UCS01_SEPOLIA_PORT_ID: string
readonly VITE_UCS01_UNION_SOURCE_CHANNEL: string
readonly VITE_UCS01_SEPOLIA_SOURCE_CHANNEL: string
}
// Node.js environment variables types
declare module NodeJS {
Expand Down
Loading
Loading