-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests for revshare changes
- Loading branch information
Showing
6 changed files
with
553 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,63 @@ | ||
package types | ||
|
||
import "math/big" | ||
|
||
type FillForProcess interface { | ||
TakerAddr() string | ||
TakerFeeQuoteQuantums() *big.Int | ||
MakerAddr() string | ||
MakerFeeQuoteQuantums() *big.Int | ||
FillQuoteQuantums() *big.Int | ||
PerpetualId() uint32 | ||
} | ||
|
||
type PerpetualFillForProcess struct { | ||
takerAddr string | ||
takerFeeQuoteQuantums *big.Int | ||
makerAddr string | ||
makerFeeQuoteQuantums *big.Int | ||
fillQuoteQuantums *big.Int | ||
perpetualId uint32 | ||
} | ||
|
||
func (perpetualFillForProcess PerpetualFillForProcess) TakerAddr() string { | ||
return perpetualFillForProcess.takerAddr | ||
} | ||
|
||
func (perpetualFillForProcess PerpetualFillForProcess) TakerFeeQuoteQuantums() *big.Int { | ||
return perpetualFillForProcess.takerFeeQuoteQuantums | ||
} | ||
|
||
func (perpetualFillForProcess PerpetualFillForProcess) MakerAddr() string { | ||
return perpetualFillForProcess.makerAddr | ||
} | ||
|
||
func (perpetualFillForProcess PerpetualFillForProcess) MakerFeeQuoteQuantums() *big.Int { | ||
return perpetualFillForProcess.makerFeeQuoteQuantums | ||
} | ||
|
||
func (perpetualFillForProcess PerpetualFillForProcess) FillQuoteQuantums() *big.Int { | ||
return perpetualFillForProcess.fillQuoteQuantums | ||
} | ||
|
||
func (perpetualFillForProcess PerpetualFillForProcess) PerpetualId() uint32 { | ||
return perpetualFillForProcess.perpetualId | ||
} | ||
|
||
func CreatePerpetualFillForProcess( | ||
takerAddr string, | ||
takerFeeQuoteQuantums *big.Int, | ||
makerAddr string, | ||
makerFeeQuoteQuantums *big.Int, | ||
fillQuoteQuantums *big.Int, | ||
perpetualId uint32, | ||
) PerpetualFillForProcess { | ||
return PerpetualFillForProcess{ | ||
takerAddr: takerAddr, | ||
takerFeeQuoteQuantums: takerFeeQuoteQuantums, | ||
makerAddr: makerAddr, | ||
makerFeeQuoteQuantums: makerFeeQuoteQuantums, | ||
fillQuoteQuantums: fillQuoteQuantums, | ||
perpetualId: perpetualId, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.