エラー:プログラムの展開に失敗しましたトランザクション シミュレーションに失敗しました:命令 0 の処理エラー:アカウント データが命令に対して小さすぎます [3 つのログ メッセージ] ↗
プログラムに変更を加えた場合は、プログラムのサイズを拡張する必要があります。これは CLI バージョン 1.18 から可能です > この実行を修正するには solana プログラム extend PROGRAM_ADDRESS_HERE 20000 -u d -k...
プログラムに変更を加えた場合は、プログラムのサイズを拡張する必要があります。これは CLI バージョン 1.18 から可能です > この実行を修正するには solana プログラム extend PROGRAM_ADDRESS_HERE 20000 -u d -k...
はい、amm_target_orders アカウントはコメント化されているため、swap_base_out 命令を呼び出す必要はありません。 Raydium AMM はオープンソースであるため、ソース コードを通じてこれを確認できます。 ... amm_...
#[max_len(32)] が欠落している場合の問題は、シリアル化されたアカウントには 32 バイトにするために 0 バイトが埋め込まれた文字列が含まれているのに対し、逆シリアル化構造体は文字列が実際に長くなるまでのバイ...
リポジトリは非公開のようです: どのオプションにも長所と短所があるため、ハイブリッド実装を作成して軽減できます。採用できるマルチプログラム アプリケーションのいくつかを以下に示します。 Marinade Finance:...
100 個の LLM を切り替えて苦労した結果、ついに問題が見つかりました。 問題は、私の契約自体が Launchlab の古い IDL から入力アカウント タイプを生成していて、writable: true が設定されていなかったことです。...
Pinocchio には、最新バージョンまたはどのバージョンでも、これらを検証するためのヘルパー関数がありません。これをブルーシフトのために行っていると述べたので、そこでもこれらを手動で実装しています。
Ademolaが述べたように、トランザクションのデータに命令識別子を提供する必要があります。 できることは、命令識別子をフェッチし、それをデータの最初の 8 バイトに追加することです。 Rustのフェッチ命令識別子 p...
mempool では 25 個の未確認トランザクションを超えるチェーンを持つことができますが、ウォレットでは依然として 25 個のトランザクション チェーン制限が適用されます。 bitcoind -help-debug を実行すると、次の...
初期コードのハッシュは、基本的にはコントラクトのバイトコードの keccak256 ハッシュです。 初期化コードの使用法 アドレス計算はハッシュに依存するため、初期化コードのハッシュが必要です 初期化コード。初期...
流動性が集中すると、同じ量のトークンを投資してもより深い流動性が生まれるため、資本効率が高くなります。 Uniswap のブログより: 流動性を集中させることで、LP は指定された価格範囲内で v2 と同じ流動性の深...
Curve DAO ホワイトペーパーは、コードを理解するのに非常に役立ちました。ぜひ、このホワイトペーパーから始めることをお勧めします。 https://curve.fi/files/CurveDAO.pdf 具体的にはこの部分:
Decentralized Finance (DeFi) is the movement that leverages decentralized networks to transform old financial products into trustless and transparent protocols that run without intermediaries. Some...
One of the reason for the gas cost not being the same would be that one account did not have any usdc before the transaction and the other already had some. It cost more gas to set a 0 value to non ze...
Nothing. If you have lost the last state and are recovering it from your peer then you are trusting it, no matter if it's encrypted or not. They could lie and continue operating (or close) from a stat...
The single-sig wallet will still work. Each key can be used in multiple wallets (singlesig or multisig) without interfering with the others. However, for a more secure multisig setup, it's usually bet...
What does it mean that the security of 256-bit ECDSA, and therefore Bitcoin keys, is 128 bits? I mean, if I have approximately 2^256 possible points on the elliptic curve (thus possible public keys),...
No, as far as we know, Ethereum transactions cannot be reversed. The DAO hack exploited a badly coded smart contract. The smart contract runs on top of Ethereum, so there are two layers involved he...
For a blog that only receives occasional small amounts you probably shouldn't worry too much about it. However, if you plan to scale up, here are some things to consider: One issue with using the sam...
Information on current (ie, not past/public/resolved) security issues should be sent to the private [email protected] mailing list. The SourceForge list is now obsolete and defunc...
Regardless of whether you have a passphrase or not 12 words is just as secure as 24 words because the resulting public key will still require 2^128 iterations to compute its private key using the most...