ethereumproject / ECIPs

The Ethereum Classic Improvement Proposal
55 stars 47 forks source link

ECIP 1037: Simple non-interactive URI Scheme #81

Closed realcodywburns closed 5 years ago

realcodywburns commented 6 years ago

Abstract

This ECIP proposes a URI scheme for interacting with ethereum contract and accounts in a standard format.

Motivation

The purpose of this URI scheme is to enable users to easily make payments and interact with smart contracts by simply clicking links on webpages or scanning QR Codes.

realcodywburns commented 6 years ago

Changing chainid to id for brevity. Addational space can also be saved by using iban address vs account hex.

drd34d commented 6 years ago

sounds like an awesome idea to make interaction stupidily simple!

elaineo commented 6 years ago

@realcodywburns actually i think it should remain chainid to avoid confusion with network id.

realcodywburns commented 6 years ago

What about v or cid?

Dexaran commented 6 years ago

@realcodywburns

 function getETC(){
    require(block.number-payoutDrip >= payoutRate);
    msg.sender.transfer(dropValue);   
    }

====Example====

Contract C is at 0xdeadbeef... and has the following psudo function:

Contract C requires no inputs and only requires enough gas to preform its functions. The byte code for >this function can be derived using web3 as:

web3.sha3("getETC()");

which yeilds:

0x023b88685d10d29e0bf0563e4ab1b9d8fc8333c166705be5538c4b079cdd9af0

The information that will be passed in the byte code field would then be:

code=0x023b88685d

I think that if you need to pass the function signature then it should be 0x023b8868 but not 0x023b88685d .

realcodywburns commented 6 years ago

I updated, it should only be the left most 4 bytes

realcodywburns commented 6 years ago

https://github.com/ethereum/EIPs/issues/67

elaineo commented 6 years ago

@realcodywburns i still prefer chainId for consistency, but it's not a dealbreaker or anything :)

realcodywburns commented 5 years ago

Closing, this repo is depreciated . To be reopened on http://github.com/ethereumclassic/ECIPs