CRYPTO NEWS

smart contract and private blockchain

I have some IoT(Internet of things) nodes sharing the received data from sensors with each others. I partitioned them to 2 private(permissioned) networks:

Network 1 includes: X,Y,Z nodes trusting each other. Network 2 includes: M,N,O nodes trusting each other,for example.

In addition to overall smart contract for each network,

Can I write an individual contract which is special for each node of network( a smart contract for each node) for doing particular act in special time, such as sending data to the another node of another network in special time?

For instance, a particular smart contract for node X of network 1 that in special time is triggered to send data to node M of network 2.

Regards,

Testing Uniswap tutorial contracts on local testnet forked from mainnet

I’m following this tutorial to understand Uniswap v3 better: https://docs.uniswap.org/protocol/guides/swaps/single-swaps I’ve wrote the contract and compiled it. I had previously created my own tokens and deployed then, the only difference was – the constructor didn’t expect any argument. This tutorial proposes this constructor: I found the SwapRouter here: https://etherscan.io/address/0xe592427a0aece92de3edee1f18e0157c05861564 So what I tried to do::Listen

I’m following this tutorial to understand Uniswap v3 better: https://docs.uniswap.org/protocol/guides/swaps/single-swaps

I’ve wrote the contract and compiled it. I had previously created my own tokens and deployed then, the only difference was – the constructor didn’t expect any argument.

This tutorial proposes this constructor:

enter image description here

I found the SwapRouter here: https://etherscan.io/address/0xe592427a0aece92de3edee1f18e0157c05861564

So what I tried to do in my Hardhat deployment script is the following: enter image description here

I did use Alchemy.io to fork the mainnet: enter image description here

I took the latest block number from https://etherscan.io/blocks

And ran it as follows: yarn hardhat node assuming my default one will be forking mainnet, and it seems so it did.

Still, I get the error of Artifact not being found if using the code above, or if renaming the contract to just "SwapRouter" it says it cannot find it in the artifacts.

Can anyone point me to a mistake?

Thanks a lot

smart contract and private blockchain

Shopping cart
There are no products in the cart!
Continue shopping
0