-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
128 changed files
with
49,807 additions
and
5,332 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | ||
|
||
name: Build and Lint | ||
|
||
on: | ||
release: | ||
types: [created] | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: yarn ci |
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,41 @@ | ||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | ||
|
||
name: Node.js Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: yarn ci | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: yarn ci | ||
- run: | | ||
if [[ "${{ github.event.head_commit.message }}" =~ ^(docs:|chore:) ]]; then | ||
echo "Skipping npm publish due to commit message." | ||
else | ||
cd packages/module && npm publish --access public | ||
cd ../react && npm publish --access public | ||
fi | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
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 |
---|---|---|
|
@@ -113,3 +113,5 @@ _local | |
|
||
# local testing on new features | ||
localTest.tsx | ||
|
||
tmp |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit |
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,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
yarn ci |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = { extends: ['@commitlint/config-conventional'] }; |
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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
{ | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"packages": ["packages/*"], | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"version": "independent", | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.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
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
28 changes: 28 additions & 0 deletions
28
packages/demo/components/pages/apis/transaction/builder/delegateStakeCertificate.tsx
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,28 @@ | ||
import Section from '../../../../common/section'; | ||
import Codeblock from '../../../../ui/codeblock'; | ||
|
||
export default function DeregisterCertificate() { | ||
return ( | ||
<Section | ||
sidebarTo="delegateStakeCertificate" | ||
header="Delegate Stake to a Pool" | ||
contentFn={Content()} | ||
/> | ||
); | ||
} | ||
|
||
function Content() { | ||
let code = `mesh | ||
.delegateStakeCertificate(stakeKeyHash: string, poolId: string)`; | ||
|
||
return ( | ||
<> | ||
<p> | ||
Use <code>.delegateStakeCertificate()</code> to delegate a stake to a | ||
pool: | ||
</p> | ||
|
||
<Codeblock data={code} isJson={false} /> | ||
</> | ||
); | ||
} |
28 changes: 28 additions & 0 deletions
28
packages/demo/components/pages/apis/transaction/builder/deregisterCertificate.tsx
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,28 @@ | ||
import Section from '../../../../common/section'; | ||
import Codeblock from '../../../../ui/codeblock'; | ||
|
||
export default function DeregisterCertificate() { | ||
return ( | ||
<Section | ||
sidebarTo="deregisterCertificate" | ||
header="Deregister Stake Certificate" | ||
contentFn={Content()} | ||
/> | ||
); | ||
} | ||
|
||
function Content() { | ||
let code = `mesh | ||
.deregisterStakeCertificate(stakeKeyHash: string)`; | ||
|
||
return ( | ||
<> | ||
<p> | ||
Use <code>.deregisterStakeCertificate()</code> to deregister a stake | ||
certificate: | ||
</p> | ||
|
||
<Codeblock data={code} isJson={false} /> | ||
</> | ||
); | ||
} |
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
28 changes: 28 additions & 0 deletions
28
packages/demo/components/pages/apis/transaction/builder/registerCertificate.tsx
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,28 @@ | ||
import Section from '../../../../common/section'; | ||
import Codeblock from '../../../../ui/codeblock'; | ||
|
||
export default function RegisterCertificate() { | ||
return ( | ||
<Section | ||
sidebarTo="registerCertificate" | ||
header="Register Stake Certificate" | ||
contentFn={Content()} | ||
/> | ||
); | ||
} | ||
|
||
function Content() { | ||
let code = `mesh | ||
.registerStakeCertificate(stakeKeyHash: string)`; | ||
|
||
return ( | ||
<> | ||
<p> | ||
Use <code>.registerStakeCertificate()</code> to register a stake | ||
certificate: | ||
</p> | ||
|
||
<Codeblock data={code} isJson={false} /> | ||
</> | ||
); | ||
} |
28 changes: 28 additions & 0 deletions
28
packages/demo/components/pages/apis/transaction/builder/registerPoolCertificate.tsx
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,28 @@ | ||
import Section from '../../../../common/section'; | ||
import Codeblock from '../../../../ui/codeblock'; | ||
|
||
export default function RegisterPoolCertificate() { | ||
return ( | ||
<Section | ||
sidebarTo="registerPoolCertificate" | ||
header="Register Pool Certificate" | ||
contentFn={Content()} | ||
/> | ||
); | ||
} | ||
|
||
function Content() { | ||
let code = `mesh | ||
.registerPoolCertificate(poolParams: PoolParams)`; | ||
|
||
return ( | ||
<> | ||
<p> | ||
Use <code>.registerPoolCertificate()</code> to register a pool | ||
certificate: | ||
</p> | ||
|
||
<Codeblock data={code} isJson={false} /> | ||
</> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
packages/demo/components/pages/apis/transaction/builder/retirePoolCertificate.tsx
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,27 @@ | ||
import Section from '../../../../common/section'; | ||
import Codeblock from '../../../../ui/codeblock'; | ||
|
||
export default function RetirePoolCertificate() { | ||
return ( | ||
<Section | ||
sidebarTo="retirePoolCertificate" | ||
header="Retire Pool Certificate" | ||
contentFn={Content()} | ||
/> | ||
); | ||
} | ||
|
||
function Content() { | ||
let code = `mesh | ||
.retirePoolCertificate(poolId: string, epoch: number)`; | ||
|
||
return ( | ||
<> | ||
<p> | ||
Use <code>.retirePoolCertificate()</code> to retire a pool certificate: | ||
</p> | ||
|
||
<Codeblock data={code} isJson={false} /> | ||
</> | ||
); | ||
} |
Oops, something went wrong.