Skip to content

Commit

Permalink
v0.1.0 release (#33)
Browse files Browse the repository at this point in the history
* +

* +

* Update package.json

* clean upreadme

* Update README.md

* Create blank.yml

* Fixed deploy

* Update package.json

* Update blank.yml

* Update package.json

* Update package.json

* Update package.json

* fix paths

* Update blank.yml

* Update package.json

* +

* +

* +

* +

* Update blank.yml

* Fix Emitter

* Fix emitter

* Fix

* Global Update

* Update package.json

* Update package.json

* Update package.json

* Update blank.yml

* Update package.json

* Update blank.yml

* Update package.json

* Update package.json

* Updates

* Update dashboard. fix bags

* fix

* Add exponent

* Add progressbar. add token abbreviations

* Update progressbar

* Update dashboard

* Add rewards

* Update Dashboard

* Update Dashboard

* Fix delegations sum

* Update Default.vue

* Update Dashboard

* Update dashboard

* Update Default.vue

* Update Default.vue

* Update Default.vue

* Update Dashboard.vue

* Update Default.vue

* Fix

* Update Default.vue

* Update dashboard

* Add change Keplr account

* Add Evmos/Desmos networks

* Update dashboard

* Update dashboard, update delegate modal

* Fiz evmos? add delegate modal

* Add Stride, fixes

* Updates

Add reload page
Add change account

* Stargate Test

* Test update

* update delegations

* Update delegate

* Update Default.vue

* Updates

Add ibc tokens
Add loader
Fix bugs
Add recalc network after delegation

* Fix currency dropdown

* Update delegate procces

* Change buttons, visualization

* Add tooltips

* Add avatar from passport

* update colors

* Update ManageModal.vue

* fix bugs

* fix bugs

* fixes, add ibc tokens

* fix manage modal

* Update ManageModal.vue

* Update ManageModal.vue

* refactoring, update redelegate and delegate

* fix boostrom and crescent

* fixs

* fix

* fixes

* Greate update

* fix

* Update

Fixes
Add chain register

* Updates

* Fixes evmos

* Fix evmos redelegate

* fixes

* fixes

* Highlights tooltips

* update prices

* Update index.js

* Fixes

Add keplr link
update notifications
fix account tooltips
rename OmniFlix

* Fixes

* fixes

* Update delegate/redelegate modal

* Update ManageModal.vue

* Add gas simulate

* fix header

* fixes

* Update messages.js

* fixes

* fixes, add feedback

* change icon

* Update messages.js

* Update messages.js

* Update Dashboard.vue

* fix delegate

* Fixes

* fix keplr load

* Update logo

* Updated logo in README

Co-authored-by: Vitaliy Sulimenko <[email protected]>
Co-authored-by: Vitaliy Sulimenko <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2022
1 parent ed0d200 commit 8f56255
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 54 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Bro.app

<p align="center">
<img src="https://bronbro.io/images/logo.svg" width=250>
<img src="https://app.bronbro.io/logo.svg" width=250>
</p>

<div align='center'>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
"not dead",
"not ie 11"
]
}
}
34 changes: 19 additions & 15 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 35 additions & 23 deletions src/components/ManageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
form.validator.name = validator.description.moniker
form.validator.availabel_tokens = store.networks[store.networkManageModal].delegations[validator.operator_address]
form.amount = form.validator.availabel_tokens - 0.01
form.amount = form.validator.availabel_tokens - 0.00
hideDropdown()
}
Expand Down Expand Up @@ -288,7 +288,7 @@
// Delegate
if(form.type == 'delegate') {
if(store.networkManageModal == 'evmos'){
if(store.networkManageModal == 'evmos') {
try {
// Create request
await fetch(`${store.networks.evmos.lcd_api}/cosmos/auth/v1beta1/accounts/${store.wallets.evmos}`)
Expand Down Expand Up @@ -385,32 +385,38 @@
} else {
try {
// Create request
const offlineSigner = window.getOfflineSigner(store.networks[store.networkManageModal].chainId),
rpcEndpoint = store.networks[store.networkManageModal].rpc_api,
gasPrice = [{
denom: store.networks[store.networkManageModal].denom,
amount: '0'
}],
client = await SigningStargateClient.connectWithSigner(rpcEndpoint, offlineSigner, { gasPrice }),
const offlineSigner = await window.getOfflineSignerAuto(store.networks[store.networkManageModal].chainId)
Object.assign(offlineSigner, {
signAmino: offlineSigner.signAmino ?? offlineSigner.sign
})
const rpcEndpoint = store.networks[store.networkManageModal].rpc_api,
client = await SigningStargateClient.connectWithSigner(rpcEndpoint, offlineSigner),
msgAny = {
typeUrl: '/cosmos.staking.v1beta1.MsgDelegate',
value: {
delegatorAddress: store.wallets[store.networkManageModal],
validatorAddress: store.networks[store.networkManageModal].validator,
amount: {
denom: store.networks[store.networkManageModal].denom,
amount: `${form.amount * store.networks[store.networkManageModal].exponent}`
amount: (form.amount * store.networks[store.networkManageModal].exponent).toString()
}
}
}
let gasUsed = store.networkManageModal != 'emoney' ? '0' : store.networks.emoney.gas
if(store.networkManageModal != 'emoney'){
const gasUsed = await client.simulate(store.wallets[store.networkManageModal], [msgAny])
gasUsed = await client.simulate(store.wallets[store.networkManageModal], [msgAny])
}
const fee = {
amount: gasPrice,
gas: store.networkManageModal != 'emoney' ? `${gasUsed}` : store.networks.emoney.gas
amount: [{
denom: store.networks[store.networkManageModal].denom,
amount: '0'
}],
gas: Math.round(gasUsed * 1.3).toString()
}
const result = await client.signAndBroadcast(store.wallets[store.networkManageModal], [msgAny], fee)
Expand Down Expand Up @@ -539,13 +545,14 @@
} else {
try {
// Create request
const offlineSigner = window.getOfflineSigner(store.networks[store.networkManageModal].chainId),
rpcEndpoint = store.networks[store.networkManageModal].rpc_api,
gasPrice = [{
denom: store.networks[store.networkManageModal].denom,
amount: '0'
}],
client = await SigningStargateClient.connectWithSigner(rpcEndpoint, offlineSigner, { gasPrice }),
const offlineSigner = await window.getOfflineSignerAuto(store.networks[store.networkManageModal].chainId)
Object.assign(offlineSigner, {
signAmino: offlineSigner.signAmino ?? offlineSigner.sign
})
const rpcEndpoint = store.networks[store.networkManageModal].rpc_api,
client = await SigningStargateClient.connectWithSigner(rpcEndpoint, offlineSigner),
msgAny = {
typeUrl: '/cosmos.staking.v1beta1.MsgBeginRedelegate',
value: {
Expand All @@ -559,13 +566,18 @@
}
}
let gasUsed = store.networkManageModal != 'emoney' ? '0' : store.networks.emoney.gas
if(store.networkManageModal != 'emoney'){
const gasUsed = await client.simulate(store.wallets[store.networkManageModal], [msgAny])
gasUsed = await client.simulate(store.wallets[store.networkManageModal], [msgAny])
}
const fee = {
amount: gasPrice,
gas: store.networkManageModal != 'emoney' ? `${gasUsed}` : store.networks.emoney.gas
amount: [{
denom: store.networks[store.networkManageModal].denom,
amount: '0'
}],
gas: Math.round(gasUsed * 1.3).toString()
}
const result = await client.signAndBroadcast(store.wallets[store.networkManageModal], [msgAny], fee)
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
//======== Evmos
try{
// Singer
const offlineSignerEvmos = window.getOfflineSigner(store.networks.evmos.chainId),
const offlineSignerEvmos = await window.getOfflineSigner(store.networks.evmos.chainId),
accountsEvmos = await offlineSignerEvmos.getAccounts()
// Set wallet address
Expand Down Expand Up @@ -453,7 +453,7 @@
// Check chains in Keplr
for (let i in checkChains) {
try{
let offlineSigner = window.getOfflineSigner(checkChains[i].chainId),
let offlineSigner = await window.getOfflineSignerAuto(checkChains[i].chainId),
accounts = await offlineSigner.getAccounts()
if(checkChains[i].chainId == 'desmos-mainnet'){
Expand Down
Loading

0 comments on commit 8f56255

Please sign in to comment.