// NewHistoryAccountResource creates a new resource from a db.HistoryAccountRecord
func NewHistoryAccountResource(in db.HistoryAccountRecord) HistoryAccountResource {
	return HistoryAccountResource{
		ID:          in.Address,
		PagingToken: in.PagingToken(),
		Address:     in.Address,
	}
}
func (this *HistoryAccount) Populate(ctx context.Context, row db.HistoryAccountRecord) {
	this.ID = row.Address
	this.PT = row.PagingToken()
	this.AccountID = row.Address
}