エラー:プログラムの展開に失敗しましたトランザクション シミュレーションに失敗しました:命令 0 の処理エラー:アカウント データが命令に対して小さすぎます [3 つのログ メッセージ]
プログラムに変更を加えた場合は、プログラムのサイズを拡張する必要があります。これは CLI バージョン 1.18 から可能です > この実行を修正するには solana プログラム extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/solana/id...
Raydiumの売り指示ではターゲット注文はオプションですか?
はい、amm_target_orders アカウントはコメント化されているため、swap_base_out 命令を呼び出す必要はありません。 Raydium AMM はオープンソースであるため、ソース コードを通じてこれを確認できます。 ... amm_open_orders_info = n...
Rust フロントでアカウントをデシリアライズするにはどうすればよいですか?
#[max_len(32)] が欠落している場合の問題は、シリアル化されたアカウントには 32 バイトにするために 0 バイトが埋め込まれた文字列が含まれているのに対し、逆シリアル化構造体は文字列が実際に長くなるまでのバイト数だけを逆シリアル...
モジュール式マルチプログラム システムの Solana/Anchor 認証のベスト プラクティス (プログラム間での役割の共有、CPI)
リポジトリは非公開のようです: どのオプションにも長所と短所があるため、ハイブリッド実装を作成して軽減できます。採用できるマルチプログラム アプリケーションのいくつかを以下に示します。 Marinade Finance: 特定のドメインに対...
Raydium での Mut 制約エラー
100 個の LLM を切り替えて苦労した結果、ついに問題が見つかりました。 問題は、私の契約自体が Launchlab の古い IDL から入力アカウント タイプを生成していて、writable: true が設定されていなかったことです。 私は、Solana がアカ...
ピノキオの新しいバージョンを手伝ってください
Pinocchio には、最新バージョンまたはどのバージョンでも、これらを検証するためのヘルパー関数がありません。これをブルーシフトのために行っていると述べたので、そこでもこれらを手動で実装しています。
命令フォールバックが見つかりません。エラー番号: 101。エラー メッセージ: フォールバック関数はサポートされていません。
Ademolaが述べたように、トランザクションのデータに命令識別子を提供する必要があります。 できることは、命令識別子をフェッチし、それをデータの最初の 8 バイトに追加することです。 Rustのフェッチ命令識別子 pub fn sighash(名前空...
26 の未確認トランザクションのチェーンは、Bitcoin Core 31.0 のウォレットによって禁止されていますか?
mempool では 25 個の未確認トランザクションを超えるチェーンを持つことができますが、ウォレットでは依然として 25 個のトランザクション チェーン制限が適用されます。 bitcoind -help-debug を実行すると、次のようになります。 ......
INIT_CODE_HASH とは何ですか、DeFi スマート コントラクトでどのように計算/使用されますか
初期コードのハッシュは、基本的にはコントラクトのバイトコードの keccak256 ハッシュです。 初期化コードの使用法 アドレス計算はハッシュに依存するため、初期化コードのハッシュが必要です 初期化コード。初期化コードは、実行時に...
なぜ集中流動性が資本効率を高めるのでしょうか?
流動性が集中すると、同じ量のトークンを投資してもより深い流動性が生まれるため、資本効率が高くなります。 Uniswap のブログより: 流動性を集中させることで、LP は指定された価格範囲内で v2 と同じ流動性の深さを提供しながら、リ...
カーブ投票エスクローの説明
Curve DAO ホワイトペーパーは、コードを理解するのに非常に役立ちました。ぜひ、このホワイトペーパーから始めることをお勧めします。 https://curve.fi/files/CurveDAO.pdf 具体的にはこの部分:
What is DeFi decentralized finance?
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 may prefer to call D...
Why do these two Ethereum transactions have different gas usages? Can't explain it from the GETH EVM debug traces
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 zero than non zero to...
Can ACINQ (Phoenix wallet peer) steal my funds during a recovery?
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 state of the channel in...
Is it safe to use a private key for an existing singlesig wallet as one of the keys for a new multisig wallet?
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 better to generate sepa...
What does it mean that the security of Bitcoin public keys and 256-bit ECDSA is 128 bits?
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), and therefore privat...
Can a blockchain's transactions be reversed?
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 here: the Ethereum blo...
Receiving donation on a bitcoin address and security issues of reusing the same address
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 same address for all tr...
How can vulnerabilites in bitcoin be responsibly reported?
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 defunct. If you're using t...
Is 24 words seed safer than 12 words in terms of bruteforcing the private key
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 efficient algorithm...