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: generate create vesting account tx json #426

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from
Draft
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
13 changes: 13 additions & 0 deletions apps/shell/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ const WalletCheckPage = lazy(async () => {
const { WalletCheckPage } = await import('@haqq/shell-airdrop');
return { default: WalletCheckPage };
});
const CreateVestingAccountPage = lazy(async () => {
const { CreateVestingAccountPage } = await import(
'@haqq/shell/services-pages'
);
return { default: CreateVestingAccountPage };
});
const VestingInfoPage = lazy(async () => {
const { VestingInfoPage } = await import('@haqq/shell/services-pages');
return { default: VestingInfoPage };
});

export function App() {
return (
Expand Down Expand Up @@ -87,6 +97,9 @@ export function App() {
}
/>

<Route path="/vesting/new" element={<CreateVestingAccountPage />} />
<Route path="/vesting/:address" element={<VestingInfoPage />} />

<Route path="not-found" element={<NotFoundPage />} />
<Route path="*" element={<Navigate to="/not-found" replace />} />
</Routes>
Expand Down
12 changes: 12 additions & 0 deletions libs/shell/services-pages/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@nx/react/babel",
{
"runtime": "automatic",
"useBuiltIns": "usage"
}
]
],
"plugins": []
}
18 changes: 18 additions & 0 deletions libs/shell/services-pages/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["plugin:@nx/react", "../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions libs/shell/services-pages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# services-pages

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test services-pages` to execute the unit tests via [Jest](https://jestjs.io).
18 changes: 18 additions & 0 deletions libs/shell/services-pages/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* eslint-disable */
export default {
displayName: 'services-pages',
preset: '../../../jest.preset.js',
transform: {
'^.+\\.[tj]sx?$': [
'@swc/jest',
{
jsc: {
parser: { syntax: 'typescript', tsx: true },
transform: { react: { runtime: 'automatic' } },
},
},
],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/shell/services-pages',
};
30 changes: 30 additions & 0 deletions libs/shell/services-pages/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "services-pages",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/shell/services-pages/src",
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/shell/services-pages/**/*.{ts,tsx,js,jsx}"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/shell/services-pages/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
}
}
2 changes: 2 additions & 0 deletions libs/shell/services-pages/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './lib/create-vesting-account-page/create-vesting-account-page';
export * from './lib/vesting-info-page/vesting-info-page';
Loading