2024年7月30日火曜日

古いSPLで作ったトークンをtoken-2022に置き換えることはできるのか?

<結論>

そもそもメインネットベータに統合されるのが2024年の冬なので、考えても意味ない!


spl-tokenのCLIで普通に作ったトークンがあるとする。

これにmetadataをぶっ込みたい。

githubのマージはいつの間にか対応しなくなっていた・・・

なので、旧SPLで作ったトークンをmetadata対応のプログラムに置き換えたいのだが・・・

仕組み的にできるのか?

できそうになさげだが・・・

プロトコルバージョン(legacy, 0)とか関係ないよな。



旧SPL: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA


https://spl.solana.com/token-2022


引用:


https://recruit.gmo.jp/engineer/jisedai/blog/solana-token-2022-program-metadata/


<応用>

現状でmetadataは以下の通り。

cargo add mpl-token-metadata

https://developers.metaplex.com/token-metadata/getting-started/rust



2024年7月24日水曜日

solanaのRPCやバリデーターの便利な奴

solv MEV

ダウンタイムなしで自動更新はどうやってやるんだ?

絶対ほったらかしになるもん。

https://solv.epics.dev/ja/

 


ハードウェア要件

https://docs.solanalabs.com/operations/requirements#hardware-recommendations

バリデーターとRPCを同時にやるにはメモリ512G以上欲しい。



solana財団のオススメするサーバ

https://solana.org/server-program


phantom walletで作ったウォレットをsolana CLIで使えるようにする

変換しないと使えない・・・ とりあえずpythonで pip install base58
import base58
import json

# Phantom Walletからコピーしたプライベートキー
private_key_base58 = "Phantom Walletから取得したプライベートキーをここに貼り付けてください"

# Base58エンコードされたプライベートキーをデコード
private_key_bytes = base58.b58decode(private_key_base58)

# プライベートキーをリスト形式に変換
private_key_list = list(private_key_bytes)

# JSONファイルに保存
with open('my_wallet.json', 'w') as f:
    json.dump(private_key_list, f)

print("プライベートキーがmy_wallet.jsonに保存されました。")

2024年7月14日日曜日

surrealistのちょっとしたメモ

 ローカルとかDockerやDocker in Dockerでsurrealdbを起動したとする。


localhost:8000にアクセスすると、

https://surrealdb.com/surrealist

にリダイレクトされ、

Open in your browserからローカルにトンネリングされる。


なかなか便利だけど恐ろしい仕組みだが、firefoxだと動かないので注意!



2024年7月12日金曜日

FTXの返還申し込みが開始

米国オプションとバハマオプションが選べるらしいが・・・何も選べなかった・・・

あと10万円ぐらい入ってたはずなのに、評価額が2万円以下。

ORBSの値段そんなに変わってないハズなんだけどな・・・

FTX-PERPが0個なのが問題な気がする・・・




FTX Digital Markets Ltd. (In Official Liquidation)
LENNOX PATON CORPORATE SERVICES LIMITED, BAYSIDE EXECUTIVE PARK, BUILDING 3, WEST BAY STREET & BLAKE ROAD, P.O. BOX N-4875
NASSAU, N.P., THE BAHAMAS
Dear Customer,

Customers of FTX.com (“Dotcom Customers”) should have recently received a joint letter from the US Debtors and Joint Official Liquidators (“JOLs”) of FTX Digital Markets Ltd. (In Official Liquidation) inviting them to choose whether to make a “Bahamas Opt-in election”.

Our records indicate that you have not yet commenced the process to make a claim in the FTX Digital Markets Ltd. liquidation (the “Bahamas Process”). If you intend to participate in the Bahamas Process, please ensure you submit your Proof of Debt and Election Form via following the instructions on the FTX Digital Claim Portal (https://digitalmarketsclaim.pwc.com) before the Election Deadline of 4:00PM Prevailing Eastern Time 16 August 2024.

Please note that customers are able to make their choice between participating in either the Bahamas Process or the US Process, however they cannot participate in both.

If you have any questions or issues submitting your claim, please email gbl_fdm_creditors@pwc.com or gbl_fdm_customers@pwc.com. 

On behalf of the Joint Official Liquidators of FTX Digital Markets Ltd.

Note: Please do not respond to this email as the mailbox is not monitored. Should you wish to contact us please use one of the dedicated email addresses included on the case website (https://www.pwc.com/FTX). Communications from these mailboxes are not junk emails. If you were expecting communication from FTX Digital and have not received it, please check the junk/spam mail folder of your inbox or contact us again using one of the dedicated email addresses. 

rust on nails

vscodeまたはcursorのコマンドパレット











Dev Container上でDocker Composeを動かす

Dev Container上でDocker Composeを動かすことは可能です: Dev Containerの設定で、Docker in Docker(DinD)またはDocker outside of Docker(DooD)を使用できます。 DinDの場合、Dev Container内に完全に独立したDocker環境が構築されます。 DooDの場合、ホストのDockerデーモンを使用します。 オヌヌメ!!! https://rust-on-nails.com/docs/ide-setup/dev-env-as-code/ VSCODE::setting.json

"remote.containers.defaultExtensions": [ "ms-vscode-remote.remote-containers" ] Windows WSL Dev Container Docker Compose Network App Container DB Container

2024年7月7日日曜日

cloudflareでngrokと同じ事をする

cloudflare.comにて

Networks -> Tunnels


# WARP入れる

https://pkg.cloudflareclient.com/#ubuntu