-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade 1.0.0-rc0 -> 1.0.0 version #10
base: support/viviani
Are you sure you want to change the base?
Conversation
* Ultimate e2e for native to erc type of bridge * One job * Try to run the tests * Run on CI * Docs * Cosmetics * Final changes * Revert the changes * Networks * Waiting for Oracle * One job * Initialize the contracts submodule * Run on ci * comment * Sleep. * ultimate network * Docker localhost no longer needed * Final changes * Timeout * Naming * Sleep task.
* Renamed v1 abi names * Home store using v1 from commons * Using ERC20_BYTES32_ABI from commons
* Added remote logging for monitor * Legacy line * Tempaltes
* Stopped silently swallowing errors * getTokenType in commons * Oracle using getTokenType from commons * Moved the getTokenType tests from ui to commons * Using getTokenType in ui and oracle * Revert "Stopped silently swallowing errors" fc92c0a * using common getTokenType in monitor. * Lint.
* Default cron schedule * Added cron task * Docs * Overwriting log files * Removed deprecated flag * Default monitor_cron_schedule.
* new security audit report for the contracts v2.3.2 * contracts updated to points to latest commit
* Trying job * dependency * Run the tests * Oracle docker composes * Fixed networks * endpoints * Skip logging * Try node * Moved chromedriver from ui to ui-e2e * Port * Run * Install chrome * minte blocks * Finishing * Revert "Skip logging" 76747eb * inventory * Inventory change. * ui-e2e fix * ui-e2e fix? * native-to-erc group * jobs * Ports * Blocks * yarn * fix * fix * killall * Try ui-e2e * no killall * All jobs. * Try two * separate jobs * all jobs * One job. * Removed the oracle-e2e step in ultimate tests.
* Started working on monitor-e2e * Monitor e2e tests extended for 3 types of bridge * Skipp error checking * bash fix * Fixed docker-compose * check first * grep errors * all jobs * Style * Executing instead of sourcing
* Extend line width to 120 * Lint fixes
* Monitor deployment testing - initial commit. * deployment-monitor job * one job * Additional tests. * server port. * lint * all jobs
* Update ci config version * try to use orb * command * naming * Common docker executor config * Machine in orb * Common tasks * common caching * nvm * Final test
* Change user * jobs * Revert "Change user" 5fa7084 * Trying to use block generator address * jobs * Fixed * 5 jobs * 10 jobs * all jobs * finish * Removed jobs * Add funds for block generator in block genesis
* Common gas price normalization. * only e2e jobs * One func * More extraction. * Fixed the tests * skip gasPriceWithinLimits * test fix * tos tring * boundaries * Extracted fetching gas price from contract * Refactored oracle gas price * lint * lint * Commentary * Using common gas price from oracle in ui * Fix lint * lint * Log * Using common gas price in monitor * cosmetics * all jobs * lint * lint * tests * more tests * incljdes * Tests in oracle * Tests in commons * Lint * moved tests from ui to commons * chai * Changed order of fetching gas price
* Extracted parseValidatorEvent to commons * Extracted processValidatorsEvents to commons * Extracted validatorList to commons. * refactorings * Fixed imports, lint * UI using getValidatorList * Monitor using getValidatorList from commons * Lint * UI using properly getPastEvents * Default options * Final changes * Corrected invocation of getPastEvents * Correct usage of options in getPastEvents * Changed expected message from infura * Change usage of fromBlock and toBlock * Default parameters
* Introducing ultimate erc-to-native, with ultimate-commons * Ports * group * up * Addresses * Typo. * Redis key * Redis key as a parameter * ultimate * parameters * job name * jobs * Cosmetics * cosmetics * cosmetics * jobs * Descriptions
* Introduce ultimate erc-to-erc * Added metamask setup * Corrected configuration parameters
* Started monitor-e2e rewrite * axios * Implemented tests * Monitor start * First deploy * Wait for monitor * Removed redundant files * Tests. * TODO * Links to minitor in constants * Typo. * [PR-into-PR] Monitor E2E rewrite - balance (omni#191) * Test run for more monitor-e2e tests * macos/docker * timeout * Little refactor * Trying to test balances in other types of bridges. * Utils. * test * check all * erc to erc try * Final tests * typo * All jobs * Lint * Roll back docker in docker * WaitUntil * Axios version * New validator checks (omni#192)
* New repo task * Removed bridge_repo and bridge_repo_branch configs * Updated docs * Update apt-get * Fix path * Exclude fix * Removed CODEBASE_BRANCH * Initializing submodules for deployment tests * Synchronizing with ls-tree * Synchronization without temp files
* Moved deployment/molecule to deployment-e2e * Update paths and readmes * Nested molecule * Corrected paths * paths * path * Moved docker up
Dockerfile.e2e
Outdated
WORKDIR /mono | ||
COPY package.json . | ||
COPY oracle-e2e/package.json ./oracle-e2e/ | ||
COPY monitor-e2e/package.json ./monitor-e2e/ | ||
COPY contracts/package.json ./contracts/ | ||
# COPY contracts/package.json ./contracts/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# COPY contracts/package.json ./contracts/ |
oracle-e2e/test/ercToNative.js
Outdated
// Retrieve initial balances | ||
const initialTokenBalance = await erc20Token.methods.balanceOf(user.address).call(); | ||
console.log("Initial ERC20 Token Balance:", initialTokenBalance); | ||
500000000000000000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
500000000000000000000 |
} | ||
}) | ||
}) | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not:
assertEquals(newForeignBalance, oldForeignBalance - transferedValue)
assertEquals(newHomeBalance, oldHomeBalance + transferedValue * 10e9)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I can add that, these asserts were not in the init test
@@ -38,7 +38,8 @@ function processSignatureRequestsBuilder(config) { | |||
rootLogger.debug(`Processing ${signatureRequests.length} SignatureRequest events`) | |||
const callbacks = signatureRequests | |||
.map(signatureRequest => async () => { | |||
const { recipient, value } = signatureRequest.returnValues | |||
const { recipient } = signatureRequest.returnValues | |||
let { value } = signatureRequest.returnValues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why changing it (same comment below)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's due to line 48, we may need to update value in case of decimal shift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks! (Not sure to see how it was working before though 🤔 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done !
BRIDGE_MODE: "ERC_TO_NATIVE" | ||
HOME_NATIVE_NAME: "xDai" | ||
ORACLE_BRIDGE_MODE: "ERC_TO_NATIVE" | ||
UI_NATIVE_TOKEN_DISPLAY_NAME: "xDai" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to change this in the UI deployer repository ?
From:
REACT_APP_HOME_NATIVE_NAME=vRLC
HOME_BRIDGE_ADDRESS=0x63CBf84596d0Dc13fCE1d8FA4470dc208390998a | ||
FOREIGN_BRIDGE_ADDRESS=0x1e32aFA55854B6c015D284E3ccA9aA5a463A1418 | ||
HOME_DEPLOYMENT_BLOCK=0 | ||
COMMON_HOME_RPC_URL=https://viviani.iex.ec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update the deployer repository to use new names?
Upgraded first our master branch from omni repo -> 1.0.0-rc0 to 1.0.0.
Created this branch from
suport/viviani
and merged ourmaster
.Managed to harmonize the all env variable.
Tested UI ✅
Tested one Oracle ✅