-
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.
Merge pull request #12 from sistemaseltigre/feature/security-and-profile
feature/security-and-profile
- Loading branch information
Showing
27 changed files
with
1,536 additions
and
151 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 'get_dino_score.g.dart'; | ||
|
||
@BorshSerializable() | ||
class GetScoreArguments with _$GetScoreArguments { | ||
factory GetScoreArguments( | ||
{ | ||
@BU64() required BigInt deterministicId, | ||
@BU32() required int score, | ||
@BU32() required int game, | ||
@BPublicKey() required Ed25519HDPublicKey playerkey, | ||
@BPublicKey() required Ed25519HDPublicKey dinokey, | ||
}) = _GetScoreArguments; | ||
|
||
const GetScoreArguments._(); | ||
|
||
factory GetScoreArguments.fromBorsh(Uint8List data) => | ||
_$GetScoreArgumentsFromBorsh(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,22 @@ | ||
import 'package:borsh_annotation/borsh_annotation.dart'; | ||
import 'package:solana/solana.dart'; | ||
|
||
part 'get_profile_info.g.dart'; | ||
|
||
@BorshSerializable() | ||
class GetProfileArguments with _$GetProfileArguments { | ||
factory GetProfileArguments( | ||
{ | ||
@BU64() required BigInt deterministicId, | ||
@BString() required String nickname, | ||
@BString() required String bio, | ||
@BString() required String status, | ||
@BString() required String uri, | ||
@BPublicKey() required Ed25519HDPublicKey playerkey, | ||
}) = _GetProfileArguments; | ||
|
||
const GetProfileArguments._(); | ||
|
||
factory GetProfileArguments.fromBorsh(Uint8List data) => | ||
_$GetProfileArgumentsFromBorsh(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,17 @@ | ||
import 'package:borsh_annotation/borsh_annotation.dart'; | ||
|
||
part 'put_dino_score.g.dart'; | ||
|
||
@BorshSerializable() | ||
class PutScoreArguments with _$PutScoreArguments { | ||
factory PutScoreArguments( | ||
{ | ||
@BU32() required int game, | ||
@BU32() required int score, | ||
}) = _PutScoreArguments; | ||
|
||
const PutScoreArguments._(); | ||
|
||
factory PutScoreArguments.fromBorsh(Uint8List data) => | ||
_$PutScoreArgumentsFromBorsh(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,20 @@ | ||
import 'package:borsh_annotation/borsh_annotation.dart'; | ||
import 'package:solana/solana.dart'; | ||
|
||
part 'put_profile_info.g.dart'; | ||
|
||
@BorshSerializable() | ||
class PutProfileArguments with _$PutProfileArguments { | ||
factory PutProfileArguments( | ||
{ | ||
@BString() required String nickname, | ||
@BString() required String bio, | ||
@BString() required String status, | ||
@BString() required String uri, | ||
}) = _PutProfileArguments; | ||
|
||
const PutProfileArguments._(); | ||
|
||
factory PutProfileArguments.fromBorsh(Uint8List data) => | ||
_$PutProfileArgumentsFromBorsh(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
Oops, something went wrong.