-
Notifications
You must be signed in to change notification settings - Fork 1
[SDAO-213] Specification for testing #6
base: master
Are you sure you want to change the base?
[SDAO-213] Specification for testing #6
Conversation
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.
Overall looking good, but where is actual test specification (eg. steps you need to produce and result expectation)?
install all with `npm install`. Then build and compile contracts with `npm run build` and | ||
`npx oz compile`. |
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.
AFAIR this is not technically true. With npm run build
you are building CLI (ts -> js) and npx oz compile
is one which actually compiles contracts
12/24 length generated [here](https://iancoleman.io/bip39/). | ||
|
||
After that run `npx oz accounts`. You will see all accounts with your mnemonic and the last step is | ||
to ask money [here](https://goerli-faucet.slock.it/) for default account. |
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.
What is default account? It is not very clear for me (and probably for other readers too (or I am just stupid))
npx oz send-tx | ||
? Pick a network goerli | ||
? Pick an instance BlendToken at <BlendToken address from goerli> | ||
? Select which function mint(beneficiary: address, amount: uint256) | ||
? beneficiary: address: <first default address and then some seccond address> | ||
? amount: uint256: <amount> |
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.
Not bad, I didn't know that you can do something like this
* Each swap starts from secret and its hash. You can get them from | ||
`./bin/staker-blend swap-generate` | ||
* Ethereum lock timeout is hardcoded. So, to change it from one hour to your values you need to | ||
change it in `./src/commands/swap/lock.ts` in `timeout` variable. |
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.
Oh man, can't we pass it explicitly?
No description provided.