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

Migrate to space-pussy network #1081

Draft
wants to merge 202 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
19f3abb
- migrate to space-pussy network
Snedashkovsky Dec 25, 2023
0f2a0de
- update menu
Snedashkovsky Dec 25, 2023
c71f5c9
start cybernet
happylolonly Feb 21, 2024
456e88b
- merge updates from cyb-ts
Snedashkovsky Feb 23, 2024
f8193c2
Merge branch 'master' into move-to-space-pussy
Snedashkovsky Feb 23, 2024
a0cfa3d
- add cybertensor
Snedashkovsky Feb 23, 2024
fd260fb
Merge remote-tracking branch 'origin/move-to-space-pussy' into move-t…
Snedashkovsky Feb 23, 2024
bc7936d
- fix swap routing
Snedashkovsky Feb 23, 2024
e60b478
update
happylolonly Mar 1, 2024
6647e47
fix response view
happylolonly Mar 1, 2024
d432128
add registration
happylolonly Mar 1, 2024
e61b17a
fix link
happylolonly Mar 1, 2024
6ad58d7
large refactoring and update
happylolonly Mar 16, 2024
d6472d8
updates
happylolonly Mar 17, 2024
439808f
refactor and updates
happylolonly Mar 17, 2024
66a920e
- update app menu
Snedashkovsky Mar 19, 2024
a4e5504
- fix reward amount for space-pussy
Snedashkovsky Mar 20, 2024
65cbe0b
- merge the cybernet updates from https://github.com/cybercongress/cy…
Snedashkovsky Mar 20, 2024
b8c088b
- fix a reward getting
Snedashkovsky Mar 20, 2024
e6822dd
updates
happylolonly Mar 21, 2024
a243cad
fixes
happylolonly Mar 21, 2024
3f1f2a8
Merge branch 'feat/cybernet' into move-to-space-pussy
Snedashkovsky Mar 21, 2024
84fa60f
fix styles import
happylolonly Mar 21, 2024
c46ccf3
- merge from upstream feat/cybernet
Snedashkovsky Mar 21, 2024
e51fea1
- update links
Snedashkovsky Mar 22, 2024
d90d4d1
Merge pull request #3 from cybercongress/feat/cybernet
Snedashkovsky Mar 22, 2024
dd8edab
large update
happylolonly Apr 17, 2024
b5b98dd
updates
happylolonly Apr 18, 2024
e4ad191
updates
happylolonly Apr 19, 2024
96ee388
updates
happylolonly Apr 19, 2024
57cb044
update settings
happylolonly Apr 23, 2024
5abbdd8
Merge branch 'master' into feat/cybernet
happylolonly Apr 23, 2024
c37cf9e
add prove pussy address
happylolonly Apr 23, 2024
41c1ccc
passports in pussy
happylolonly Apr 23, 2024
e691db1
fixes
happylolonly Apr 23, 2024
5590529
fixes
happylolonly Apr 23, 2024
7d303d6
Merge branch 'master' into feat/cybernet
happylolonly Apr 29, 2024
f114ea4
fixes after merge
happylolonly Apr 29, 2024
80d47ad
updates
happylolonly Apr 29, 2024
598d173
updates
happylolonly Apr 30, 2024
ed36110
updates
happylolonly May 3, 2024
3917b41
improvements
happylolonly May 6, 2024
d112baf
add caching
happylolonly May 6, 2024
7736b1e
updates
happylolonly May 7, 2024
70bbc33
updates
happylolonly May 8, 2024
b881d22
Merge pull request #5 from cybercongress/feat/cybernet
Snedashkovsky May 9, 2024
136f1ff
Merge branch 'feat/cybernet' into move-to-space-pussy
Snedashkovsky May 9, 2024
3958a1d
different updates
happylolonly May 11, 2024
03684ca
updates
happylolonly May 11, 2024
322fdbb
- update cybertensor page
Snedashkovsky May 12, 2024
3387d10
Merge pull request #7 from cybercongress/feat/cybernet
Snedashkovsky May 12, 2024
d0716a7
Merge branch 'move-to-space-pussy' into feat/cybernet
Snedashkovsky May 12, 2024
d1f3104
Merge pull request #6 from Snedashkovsky/feat/cybernet
Snedashkovsky May 12, 2024
6ca6d0e
- update cybertensor page
Snedashkovsky May 12, 2024
e88bc18
- set default chain id to `space-pussy`
Snedashkovsky May 12, 2024
9802a50
updates
happylolonly May 16, 2024
8fe8c70
add root subnet weight setter
happylolonly May 16, 2024
6ccd0f4
fix
happylolonly May 16, 2024
ad56a2e
fix proposal
happylolonly May 17, 2024
83cb976
fix
happylolonly May 17, 2024
fc43d99
updates
happylolonly May 17, 2024
0051e4e
updates
happylolonly May 17, 2024
4980001
updates
happylolonly May 20, 2024
c8c1871
updates
happylolonly May 21, 2024
6bcca61
improves
happylolonly May 21, 2024
3a0c7a6
Merge branch 'feat/cybernet' of https://github.com/cybercongress/cyb-…
happylolonly May 22, 2024
02f8e70
Merge branch 'cybercongress-feat/cybernet' into feat/cybernet
happylolonly May 22, 2024
6737297
Merge remote-tracking branch 'origin/feat/cybernet' into move-to-spac…
happylolonly May 22, 2024
4dca40c
updates
happylolonly May 23, 2024
862ac09
new contract version update
happylolonly May 24, 2024
9d444dc
fix
happylolonly May 24, 2024
9d85326
updates
happylolonly May 25, 2024
369195b
updates
happylolonly May 25, 2024
e74920d
update
happylolonly May 25, 2024
40f5392
updates
happylolonly May 25, 2024
df95278
updates
happylolonly May 26, 2024
5f979bf
update
happylolonly May 26, 2024
04158a7
fixes
happylolonly May 26, 2024
d143d9f
updates
happylolonly May 26, 2024
cdec6ca
updates
happylolonly May 26, 2024
3d86270
fixes
happylolonly May 27, 2024
bd9f569
updates
happylolonly May 27, 2024
6b50993
updates
happylolonly May 27, 2024
1ce5c5f
renaming
happylolonly May 28, 2024
d00175f
add links
happylolonly May 28, 2024
78c3603
fix mentor page
happylolonly May 28, 2024
e652933
updates
happylolonly May 28, 2024
74b7c59
updates
happylolonly May 28, 2024
0f87e22
updates
happylolonly May 28, 2024
ba62aba
add yield
happylolonly May 28, 2024
b58fb07
resolve cid
happylolonly May 28, 2024
3fbaa0f
add contracts
happylolonly May 28, 2024
102fb41
fixes
happylolonly May 28, 2024
c625fa0
updates
happylolonly May 29, 2024
562725a
fixes
happylolonly May 29, 2024
9d7c7a1
update
happylolonly May 30, 2024
a354aa4
Merge branch 'move-to-space-pussy' into pr/happylolonly/11
happylolonly May 30, 2024
067c2aa
update
happylolonly May 30, 2024
c9ac52a
Merge pull request #11 from cybercongress/feat/cybernet-new
Snedashkovsky May 30, 2024
3947a24
remove
happylolonly May 30, 2024
f76ca1f
fix
happylolonly May 30, 2024
03059c1
fixes
happylolonly May 30, 2024
bacee61
Merge pull request #12 from cybercongress/feat/cybernet-new
Snedashkovsky May 30, 2024
74db3b7
fix
happylolonly May 30, 2024
a5acc29
Merge pull request #13 from cybercongress/feat/cybernet-new
happylolonly May 30, 2024
872f0e1
fix type
happylolonly May 30, 2024
114d196
Merge pull request #14 from cybercongress/feat/cybernet-new
happylolonly May 30, 2024
cef0a04
- set up the cyberver page as a landing
Snedashkovsky May 31, 2024
fc09a62
remove
happylolonly May 30, 2024
3945ee2
fix
happylolonly May 30, 2024
90590c3
fixes
happylolonly May 30, 2024
7f5cd51
fix
happylolonly May 30, 2024
3e55f9b
fix type
happylolonly May 30, 2024
9cdde0b
add sigma
happylolonly May 31, 2024
dd7beef
prevent closing menu
happylolonly May 31, 2024
1fd8aa2
add legacy
happylolonly May 31, 2024
02d4bce
updates
happylolonly May 31, 2024
15541b3
Merge branch 'move-to-space-pussy' into pussy-ts/feat/cybernet-new
happylolonly May 31, 2024
a5d656c
remove portal app
happylolonly May 31, 2024
d2e92b7
Merge branch 'move-to-space-pussy' into feat/cybernet-new
happylolonly May 31, 2024
9725dec
Merge pull request #15 from Snedashkovsky/feat/cybernet-new
happylolonly May 31, 2024
3966516
sorting, grades, professor check
happylolonly Jun 4, 2024
53c28f5
updates
happylolonly Jun 4, 2024
4fdc1c9
updates
happylolonly Jun 4, 2024
a4909d2
remove logs
happylolonly Jun 4, 2024
4cc71a2
Merge branch 'master' into feat/cybernet-new
happylolonly Jun 4, 2024
8e79eef
fix
happylolonly Jun 4, 2024
9a2b7e2
fixes
happylolonly Jun 4, 2024
24c5bf8
Merge branch 'feat/cybernet-new' into pussy-ts/feat/cybernet-new
happylolonly Jun 4, 2024
dc5b248
Merge branch 'pussy-ts/feat/cybernet-new' into move-to-space-pussy
happylolonly Jun 4, 2024
47fb657
updates
happylolonly Jun 5, 2024
b9e31f2
add env
happylolonly Jun 5, 2024
22ef7e6
test
happylolonly Jun 5, 2024
91df6dd
remove logs
happylolonly Jun 5, 2024
c15741e
fix
happylolonly Jun 5, 2024
e494b4b
update search
happylolonly Jun 6, 2024
6460f1e
fix oracle
happylolonly Jun 6, 2024
5d4f5fb
update search
happylolonly Jun 6, 2024
4960c24
add mentor chooser to sigma
happylolonly Jun 6, 2024
f80bc7d
update
happylolonly Jun 6, 2024
1e173c8
add cyberver to sigma
happylolonly Jun 6, 2024
44ed609
updates
happylolonly Jun 7, 2024
c2b506a
updates
happylolonly Jun 7, 2024
41c4b85
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Jun 7, 2024
0b41656
updates
happylolonly Jun 10, 2024
ea072ae
fix
happylolonly Jun 10, 2024
35e56c6
fixes
happylolonly Jun 10, 2024
b97554a
updates
happylolonly Jun 11, 2024
148325b
updates
happylolonly Jun 11, 2024
a5c603c
refactoring and updates
happylolonly Jun 11, 2024
2ca1f33
update displays and sigma
happylolonly Jun 13, 2024
fee10be
hide adviser from teleport landing
happylolonly Jun 13, 2024
89bad4d
fix unbonding adviser texts
happylolonly Jun 13, 2024
3ea3c77
replace lp icon
happylolonly Jun 13, 2024
4585bd9
move contracts to config
happylolonly Jun 13, 2024
c26b49a
fix display
happylolonly Jun 13, 2024
8399007
refactor hook
happylolonly Jun 13, 2024
d0fa29b
rename
happylolonly Jun 13, 2024
f58f3f2
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Jun 13, 2024
3bb4430
comment legacy contracts
happylolonly Jun 13, 2024
aed682d
updates
happylolonly Jun 17, 2024
2653bb0
Merge branch 'master' into feat/cybernet-new
happylolonly Jun 17, 2024
8ea21d5
updates
happylolonly Jun 17, 2024
9f65a08
update table
happylolonly Jun 18, 2024
eea8d25
update
happylolonly Jun 18, 2024
af3e394
fix row click
happylolonly Jun 18, 2024
c7e7e43
improve adviser
happylolonly Jun 18, 2024
d2f1dfd
update
happylolonly Jun 19, 2024
5bfb661
updates
happylolonly Jun 20, 2024
797755b
fix
happylolonly Jun 20, 2024
b83cee2
fixes
happylolonly Jun 20, 2024
88b61d8
update grades
happylolonly Jun 20, 2024
baa1551
fix adviser
happylolonly Jun 20, 2024
1258218
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Jun 20, 2024
952745d
fix(app): get warp and convert liquid price
dimakorzhovnik Jun 23, 2024
828cc17
fix calulation
happylolonly Jun 24, 2024
bcbe695
add adviser message
happylolonly Jun 25, 2024
497df2b
fix board registrations
happylolonly Jun 25, 2024
fedd2e4
add refetch
happylolonly Jun 25, 2024
f549c7d
Merge branch 'convert-liquid-price' into feat/cybernet-new
happylolonly Jun 25, 2024
314e73e
improve query hook
happylolonly Jun 25, 2024
2c0b82b
improve
happylolonly Jun 25, 2024
8e65a45
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Jun 27, 2024
2db14d3
improves
happylolonly Jun 28, 2024
da1ca83
fixes
happylolonly Jun 28, 2024
f637886
remove warning text
happylolonly Jul 3, 2024
5beaf54
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Jul 3, 2024
ce4bd1b
return env
happylolonly Jul 3, 2024
a16929a
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Jul 3, 2024
2f0d3b9
fix
happylolonly Jul 3, 2024
b711f4e
fix
happylolonly Jul 3, 2024
c7defa1
Merge branch 'master' into feat/cybernet-new
happylolonly Jul 11, 2024
48190af
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Jul 11, 2024
f2ba567
add analytics
happylolonly Jul 30, 2024
8709ad8
Merge branch 'master' into feat/cybernet-new
happylolonly Aug 7, 2024
fead161
refactor
happylolonly Aug 7, 2024
021079a
fix
happylolonly Aug 7, 2024
9bea7e5
fix crash
happylolonly Aug 7, 2024
2e3cc49
add menu
happylolonly Aug 7, 2024
b05607d
Merge branch 'feat/cybernet-new' into move-to-space-pussy
happylolonly Aug 7, 2024
c0d65b7
update menu
happylolonly Aug 7, 2024
3d94f66
remove script
happylolonly Aug 7, 2024
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# CHAIN_ID = space-pussy
CHAIN_ID = space-pussy
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ example of [random citizen](https://cyb.ai/pgraph/bostrom1d8754xqa9245pctlfcyv8e
# build

```sh
$ yarn install
$ yarn start
$ docker-compose up
```
then pray that node.js will build something
then pray that docker will build on [localhost:3000](http://localhost:3000/)

# join

Expand Down
13 changes: 0 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,4 @@ services:
target: build
ports:
- '3000:3000'
environment:
- NODE_OPTIONS=--max-old-space-size=8192
- CHAIN_ID=bostrom
- RPC_URL=https://rpc.bostrom.cybernode.ai
- LCD_URL=https://lcd.bostrom.cybernode.ai
- WEBSOCKET_URL=wss://rpc.bostrom.cybernode.ai/websocket
- INDEX_HTTPS=https://index.bostrom.cybernode.ai/v1/graphql
- INDEX_WEBSOCKET=wss://index.bostrom.cybernode.ai/v1/graphql
- CYBER_GATEWAY=https://gateway.bostrom.cybernode.ai
- BASE_DENOM=boot
- DENOM_LIQUID=hydrogen
- BECH32_PREFIX=bostrom

command: npx serve -s build
2 changes: 1 addition & 1 deletion src/components/IconsNumber/IconsNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React from 'react';
import { formatNumber } from 'src/utils/utils';
import getPrefixNumber from 'src/utils/getPrefixNumber';
import cx from 'classnames';
import hydrogen from '../../image/hydrogen.svg';
import Tooltip from '../tooltip/tooltip';
import hydrogen from '../../image/hydrogen.svg';
import styles from './IconsNumber.module.scss';

enum TypesEnum {
Expand Down
2 changes: 1 addition & 1 deletion src/components/account/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { routes } from 'src/routes';
import usePassportByAddress from 'src/features/passport/hooks/usePassportByAddress';
import cx from 'classnames';
import { BECH32_PREFIX_VALOPER } from 'src/constants/config';
import useCurrentAddress from 'src/hooks/useCurrentAddress';
import { trimString } from '../../utils/utils';
import { AvataImgIpfs } from '../../containers/portal/components/avataIpfs';
import styles from './account.module.scss';
import useCurrentAddress from 'src/hooks/useCurrentAddress';
import Tooltip from '../tooltip/tooltip';

function useGetValidatorInfo(address: string) {
Expand Down
12 changes: 4 additions & 8 deletions src/components/containerGradient/Display/Display.module.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
@import '../saber/index.module.scss';
@import './variables.module.scss';
@import '../../../style/mixins.scss';
@import '../saber/index.module';
@import './variables.module';
@import '../../../style/mixins';

.wrapper {
// TODO: remove this
z-index: 0;

display: flex;
flex-direction: column;

Expand Down Expand Up @@ -46,7 +45,6 @@
.inner {
padding: $display-padding-top $display-padding-x;
overflow: auto;

height: 100%;
max-height: 100%;

Expand All @@ -69,6 +67,4 @@
padding-bottom: unset;
}
}

@include blueScroll;
}
}
2 changes: 1 addition & 1 deletion src/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function isWorker() {
const LOCALSTORAGE_CHAIN_ID = !isWorker() && localStorage.getItem('chainId');

const DEFAULT_CHAIN_ID: Networks.BOSTROM | Networks.SPACE_PUSSY =
LOCALSTORAGE_CHAIN_ID || process.env.CHAIN_ID || Networks.BOSTROM;
LOCALSTORAGE_CHAIN_ID || process.env.CHAIN_ID || Networks.SPACE_PUSSY;

export const CHAIN_ID = DEFAULT_CHAIN_ID;

Expand Down
2 changes: 1 addition & 1 deletion src/constants/defaultNetworks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NetworkConfig, Networks } from 'src/types/networks';

type NetworksList = {
[key in Networks.BOSTROM | Networks.SPACE_PUSSY]: NetworkConfig;
[key in Networks.SPACE_PUSSY | Networks.BOSTROM]: NetworkConfig;
};

const defaultNetworks: NetworksList = {
Expand Down
13 changes: 7 additions & 6 deletions src/containers/Search/Filters/Filters.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import React, { useState } from 'react';
import styles from './Filters.module.scss';
import { useState } from 'react';
import ButtonsGroup from 'src/components/buttons/ButtonsGroup/ButtonsGroup';
import { LinksTypeFilter, SortBy } from '../types';
import { initialContentTypeFilterState } from '../constants';
import Links from 'src/components/search/Spark/Meta/Links/Links';
import { Account, Tooltip } from 'src/components';
import { Tooltip } from 'src/components';
import { AccountInput } from 'src/pages/teleport/components/Inputs';
import useCurrentAddress from 'src/hooks/useCurrentAddress';

import { AvataImgIpfs } from 'src/containers/portal/components/avataIpfs';
import useCurrentAddress from 'src/hooks/useCurrentAddress';
import useCurrentPassport from 'src/features/passport/hooks/useCurrentPassport';
import { initialContentTypeFilterState } from '../constants';
import { LinksTypeFilter, SortBy } from '../types';
import styles from './Filters.module.scss';

enum NeuronFilterType {
me = 'me',
Expand Down
4 changes: 2 additions & 2 deletions src/containers/Validators/ActionBarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,12 @@ function ActionBarContainer({
>
Investmint
</Button>
yor free H to get A and V
yor free LP to get A and V
</Pane>
)}
{balanceToken[DENOM_LIQUID].liquid === 0 &&
balance.available !== 0 &&
'Choose hero to get H'}
'Choose hero to get LP'}
{validRewards && (
<Pane marginLeft={15}>
or
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Validators/components/InfoBalance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { DENOM_LIQUID, BASE_DENOM } from 'src/constants/config';
function TootipContent() {
return (
<div style={{ width: 200 }}>
you receive H form staked BOOT, you can use H for investmint A and V
you receive {DENOM_LIQUID} form staked {BASE_DENOM}, you can use {DENOM_LIQUID} for investmint A and V
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/containers/application/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import useSenseManager from 'src/features/sense/ui/useSenseManager';

// eslint-disable-next-line unused-imports/no-unused-imports, @typescript-eslint/no-unused-vars
import { initCyblog } from 'src/utils/logging/bootstrap';

import { setTimeHistoryRoute } from 'src/features/TimeHistory/redux/TimeHistory.redux';
import { PreviousPageProvider } from 'src/contexts/previousPage';
import { cybernetRoutes } from 'src/features/cybernet/ui/routes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const findSelectAppByUrl = (
let pathname = url;
const isRobot = url.includes('@') || url.includes('neuron/');
const isOracle = url.includes('oracle');
const isCyberver = url.includes('cyberver');

const itemsMenuObj = reduceRobotSubItems(passport, address);

Expand All @@ -23,6 +24,10 @@ const findSelectAppByUrl = (
pathname = routes.oracle.path;
}

if (isCyberver) {
pathname = '/cyberver';
}

const value = findApp(itemsMenuObj, pathname);

return value;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/mint/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function Mint() {
)}
<br />
choose <ValueImg text="milliampere" /> or <ValueImg text="millivolt" />{' '}
to mint, the amount of <ValueImg text="hydrogen" /> to invest, and the
to mint, the amount of <ValueImg text={DENOM_LIQUID} /> to invest, and the
timeframe
</p>
);
Expand Down
Empty file.
7 changes: 3 additions & 4 deletions src/containers/portal/gift/ActionBarPortalGift.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import { toAscii, toBase64 } from '@cosmjs/encoding';
import { useSigningClient } from 'src/contexts/signerClient';
import { getKeplr } from 'src/utils/keplrUtils';
import useWaitForTransaction from 'src/hooks/useWaitForTransaction';
import { useDispatch, useSelector } from 'react-redux';
import { useDispatch } from 'react-redux';
import { Citizenship } from 'src/types/citizenship';
import { RootState } from 'src/redux/store';
import { useBackend } from 'src/contexts/backend/backend';
import { PATTERN_CYBER } from 'src/constants/patterns';
import Soft3MessageFactory from 'src/services/soft.js/api/msgs';
import BigNumber from 'bignumber.js';
import { Nullable } from 'src/types';
import useCurrentAddress from 'src/hooks/useCurrentAddress';
import { CHAIN_ID } from 'src/constants/config';
import {
Dots,
ButtonIcon,
Expand Down Expand Up @@ -47,8 +48,6 @@ import {
} from '../../../features/passport/passports.redux';
import { ClaimMsg } from './type';
import { TxHash } from '../hook/usePingTxs';
import useCurrentAddress from 'src/hooks/useCurrentAddress';
import { CHAIN_ID } from 'src/constants/config';

const gasPrice = GasPrice.fromString('0.001boot');

Expand Down
12 changes: 9 additions & 3 deletions src/containers/sigma/hooks/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ import BigNumber from 'bignumber.js';
import { useQuery } from '@tanstack/react-query';
import { getDelegatorDelegations } from 'src/utils/search/utils';
import { BECH32_PREFIX_VALOPER, BASE_DENOM } from 'src/constants/config';
import { useStake as useVerseStake } from 'src/features/cybernet/ui/hooks/useCurrentAccountStake';
import { CYBERVER_CONTRACTS } from 'src/features/cybernet/constants';
import { useQueryClient } from 'src/contexts/queryClient';
import {
useStake as useVerseStake,
useStake as useVerseStake,
} from 'src/features/cybernet/ui/hooks/useCurrentAccountStake';
import {
CYBERVER_CONTRACTS,
CYBERVER_CONTRACTS,
} from 'src/features/cybernet/constants';
import { useQueryClient, useQueryClient } from 'src/contexts/queryClient';

import { isPussyChain } from 'src/utils/chains/pussy';
import { fromBech32 } from '../../../utils/utils';
Expand Down
6 changes: 3 additions & 3 deletions src/containers/sigma/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import TokenChange from 'src/components/TokenChange/TokenChange';
import { routes } from 'src/routes';
import Display from 'src/components/containerGradient/Display/Display';
import { useAppSelector } from 'src/redux/hooks';
import DisplayTitle from 'src/components/containerGradient/DisplayTitle/DisplayTitle';
import useCurrentPassport from 'src/features/passport/hooks/useCurrentPassport';
import useAdviserTexts from 'src/features/adviser/useAdviserTexts';
import { SigmaContext } from './SigmaContext';

import { CardPassport } from './components';
import ActionBarPortalGift from '../portal/gift/ActionBarPortalGift';
import STEP_INFO from '../portal/gift/utils';
import DisplayTitle from 'src/components/containerGradient/DisplayTitle/DisplayTitle';
import useCurrentPassport from 'src/features/passport/hooks/useCurrentPassport';
import useAdviserTexts from 'src/features/adviser/useAdviserTexts';

const valueContext = {
totalCap: 0,
Expand Down
2 changes: 0 additions & 2 deletions src/features/adviser/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ function AdviserProvider({ children }: { children: React.ReactNode }) {
const priorityItem = [...state].reverse().find((item) => item.isPriority);
const lastItem = priorityItem || state[state.length - 1];

// console.log(state);

const { content, color } = lastItem || {};

const value = useMemo(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/features/cybernet/ui/Cybernet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Cybernet() {
<div>
<CybernetProvider>
<Helmet>
<title>cybernet | cyb</title>
<title>cyberver | cyb</title>
</Helmet>

<MainContainer resetMaxWidth>
Expand Down
74 changes: 74 additions & 0 deletions src/features/cybernet/ui/RootSubnetsTable/RootSubnetsTable.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import React, { useMemo } from 'react';
import { SubnetInfo } from '../../types';
import { createColumnHelper } from '@tanstack/react-table';
import Table from 'src/components/Table/Table';
import { Link, useNavigate } from 'react-router-dom';
import { routes } from 'src/routes';
import { Account } from 'src/components';

type Props = {
data: SubnetInfo[];
};

const columnHelper = createColumnHelper<any>();

function RootSubnetsTable({ data }: Props) {
const navigate = useNavigate();

return (
<div>
<Table
// onSelect={(row) => navigate(`./subnets/${row}`)}
columns={useMemo(
() => [
columnHelper.accessor('netuid', {
header: 'netuid',
cell: (info) => (
<Link to={'./' + info.getValue()}>{info.getValue()}</Link>
),
}),
columnHelper.accessor('owner', {
header: 'owner',
cell: (info) => (
<Link to={routes.neuron.getLink(info.getValue())}>
{/* // <Link to={'./delegators/' + info.getValue()}> */}
<Account address={info.getValue()} />
{/* {info.getValue().substr(0, 10) + '...'} */}
</Link>
),
}),
// columnHelper.accessor('netuid', {
// header: 'link',
// cell: (info) => <Link to={'./' + info.getValue()}>link</Link>,
// }),

columnHelper.accessor('tempo', {
header: 'tempo',
cell: (info) => info.getValue(),
}),
columnHelper.accessor('metadata', {
header: 'metadata',
cell: (info) => (
<Link to={routes.oracle.ask.getLink(info.getValue())}>
{info.getValue().substr(0, 10) + '...'}
</Link>
),
}),
columnHelper.accessor('max_allowed_validators', {
header: 'Max validators',
cell: (info) => info.getValue(),
}),
columnHelper.accessor('max_allowed_uids', {
header: 'Max operators',
cell: (info) => info.getValue(),
}),
],
[]
)}
data={data}
/>
</div>
);
}

export default RootSubnetsTable;
6 changes: 3 additions & 3 deletions src/features/cybernet/ui/cybernet.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ function CybernetProvider({ children }: { children: React.ReactNode }) {
const c1 = useCybernetContractWithData(CYBERVER_CONTRACTS[0]);
const c2 = useCybernetContractWithData(CYBERVER_CONTRACTS[1]);

const c3 = useCybernetContractWithData(CYBERVER_CONTRACTS_LEGACY[0]);
const c4 = useCybernetContractWithData(CYBERVER_CONTRACTS_LEGACY[1]);
// const c3 = useCybernetContractWithData(CYBERVER_CONTRACTS_LEGACY[0]);
// const c4 = useCybernetContractWithData(CYBERVER_CONTRACTS_LEGACY[1]);

const contracts = useMemo(() => [c1, c2, c3, c4], [c1, c2, c3, c4]);
const contracts = useMemo(() => [c1, c2], [c1, c2]);

const currentContract =
nameOrAddress &&
Expand Down
4 changes: 2 additions & 2 deletions src/features/cybernet/ui/pages/Delegates/Delegates.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import DelegatesTable from './DelegatesTable/DelegatesTable';
import Display from 'src/components/containerGradient/Display/Display';
import DisplayTitle from 'src/components/containerGradient/DisplayTitle/DisplayTitle';
import useAdviserTexts from 'src/features/adviser/useAdviserTexts';
import useCybernetTexts from '../../useCybernetTexts';
import { useDelegates } from '../../hooks/useDelegate';
import DelegatesTable from './DelegatesTable/DelegatesTable';

function Delegates() {
const { loading, error } = useDelegates();
Expand All @@ -13,7 +13,7 @@ function Delegates() {
useAdviserTexts({
isLoading: loading,
loadingText: `loading ${getText('delegate', true)}`,
error,
error: error?.message,
defaultText: `choose ${getText('delegate')} for learning`,
});

Expand Down
Loading