Skip to content

Commit

Permalink
skip bin accountst to serum instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
jubeless committed Nov 17, 2020
1 parent bba400d commit 68f8c70
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions serum/instruction.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ type InstructionInitializeMarket struct {
VaultSignerNonce uint64
QuoteDustThreshold uint64

Accounts *InitializeMarketAccounts `bin="_"`
Accounts *InitializeMarketAccounts `bin="-"`
}

func (i *InstructionInitializeMarket) setAccounts(accounts []solana.PublicKey) error {
Expand Down Expand Up @@ -126,7 +126,7 @@ type InstructionNewOrder struct {
OrderType uint32
ClientID uint64

Accounts *NewOrderAccounts `bin="_"`
Accounts *NewOrderAccounts `bin="-"`
}

func (i *InstructionNewOrder) setAccounts(accounts []solana.PublicKey) error {
Expand Down Expand Up @@ -165,7 +165,7 @@ type MatchOrderAccounts struct {
type InstructionMatchOrder struct {
Limit uint16

Accounts *MatchOrderAccounts `bin="_"`
Accounts *MatchOrderAccounts `bin="-"`
}

func (i *InstructionMatchOrder) setAccounts(accounts []solana.PublicKey) error {
Expand Down Expand Up @@ -195,7 +195,7 @@ type ConsumeEventsAccounts struct {
type InstructionConsumeEvents struct {
Limit uint16

Accounts *ConsumeEventsAccounts `bin="_"`
Accounts *ConsumeEventsAccounts `bin="-"`
}

func (i *InstructionConsumeEvents) setAccounts(accounts []solana.PublicKey) error {
Expand Down Expand Up @@ -229,7 +229,7 @@ type InstructionCancelOrder struct {
OpenOrders solana.PublicKey
OpenOrderSlot uint8

Accounts *CancelOrderAccounts `bin="_"`
Accounts *CancelOrderAccounts `bin="-"`
}

func (i *InstructionCancelOrder) setAccounts(accounts []solana.PublicKey) error {
Expand All @@ -251,7 +251,7 @@ type SettleFundsAccounts struct {
OpenOrders solana.AccountMeta
Owner solana.AccountMeta
CoinVault solana.AccountMeta
PVVault solana.AccountMeta
PCVault solana.AccountMeta
CoinWallet solana.AccountMeta
PCWallet solana.AccountMeta
Signer solana.AccountMeta
Expand All @@ -260,7 +260,7 @@ type SettleFundsAccounts struct {
}

type InstructionSettleFunds struct {
Accounts *SettleFundsAccounts `bin="_"`
Accounts *SettleFundsAccounts `bin="-"`
}

func (i *InstructionSettleFunds) setAccounts(accounts []solana.PublicKey) error {
Expand All @@ -272,7 +272,7 @@ func (i *InstructionSettleFunds) setAccounts(accounts []solana.PublicKey) error
OpenOrders: solana.AccountMeta{accounts[1], false, true},
Owner: solana.AccountMeta{accounts[2], true, false},
CoinVault: solana.AccountMeta{accounts[3], false, true},
PVVault: solana.AccountMeta{accounts[4], false, true},
PCVault: solana.AccountMeta{accounts[4], false, true},
CoinWallet: solana.AccountMeta{accounts[5], false, true},
PCWallet: solana.AccountMeta{accounts[6], false, true},
Signer: solana.AccountMeta{accounts[7], false, false},
Expand Down

0 comments on commit 68f8c70

Please sign in to comment.