Comments (6)
It could relate to your configuration of the contracts and your token bridge. Could you share the corresponding .env
files?
from bridge-ui.
here the deployment result :
Contracts Deployment have been saved to `bridgeDeploymentResults.json`
{
"homeBridge": {
"address": "0x37B5914B0F1b17C847F1239383489dBe078F6019",
"deployedBlockNumber": 217,
"erc677": {
"address": "0xd857fA327CfE8128A19AC4d74C133D18c28a4c58"
}
},
"foreignBridge": {
"address": "0x37B5914B0F1b17C847F1239383489dBe078F6019",
"deployedBlockNumber": 235
}
}
Here my token bridge .env file
BRIDGE_MODE=ERC_TO_ERC
HOME_POLLING_INTERVAL=5000
FOREIGN_POLLING_INTERVAL=1000
ALLOW_HTTP=yes
HOME_RPC_URL=http://--valid--ip--here:8545
FOREIGN_RPC_URL=http://-valid--ip--here:9545
HOME_BRIDGE_ADDRESS=0x37B5914B0F1b17C847F1239383489dBe078F6019
FOREIGN_BRIDGE_ADDRESS=0x37B5914B0F1b17C847F1239383489dBe078F6019
ERC20_TOKEN_ADDRESS=0x9Abfcd68c61E6C6C673c981e5DB658283Bf19dbD
VALIDATOR_ADDRESS=0xabcd1339Ec7e762e639f4887E2bFe5EE8023E23E
VALIDATOR_ADDRESS_PRIVATE_KEY=--valid--private--key--here
HOME_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/
HOME_GAS_PRICE_SPEED_TYPE=standard
HOME_GAS_PRICE_FALLBACK=1000000000
HOME_GAS_PRICE_UPDATE_INTERVAL=600000
FOREIGN_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/
FOREIGN_GAS_PRICE_SPEED_TYPE=standard
FOREIGN_GAS_PRICE_FALLBACK=1000000000
FOREIGN_GAS_PRICE_UPDATE_INTERVAL=600000
#QUEUE_URL=amqp://127.0.0.1
#QUEUE_URL=amqp://rabbit
QUEUE_URL=amqp://rabbit:5672
#QUEUE_URL=amqp://rabbit:5673?
#REDIS_URL=redis://127.0.0.1:6379
REDIS_URL=redis://redis:6379
REDIS_LOCK_TTL=1000
HOME_START_BLOCK=217
FOREIGN_START_BLOCK=235
LOG_LEVEL=error
MAX_PROCESSING_TIME=20000
#testing accs
USER_ADDRESS=0xabcd1339Ec7e762e639f4887E2bFe5EE8023E23E
USER_ADDRESS_PRIVATE_KEY=--valid--private--key--here
HOME_MIN_AMOUNT_PER_TX=0.001
FOREIGN_MIN_AMOUNT_PER_TX=0.001
HOME_TEST_TX_GAS_PRICE=1000000000
FOREIGN_TEST_TX_GAS_PRICE=1000000000
Reading the env.example history I see that VALIDATOR_ADDRESS has been removed here :
omni/token-bridge@8fcb8ba#diff-cbfd64a28982a1818f2b5f16e7f9d634
but still present in docker-compose : https://github.com/poanetwork/token-bridge/blob/master/docker-compose.yml#L53 . Maybe there is something wrong with the VALIDATOR_ADDRESS usage.
from bridge-ui.
Right. it could be. I need more time to investigate. We changed a procedure to run containers in order to hide the validator's private key if its address is only needed. So, probably we didn't reflect this in the documentation.
from bridge-ui.
In fact, I observe random behaviour, sometimes it passes, sometimes it stays stuck at "Validators Verifying Transaction....". I have to narrow down the problem on my side before investigation.
from bridge-ui.
The random mystery is solved :). It works until I use my MAX_AMOUNT_PER_TX
limit...
My case is that I use external erc20
so the UI control here for max per tx is bypassed.
But after when validator executeAffirmation the contract control here trigger AmountLimitExceeded event here as expected.
This AmountLimitExceeded event
is never treated in the getEvents function. Only AffirmationCompleted event will change the status and set new step. And so It stay 'stuck' on the interface at "Validators Verifying Transaction...." .
I close this issue because the mystery is solved.
Do you think I need to create 2 new issues for robustess UI improvement ?:
1 - keep UI limit controls for external ERC20 too here , because it will failed later with the smart contract AmountLimitExceeded event
triggered.
and/or
2 - treat potential AmountLimitExceeded event
in the getEvents
function. Something like this :
const amountLimitExceededEvents = homeEvents.filter(
(event) => {
return event.event === "AmountLimitExceeded"
})
amountLimitExceededEvents.forEach(event => {
this.alertStore.setLoading(false)
this.alertStore.pushError(`cannot be proceed : amountLimitExceeded `+ blabla values here )
...
remove event from list ?.
...
})
from bridge-ui.
@branciard thanks for figuring this out. I think there is no need to create new issues since the bug will not appear as soon as #178 is addressed (seems that it similar
you suggested in the option 1).
from bridge-ui.
Related Issues (20)
- Port new startup alarm/error windows behavior back to the Bridge UI v.1.x
- Error that transaction was rejected appeared in TrustWallet
- Incorrect network name in the success window HOT 1
- Vulnerabilities found by 'npm audit' in v2.0.0 HOT 1
- Warn the user if a token transfer could exceed the limit on the token bridge
- VM execution error. Default .env HOT 2
- Add AlphaWallet as a supported wallet for xdai bridging HOT 1
- Update style for ethereum classic network HOT 1
- ETH Classic styles' changes HOT 3
- Duplicated network name if incorrect chain is chosen HOT 1
- (fix) Links to POA resources broken
- Make title of the page configurable through the .env file
- Web3 beta.50 issues HOT 1
- Extend the statistic tab with information about fee collected HOT 1
- ERC677 support on the Foreign side in the erc20-to-erc20 bridge mode HOT 1
- No stats could be obtained in case of Infura
- End-to-End tests not working HOT 7
- is:issue is:open
- WalletConnect is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bridge-ui.