In serum-js README the payer is the public key address that holds the SPL token (in the case of bid order placement it will hold quote token), however, in crank the payer means the wallet account. See here.
My understanding is based on Account (solana-web3 type) generally correspond to Keypair(solana-rust-sdk).
And PublicKey (solana-web3 type) correspond to Pubkey (solana-rust-sdk).
It will be nice if the naming can be unified to avoid some confusion.
In
serum-js
README thepayer
is the public key address that holds the SPL token (in the case of bid order placement it will hold quote token), however, incrank
thepayer
means the wallet account. See here.My understanding is based on
Account
(solana-web3 type) generally correspond toKeypair
(solana-rust-sdk). AndPublicKey
(solana-web3 type) correspond toPubkey
(solana-rust-sdk).It will be nice if the naming can be unified to avoid some confusion.