Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.

BEPRO 990 Funding progress bar doesn't appear when it is 0% on bounties list#905

Merged
MarcusviniciusLsantos merged 1 commit intobepronetwork:devfrom
MarcusviniciusLsantos:BEPRO-990-funding-progress-bar-doesnt-appear-when-it-is-0-on-bounties-list
Mar 9, 2023
Merged

BEPRO 990 Funding progress bar doesn't appear when it is 0% on bounties list#905
MarcusviniciusLsantos merged 1 commit intobepronetwork:devfrom
MarcusviniciusLsantos:BEPRO-990-funding-progress-bar-doesnt-appear-when-it-is-0-on-bounties-list

Conversation

@MarcusviniciusLsantos
Copy link
Contributor

No description provided.

@MarcusviniciusLsantos MarcusviniciusLsantos merged commit 0c97ef5 into bepronetwork:dev Mar 9, 2023
moshmage pushed a commit that referenced this pull request Mar 13, 2023
vhcsilva pushed a commit to vhcsilva/webnetwork that referenced this pull request Mar 14, 2023
moshmage added a commit that referenced this pull request Mar 20, 2023
* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

---------

Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>
Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
vhcsilva pushed a commit to vhcsilva/webnetwork that referenced this pull request Mar 21, 2023
vhcsilva added a commit that referenced this pull request Mar 21, 2023
* Bepro 1451 dont remove network id from attributes when get search networks (#894)

* removing id to exclude attributes - search network

* removing id to exclude attributes - active netwoks

* removing id in exclude

* Hotfix 10032023 (#913)

* fix reading of undefined

* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

* Dev 961 (#885)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix

* fix build

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>

* Bepro 1444 multi chain failed to update bounty amount (#891)

* fix import and using the correct component

* reordering

* using the generic sign message function

* update minimum version (#903)

* Bepro 1464 mc use configured rpc (#915)

* adding chain short name to search options

* adding available chains state

* using DAOService if possible, because dappkit already has a fix

* moving wrong netwok modal to a better place

* unsupported makes more sense than unknown

* initial work on handling change chain when interact

* apply readonly class only when on a network

* using constant

* removing unused

* using internal link for new network

* using translation for unsupported label

* handling unsupported chain

* fix loading error when chain changes

* change show logic and show connect wallet btn when not connected

* introducing contract btn

* update dependencies

* needs to pass chaintime

* using chain as dependency

* add condition

* fix always loading settings

* add wrong network modal to profile pages

* adding default oracle icon

* profile pages must match chain

* using contract button

* using contract btn

* removing unused

* more contract btn

* using contract btn

* removing unused

* load token when in a supported chain

* removing unused

* fix rebase things

* remove unused endpoint

* fix

---------

Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>
Co-authored-by: moshmage <moshmage@gmail.com>
Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
MarcusviniciusLsantos added a commit that referenced this pull request Mar 30, 2023
* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* creating initial structure createBountyPage

* creating CreateBountyCard

* creating CreateBountySteps

* Creating initial structure SelectNetwork component

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

* adding create-bounty interface

* adding initial structure bounty-details

* creating initial structure bounty-reward-info

* adjusting issue-progress-vertical style

* adding Bounty Details text

* Creating initial structure CreateBountyReview

* adjusting form-control to new gray colors

* adding gray-800 to variables

* adding DoubleArrowRight icon

* adjusting labels to BountyLabel component

* creating BountyLabel component

* adjusting rewardInfo component to new structure

* creating bounty-description component

* refactoring bounty details

* adding noLabel logic to tokens-dropdown

* refactoring create-bounty-token to new layout

* adding new layout drag-drop on border

* fix warning double-arrow icon

* adding new styles

* adding logic do create-bounty-review component

* creating selectNetworkDropDown component

* adding children to SelecNetwork on create-bounty

* adding create-bounty-page partial structure

* adding check-circle icon

* adding new params to branchs-dropdown

* adding input component to bouny-token-amount

* adding new params to repos-dropdown

* removing review and adjusting dropdowns

* adding if to null values in bounty-review

* adding new params to select-network-dropdown

* adding new params to DetailsProps

* adding a part of the structure of create-bounty

* adding currency and amount (#920)

* Bepro 1474 filter options dont work on bounty hall (#921)

* getting all repos with bounties when not in network

* set max height and add scroll

* fix treasury validation

* redirect to curators page and change condition to handle default tab (#922)

* Bepro 1486 apply new navbar design (#924)

* new nav design

* fix

* adding verify, create and logics in create-bounty

* adding BountyPaylod to interface create-bounty

* rm //

* adding new params to changeNetwork hook

* chaging path token-amount component

* adding new logic to render review component

* adjusting helper text

* adjusting main-nav to create-bounty button logic

* adjusting _app to remove createBountyModal

* styles to create-bounty

* adjusting classNames

* rm console

* removing unused components

* adjusting imports and fix merge conflicts

* Dev 961 multichain - vhcsilva (#931)

* Dev 961 (#885)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix

* fix build

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>

* using lower (#895)

* fix condition, because repos in organizations can be forks too (#898)

* Bepro 1446 mc show select a supported chain instead of unknown on networks modal (#887)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* changing "unknown" to "select supported chain"

* adding translations

* refactoring logic

* adding placeHolder to wrong-modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1448 mc breaking race condition when accessing the network (#899)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding try catch to debug handleConnect

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1444 multi chain failed to update bounty amount (#891)

* fix import and using the correct component

* reordering

* using the generic sign message function

* Bepro 1450 mc network switcher should dispatch connect wallet (#889)

* connect before switch chain

* testing

* removing test

* connecting after chain changed

* fix eslint warnings

* mustn't redirect when in connect account page

* BEPRO-1449-mc-clicking-on-the-main-nav-logo-when-not-on-a-network-should-point-to-instead-of-networks (#886)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1455 mc after a transaction app send requests to the chain repeatedly (#897)

* adding type

* adding auto-mining script

* update minimum version

* update minimum version

* no need of script, just set ganache blockTime

* Bepro 1453 mc add link to pull request on proposal page (#893)

* fix percentage and TVL amount

* fix

* using URL api to handle events url

* adding title prop

* using ID as link

* Bepro 1445 mc when i go to my profile bounties not all the bounties are appearing (#900)

* update minimum version

* adding chain to signOut callback url

* Bepro 1461 mc make the new chain default color picker have bepro selected by default (#907)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding default bepro color

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1456 mc pull request alignment fixes proposals and na n values (#901)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding ClassNameIcon to warning text

* adding classNameIcon to proposal-card

* fix IsNaN values

* fix alignment in view pull request button

* removing console and adjusting toPercent returns

* adjusting sum

* removing "+" toPercent

* adding alignments

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1447 mc leaderboard nft amount not matching the closed bounty count (#892)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

…
vhcsilva added a commit to vhcsilva/webnetwork that referenced this pull request Mar 31, 2023
* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (bepronetwork#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (bepronetwork#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (bepronetwork#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (bepronetwork#908)

* Bepro 1465 explore icon not aligned with rest of nav (bepronetwork#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (bepronetwork#905)

* fix order disabled disputed button (bepronetwork#904)

* adding text-truncate (bepronetwork#917)

* Bepro 1410 governance tab missing individual fees configuration (bepronetwork#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

---------

Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>
Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
vhcsilva added a commit to vhcsilva/webnetwork that referenced this pull request Mar 31, 2023
* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* creating initial structure createBountyPage

* creating CreateBountyCard

* creating CreateBountySteps

* Creating initial structure SelectNetwork component

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

* adding create-bounty interface

* adding initial structure bounty-details

* creating initial structure bounty-reward-info

* adjusting issue-progress-vertical style

* adding Bounty Details text

* Creating initial structure CreateBountyReview

* adjusting form-control to new gray colors

* adding gray-800 to variables

* adding DoubleArrowRight icon

* adjusting labels to BountyLabel component

* creating BountyLabel component

* adjusting rewardInfo component to new structure

* creating bounty-description component

* refactoring bounty details

* adding noLabel logic to tokens-dropdown

* refactoring create-bounty-token to new layout

* adding new layout drag-drop on border

* fix warning double-arrow icon

* adding new styles

* adding logic do create-bounty-review component

* creating selectNetworkDropDown component

* adding children to SelecNetwork on create-bounty

* adding create-bounty-page partial structure

* adding check-circle icon

* adding new params to branchs-dropdown

* adding input component to bouny-token-amount

* adding new params to repos-dropdown

* removing review and adjusting dropdowns

* adding if to null values in bounty-review

* adding new params to select-network-dropdown

* adding new params to DetailsProps

* adding a part of the structure of create-bounty

* adding currency and amount (#920)

* Bepro 1474 filter options dont work on bounty hall (#921)

* getting all repos with bounties when not in network

* set max height and add scroll

* fix treasury validation

* redirect to curators page and change condition to handle default tab (#922)

* Bepro 1486 apply new navbar design (#924)

* new nav design

* fix

* adding verify, create and logics in create-bounty

* adding BountyPaylod to interface create-bounty

* rm //

* adding new params to changeNetwork hook

* chaging path token-amount component

* adding new logic to render review component

* adjusting helper text

* adjusting main-nav to create-bounty button logic

* adjusting _app to remove createBountyModal

* styles to create-bounty

* adjusting classNames

* rm console

* removing unused components

* adjusting imports and fix merge conflicts

* Dev 961 multichain - vhcsilva (#931)

* Dev 961 (#885)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix

* fix build

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>

* using lower (#895)

* fix condition, because repos in organizations can be forks too (#898)

* Bepro 1446 mc show select a supported chain instead of unknown on networks modal (#887)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* changing "unknown" to "select supported chain"

* adding translations

* refactoring logic

* adding placeHolder to wrong-modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1448 mc breaking race condition when accessing the network (#899)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding try catch to debug handleConnect

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1444 multi chain failed to update bounty amount (#891)

* fix import and using the correct component

* reordering

* using the generic sign message function

* Bepro 1450 mc network switcher should dispatch connect wallet (#889)

* connect before switch chain

* testing

* removing test

* connecting after chain changed

* fix eslint warnings

* mustn't redirect when in connect account page

* BEPRO-1449-mc-clicking-on-the-main-nav-logo-when-not-on-a-network-should-point-to-instead-of-networks (#886)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1455 mc after a transaction app send requests to the chain repeatedly (#897)

* adding type

* adding auto-mining script

* update minimum version

* update minimum version

* no need of script, just set ganache blockTime

* Bepro 1453 mc add link to pull request on proposal page (#893)

* fix percentage and TVL amount

* fix

* using URL api to handle events url

* adding title prop

* using ID as link

* Bepro 1445 mc when i go to my profile bounties not all the bounties are appearing (#900)

* update minimum version

* adding chain to signOut callback url

* Bepro 1461 mc make the new chain default color picker have bepro selected by default (#907)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding default bepro color

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1456 mc pull request alignment fixes proposals and na n values (#901)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding ClassNameIcon to warning text

* adding classNameIcon to proposal-card

* fix IsNaN values

* fix alignment in view pull request button

* removing console and adjusting toPercent returns

* adjusting sum

* removing "+" toPercent

* adding alignments

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1447 mc leaderboard nft amount not matching the closed bounty count (#892)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

…
vhcsilva added a commit that referenced this pull request Mar 31, 2023
* BEPRO 2.11 (#916)

* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

---------

Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>
Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

* Dev 961 multichain - vhcsilva (#931)

* Dev 961 (#885)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix

* fix build

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>

* using lower (#895)

* fix condition, because repos in organizations can be forks too (#898)

* Bepro 1446 mc show select a supported chain instead of unknown on networks modal (#887)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* changing "unknown" to "select supported chain"

* adding translations

* refactoring logic

* adding placeHolder to wrong-modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1448 mc breaking race condition when accessing the network (#899)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding try catch to debug handleConnect

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1444 multi chain failed to update bounty amount (#891)

* fix import and using the correct component

* reordering

* using the generic sign message function

* Bepro 1450 mc network switcher should dispatch connect wallet (#889)

* connect before switch chain

* testing

* removing test

* connecting after chain changed

* fix eslint warnings

* mustn't redirect when in connect account page

* BEPRO-1449-mc-clicking-on-the-main-nav-logo-when-not-on-a-network-should-point-to-instead-of-networks (#886)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1455 mc after a transaction app send requests to the chain repeatedly (#897)

* adding type

* adding auto-mining script

* update minimum version

* update minimum version

* no need of script, just set ganache blockTime

* Bepro 1453 mc add link to pull request on proposal page (#893)

* fix percentage and TVL amount

* fix

* using URL api to handle events url

* adding title prop

* using ID as link

* Bepro 1445 mc when i go to my profile bounties not all the bounties are appearing (#900)

* update minimum version

* adding chain to signOut callback url

* Bepro 1461 mc make the new chain default color picker have bepro selected by default (#907)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding default bepro color

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1456 mc pull request alignment fixes proposals and na n values (#901)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding ClassNameIcon to warning text

* adding classNameIcon to proposal-card

* fix IsNaN values

* fix alignment in view pull request button

* removing console and adjusting toPercent returns

* adjusting sum

* removing "+" toPercent

* adding alignments

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1447 mc leaderboard nft amount not matching the closed bounty count (#892)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* r…
vhcsilva added a commit to vhcsilva/webnetwork that referenced this pull request Apr 3, 2023
* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* creating initial structure createBountyPage

* creating CreateBountyCard

* creating CreateBountySteps

* Creating initial structure SelectNetwork component

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

* adding create-bounty interface

* adding initial structure bounty-details

* creating initial structure bounty-reward-info

* adjusting issue-progress-vertical style

* adding Bounty Details text

* Creating initial structure CreateBountyReview

* adjusting form-control to new gray colors

* adding gray-800 to variables

* adding DoubleArrowRight icon

* adjusting labels to BountyLabel component

* creating BountyLabel component

* adjusting rewardInfo component to new structure

* creating bounty-description component

* refactoring bounty details

* adding noLabel logic to tokens-dropdown

* refactoring create-bounty-token to new layout

* adding new layout drag-drop on border

* fix warning double-arrow icon

* adding new styles

* adding logic do create-bounty-review component

* creating selectNetworkDropDown component

* adding children to SelecNetwork on create-bounty

* adding create-bounty-page partial structure

* adding check-circle icon

* adding new params to branchs-dropdown

* adding input component to bouny-token-amount

* adding new params to repos-dropdown

* removing review and adjusting dropdowns

* adding if to null values in bounty-review

* adding new params to select-network-dropdown

* adding new params to DetailsProps

* adding a part of the structure of create-bounty

* adding currency and amount (#920)

* Bepro 1474 filter options dont work on bounty hall (#921)

* getting all repos with bounties when not in network

* set max height and add scroll

* fix treasury validation

* redirect to curators page and change condition to handle default tab (#922)

* Bepro 1486 apply new navbar design (#924)

* new nav design

* fix

* adding verify, create and logics in create-bounty

* adding BountyPaylod to interface create-bounty

* rm //

* adding new params to changeNetwork hook

* chaging path token-amount component

* adding new logic to render review component

* adjusting helper text

* adjusting main-nav to create-bounty button logic

* adjusting _app to remove createBountyModal

* styles to create-bounty

* adjusting classNames

* rm console

* removing unused components

* adjusting imports and fix merge conflicts

* Dev 961 multichain - vhcsilva (#931)

* Dev 961 (#885)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix

* fix build

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>

* using lower (#895)

* fix condition, because repos in organizations can be forks too (#898)

* Bepro 1446 mc show select a supported chain instead of unknown on networks modal (#887)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* changing "unknown" to "select supported chain"

* adding translations

* refactoring logic

* adding placeHolder to wrong-modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1448 mc breaking race condition when accessing the network (#899)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding try catch to debug handleConnect

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1444 multi chain failed to update bounty amount (#891)

* fix import and using the correct component

* reordering

* using the generic sign message function

* Bepro 1450 mc network switcher should dispatch connect wallet (#889)

* connect before switch chain

* testing

* removing test

* connecting after chain changed

* fix eslint warnings

* mustn't redirect when in connect account page

* BEPRO-1449-mc-clicking-on-the-main-nav-logo-when-not-on-a-network-should-point-to-instead-of-networks (#886)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1455 mc after a transaction app send requests to the chain repeatedly (#897)

* adding type

* adding auto-mining script

* update minimum version

* update minimum version

* no need of script, just set ganache blockTime

* Bepro 1453 mc add link to pull request on proposal page (#893)

* fix percentage and TVL amount

* fix

* using URL api to handle events url

* adding title prop

* using ID as link

* Bepro 1445 mc when i go to my profile bounties not all the bounties are appearing (#900)

* update minimum version

* adding chain to signOut callback url

* Bepro 1461 mc make the new chain default color picker have bepro selected by default (#907)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding default bepro color

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1456 mc pull request alignment fixes proposals and na n values (#901)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding ClassNameIcon to warning text

* adding classNameIcon to proposal-card

* fix IsNaN values

* fix alignment in view pull request button

* removing console and adjusting toPercent returns

* adjusting sum

* removing "+" toPercent

* adding alignments

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1447 mc leaderboard nft amount not matching the closed bounty count (#892)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* removing bountyToken event to closeIssue logic

* removing bounty token to entities interface

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1462 mc make chain dropdown menu accomudate the biggest chain name (#910)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addi…
vhcsilva added a commit to vhcsilva/webnetwork that referenced this pull request Apr 3, 2023
* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* creating initial structure createBountyPage

* creating CreateBountyCard

* creating CreateBountySteps

* Creating initial structure SelectNetwork component

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

* adding create-bounty interface

* adding initial structure bounty-details

* creating initial structure bounty-reward-info

* adjusting issue-progress-vertical style

* adding Bounty Details text

* Creating initial structure CreateBountyReview

* adjusting form-control to new gray colors

* adding gray-800 to variables

* adding DoubleArrowRight icon

* adjusting labels to BountyLabel component

* creating BountyLabel component

* adjusting rewardInfo component to new structure

* creating bounty-description component

* refactoring bounty details

* adding noLabel logic to tokens-dropdown

* refactoring create-bounty-token to new layout

* adding new layout drag-drop on border

* fix warning double-arrow icon

* adding new styles

* adding logic do create-bounty-review component

* creating selectNetworkDropDown component

* adding children to SelecNetwork on create-bounty

* adding create-bounty-page partial structure

* adding check-circle icon

* adding new params to branchs-dropdown

* adding input component to bouny-token-amount

* adding new params to repos-dropdown

* removing review and adjusting dropdowns

* adding if to null values in bounty-review

* adding new params to select-network-dropdown

* adding new params to DetailsProps

* adding a part of the structure of create-bounty

* adding currency and amount (#920)

* Bepro 1474 filter options dont work on bounty hall (#921)

* getting all repos with bounties when not in network

* set max height and add scroll

* fix treasury validation

* redirect to curators page and change condition to handle default tab (#922)

* Bepro 1486 apply new navbar design (#924)

* new nav design

* fix

* adding verify, create and logics in create-bounty

* adding BountyPaylod to interface create-bounty

* rm //

* adding new params to changeNetwork hook

* chaging path token-amount component

* adding new logic to render review component

* adjusting helper text

* adjusting main-nav to create-bounty button logic

* adjusting _app to remove createBountyModal

* styles to create-bounty

* adjusting classNames

* rm console

* removing unused components

* adjusting imports and fix merge conflicts

* Dev 961 multichain - vhcsilva (#931)

* Dev 961 (#885)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix

* fix build

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>

* using lower (#895)

* fix condition, because repos in organizations can be forks too (#898)

* Bepro 1446 mc show select a supported chain instead of unknown on networks modal (#887)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* changing "unknown" to "select supported chain"

* adding translations

* refactoring logic

* adding placeHolder to wrong-modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1448 mc breaking race condition when accessing the network (#899)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding try catch to debug handleConnect

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1444 multi chain failed to update bounty amount (#891)

* fix import and using the correct component

* reordering

* using the generic sign message function

* Bepro 1450 mc network switcher should dispatch connect wallet (#889)

* connect before switch chain

* testing

* removing test

* connecting after chain changed

* fix eslint warnings

* mustn't redirect when in connect account page

* BEPRO-1449-mc-clicking-on-the-main-nav-logo-when-not-on-a-network-should-point-to-instead-of-networks (#886)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1455 mc after a transaction app send requests to the chain repeatedly (#897)

* adding type

* adding auto-mining script

* update minimum version

* update minimum version

* no need of script, just set ganache blockTime

* Bepro 1453 mc add link to pull request on proposal page (#893)

* fix percentage and TVL amount

* fix

* using URL api to handle events url

* adding title prop

* using ID as link

* Bepro 1445 mc when i go to my profile bounties not all the bounties are appearing (#900)

* update minimum version

* adding chain to signOut callback url

* Bepro 1461 mc make the new chain default color picker have bepro selected by default (#907)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding default bepro color

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1456 mc pull request alignment fixes proposals and na n values (#901)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding ClassNameIcon to warning text

* adding classNameIcon to proposal-card

* fix IsNaN values

* fix alignment in view pull request button

* removing console and adjusting toPercent returns

* adjusting sum

* removing "+" toPercent

* adding alignments

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1447 mc leaderboard nft amount not matching the closed bounty count (#892)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* removing bountyToken event to closeIssue logic

* removing bounty token to entities interface

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1462 mc make chain dropdown menu accomudate the biggest chain name (#910)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addi…
MarcusviniciusLsantos added a commit that referenced this pull request Apr 4, 2023
* Bepro 1370 fix UI bounty hall logos main nav logo and bounty hero states (#896)

* adding styles and logic bg

* adding color to bountyTags

* adjusting BountyTags component

* update Bagde logic

* adding opacity logic and refactoring style

* adding opacity param to hero

* adjusting space

* adding import

* adding color to hero

* adding ? to colors primary

* adjusting if association network

* DEV-982 Know Your Client (#860)

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 add kyc session model

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 remove tier settings

* DEV-982 create helper find user by session

* DEV-982 isolate helper query

* DEV-982 add isKyc to bounties

* DEV-982 change isKyc to tierList

* DEV-982 add tierList to settings

* DEV-982 validate tier per bounty

* DEV-982 refresh step btn

* DEV-982 restore loading state

* DEV-982 changes request

* DEV-982 fix validate tiers

* DEV-982 fix check isKyc

* DEV-982 restore package-lock

* DEV-982 refresh token

* DEV-982 add isKyc to bounties

* DEV-982 add isKyc badge

* DEV-982 init kyc session

* DEV-982 validate kyc session

* DEV-982 change isKyc to tierList

* DEV-982 changes request

* DEV-982 fix conflicts

* DEV-982 fix conflicts

* DEV-982 remove debugger

* DEV-982 restore package-json

* DEV-982 restore check

* DEV-982 fix loading modal

* DEV-982 fix size modal

* doctors hands: Account for matching accounts before verifying a user

* linted

* clean dupes from rebase

* fix loggers

* make it so page.action on bounty redirects to profile and have the profile hold the kyc button

* dont return if no session

* make it so the timer actually makes sense and cleans when supposed to clean and creates only when needed

* make text green, adds a contextual span if success

* change labels

* add close label

* simpler isVerified logic

* change timer from 30s to 3s

* remove "identifying..." label from modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: clarkjoao <clark.joao@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>
Co-authored-by: Marcus Vinícius <marcusvinici25@gmail.com>

* Bepro 1414 is possible to config fees to 100 (#882)

* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors

* fix condition to update network (#908)

* Bepro 1465 explore icon not aligned with rest of nav (#909)

* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon

* fix fundedAmount logic (#905)

* fix order disabled disputed button (#904)

* adding text-truncate (#917)

* Bepro 1410 governance tab missing individual fees configuration (#902)

* adding parameters

* updating dappkit version

* oracle exchange rate is not percent

* calculate exchange rate and add colors to modal body

* fix readonly alert visible out of a network

* adding missing parameters

* network can no longer update the treasury address

* fix file name

* adding limits to new parameters and checking solidity integer limit

* change minimum to 1, because of contract things

* only integer

* fix

* adding unable to change warning

* using N scale

* using lower case on address

* using lower case on address

* adding review suggestion

* renaming validators

* fix reading of undefined

* fix reading of undefined

* using calculateDistributedAmounts to check minimum value

* fix condition

* fix NaN

* adding currency and amount (#920)

* Bepro 1474 filter options dont work on bounty hall (#921)

* getting all repos with bounties when not in network

* set max height and add scroll

* fix treasury validation

* redirect to curators page and change condition to handle default tab (#922)

* Bepro 1486 apply new navbar design (#924)

* new nav design

* fix

* Dev 961 multichain - vhcsilva (#931)

* Dev 961 (#885)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix

* fix build

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>

* using lower (#895)

* fix condition, because repos in organizations can be forks too (#898)

* Bepro 1446 mc show select a supported chain instead of unknown on networks modal (#887)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* changing "unknown" to "select supported chain"

* adding translations

* refactoring logic

* adding placeHolder to wrong-modal

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1448 mc breaking race condition when accessing the network (#899)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding try catch to debug handleConnect

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1444 multi chain failed to update bounty amount (#891)

* fix import and using the correct component

* reordering

* using the generic sign message function

* Bepro 1450 mc network switcher should dispatch connect wallet (#889)

* connect before switch chain

* testing

* removing test

* connecting after chain changed

* fix eslint warnings

* mustn't redirect when in connect account page

* BEPRO-1449-mc-clicking-on-the-main-nav-logo-when-not-on-a-network-should-point-to-instead-of-networks (#886)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1455 mc after a transaction app send requests to the chain repeatedly (#897)

* adding type

* adding auto-mining script

* update minimum version

* update minimum version

* no need of script, just set ganache blockTime

* Bepro 1453 mc add link to pull request on proposal page (#893)

* fix percentage and TVL amount

* fix

* using URL api to handle events url

* adding title prop

* using ID as link

* Bepro 1445 mc when i go to my profile bounties not all the bounties are appearing (#900)

* update minimum version

* adding chain to signOut callback url

* Bepro 1461 mc make the new chain default color picker have bepro selected by default (#907)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding default bepro color

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1456 mc pull request alignment fixes proposals and na n values (#901)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* adding ClassNameIcon to warning text

* adding classNameIcon to proposal-card

* fix IsNaN values

* fix alignment in view pull request button

* removing console and adjusting toPercent returns

* adjusting sum

* removing "+" toPercent

* adding alignments

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1447 mc leaderboard nft amount not matching the closed bounty count (#892)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix network tokens select

* DEV-1185 fix type

* DEV-1185 remove debugger

* DEV-1185 remove unused func

* DEV-1212 fix deep copy settings (#791)

* DEV-1212 fix deep copy settings

* DEV-1212 remove duplicate comment

* introduce needed changes to wrong-network-modal.tsx and app-state

* add and remove chains and show/hide supported chains modal accordignly

* missing null optional

* dapp now understands supported-chain-data and DAOService starts with the isDefault

missing: DAO must change whenever chainChanged to a supported chain and default to isDefault if no connectedChain.id -- start() should also change when this changes

* startDao() now accounts for connected chain and isDefault

* save registry-address in the supported-chain-data.ts as a call-to-action

* make it so we save chainId after creating network

* make it so we save chainId after creating network, after createNetwork

* nudges to useDao and loadNetwork flow

* nudges select-network-dropdown.tsx to its pure form

* save

* more work save to put out someother fire

* start the logic to be able to load a registry from registry-setup.tsx

* prepare stuff for signed sessions, as we will need it for setup stuff

* prepare for signature

* more signing work, almost there. gh problems occurr

* properly type message-for

* sign message via useAuth and don't sign it if already signed - unsign if admin does not match

* add default methods to the AdminRoute so we can control what can be seen via method as well as route

* pause.

* dupes and trailing comma leftovers from rebase

* dupes, rebase leftovers and lint

* actually save registry now -.-'

* save registryAddress after registry deployment

* starts out the addition of chainId logic to the api requests

* chainId logic added to where network is searched, added `WithValidChainId()` to _most_ of the routes

* filter issues and tokens by chainId

* cast chain_id to number because headers are strings

* cast everywhere chainFromHeader is used

* fix migration

* multi-chain config without hammers working

* it now loads the correct eventsApi and explorer when needed

* more nudges and fixes for multi-chain registration and tokens recognition

* nudges to supportedChains that can be null

* revert to loadContract so we get the original error so we know where to fix on dappkit

* tests

* using already connected web3Connection

* fix dropdown not recognizing current chain

* adding chain_id column to tokens

* adding middleware folder

* adding registry address to current connected chain

* saving current chain id to session storage

* fix registry load

* fix registry load too

* fix eslint warnings

* removing console.log

* set github as default tab and fix translation

* using primary color as default

* fix imports

* adding network and connected chain match

* creating composite key for name and chain_id columns

* using css var to get primary color

* adding chain to path

* adding network bounty hall

* adding table associations

* adding chain name to url

* adding color column to chain

* list network available chain and hide dropdown if theres only one

* using chain color

* lint fix

* only show if a wallet is connected

* adding chain to network stuff

* needs to update when network change

* save currentChainId when updateWalletAddress

* changing default prop

* adding is disabled prop

* adding signature to network save request

* fixes

* fix

* adding chain name to list item

* removing patch chain id logic

* fix imports

* adding chainId to cache key and to networks search

* network dropdown to show list chains available for a network

* using the correct hook

* set defaults when chain changes

* fix eslint warns

* update currentChainId when address changes

* validate signature on network creation

* adding short name to the state

* adding redirect to network home page

* show loading when spinners are active

* when there are spiiners or loading active don't show the modal

* updating spinners and loading on finally

* handling change chain logic on useDAO hook

* using correct hook

* fixes

* getting coingecko info for networkToken too

* adding chain dependency

* removing console log

* searching issues by chain id

* removing filter when all networks

* getting curators info from database

* getting data from database

* fix imports

* using hook to get url

* fix

* when in bounty, proposal and pull-request page redirect to network page

* using chain id

* adding chain tag to github issue

* review changes

* changing unique key

* handling use of repo for multiple chains

* using wallet

* disabling option when network isn't available on the chain

* saving currentChainId on chainChanged eth event

* using network chain id to get repos list

* adding network token to database

* using database network token

* fix

* search by chain name

* getting item data from database

* using url chain instead because state change has a delay

* adding useChain hook

* network bounty hall

* using chain hook

* fix chain dropdown

* refactoring main-nav

* add network parameters to database

* using network token from database

* fixes

* more work

* fixes

* fix token list not updating when network changes

* fix and using chain

* fix network token

* fix eslint warns

* fix eslint warns

* fix

* checking has network using database

* fix

* sign again on chain change

* fix

* using float for percentage values

* using bigint for time columns

* more work

* removing fragment because of unique key

* fix

* fix registry loading

* add chain data

* fix

* adding lower case getter to address columns

* refactoring

* fix

* pre select repositories of same network on other chain

* no need to load registry

* fix

* review fixes

* review fix

* fix

* adding helper

* more work

* show correct value

* using lower case

* adding isAdmin to context and changing sign if admin

* show only configured chain to user, if admin, show all

* refactoring, so we dont need to ping api every time name changes

* adding relation with network

* using isAdmin

* lint fix

* saving transactions when dispatch and separating by chain

* fix

* fix

* fix

* transactions by chain and saving on reducer call

* temp nav-avatar fix

* thats it

* adding missing columns and renaming token column

* bounty hero refactor

* fix

* models updates

* using database data

* updating tables columns

* using database data

* adding defaults

* fix

* using database data and process withdraw event

* adding hasReward virtual field

* fix build errors

* fix explicit any warn

* fix rebase errors

* saving network token on network registered action

* adding defaults

* change label to "view" e fix review redirect

* fix

* if user has a registered network, disable unlock btn on new network page

* if network is not registered and is network owner, go to my network page

* removing for now

* fix eslint warnings

* adding chain_id to groupy

* fix networks search

* fixes

* fixes

* fix search

* fix

* now totals are being calculated by webnetwork-events

* adding key

* fixes

* fix modal visibility

* removing unused

* refactoring

* fix path

* fixes

* fix

* fix import

* adding color field and signing message

* fix

* tests

* fix get balance when chain change

* using hook

* fix

* test

* fix settings loading when chain changed

* fix

* adding type

* changing logic, throwing on error

* adding color field

* fix

* fix translation

* need to use connected chain

* fix logic

* fix

* fix

* logging result

* fix: removing else redirect to networks page

* removing bountyToken event to closeIssue logic

* removing bounty token to entities interface

---------

Co-authored-by: clarkjoao <46800211+clarkjoao@users.noreply.github.com>
Co-authored-by: MoshMage <moshmage@gmail.com>
Co-authored-by: Vitor Hugo <vhcsilvaa@gmail.com>

* Bepro 1462 mc make chain dropdown menu accomudate the biggest chain name (#910)

* Dev 1185 fix update network tokens (#778)

* DEV-1185 fix update network tokens

* DEV-1185 add getnetworktokens endpoint

* DEV-1185 fix n…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants