Truffle: Add Ethereum name or address to package.json

Created on 23 Aug 2019  路  10Comments  路  Source: trufflesuite/truffle

I would like to see an Ethereum name or address added to the ethereum field of the package.json file. This will allow consumers of the project to know a cannonical address to send funds to, for example donations.

I'm building an application that will allow developers to automatically donate ETH to all of their npm dependencies that have Ethereum addresses in their package.json files. I'm not quite ready to share the project, but I'd love to see an Ethereum address in this project's package.json file.

All 10 comments

Hi @lastmjs, neat idea! Do you have docs or any other resources to look over?

Yes, I wouldn't install the app yet, I'm VERY close to releasing the alpha, like maybe tomorrow: https://sustainus.io

The alpha has been released, more documentation here: https://github.com/lastmjs/sustainus

Something else to think about instead of populating the package.json with arbitrary stuff, would be to include a separate file with this information. Perhaps something like .donations.

@eggplantzzz What would the advantages to that be? Seems like that would be more complicated, adding an ethereum or bitcoin or paypal property is very simple. But, standardizing would be best, and work is being done there: https://github.com/nodejs/package-maintenance/pull/220

That being said, the new GitHub sponsors stuff looks interesting: https://help.github.com/en/articles/displaying-a-sponsor-button-in-your-repository

An Ethereum address or link to Sustainus could be put into the FUNDING.yml file:

patreon: truffle
ethereum: 0xc9bc72fe58c5FAcc478514313FbA09d13ee3742b
sustainus: https://sustainus.io

Something like that maybe, there are a few options

The idea is that I don't think we should be sticking arbitrary fields there. That can't be a good practice. If it is something that is standardized I have much less of a problem with it. It really has nothing to do with ease. I'll take a look at your docs though.

Yes, I'm starting to see and agree. So two options seem most appealing now. One is to enable GitHub Sponsors and include an Ethereum address or name in the FUNDING.yml file. This is how it would look and I have tested it:

custom: ['ethereum/truffle.eth']

You could replace truffle.eth with the actual address if you wanted to. Also, a real URL might be better, but not necessary. What I have above seems the most project agnostic.

Another option that I'm working on getting standardized is essentially a field in the package.json under something like support -> backing -> donations. It's still nebulous but there is work being done as linked to above

I think we like the FUNDING.yml idea! We are currently discussing what our strategy is going to be for taking donations. Thanks for the proposal!

Something to be aware of: https://blog.npmjs.org/post/187382017885/supporting-open-source-maintainers

I'm pretty much waiting to see what npm is going to do before making any more plans with Sustainus.

That being said, I think if GitHub added native support for Bitcoin and Ethereum and potentially other cryptocurrencies into the FUNDING.yml schema, that could be a win for crypto. Show your support here: https://github.com/lastmjs/enable-cryptocurrency-in-funding-yml

Also, anyone interested in making this a reality, please email [email protected] and ask for cryptocurrencies in FUNDING.yml. I was told by a member of the GitHub Sponsors team that it is likely they will support it if enough people ask

Was this page helpful?
0 / 5 - 0 ratings