Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 02 2018 10:49
    @holgerd77 banned @johnny_musk_twitter
Gabriel Rocheleau
@gabrocheleau
Quick question: why isn't the "level" library not included by default in package.json?
Gabriel Rocheleau
@gabrocheleau
It seems like I should instead use the "level-mem" library, which bundles level-up and memdown
Holger Drewes
@holgerd77
Just published v3.0.0 or our devp2p library ethereumjs-devp2pon npm. This is the first official TypeScript release of the library. Special thanks to @dryajov for this huge rewrite (everything: sources , examples, tests) ❀ 🎉 as well as @PhilippLgh and @ryanio for their follow-up integration work!
Gabriel Rocheleau
@gabrocheleau
Awesome, good to hear.
Are you planning on releasing v4.0.0 also? @ryanio mentioned that the 4.0 npm release was planned for this week.
Oh nvm, I thought you were talking about the Merkle Patricia Tree library
Ryan Ghods
@ryanio
@gabrocheleau yes we should be releasing that this week :)
Gabriel Rocheleau
@gabrocheleau
Great, I should be able to finish the tutorial on MPT this week also.
Ryan Ghods
@ryanio
sounds great, looking forward to checking it out
Gabriel Rocheleau
@gabrocheleau
Holger Drewes
@holgerd77
Jut published v2.2.5 of the rlp library, this release adds support for native BigInts as an encoding input type.
@gabrocheleau That looks fantastic! :thumbsup: :smile: Feel free to open a PR towards the README linking your tutorial once v4 is out (maybe at the end of the Usage section would fit well?)
Holger Drewes
@holgerd77
Just published ethereumjs-util v7.0.2 on npm. The release re-upgrades the BN.js re-export version to v5 after an import fix on interoperability issues between BN.js v5/v4 has been released. An upgrade is strongly recommended, v7.0.1 is marked as DEPRECATED now.
Gabriel Rocheleau
@gabrocheleau

@gabrocheleau That looks fantastic! :thumbsup: :smile: Feel free to open a PR towards the README linking your tutorial once v4 is out (maybe at the end of the Usage section would fit well?)

Sure, I'll open a PR request once v4 is out! 2/3 of the blog posts currently linked are offline or use deprecated libraries.

vlddm
@vlddm
is there some libs supporting WASM accelerated hd derivation (bip32/44)?
Ghost
@ghost~5eda2317d73408ce4fe60596

Hello everyone. Wanted to ask if somebody can point right direction to get emitted event data from JsVM smart contract execution.

I've seen that Remix IDE in JsVM mode is able to return event data, but was not able to find any example where such logic was explicit. Would appreciate suggestions. Thanks.

Sina Mahmoodi
@s1na
Are you referring to logs or execution events like which opcode was executed etc.?
Ghost
@ghost~5eda2317d73408ce4fe60596
I'm referring to logs.
Sina Mahmoodi
@s1na
If you're using runTx it returns an object res which has res.execResult.logs
Ghost
@ghost~5eda2317d73408ce4fe60596
Yes. Those a Buffer instances which are a bit not user-friendly. Is there any way to decode them to and display as common JavaScript (or JSON) object?

Let me clarify things a bit:

pragma solidity ^0.5.2;

contract SimpleStorage {
    uint storedData = 0;

    event SetNotification(uint val);

    function set(uint x) public returns (uint, uint) {
        storedData = x;

        emit SetNotification(storedData);

        return (111, 222);
    }

    function get() public view returns (uint) {
        return storedData;
    }
}

When we call set(123) and emit SetNotification event, is there any direct way to get

{
    "from": "0x3b06361579e400227d09ef0c197a461f505f66f5",
    "topic": "0x2741a8eb6930759e133b1a5261f1e4eb0fa83ea4fe572c39f335a714cefc1a3c",
    "event": "SetNotification",
    "args": {
        "0": "123",
        "val": "123",
        "length": 1
    }
}

Via JsVM and utilities out of the box?

Sina Mahmoodi
@s1na
The VM only works on raw values. each log in the list above is in the form [fromAddress, [topics], encodedData]
Ghost
@ghost~5eda2317d73408ce4fe60596
So it seems to be some top-level funtionality then. Thanks, I will investigate a bit more.
Sina Mahmoodi
@s1na
It doesn't have access to some information like the event name (we can't revert the hash to get the preimage). I'm not sure how solidity encodes the args, if its ABI there's also an ABI library
Ghost
@ghost~5eda2317d73408ce4fe60596

@s1na You saved my day. So, the first topic is the hashed event name or signature. This can be precomputed to then match hash of first log topic (if the log belongs to event). Data payload of log can also be decoded, when we do have event signatures.

Thank you very much.

Holger Drewes
@holgerd77

Hi @/all,
this channel has been moved over to Discord and we will therefore close the channel here.

The new Discord Server from the EF JavaScript Team has channels on the following projects

  • EthereumJS
  • Grid
  • Ethers
  • Web3.js

... as well as some dedicated topic channels like VM, stateless or eth2.

You are all very much invited to join. Here is the invitation link: https://discord.gg/TNwARpR

See you on Discord! đŸŒ» 😃

The EF JavaScript Team


This channel has been closed. Please don't further comment here.

Lindsayjshort
@Lindsayjshort

Welcome to Pilgrimfinances

We are a team focused on passive returns on your investments, we manage various investment portfolios for our clients with successful strategies that has over 90% success rate on your investment

These are our investment packages
First Package:
$1000-$9,999 on a weekly return of 10% and a referral commission of 5%
Second Package:
$10,000-$49,999 on a weekly return of 20% and a referral commission of 10%

Our Affiliate program offers reward in the amount of $200 for every 10 referrals you make.

Bitcoin wallet address:

3CPXAcsFUVCMP5ei3faUEghZhFAM2pTKwc

Thank you

you can contact me via telegram
https://t.me/joinchat/V0C0bonkPflhZGVk

萌萌
@ka8hz_twitter
Ethereum's decentralized liquidity mining launched on Coinbase Wallet can now earn 3%-5% of the principal every day
MonPham
@demondvn
image.png
Hi
I try to send TX from ETH66 Protocol must cant' find any document about format ..
Sr my bad english
David Luis
@Igrrhhbfr_gitlab
Hi friend
Have you reconnect your wallet using dapps token wallet interface to claim reward on your coin ??
Kaufmannhardt
@Kaufmannhardt
everyone is optimistic about the rise and fall of the cryptos. personally, you can all agree with me that the bitcoin price is going to exceed its current value to $71,415 in February 2022, panelists have also predicted the bitcoin price to skyrocket to an average of $249,578 by the year 2024 which could also influence the price of altcoins. it's never too late to buy and hold of Ethereum/Bitcoin now is the right time. I personally have sustained over $567,000 since last year still now copying advance trade signals and indicating stop lost and manage risk following a mentorship and a blockchain specialist https://declanbrock.com/ his pattern are very lucrative with full of complex.
cryptoguru1337
@cryptoguru1337

Hello Community!

I'm a blockchain, .NET and Android app developer and have been programming for over 15 years.

My vision was to develop a program that is easy to use and still offers many functions.

The "Blockchainius" project arose from this thought.

Blockchainius is a program for automatically creating private keys and wallets in all available networks that support 0x addresses like Ethereum.

With Blockchainius, the automatically created wallets can be automatically checked for credit. This credit can also be automatically sent to your wallet if you wish.

8 networks are preconfigured in the default settings: ETH, BSC(BNB), Matic, AVAX, FTM, Telos, Arbitrum, Optimism

Additional networks can be easily added with ChainID, RPC URL, symbol, coin name.

The tool is available as a freeware version (15% developer fee automatically when a wallet is found) or as a paid version (lifetime license) without fees.

If desired, an automatic e-mail notification with the most important information can also be sent.

Blockchainius is available today with update 1.3.5.0.

Windows 7 - 11 and the current .NET Framework are required.

The software can also be operated in virtual machines (VMWare, VirtualBox and others).

I am available for further questions.

The software is available here: https://www.blockchainius.net

elshigori
@elshigori:matrix.org
[m]
Could you hint me how to get current block (timestamp) of Remix VM? Trying different stuff like web3.eth.blockNumber with and without async, but without luck yet. Totally newbie embarrassing question, sorry; but can't find a manual or examples with typical Remix console things.
nashgc
@nashgc
Hi guys! Can someone explain how to write hardhat task with etherjs to interact with my smart contract. I've read official docs of hardhat, and there is weak example of it. I need simple example of sending any funds to contract. plz)
thereciprocal
@thereciprocal:matrix.org
[m]
Hello guys! Does anyone know how many #ETH Fan Community token do i have to hold to get at least 1k/month? I just bought 100,000,000,000 tokens with a 50% extra bonus from https://eft-token.com and I am already seeing ETH rewards in my wallet, currently making about $100 per week
The jie 🚠 🕛
@meyme13450621_twitter
Want to get ETH, tell me
æąŠćšœ
@CV6EEpg2pRXWLNo_twitter
$50 item. A steady income of $0.64 per day. A steady income of $19.2 per month.
$200 item. The daily steady income is $3.22. Stable monthly income of $96.60.
$500 item. The steady income is $8.45 per day. Stable monthly income of $253.50.
$2000 project. The daily steady income is $35.2. Stable monthly income of $1056.
A stable blockchain financial management project. If you are interested you can come to me, my telegram https://t.me/mengna334
The jie 🚠 🕛
@meyme13450621_twitter
Want to get ETH for free tell me
sxdcvbnmk,l
@dcfghjuj_twitter
Can anyone please expalin what ethereumjs-common is used for?
Peerzada Zeeshan
@PeerzadaZeeshan
hey guys can anyone help me in this. This is the image where compiler shows error https://ibb.co/XxXK3vZ. and the error it shows is this https://ibb.co/GQKrGr0
thanks in advance.
Amirhosseinbtc824
@Amirhosseinbtc824
0x7639fa55A11dCb46C48E51814A8538790DF16c54
Anyone want ethereumjs project must send 120 Eth To This Address
BlockChain & Web developer
@blkdot
@blkdot
Hello everyone!
Who wants to develop NFT minting website, NFT marketplace, stacking, Defi, Dao etc ?
I can help you.
LndnMdiaLb
@LndnMdiaLb
hi! i've had a @ethereumjs/trie issue I've been trying to figure out. I'm almost surely using the library the wrong way. As an exercise i'm trying to prove the the transaction root hash in a block by constructing a the PMT out of serialized transactions. My current understanding is the trie.root is the root hash of the underlying trie. I can't get them to match. code bellow. Any insight would be greatly appreciated
const {Level} = require("level");
const {SecureTrie:Trie} = require("@ethereumjs/trie");
const {
    AccessListEIP2930Transaction: EIP2930Transaction,
    FeeMarketEIP1559Transaction: EIP1559Transaction,
    Transaction: LegacyTransaction,
} = require("@ethereumjs/tx");

const {rlp, keccak} = require("ethereumjs-util");
const ethers = require("ethers");
const path = require("path");

const dbPath = path.resolve("./","db");

const db = new Level(dbPath);
const trie = new Trie(db);

const blockHash = "0x25c875ae44183a53c8c090a085347869dc95282727bf33dff3880f475a00e3e7";

(async()=>{
    const provider = new ethers.providers.JsonRpcProvider();

    // provider.getBlock() is not the complete object returned
    const block = await provider.send("eth_getBlockByHash",[ blockHash, true ]);
    await Promise.all[block.transactions.map((tx, i) => 
            new Promise((resolve)=> {
                let TransactionClass;
                switch (tx.type){
                    case '0x2':
                        TransactionClass=EIP1559Transaction;
                        break;
                    case '0x1':
                        TransactionClass=EIP2930Transaction;
                        break;
                    case '0x0':
                        TransactionClass=LegacyTransaction;
                        break; 

                }
                // console.log(`${tx.transactionIndex} === ${ i} ; ${rlp.encode(tx.transactionIndex).toString('hex')} === ${ rlp.encode(i).toString('hex')} ;`)
                // console.log(TransactionClass.fromTxData(tx).serialize())
                trie.put(
                        rlp.encode(i),
                        TransactionClass.fromTxData(tx).serialize(),
                        resolve);
            }
        ))];

    console.log(block.transactionsRoot)
    console.log(trie.root)
    console.log(keccak(trie.root))
})();
Iamtheone
@Adewuyi799_twitter
$50 item. A steady income of $0.64 per day. A steady income of $19.2 per month.
$200 item. The daily steady income is $3.22. Stable monthly income of $96.60.
$500 item. The steady income is $8.45 per day. Stable monthly income of $253.50.
$2000 project. The daily steady income is $35.2. Stable monthly income of $1056.
A stable blockchain financial management project. If you are interested you can come to me, my telegram +1 443-863-9267
victornor
@victornor
Are anyone able to successfully send transactions using the FeeMarketEIP1559Transaction?
I'm getting "insufficient funds" and i've tried everything....