-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
- Loading branch information
1 parent
36fab89
commit c371a78
Showing
8 changed files
with
906 additions
and
316 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (C) 2024, Ava Labs, Inc. All rights reserved. | ||
// See the file LICENSE for licensing terms. | ||
|
||
package dsmrtest | ||
|
||
import ( | ||
"github.com/ava-labs/avalanchego/ids" | ||
|
||
"github.com/ava-labs/hypersdk/codec" | ||
) | ||
|
||
type Tx struct { | ||
ID ids.ID `serialize:"true"` | ||
Expiry int64 `serialize:"true"` | ||
Sponsor codec.Address `serialize:"true"` | ||
} | ||
|
||
func (t Tx) GetID() ids.ID { | ||
return t.ID | ||
} | ||
|
||
func (t Tx) GetExpiry() int64 { | ||
return t.Expiry | ||
} | ||
|
||
func (t Tx) GetSponsor() codec.Address { | ||
return t.Sponsor | ||
} |
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.