Skip to content

Commit

Permalink
feat: Improve program id value using env
Browse files Browse the repository at this point in the history
  • Loading branch information
dnielopez committed Oct 14, 2023
1 parent f488582 commit 540e6ea
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/pages/mini-games/up/down.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class DownGame extends Forge2DGame with TapDetector {
}

newBoxAndScore() {
score += 10;
score += 1;
scoreText.text = 'Score: ${score.toString().padLeft(3, '0')}';
add(Box(newBoxAndScore, finishGame));
}
Expand Down Expand Up @@ -413,7 +413,7 @@ class _GameWidgetDownState extends State<GameWidgetDown> {
mainWalletKey!,
);

const programId = '9V9ttZw7WTYW78Dx3hi2hV7V76PxAs5ZwbCkGi7qq8FW';
final programId = dotenv.env['PROGRAM_ID'].toString();
final systemProgramId =
solana.Ed25519HDPublicKey.fromBase58(solana.SystemProgram.programId);

Expand Down
2 changes: 1 addition & 1 deletion lib/pages/my-dinogrow/my_dinogrow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class _MydinogrowScreenState extends State<MydinogrowScreen> {
mainWalletKey!,
);

const programId = '9V9ttZw7WTYW78Dx3hi2hV7V76PxAs5ZwbCkGi7qq8FW';
final programId = dotenv.env['PROGRAM_ID'].toString();

final programIdPublicKey =
solana.Ed25519HDPublicKey.fromBase58(programId);
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/ranking/ranking.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class _RankingScreenState extends State<RankingScreen> {
websocketUrl: Uri.parse(dotenv.env['QUICKNODE_RPC_WSS'].toString()),
);

const programId = '9V9ttZw7WTYW78Dx3hi2hV7V76PxAs5ZwbCkGi7qq8FW';
final programId = dotenv.env['PROGRAM_ID'].toString();

// Obtener todas las cuentas del programa
final accounts = await client.rpcClient.getProgramAccounts(
Expand Down
13 changes: 13 additions & 0 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
PODS:
- connectivity_plus (0.0.1):
- FlutterMacOS
- ReachabilitySwift
- flutter_secure_storage_macos (6.1.1):
- FlutterMacOS
- FlutterMacOS (1.0.0)
- ReachabilitySwift (5.0.0)
- url_launcher_macos (0.0.1):
- FlutterMacOS

DEPENDENCIES:
- connectivity_plus (from `Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos`)
- flutter_secure_storage_macos (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos`)
- FlutterMacOS (from `Flutter/ephemeral`)
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)

SPEC REPOS:
trunk:
- ReachabilitySwift

EXTERNAL SOURCES:
connectivity_plus:
:path: Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos
flutter_secure_storage_macos:
:path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos
FlutterMacOS:
Expand All @@ -19,8 +30,10 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos

SPEC CHECKSUMS:
connectivity_plus: 18d3c32514c886e046de60e9c13895109866c747
flutter_secure_storage_macos: d56e2d218c1130b262bef8b4a7d64f88d7f9c9ea
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95

PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dinogrow
description: 2D blockchain game about growing dinosaurs.
version: 1.0.0+1
version: 1.0.0+3

environment:
sdk: ">=3.0.2 <4.0.0"
Expand Down

0 comments on commit 540e6ea

Please sign in to comment.