resolver picker
This commit is contained in:
@@ -21,15 +21,15 @@ type GetRpc = Rpc<GetAccountInfoApi>
|
||||
// 8: listing (32)
|
||||
// 40: buyer (32)
|
||||
// 72: seller (32)
|
||||
// 104: resolver (32)
|
||||
// 136: paymentCurrency — Sol variant = 1 byte tag + 0 data = 1 byte total
|
||||
// 137: amount (8)
|
||||
// 145: escrowAccount (32)
|
||||
// 104: resolver Option<Pubkey> = 1 byte tag + 32 bytes = 33 bytes
|
||||
// 137: paymentCurrency — Sol variant = 1 byte tag + 0 data = 1 byte total
|
||||
// 138: amount (8)
|
||||
// 146: escrowAccount (32)
|
||||
const LISTING_OFFSET = 8n
|
||||
const BUYER_OFFSET = 40n
|
||||
// escrowAccount offset is only valid for Sol-currency orders.
|
||||
// SPL orders (currently rejected by the program with SplNotImplemented) would sit at offset 178.
|
||||
const ESCROW_ACCOUNT_OFFSET = 145n
|
||||
// SPL orders (currently rejected by the program with SplNotImplemented) would sit at offset 179.
|
||||
const ESCROW_ACCOUNT_OFFSET = 146n
|
||||
|
||||
type RawGpaResult = Array<{
|
||||
pubkey: Address
|
||||
|
||||
Reference in New Issue
Block a user