@@ -18,6 +18,7 @@ import (
1818 "errors"
1919 "fmt"
2020
21+ "github.com/blinklabs-io/dingo/database/types"
2122 "github.com/btcsuite/btcd/btcutil/bech32"
2223)
2324
@@ -61,7 +62,7 @@ type Deregistration struct {
6162 ID uint `gorm:"primarykey"`
6263 CertificateID uint `gorm:"index"`
6364 AddedSlot uint64
64- Amount int64
65+ Amount types. Uint64
6566}
6667
6768func (Deregistration ) TableName () string {
@@ -73,7 +74,7 @@ type Registration struct {
7374 ID uint `gorm:"primarykey"`
7475 CertificateID uint `gorm:"index"`
7576 AddedSlot uint64
76- DepositAmount uint64
77+ DepositAmount types. Uint64
7778}
7879
7980func (Registration ) TableName () string {
@@ -108,7 +109,7 @@ type StakeRegistration struct {
108109 CertificateID uint `gorm:"index"`
109110 ID uint `gorm:"primarykey"`
110111 AddedSlot uint64
111- DepositAmount uint64
112+ DepositAmount types. Uint64
112113}
113114
114115func (StakeRegistration ) TableName () string {
@@ -121,7 +122,7 @@ type StakeRegistrationDelegation struct {
121122 CertificateID uint `gorm:"index"`
122123 ID uint `gorm:"primarykey"`
123124 AddedSlot uint64
124- DepositAmount uint64
125+ DepositAmount types. Uint64
125126}
126127
127128func (StakeRegistrationDelegation ) TableName () string {
@@ -148,7 +149,7 @@ type StakeVoteRegistrationDelegation struct {
148149 CertificateID uint `gorm:"index"`
149150 ID uint `gorm:"primarykey"`
150151 AddedSlot uint64
151- DepositAmount uint64
152+ DepositAmount types. Uint64
152153}
153154
154155func (StakeVoteRegistrationDelegation ) TableName () string {
@@ -173,7 +174,7 @@ type VoteRegistrationDelegation struct {
173174 CertificateID uint `gorm:"index"`
174175 ID uint `gorm:"primarykey"`
175176 AddedSlot uint64
176- DepositAmount uint64
177+ DepositAmount types. Uint64
177178}
178179
179180func (VoteRegistrationDelegation ) TableName () string {
0 commit comments