mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
18 lines
248 B
Go
18 lines
248 B
Go
package wallet
|
|
|
|
import (
|
|
"math/big"
|
|
)
|
|
|
|
type Monetary struct {
|
|
Amount *big.Int `json:"amount"`
|
|
Asset string `json:"asset"`
|
|
}
|
|
|
|
func NewMonetary(amount *big.Int, asset string) Monetary {
|
|
return Monetary{
|
|
Amount: amount,
|
|
Asset: asset,
|
|
}
|
|
}
|