$ git checkout develop
$ npm install
# run file server
$ npm run server
# run vue app
$ npm run serve
dashboard.tokamak.network
Home Page: https://dashboard.tokamak.network
case that operator
already has set, but doesn't display in dashboard
to be processed in style tag
have to
-container
has outer stylerow
and column
has more than 2 child comp├── localstorage
| ├── avatars
| ├── histories
| ├── registries
we have many contract calls. so depending on block number, consistency of states can be break. so, we have to use timer
based on block number not time.
web3.eth.call(callObject [, **defaultBlock**] [, callback])
(instead of using defaultBlock, specify specific number)
{
"rootchain": "0xed35b9631dc26d8fac44cee215d729626ba46b48",
"name": "ONTHER_1",
"website": "https://tokamak.network/",
"description": "Tokamak Network is a platform that assures decentralized and secure property same as Ethereum Main chain while supporting high level of scalability and extendability. Each Dapp is built easily for specific purpose through Tokamak Network.",
"avatar": "",
"background": "rgb(156,16,164)"
},
Any malicious request can override manager addresses. So we have to accept POST /managers
only if managers are not set.
we have 2 options:
metamask endpoint: http://13.209.8.190:8545
I want to know your opinion about:
layout1: https://dashboard-tokamak-network-80e75lp1a.now.sh/
layout2: https://dashboard-tokamak-network-cy5uaychl.now.sh/#/
layout1:
layout2:
I want to use layout2. because layout2 is more intuitive and simple.
any opinion is fine. please leave your opinion.
Related issues : #6
Blog or Slide is a good option.
A better option is to make automated guide document
whenever endpoint of network changes.
POST /operators
must not accept duplicate root chain address.
be careful with using 3rd party library
Memory leaks in Vue applications do not typically come from Vue itself, rather they can happen when incorporating other libraries into an application.
Each plasma chains are identified with chain id, which must not be same as another plasma chains due to replay attack. If dashboard supports displaying chain id of each plasma chain, others can use another chain id already used.
Also, a lot of network using EIP155 other than ethereum mainnet and testnet should be displayed.
genesis JSON references
chain id references
const getRecentCommitTimeStamp = async () => {
const fork = await RootChain.methods.forks(forkNumber).call();
const epochNumber = fork.lastFinalizedEpoch;
const blockNumber = fork.lastFinalizedBlock;
const epoch = await RootChain.methods.getEpoch(forkNumber, epochNumber).call();
const timestamp
= epoch.isRequest ?
epoch.NRE.submittedAt :
(await RootChain.methods.getBlock(forkNumber, blockNumber).call()).timestamp;
return timestamp;
};
even though commit count was 10, recentCommitTimestamp
is 0. I think these issue related with not yet being finalized.
So I think we have to rename recentCommitTimestap
to recentFinalizedTimestamp
.
add property in transaction
In dev mode, we often restart rootchain. after then, nonce can be different from metamask's nonce. is there any solution?
I think we don't have to display these contract addresses.
we manage transaction history using api server. we can get transaction history from reading events.
tokamak-network/plasma-evm-contracts#18 supports commission rates. So users have to be able to check each operator's commission rates and operator update their commission rates.
the validity of commissionRate
is checked by
(commissionRate == 0) ||
(MIN_VALID_COMMISSION_RATE <= commissionRate &&
commissionRate <= MAX_VALID_COMMISSION_RATE)
where
MAX_VALID_COMMISSION_RATE = 10 ** 27; // 1 RAY
MIN_VALID_COMMISSION_RATE = 10 ** 25; // 0.01 RAY
before user sign in, we can get all the accounts that have power. but after user sign in, vapp
can't detect event for other user's deposit.
so we have to consider to make rank service at server side.
have to handle this on web framework or web server level.
like this:
props: {
status: {
type: String,
required: true,
validator: function (value) {
return [
'syncing',
'synced',
'version-conflict',
'error'
].indexOf(value) !== -1
}
}
}
contracts check withdrawable by r.withdrawableBlockNumber <= block.number
, where equal case is not considered in JS (request.withdrawableBlockNumber) < currentBlockNumber
)
Originally posted by @4000D in #24 (comment)
since now preview use https, dashboard server must use https protocol.
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.