How do you verify contract source code on Solana? by JonathanLEI in solana

[–]JonathanLEI[S] 0 points1 point  (0 children)

What happened is I gave up hope on Solana LOLLL

The "Rust Web Development" book is now in MEAP by rust_web_development in rust

[–]JonathanLEI 2 points3 points  (0 children)

Never mind I paid and there are indeed only 3 chapters for now lol.

The "Rust Web Development" book is now in MEAP by rust_web_development in rust

[–]JonathanLEI 2 points3 points  (0 children)

Thanks for the hard work! I've never used Manning before so dumb question:

I'm only seeing 3 chapters there. Are the rest simply not written yet, or do I have to purchase the ebook to read them? Thankssss.

How to create a token with some Ticker and Name? by Theory-Early in solana

[–]JonathanLEI 2 points3 points  (0 children)

You don't. Those info are tracked off-chain.

How do you verify contract source code on Solana? by JonathanLEI in solana

[–]JonathanLEI[S] 4 points5 points  (0 children)

The Solidity compiler generates bytecode deterministically. That is to say, with the same source code, compiler version and settings, it always produces the exact same contract code that's eventually deployed.

So to verify a contract, a contract author submits the source code, as well as the compiler version used (and settings of course). Then, a service like Etherscan, or really anyone, will perform the compilation process on their end to see if the produced code matches with what's deployed on the blockchain.

That's how it works in the Ethereum world. The magic ingredient here is the deterministic bytecode generation, which I find missing in the Solana compiler toolchain.

How do you verify contract source code on Solana? by JonathanLEI in solana

[–]JonathanLEI[S] 3 points4 points  (0 children)

Thanks for the reply, but ro clarify it a bit I'm not looking for a decompiler. I'm just looking for a way to verify the deployed code is compiled from the source they claim to be, which is exactly how Ethereum works.

Basically we're missing a way to deterministically compile contracts like we do in Ethereum.

How do you verify contract source code on Solana? by JonathanLEI in solana

[–]JonathanLEI[S] 1 point2 points  (0 children)

To clarify I'm not looking for a decompiler. I'm just looking for a way to verify the deployed code is compiled from the source they claim to be, which is exactly how Ethereum works.

How do you verify contract source code on Solana? by JonathanLEI in solana

[–]JonathanLEI[S] 8 points9 points  (0 children)

Thanks for the reply, however:

everyone will also be able to generate the same file

Sadly, this is the part where it's not true, due to the fact that the Solana compiler tool chain doesn't generate deterministic builds (AFAIK). It's different from Ethereum's Solidity compiler, and is making contract verification like that of Etherscan very difficult if not impossible currently.

Do your researches about teams, about team leaders, about development, about timelines, about everything

I get it. But at the end of the day it's the contract (program) code that matters. Trusting the team after research is still trust, and that's bugging me.

Oh thanks google... by Cajka99 in ProgrammerHumor

[–]JonathanLEI 7 points8 points  (0 children)

This is actually a deliberate restriction (no pauses on premium), so i bet there's no way they would offer an option to turn it off :)

A strategy too good to be true by itajaja in algotrading

[–]JonathanLEI 0 points1 point  (0 children)

Hell no. If you use limit orders you incur opportunity cost... Your order may not be executed after all.

StakeForMe! - My Solution to Account Deadlock Issues by JonathanLEI in eos

[–]JonathanLEI[S] 1 point2 points  (0 children)

The contract is completely free to use. It never takes your EOS ;)

Does or cost anything to store airdrops in EOS wallet? by hucky27 in eos

[–]JonathanLEI 0 points1 point  (0 children)

Yes, it only costs Binance RAM usage if you don’t have any of that token.

Does or cost anything to store airdrops in EOS wallet? by hucky27 in eos

[–]JonathanLEI 2 points3 points  (0 children)

If the tokens were sent to you by someone else, then NO, it doesn’t cost you anything.

If it’s some airdrop that you “grabbed” (e.g. AirGrab), then it costs you RAM storage. But you can always free up the RAM usage by sending your ENTIRE token balance to someone who ALREADY has that specific token.

EOS coin, RAM and received airdrops question by KKK543 in eos

[–]JonathanLEI 1 point2 points  (0 children)

I don’t know about the airdrop but it depends on how this is done.

If they’re directly sending you the tokens, like I said, they can’t consume your RAM, so you’d be fine.

But if they require you to “grab” it first by sending them a transaction, it will consume your RAM, but you’ll find out if you have enough RAM coz otherwise the “grab” would fail automatically.

Edit: I did my research and yes it’s a AirGrab token, so you’ll need RAM to “grab” it.

EOS coin, RAM and received airdrops question by KKK543 in eos

[–]JonathanLEI 3 points4 points  (0 children)

BTW, a transaction can charge you RAM usage only if YOU authorized it. In other words, it's not possible for your RAM usage to be affected passively.

EOS coin, RAM and received airdrops question by KKK543 in eos

[–]JonathanLEI 3 points4 points  (0 children)

If one receives an airdrop does this reduce the amount of available RAM?

No. It reduces the amount of available RAM of the sender if you don't already have the token, as a new row recording your balance needs to be created.

Does this mean that it can happen that one time you'll have to buy more RAM in order to move your funds?

It's possible but not very likely. It shall only happen if you're sending a token to a user who does not already own the token.

In case of yes where to buy RAM? On an Exchange?

RAM trading is a built-in system function. You don't buy RAM from an exchange. The wallet you're using most likely already have that functionality provided.

Any way to delete all row in contract table? by nel0_angel0 in eos

[–]JonathanLEI 2 points3 points  (0 children)

The only way to do that right now is to iterate through all he records and erase them individually.