Closed spacesailor24 closed 2 weeks ago
solanaNetwork is the Solana network to connect to
Let's add it to the SolanaLitTransaction
interface? Then it can be part of the unsigned transaction params?
Also the Linter is failing, please run yarn prettier
NOTE Before this PR is merged, we need to pin the bundled Lit Action code via Lit's official Pinata account (or similar), as they are currently pinned via my personal Pinata account
Adds two exported
const
s fromwrapped-keys
package:signTransactionWithSolanaEncryptedKeyLitActionIpfsCid
serializedTransaction
by required a serialized transaction, we can support any Solana transaction signing (i.e. transfers or contract executions)broadcast
determines whether or not the signed transaction is submitted to thesolanaNetwork
solanaNetwork
is the Solana network to connect tomainnet-beta
,testnet
, anddevnet
signMessageWithSolanaEncryptedKeyLitActionIpfsCid
messageToSign
can be any string and is not expected to be encoded any specific way (it will be converted to aBuffer
before signing within the Lit Action)I tested that the sign tx and submit Lit Action works manually by providing it a testnet private key to the
testSignTransactionWithSolanaEncryptedKey
test and enabledbroadcast
(tx receipt)For organizational purposes, I renamed the Eth Lit Actions file to
ethereum.ts
and moved it under a newlitActions
directory. The Solana Lit Actions are located underlitActions/Solana