Skip to content

Commit

Permalink
Merge branch 'feat/merged-tao-staking' into feat/tao-staking
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Jul 25, 2024
2 parents 3166efc + 78cdd79 commit aff98ae
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const AmountInput = (props: AmountInputProps) => {
Max
</Button>
}
width="10rem"
css={{ fontSize: '3rem' }}
/>
)
Expand Down
1 change: 0 additions & 1 deletion apps/portal/src/components/recipes/StakeForm/StakeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const AmountInput = (props: AmountInputProps) => (
<TextInput
type="number"
inputMode="decimal"
width="10rem"
placeholder="0.00"
value={props.amount}
onChange={event => props.onChangeAmount(event.target.value)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const AmountInput = (props: AmountInputProps) => {
Max
</Button>
}
width="10rem"
css={{ fontSize: '3rem' }}
/>
)
Expand Down
5 changes: 5 additions & 0 deletions apps/portal/src/domains/chains/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export const chainConfigs: ChainConfig[] = [
talismanPools: [8],
novaIndexerUrl: 'https://api.subquery.network/sq/nova-wallet/nova-wallet---vara',
},
// Bittensor
{
genesisHash: '0x2f0555cc76fc2840a25a6ea3b9637146806f1f44b090c175ffde2a7e5ab36c03',
hasSubtensorStaking: true,
},
// Avail
{
genesisHash: '0xb91746b45e0346cc2f815a520b9c6cb4d5c0902af848db0a80f85932d2e8276a',
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/src/molecules/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const TextInput = Object.assign(
}}
>
{leadingIcon}
<div className="flex flex-col flex-1" css={{ width: props.width ?? '20rem' }}>
<div className="flex flex-col flex-1" css={{ width: props.width ?? '100%' }}>
<input
ref={ref}
{...props}
Expand All @@ -103,9 +103,12 @@ const TextInput = Object.assign(
{
color: theme.color.onSurface,
flex: 1,
width: props.width ?? '100%',
background: 'transparent',
border: 'none',
padding: 0,
overflow: 'hidden',
textOverflow: 'ellipsis',
'&[type=number]': {
'::-webkit-outer-spin-button': { display: 'none' },
'::-webkit-inner-spin-button': { display: 'none' },
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"compilerOptions": {
"jsxImportSource": "@emotion/react",
"outDir": "build"
}
},
"exclude": [
"storybook-static"
]
}
49 changes: 19 additions & 30 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4167,20 +4167,7 @@ __metadata:
languageName: node
linkType: hard

"@graphql-tools/utils@npm:^10.0.0":
version: 10.0.5
resolution: "@graphql-tools/utils@npm:10.0.5"
dependencies:
"@graphql-typed-document-node/core": "npm:^3.1.1"
dset: "npm:^3.1.2"
tslib: "npm:^2.4.0"
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
checksum: 10c0/3a8d306df62b530dd6f65fb78f483dfc816c212c7c78d2c84148864b3330ed7b9dc42e42047665858840d12d061b98a40b97884e4cfe8218c5b5086b0604dd91
languageName: node
linkType: hard

"@graphql-tools/utils@npm:^10.0.13, @graphql-tools/utils@npm:^10.1.1, @graphql-tools/utils@npm:^10.2.1, @graphql-tools/utils@npm:^10.2.3":
"@graphql-tools/utils@npm:^10.0.0, @graphql-tools/utils@npm:^10.0.13, @graphql-tools/utils@npm:^10.1.1, @graphql-tools/utils@npm:^10.2.1, @graphql-tools/utils@npm:^10.2.3":
version: 10.2.3
resolution: "@graphql-tools/utils@npm:10.2.3"
dependencies:
Expand Down Expand Up @@ -7848,10 +7835,10 @@ __metadata:
languageName: node
linkType: hard

"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3":
version: 1.1.6
resolution: "@scure/base@npm:1.1.6"
checksum: 10c0/237a46a1f45391fc57719154f14295db936a0b1562ea3e182dd42d7aca082dbb7062a28d6c49af16a7e478b12dae8a0fe678d921ea5056bcc30238d29eb05c55
"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:~1.1.6":
version: 1.1.7
resolution: "@scure/base@npm:1.1.7"
checksum: 10c0/2d06aaf39e6de4b9640eb40d2e5419176ebfe911597856dcbf3bc6209277ddb83f4b4b02cb1fd1208f819654268ec083da68111d3530bbde07bae913e2fc2e5d
languageName: node
linkType: hard

Expand All @@ -7862,13 +7849,6 @@ __metadata:
languageName: node
linkType: hard

"@scure/base@npm:~1.1.6":
version: 1.1.7
resolution: "@scure/base@npm:1.1.7"
checksum: 10c0/2d06aaf39e6de4b9640eb40d2e5419176ebfe911597856dcbf3bc6209277ddb83f4b4b02cb1fd1208f819654268ec083da68111d3530bbde07bae913e2fc2e5d
languageName: node
linkType: hard

"@scure/bip32@npm:1.3.2":
version: 1.3.2
resolution: "@scure/bip32@npm:1.3.2"
Expand Down Expand Up @@ -19759,7 +19739,7 @@ __metadata:
languageName: node
linkType: hard

"is-core-module@npm:^2.13.0, is-core-module@npm:^2.8.1":
"is-core-module@npm:^2.13.0":
version: 2.13.1
resolution: "is-core-module@npm:2.13.1"
dependencies:
Expand All @@ -19777,6 +19757,15 @@ __metadata:
languageName: node
linkType: hard

"is-core-module@npm:^2.8.1":
version: 2.15.0
resolution: "is-core-module@npm:2.15.0"
dependencies:
hasown: "npm:^2.0.2"
checksum: 10c0/da161f3d9906f459486da65609b2f1a2dfdc60887c689c234d04e88a062cb7920fa5be5fb7ab08dc43b732929653c4135ef05bf77888ae2a9040ce76815eb7b1
languageName: node
linkType: hard

"is-data-view@npm:^1.0.1":
version: 1.0.1
resolution: "is-data-view@npm:1.0.1"
Expand Down Expand Up @@ -23209,7 +23198,7 @@ __metadata:
languageName: node
linkType: hard

"postcss@npm:8.4.38, postcss@npm:^8.4.38":
"postcss@npm:8.4.38":
version: 8.4.38
resolution: "postcss@npm:8.4.38"
dependencies:
Expand All @@ -23220,7 +23209,7 @@ __metadata:
languageName: node
linkType: hard

"postcss@npm:^8.4.23":
"postcss@npm:^8.4.23, postcss@npm:^8.4.38":
version: 8.4.39
resolution: "postcss@npm:8.4.39"
dependencies:
Expand Down Expand Up @@ -24917,7 +24906,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:7.6.0, semver@npm:^7.5.4":
"semver@npm:7.6.0":
version: 7.6.0
resolution: "semver@npm:7.6.0"
dependencies:
Expand All @@ -24937,7 +24926,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.6.0":
"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.4, semver@npm:^7.6.0":
version: 7.6.2
resolution: "semver@npm:7.6.2"
bin:
Expand Down

0 comments on commit aff98ae

Please sign in to comment.