Code Monkey home page Code Monkey logo

zksync-developers's Introduction

zkSync Developers

Welcome to the zkSync Developers Hub! For questions related to development and building on zkSync, please utilize the Discussions tab.

Should you have inquiries not related to development, feel free to reach out to us via email at [email protected].

zksync-developers's People

Contributors

bxpana avatar dutterbutter avatar mexicanace avatar uf4no avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zksync-developers's Issues

New hardhat-zksync-verify 1.4.1 is incompatible with the latest hardhat-zksync-solc 1.1.4

I tried the new version of @matterlabs/hardhat-zksync-verify 1.4.1, and it throws this error:

Error in plugin @matterlabs/hardhat-zksync-solc: The zksolc compiler version (1.4.1) in the hardhat config file is not within the allowed range. Please use versions 1.3.13 to 1.4.0.

My package.json contains the following:

    "@matterlabs/hardhat-zksync-deploy": "1.2.0",
    "@matterlabs/hardhat-zksync-solc": "1.1.4",
    "@matterlabs/hardhat-zksync-verify": "1.4.1",
    "hardhat": "2.20.1",
    "solc": "0.8.24",

and hardhat.config.ts with these settings:

  zksolc: {
    version: "1.4.1", // Uses latest available in https://github.com/matter-labs/zksolc-bin/
    settings: {},
  },
  solidity: {
    version: "0.8.24",
    settings: {
      optimizer: {
        enabled: true,
        runs: 300,
      },
    },
  },
  defaultNetwork: "zkSyncTestnet",
  networks: {
    sepolia: {
      url: "https://sepolia.infura.io/v3/<key>", // The Ethereum Web3 RPC URL (optional).
      zksync: false, // disables zksolc compiler
    },
    zkSyncTestnet: {
      url: "https://sepolia.era.zksync.dev/", // The testnet RPC URL of zkSync Era network.
      ethNetwork: "sepolia", // The Ethereum Web3 RPC URL, or the identifier of the network (e.g. `mainnet` or `goerli`)
      zksync: true, // enables zksolc compiler
      verifyURL: "https://explorer.sepolia.era.zksync.dev/contract_verification",
    },

Apparently the @matterlabs/hardhat-zksync-solc package needs to be updated too.

Guild roles error

Hi, I have tried to obtain the verified level 1 and verified level 2 roles in Guild, and the only item that is flagged as incomplete is transaction history on Zksync Era... although I have over 350 transactions.

address: 0x102b651599423Fa529F72E3aac431765Ecd55BA3
discord: shahfrango
email: [email protected]

Screenshot 2024-02-01 070320

Issues about guild.xyz

A lot of community members won't able to verify the task that is provided by zksync on guild for like weeks now API is down 🥴

Deposite Zksync Lite Token Not Recived

I use this site https://lite.zksync.io/account/history and Transfer my Zksync Lite Token
0.001996990986 ETH to
Binance ETH Deposit Address = 0x5056c19839093b1c7930e15eedccdaf62b7eb3b8
And Then Transfer Complete But Not Recive My Zksync Eth In Binance.

Tx Hash = 0x347c45f314499ecca27445981690bebcc35990d803c1834c43b2d5960cded1d3

Why This Happen.

STOLEN FUNDS

Discussed in #242

Originally posted by goh1 December 17, 2023

Environment

Mainnet

Provide a brief description of the functionality you're trying to implement.

Funds stolen from my wallet. Wanting to know what and how it happens. Happens on ZKSYNC ERA chain. Transaction Hash:0xf1c5906a0d54eddf050ac5a6582573b0a35e7bb346b6a4e78a4322bda014062a. Note that The sending address is different from my Address. Can I assume that my private is not compromised?

What is the specific issue or error you're encountering?

My funds stolen

Can you share the error messages or logs you're receiving, if any?

Transaction 0xf1c5...062a _ zkSync Era Block Explorer.pdf

Have you made any recent changes to the contract before encountering this issue?

No.

Are there any external libraries or contracts that your contract interacts with?

N/A

Can you provide the relevant portions of your contract code where the issue is occurring?

N/A

Have you tried to isolate the problem, and if so, what were the results?

No

What steps have you already taken to try to resolve the issue?

Still looking.

Repo Link (Optional)

No response

Additional Details

If this not appropriate channel. please direct to another channel.

Discord server issue

Guys let us know how should we connect with zksync team. We are not able to connect to discord server.
We know this is a developer forum..but where is the point of contact..there is response on twitter and there is no telegram handle for resolving the issues and no response on the support emails.

Why are you guys closing the issues..please guide us in a direction to whom to connect for support than closing the issues without resolving. It's been over a week and there is no definite way Iam able to find a solution for the discord issue.

My discord handle: vamshidhar2205

Can not join zksync discord channel.

Hello, I have not been able to log in to the Zksync discord channel for months. After the link at join.zksync.dev, there is a captcha confirmation phase. After saying F1rewall has invited you to join, I press the accept invitation button. It asks me to confirm "I'm human" twice with hcaptcha. Afterwards, when redirection to the zksync channel, it goes to https://discord.com/channels/@me and I cannot access the zksyn channel.

I also saw confirmation from the appeal page that I had not been banned before. please find a problem and provide a solution for me.

JavaScript SDK -- Can't Add Liquidity with SyncSwapRouter

Discussed in #140

Originally posted by devsalman247 September 19, 2023

Environment

Testnet

Acknowledgement

  • I understand that issues are expected with the Go SDK as they are being updated.

Issue Description

image

In this image, as you see transaction is sent but failed... I don't know even if I've passed correct arguments or not as there is no example I could find in docs neither I could get any support from zksync discord server nor from syncswap discord server...

Expected Behavior

-- Should add liquidity

Code Example

export async function depositSyncLP(l2signer: zksync.Signer, provider: ethers.providers.Web3Provider) {
await switchNetwork("zksync", provider);

const syncSwapContract = new zksync.Contract(SYNC_SWAP_ROUTER, SYNC_SWAP_ROUTER_ABI, l2signer);
const syncSwapFactory = new zksync.Contract(SYNC_SWAP_FACTORY, SYNC_SWAP_POOL_FACTORY_ABI, l2signer);

const ethBal = await l2signer.getBalance();
const usdcBal = await l2signer.getBalance(TOKENS_L2_LIST.USDC.toLowerCase());

// 5%
const toDepositInLP = usdcBal.mul(5).div(100);
// 25% of the leftover fees
const amountETHDesired = ethBal.mul(25).div(100);

const POOL_ADDRESS = await syncSwapFactory.getPool(
	TOKENS_L2_LIST.USDC.toLowerCase(),
	TOKENS_L2_LIST.WETH.toLowerCase()
);
console.log(
	`ETH balance to Deposit ------- ${amountETHDesired} from Total ${ethBal} ------- USDC balance to deposit ------- ${toDepositInLP} from Total ${usdcBal} ------- In a Pool ${POOL_ADDRESS}`
);

if (POOL_ADDRESS === ZERO_ADDRESS) {
	throw Error("Pool not exists");
}

const tokenInputs = [
	{
		token: TOKENS_L2_LIST.USDC.toLowerCase(),
		amount: toDepositInLP,
	},
	{
		token: TOKENS_L2_LIST.WETH.toLowerCase(),
		amount: amountETHDesired,
	},
];

const token = TOKENS_L2_LIST.USDC.toLowerCase();

console.log("Approval");

const routerApprovalReceipt = await approveERC20(token, SYNC_SWAP_ROUTER.toLowerCase(), l2signer);

console.log(routerApprovalReceipt);

const approvalReceipt = await approveERC20(token, POOL_ADDRESS, l2signer);

console.log(approvalReceipt);

console.log("Adding liquidity");

const data = await ethers.utils.defaultAbiCoder.encode(["address"], [await l2signer.getAddress()]);

const txn = await syncSwapContract.addLiquidity(POOL_ADDRESS, tokenInputs, data, 0, ZERO_ADDRESS, "0x", {
	value: amountETHDesired,
	gasLimit: 1400000,
});

console.log(txn);

const receipt = await txn.wait();

console.log(receipt);

}

Repo Link (Optional)

No response

Unable to join discord

Hi zksync team..
Please help me out as Iam unable to join official discord.
My discord username: vamshidhar2205

「Rollup Finance」 →rug project

gm
when i stake and unstake ,its very a short of time. and then contract ...
so i think dapp 「Rollup Finance」 → is a rug project.
if anyone hava a instersting in find something. and i dont want to anybody who to be a victim. 
maybe can serach some wallet address;
① 0x4992eb45172868F0D8cCEB91190E159BDF571461
②0x467c79Be8281Ae1f72f9B629C0cCCac3c6939A66
③0x35a00af2ce3bb673684e94546b060debcb6bbd03
④0x130E377d507A62C9ECcbd9E7E5Ad2Fd3BE551f48

+

hi all

join to discord

Hello, I can't join to discord so I can't be qualified for level 2.

Contract verification fails with zksolc 1.4.0

I have a script to deploy and verify a contract to zkSync Sepolia.

Initially my package.json contained the following:

    "@matterlabs/hardhat-zksync-deploy": "1.2.0",
    "@matterlabs/hardhat-zksync-solc": "1.1.4",
    "@matterlabs/hardhat-zksync-verify": "1.4.0",
    "hardhat": "2.20.1",
    "solc": "0.8.24",

And my hardhat.config.ts these:

  zksolc: {
    version: "1.4.0", // Uses latest available in https://github.com/matter-labs/zksolc-bin/
    settings: {},
  },
  solidity: {
    version: "0.8.24",
    settings: {
      optimizer: {
        enabled: true,
        runs: 300,
      },
    },
  },
  defaultNetwork: "zkSyncTestnet",
  networks: {
    sepolia: {
      url: "https://sepolia.infura.io/v3/<key>", // The Ethereum Web3 RPC URL (optional).
      zksync: false, // disables zksolc compiler
    },
    zkSyncTestnet: {
      url: "https://sepolia.era.zksync.dev/", // The testnet RPC URL of zkSync Era network.
      ethNetwork: "sepolia", // The Ethereum Web3 RPC URL, or the identifier of the network (e.g. `mainnet` or `goerli`)
      zksync: true, // enables zksolc compiler
      verifyURL: "https://explorer.sepolia.era.zksync.dev/contract_verification",
    },

The verification is done with:

  const verificationId = await hre.run("verify:verify", {
    address: contractAddress,
    contract: contractFullyQualifedName,
    constructorArguments: constructorArguments
  });

where constructorArguments is the same array successfully used few lines before to deploy.

The verification fails with the latest zksolc 1.4.0 and solc 0.8.24 with error Error in plugin @matterlabs/hardhat-zksync-verify: Backend verification error: Deployed bytecode is not equal to generated one from given source.

I tried to keep zksolc 1.4.0 and downgraded the solc version to 0.8.23, 0.8.22 and 0.8.21, but the verification keeps failing.

Eventually, to make it work, I had to downgrade to zksolc 1.3.23 with solc 0.8.23.

i can't join discord

please help me to join discord group again. it shows everytime ' unable to accept '

LIBERTAS OMNIBUS NFT FORM

I have a libertas omnibus nft and I am trying to fill out the form. I have tried both chrome and edge and neither have worked. I tried two computers and my phone. I tried clearing the cache. I tried refreshing the page. It just keeps saying the same thing over and over:
"form submission failed. please try again later. " someone said maybe your nft is on a different account. I only have one account. Someone please help. Thanks.
libertas

Paymaster validation error

Description
Encountering errors when paying gas with Paymaster

🔄 Reproduction Steps

const paymasterAddress = "0xf2a173643ca958213714712ce195f6f6e9c686e7"
      paymasterParams = utils.getPaymasterParams(paymasterAddress, {
        type: "ApprovalBased",
        token: gasPayTokenAddress,
        minimalAllowance: ethers.constants.MaxUint256,
        innerInput: "0x0000000000000000000000000000000000000000000000000000000000000001",
      });
    const customData = {
      gasPerPubdata: utils.DEFAULT_GAS_PER_PUBDATA_LIMIT,
      paymasterParams: paymasterParams,
    };

      let populatedTx = {
        from: wallet.address,
        data: swapDataHex,
        to: newRouteAddr,
        // gasPrice: gasPrice,
        gasLimit: 1000000,
        // type: EIP712_TX_TYPE;
        value:  ethers.BigNumber.from(0),
        customData: customData
      }
      const response =  await wallet.sendTransaction(populatedTx);
      result = await response.wait();
  • Expected Behavior
    Paying gas with Paymaster

😯 Current Behavior

processing response error (body="{"jsonrpc":"2.0","error":{"code":3,"message":"failed to validate the transaction. reason: Validation revert: Paymaster validation error: Error function_selector = 0x, data = 0x","data":"0x"},"id":94}", error={"code":3,"data":"0x"}, requestBody="{"method":"eth_sendRawTransaction","params":[""],"id":94,"jsonrpc":"2.0"}", requestMethod="POST", url="", code=SERVER_ERROR, version=web/5.7.1),

🖥️ Environment
Node version: [v20.0]
Operating System & Version: [docker]
Other relevant environment details: [email protected]

📋 Additional Context
📎 Log Output

processing response error (body="{\"jsonrpc\":\"2.0\",\"error\":{\"code\":3,\"message\":\"failed to validate the transaction. reason: Validation revert: Paymaster validation error: Error function_selector = 0x, data = 0x\",\"data\":\"0x\"},\"id\":94}", error={"code":3,"data":"0x"}, requestBody="{\"method\":\"eth_sendRawTransaction\",\"params\":[\"\"],\"id\":94,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="", code=SERVER_ERROR, version=web/5.7.1),

Pending transaction problems

Sorry sir. I really beg you to help me🙏🏼😭 My transaction has been pending for more than 11 hours. How do I solve it...help me sir
Screenshot_2024-02-15-01-48-02-67_8c90bb820ecf12bb620c53b61014a1ba

Unable to join discord channel

My phone was stolen and I forgot everything about discord. I connected to Discord to switch to Gitcoin, but I can't join now. I've been trying every day for almost 15 days, but I couldn't get in. Please invite me to the discord channel. My username is @muto5929 please admin.
Discord name= @muto5929

High Fees

Many platform are charging high fees, zksync should do something about it

Please BEWARE: Got scammed by the below link. Was trying to bridge my ETH to ZKSYNC.

zkSync Era Bridge | Transfer funds between zkSync Era ...

zkera-brldge.cloud
https://www.zkera-brldge.cloud
Your bridge to the future of crypto and DeFi powered with zero knowledge proofs. MetaMask. Connect using browser wallet. 1.13.0.
You visited this page on 11/07/23.

Here is the transaction Hash: 0x30b68119e0e8fa1ee64bcf0f086c8343bd28d5165d147ce0c7df1be0fd2c594f

Here 👍 is my REQUEST to PLEASE return my ETH... Its all i have.

" Why are you so evil ?... stealing innocent people money, KARMA will fall or you . Remember all is nothing . Year's from now, you will be in shackles ... Return my ETH ( Hard earn work, my hope of helping other from my home country (AFRICA) was
taken by you)
Transaction ID: 0x30b68119e0e8fa1ee64bcf0f086c8343bd28d5165d147ce0c7df1be0fd2c594f

My Address: 0x40242De312f4f9B8CE28BEAbffE9dB6549Dfd8b2 Thank's and will appreciate if you have a rethink.....

unban discord Welcome to zkync-developers Discussions!

Discussed in #1

Originally posted by bxpana May 24, 2023

👋 Welcome!

We’re using Discussions as a place to connect with other members of our community. We hope that you:

  • Ask questions you’re wondering about.
  • Share ideas.
  • Engage with other community members.
  • Welcome others and are open-minded. Remember that this is a community we
    build together 💪.
  • Use the Discussions as a resource to collaborate with peers and find answers from the community.

❓ Questions

The Questions Section of this Github Discussion is the perfect space for you to ask questions and seek answers from our vibrant and knowledgeable community.

Here, you'll find several categories, each dedicated to a specific topic. Whether your question pertains to SDKs, Contract Verification, Deployments, or another subject, you'll find a relevant category where you can initiate a discussion.

sorry sir please unban discord, i dont understand my discord ban. my id : 1098561155389194240 user name : liger1008 I think the culprit is mods

Paymaster: (Wrapped LIBERTAS OMNIBUS)

WLB refusing to pay gas on paymaster even after selecting as use, although transactions took place but doesn't seem to reflect that WLB was used as gas. I think it should be checked into. ZEEK coin (meow) had a seamless transaction when used as gas.

[General] L2 ETH token 0x000000000000000000000000000000000000800a balanceOf -- execution reverted

Discussed in #119

Originally posted by KonScanner August 31, 2023

Environment

Mainnet

Provide a brief description of the functionality you're trying to implement.

I tried to call balanceOf with 0x000000000000000000000000000000000000800a on a number of addresses.

I am using the required uint256 format to turn these wallets into the right format before calling.

1. balanceOf
(uint256)
_account (uint256)

This used to work just fine, up until the start of this week or so.

What is the specific issue or error you're encountering?

execution reverted

Can you share the error messages or logs you're receiving, if any?

ERROR - Failed to crawl balance for 0xD4A9Ec44027A7e567094c09bE036E5eE3DB60540 on 0x000000000000000000000000000000000000800A with error: execution reverted
ERROR - Failed to crawl balance for 0xD4aA165c09D00E493270f12D14586ca70b62a682 on 0x000000000000000000000000000000000000800A with error: execution reverted
ERROR - Failed to crawl balance for 0xD4AA5748309634Fc49701326308AB5E5D4aE4405 on 0x000000000000000000000000000000000000800A with error: execution reverted
ERROR - Failed to crawl balance for 0xD4AAe3198F717206B3DEB3BBA01BBF0C59Dd7AcE on 0x000000000000000000000000000000000000800A with error: execution reverted

Have you made any recent changes to the contract before encountering this issue?

No

Are there any external libraries or contracts that your contract interacts with?

web3 for python

Can you provide the relevant portions of your contract code where the issue is occurring?

value = w3_contract.functions.balanceOf(
                safe_to_check_sum_address(address)
            ).call(block_identifier=block_number)

Have you tried to isolate the problem, and if so, what were the results?

I have tried to pass in manually uint256 and it seems to be working in the explorer, but not via any of public endpoint or quicknode endpoint or chainstack or other.
image

What steps have you already taken to try to resolve the issue?

Debugged the code step-by-step to no avail.

Repo Link (Optional)

No response

Additional Details

No response

Transaction Issue

Hi, I did a bridge from Zksync Era Mainnet to Ethereum Mainnet with ETH, but it is not completed transaction for 1 hour. My Zksync wallet was deducted token ETH already, but ETH wallet has not received yet. Pls help
Here is my hash: 0xa1c30700de66d46a536572a1dad0b5e4e6b8cc29db476272b95a90ef2f223048

status transaction

i can't get my funds
0xb655d4fe85ff654c440b90726b494ee8b1f4845ff2dfbb196203197685ef4672

Add zkSync to Uniswap

Uniswap is one of pioneer in Dex and has many regular users. Adding zkSync to Uniswap will bring more users to zkSync ecosystem.

Unable to join discord channel

Can I have an invitation link for the discord please? (silvia0175)
Unfortunately I cannot join your discord. I tried several times via guildzksync (I have a verified level 1 and a gitcoin passport above 20 points). I don't see why it will not succeed. Please help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.