-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36a822e
commit adb5d07
Showing
7 changed files
with
197 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'package:borsh_annotation/borsh_annotation.dart'; | ||
import 'package:solana/solana.dart'; | ||
|
||
part 'dino_game_info.g.dart'; | ||
|
||
|
||
@BorshSerializable() | ||
class DinoGameArguments with _$DinoGameArguments { | ||
factory DinoGameArguments( | ||
{ | ||
@BU64() required BigInt score, | ||
@BU64() required BigInt game, | ||
@BPublicKey() required Ed25519HDPublicKey playerPubkey, | ||
@BPublicKey() required Ed25519HDPublicKey dinoPubkey, | ||
|
||
}) = _DinoGameArguments; | ||
|
||
const DinoGameArguments._(); | ||
|
||
factory DinoGameArguments.fromBorsh(Uint8List data) => | ||
_$DinoGameArgumentsFromBorsh(data); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,21 @@ | ||
import 'package:borsh_annotation/borsh_annotation.dart'; | ||
import 'package:solana/solana.dart'; | ||
|
||
part 'dino_score_info.g.dart'; | ||
|
||
|
||
@BorshSerializable() | ||
class DinoScoreArguments with _$DinoScoreArguments { | ||
factory DinoScoreArguments( | ||
{ | ||
@BU64() required BigInt score, | ||
@BU32() required int gamescore, | ||
@BPublicKey() required Ed25519HDPublicKey playerPubkey, | ||
@BPublicKey() required Ed25519HDPublicKey dinoPubkey, | ||
}) = _DinoScoreArguments; | ||
|
||
const DinoScoreArguments._(); | ||
|
||
factory DinoScoreArguments.fromBorsh(Uint8List data) => | ||
_$DinoScoreArgumentsFromBorsh(data); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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