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

Conversation

@vhcsilva
Copy link
Collaborator

No description provided.

MarcusviniciusLsantos and others added 18 commits March 21, 2023 14:00
…works (bepronetwork#894)

* removing id to exclude attributes - search network

* removing id to exclude attributes - active netwoks

* removing id in exclude
* fix reading of undefined
…tes (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 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>
* adding validator

* removing console.log

* validating limits

* using interpolation for limits

* fix limits errors
* creating style mgt-3

* adding mgt-3 to main-nav and adjusting Icon
…onetwork#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 1185 fix update network tokens (bepronetwork#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 (bepronetwork#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>
* fix import and using the correct component

* reordering

* using the generic sign message function
* 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
Copy link
Contributor

@moshmage moshmage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vhcsilva vhcsilva merged commit 71c8632 into bepronetwork:DEV-961 Mar 21, 2023
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.

3 participants