kovan-testnet / kips Goto Github PK
View Code? Open in Web Editor NEWThe Kovan Improvement Proposal
The Kovan Improvement Proposal
Some ideas
Free keth please 0x0Ed4c920D40cba373c070c9e3B3Abb8ea32B5a19
Ive developed an easy dontaion web app using Kovan. Lastly, ive added chain check, allowing only Kovan. When someone is on another chain, i just suggest to change chain with:
window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: '0x2A' }],
});
Here comes the problem: it works, but the logo on MetaMask is a question point, but it is supposed to be full purple.
Everything works great and it does not even ask to add a new chain, it looks like theres two linked Kovan testnet: they are two, but work as one.
Ive tried with couple other chains and they dont have the same issue.
(Here working test to check on your own: http://nonnopinto.altervista.org/)
does anyone here knows why I cant switch to kovan network with this code?
const switchKovanNetwork = async () => {
try {
await window.ethereum.request({
method: "wallet_switchEthereumChain",
params: [{ chainId: "0x42" }],
});
} catch (switchError) {}
}
Motivation:
To limit the potential damage from a hack to one of the authority nodes, check for the account balance of the node and if >= 10000, sweep 5000 to another account.
I'm researching a optimal way of creating a faucet for GitHub users with Oraclize.
I think a easy way to do it is to user register account using a gist file containing his address.
oraclize_query("URL", strConcat("https://gist.githubusercontent.com/",_github_user,"/",_gistid,"/raw/"));
Register could check in API what is the age of the user
With a registered account, he can claim free KETH every day, based in his last page(s) IssueCommentEvent
oraclize_query("URL", strConcat("json(https://api.github.com/users/",_github_user,"/events/public?page=1).$[?(@.type="IssueCommentEvent")].[repo][name]"));
?(@.type="IssueCommentEvent")
would filter only Issues comments, this is important to avoid star/unstar event.
See other events type: https://developer.github.com/v3/activity/events/types/
We could interate over an array this response and check how many events are in "known" repositories, previously registered by faucet owner.
For each known repository in this list, user would earn one point:
There is the option to check user organizations in https://api.github.com/users/$user/orgs
and search for known public organizations, such as ethereum, ethcore, etc, this would give the user like 100 KETH.
Also, adding a middle-man to connect with API is a option to check more details and just answer the points to the contract.
I think is better to don't use a middle-man if possible, and try to relay only on oraclize, but then the options are limited and gas fees might be high.
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.