openst / jlp Goto Github PK
View Code? Open in Web Editor NEWJean-Luc Picard's Star Fleet training academy
Jean-Luc Picard's Star Fleet training academy
Add your smoke test below:
Branded token stake.
Set up and fund separate keys dedicated to the facilitator process.
Stake a random number within a sensible range. Doesn't need to be huge.
Monitoring would be a separate ticket. For now, we can log in once per day and check that it is still successfully staking.
Command for deployment of PricerRule
contract.
Open PRs release-0.10 to develop in:
In order for us to be able to test on actual chains, we need a test chain setup. As origin
we want to use the ethereum ropsten testnet. As auxiliary
we want to use one of our own clique
-based side-chains.
Get in touch with Ben to discuss what we already have and how to access it.
As a user
I want to facilitate stake
Because it should surface errors in the gateways
And it should provide feedback on how to improve the interaction layers
Given that I run the facilitate
nodejs script
When I pass it an amount
argument
Then the script transposes the amount
cross-chain
And exits
Given that I run the facilitate
nodejs script
When I pass it stake
as the direction
argument
Then the process facilitates a complete stake process
This is still an EIP20 token and not a branded token with a conversion rate.
Arguments of the facilitation (arguments are ordered without hyphens):
Argument | Type | Explanation |
---|---|---|
direction | string |
stake or redeem |
amount | number |
Amount to stake, in 10^18 uint256 |
gateway | string |
Address of the gateway |
beneficiary | string |
Address of the beneficiary on the target chain |
Example:
$ facilitate stake 1500000000000000000 0x123...
Conceptually two steps (pass on hashlock):
For now hardcode gas prices and gas limits.
Facilitate will transpose EIP20 tokens using gateways directly.
facilitate_yearmonthdayhourminutesecond_randomstring.log
)
Research ticket. Test with anchor.
Line 38 in b57bc06
There are different actors in JLP smoke tests like deployer, owner, worker etc. Before running tests, these accounts should be unlocked. The current implementation of connection class supports only unlocking of one account per chain.
InitiateAndExecuteRecovery
recovery owner does EIP712 signing
Command
initiateAndExecuteRecovery config.json oldOwner newOwner
abortRecoveryByRecoveryOwner
recovery owner does EIP712 signing
Command
abortRecoveryByOwner config.json oldOwner newOwner
Usage:
Usage: deploy [options] <organization> <eip20Token>
Options:
-h, --help output usage information
Arguments:
organization organization contract address on auxiliary chain.
eip20Token eip20Token contract address
Readme update.
Add proper logging.
As a user
I want to wrap and unwrap OST on auxiliary
Because it may reveal bugs
And provide insights into improving the interaction layer
Given that I run the ost
binary
When I set the direction
argument to wrap
And I set the amount
argument to n
Then it wraps n
OST
And exits
Given that I run the ost
binary
When I set the direction
argument to unwrap
And I set the amount
argument to n
Then it unwraps n
OST
And exits
Examples:
$ ost wrap 1.005
$ ost unwrap 0.4
❓How to use addresses? Extra addresses per ost? How funded?
ost_yearmonthdayhourminutesecond_randomstring.log
)
Setup of master copies
Command:
setupOpenST config.json
As a chain owner
I want to anchor state roots
Because it is a requirement for the gateways
Given that I run the anchor
nodejs script
When I don't hit <control+c>
Then the process keeps anchoring
Given that I run the anchor
nodejs script
When I set the delay
argument to n
Then the anchoring is delayed by n
blocks
Argument | Explanation |
---|---|
delay |
The delay to wait in blocks on the source chain before anchoring |
direction |
string of either origin or auxiliary ; origin meaning anchor origin's state root to auxiliary |
mosaic.js
ContractInteract/Anchor
auxiliary
→origin
or origin
→auxiliary
)anchor_yearmonthdayhourminutesecond_randomstring.log
)ℹ️ Deepesh created example code earlier: https://github.com/deepesh-kn/mosaic.js/tree/examples/Demo
Register receivers as internal actor.
ephemeralKey performs 1077 signing.
signing strategy?
Command
pricerRuleTransfer config.json THSender ephemeralKey transferTos transferAmounts
Currently TokenRules is a separate JLP command.
We should deploy TokenRules as part of openst setup. This way with a single JLP command economy setup can be done.
Documentation improvements listed in #80 (episode 1);
make an issue and link it to the epic please, when completing some of these tasks.
It should create proxy for TH, gnosis safe and recovery.
Command
createUser config.json owners threshold ephemeralKeys sessionKeysSpendingLimit sessionKeyExpirationHeights
Use mosaic.js
as a consumer to achieve the below.
Get in touch with Ben to discuss what we already have and how to access it.
A runnable script should exist that can be used to deploy a relevant setup and output a config. (make it repeatable)
Deploys and links all the contracts listed below.
Example code here: https://openst.gitbook.io/docs/setup
Users and facilitators need funding to stake, redeem, and transpose (progress).
There should be a way, like a faucet or similar, to fund addresses in order to easily create new addresses that can be used by the nodejs scripts that do staking, etc.
As a user
I want to facilitate branded token stake and redeem
Because it should surface errors in branded tokens
And it should provide feedback on how to improve the interaction layers
Given that I run the bt
binary
When I pass it a sub-command
Then it executes the given sub-command and exits
The binary would have the following sub-commands:
Command | Explanation |
---|---|
deploy |
Deploys a new gateway composer |
stake |
Stakes an amount into the branded token |
redeem |
Redeems an amount out of the branded token |
transpose |
Progresses tokens across chains, should be able to re-use most of the functionality of the facilitate binary (#3) |
deploy
should deploy a new instance of the gateway composer and return the addresses to the command linestake
and redeem
should stake and redeem a given amounttranspose
should facilitate the stake/redeem processes❓Do we need transpose
as a command here or would that be taken over by the facilitate
command from #3? How would the transpose command work exactly? (see examples)
❓How to use addresses? Extra addresses per bt? How funded?
Examples:
$ bt deploy
$ bt stake 20.00
$ bt redeem 1.5
$ bt transpose stake <?amount?>
$ bt transpose redeem <?amount?>
bt_yearmonthdayhourminutesecond_randomstring.log
)
Branded token stake and mint smoke test currently mint tokens to an external account.
Current work for setting up a user wallet is in progress in PR. Refer: #71.
Once #71 and #73 is merged. This ticket will be ready for development.
Openst setup smoke test needs Organization and UBT address.
Currently hardcoded values of Organization and UBT is being consumed.
As part of this ticket let's remove the hardcoding and consume Organization and UBT address from chainConfig object.
Set up and fund separate keys dedicated to the anchor process.
Monitoring would be a separate ticket. For now, we can log in once per day and check that it is still successfully anchoring.
As a user
I want to facilitate redeem
Because it should surface errors in the gateways
And it should provide feedback on how to improve the interaction layers
Given that I run the facilitate
nodejs script
When I pass it an amount
argument
Then the script transposes the amount
cross-chain
And exits
Given that I run the facilitate
nodejs script
When I pass it redeem
as the direction
argument
Then the process facilitates a complete redemption process
This is still an EIP20 token and not a branded token with a conversion rate.
Arguments of the facilitation (arguments are ordered without hyphens):
Argument | Type | Explanation |
---|---|---|
direction | string |
stake or redeem |
amount | number |
Amount to stake, in 10^18 uint256 |
gateway | string |
Address of the gateway |
beneficiary | string |
Address of the beneficiary on the target chain |
Example:
$ facilitate redeem1500000000000000000 0x123...
Conceptually two steps (pass on hashlock):
For now hardcode gas prices and gas limits.
Facilitate will transpose EIP20 tokens in both directions using gateways directly.
auxiliary
→origin
and origin
→auxiliary
)facilitate_yearmonthdayhourminutesecond_randomstring.log
)
Currently, JLP tests are assumed to run on "real/live" (1409, "ropsten", etc) geth instances.
The aim of this ticket is to make it possible to run tests on local geth instances (please, see and use two geth-docker-images setup in mosaic-contracts).
Add wallet
Revoke wallet
Swap wallet
Authorize session
Revoke session
Logout
EIP712 signing strategy?
Command
wallet add config.json currentOwner ownerToAdd threshold
wallet remove config.json currentOwner ownerToRemove threshold
wallet authorizeSession config.json currentOwner ephemeralKey spendingLimit expirationHeight
wallet revokeSession config.json currentOwner ephemeralKey
There is already executable for setup of openst which deploys below contracts:
This ticket makes sure openst setup is also there in test framework.
use latest releases; correct outdated information; MIT license
Branded token redeem.
Set up and fund separate keys dedicated to the facilitator process.
Redeem a random number within a sensible range. Doesn't need to be huge.
Monitoring would be a separate ticket. For now, we can log in once per day and check that it is still successfully redeeming.
For Testnet purposes we want to make it easier for people to transfer tokens to the testnet without initially needing to acquire OST on testnet. As paying for the transactions on testnet normally requires having funds on testnet, we want to provide a facilitator that stakes & mints for free on the testnet.
hashLock
in the README, that anyone can use to transfer tokens to testnetStakeIntentDeclared
events on the specified gateway and acts on those with its hashLock
StakeIntentDeclared
doesn't have the hashLock
as one of the event fields, we need to listen to all StakeIntentDeclared
events, parse the transaction inputs of the transaction, and filter out the ones with the correct hashLock
As a developer creating a Brand Token economy, I want to be able to denominate some transactions in USD so that the dollar value of a transactions remains constant
messageStatus
to inboxMessageStatus
L245 (also change other methods)We already have executable for CreateUserWallet.
This ticket enables CreateUserWallet test under test framework.
Smoke test should run on ropsten as origin chain and 200 chain as auxiliary chain. Travis build should connect to ropsten and 200 chain to run smoke tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.