WEB3_INFURA_PROJECT_ID
. More details on how to can be found here: https://web3py.readthedocs.io/en/stable/quickstart.html?highlight=infura#provider-infura
Review
phase before Last Call
. The spec is currently sitting in Review
. There’s an open question on the eth-magicians forum about whether a Checksum
should be required for in-lined sources. Once that’s resolved, I feel safe moving onto Last Call
(finally :sweat_smile: ). Do you happen to remember why we settled on this requirement during the Solidity Summit sessions?
review
status for another week or so - and then we’ll bump it to last call
. If there are any lingering suggestions / feedback - let’s discuss it here - the sooner the better!
Hi, is there a plan to push ethpm-cli:0.3.0 to dockerhub? It looks like only 0.2.0 is up there currently, and pip has been presenting issues.
I've been attempting to install via pip, with version 21.0.1
, and python 3.7.0
(On Ubuntu 18.04), but the installation process seems to be failing from conflicting dependencies. I created a fresh virtualenv for the installation. Also, the install process is quite extended with many messages of the type INFO: pip is looking at multiple versions of <PACKAGE>
. When switching to a legacy resolver pip install ethpm-cli --use-deprecated=legacy-resolver
, I get this message instead: ERROR: Could not find a version that satisfies the requirement ipfshttpclient==0.7.0a1 (from web3[tester]<6,>=5.13.0->ethpm-cli) (from versions: 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.4.13.1, 0.4.13.2, 0.6.0, 0.6.0.post1, 0.6.1)
ERROR: No matching distribution found for ipfshttpclient==0.7.0a1 (from web3[tester]<6,>=5.13.0->ethpm-cli)
web3
has an ethpm module you should use
I'd appreciate a bit of help with publishing to the Ropsten sub-domain of infura.io
via Truffle, currently I'm receiving a insufficient funds for gas * price + value
error.
cd ~/git/hub/solidity-utilities/library-mapping-address
truffle publish
Finding publishable artifacts...
Uploading sources and publishing to registry...
insufficient funds for gas * price + value
Truffle v5.4.10 (core: 5.4.10)
Node v16.10.0
According to documentation I could find, EthPM packages are published to a test network, so how does one fund such transactions?
I'm currently using a private-key for HDWalletProvider
signing, do I also need to provide the "Project Secret" generated by Infura?
truffle-config.js
(abridged)
"use strict";
const infura_project_id = "452033b0e1a041c9ad40d9690a512225";
const fs = require("fs");
const os = require("os");
const path = require("path");
const ethpm_file = `${path.join(os.homedir(), ".ethpm.json")}`;
let ethpm;
let HDWalletProvider;
if (fs.existsSync(ethpm_file)) {
try {
HDWalletProvider = require("@truffle/hdwallet-provider");
ethpm = require(`${path.join(os.homedir(), ".ethpm.json")}`);
} catch (error) {
console.warn('Warning: ignored ->', error.message);
}
}
module.exports = {
networks: {
ropsten: {
provider: () => {
if (!ethpm) {
throw new Error("Empty 'ethpm' file?");
}
if (!infura_project_id) {
throw new Error("Project ID is required");
}
const valid_keys = ["mnemonic", "private_key", "private_keys"];
const auth_pair = Object.entries(ethpm).find(([key, value]) => {
return valid_keys.includes(key);
});
if (!auth_pair || !auth_pair[1]) {
throw new Error("Cannot find authentication within 'ethpm' file");
}
return new HDWalletProvider(
auth_pair[1],
`https://ropsten.infura.io/v3/${infura_project_id}`
);
},
network_id: 3,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
},
},
compilers: {
solc: {
version: "0.8.7",
settings: {
outputSelection: {
"contracts/LibraryMappingAddress.sol": {
"*": ["devdoc", "userdoc"],
},
},
},
},
},
};
~/.ethpm.json
(redacted)
{
"private_key": "0x...deadbeef..."
}
Fixed it!... Turns out the missing step was popping over to a test-net faucet, and funding an address 🤦
Is there a Git repository for the EthPM Docs -- FAQ that I may submit a Merge Request to?
Why is there no SSL cert setup for the Explore sub-domain of ethpm.com
?
ethpm install
command? Thanks!
/Users/brads4/Library/Python/3.8/lib/python/site-packages/ipfshttpclient/client/__init__.py:75: VersionMismatch: Unsupported daemon version '0.9.1' (not in range: 0.5.0 ≤ … < 0.9.0)
warnings.warn(exceptions.VersionMismatch(version, minimum, maximum))
pip install ethpm-cli==0.3.0
Hi team!
I am not able to get ethpm working with brownie. (im running v1.19.2 for brownie with python 3.9). When I run:
brownie pm install ethpm://zeppelin.snakecharmers.eth:1/math@1.0.0
I get the following error:
StatusError: HTTPError: 401 Client Error: Unauthorized for url: https+ip4://ipfs.infura.io:5001/api/v0/version?stream-channels=true
I have already specified a valid WEB3_INFURA_PROJECT_ID in env. What am i missing???
MUCH APPRECIATED for your help in advance!!!