Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subgame support #13

Merged
merged 96 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
c4fde43
Add bridge event type
DogLooksGood Dec 21, 2023
3417a11
Add launch_sub_game in Effect API
DogLooksGood Dec 21, 2023
6485413
Update Bridge Event
DogLooksGood Dec 21, 2023
3163fed
Add subgame support
DogLooksGood Dec 23, 2023
10a20f6
Update test helpers, export BridgeEvent type
DogLooksGood Dec 23, 2023
e5af3f2
Bugfix
DogLooksGood Dec 23, 2023
2dceb34
Bugfix
DogLooksGood Dec 23, 2023
caa9c98
Bugfixes
DogLooksGood Dec 24, 2023
df4da80
launch_sub_game receives BorshSerialize
DogLooksGood Dec 24, 2023
0cac06e
Bugfixes
DogLooksGood Dec 24, 2023
279a91b
Update facade for testing subgames
DogLooksGood Dec 25, 2023
e7f88ee
Update dev scripts
DogLooksGood Dec 25, 2023
f1ea2ed
Remove useless files
DogLooksGood Dec 25, 2023
a2683be
Add bridge event to effect
DogLooksGood Dec 25, 2023
aeff19a
Use u64 id in games
DogLooksGood Dec 25, 2023
7de7ade
remove useless flake config
DogLooksGood Dec 25, 2023
fb57b4c
Update SDK
DogLooksGood Dec 25, 2023
af191a9
Minor fixes
DogLooksGood Dec 26, 2023
1373960
Minor fixes, update changelog
DogLooksGood Dec 26, 2023
cfdc852
Bugfixes
DogLooksGood Dec 26, 2023
92c6791
Add EntryType to InitAccount
DogLooksGood Dec 26, 2023
3b7b960
bugfixes
DogLooksGood Dec 26, 2023
7e31507
Add recipient claim in SDK
DogLooksGood Jan 1, 2024
5617d4e
SubGameHandle sends InitState as start
DogLooksGood Jan 1, 2024
936c75a
Add retry limit
DogLooksGood Jan 1, 2024
6a66dfe
refactor handle.rs
DogLooksGood Jan 2, 2024
adb87dd
dev refactor
DogLooksGood Jan 4, 2024
27df059
bugfixes
DogLooksGood Jan 4, 2024
7db0994
bugfixes
DogLooksGood Jan 4, 2024
557221d
Add initializeSub
DogLooksGood Jan 4, 2024
27e4bd8
bugfix
DogLooksGood Jan 4, 2024
60417e7
bugfix
DogLooksGood Jan 4, 2024
06e2bb0
Fix examples
DogLooksGood Jan 5, 2024
041f466
bugfix
DogLooksGood Jan 5, 2024
23edd7e
Bugfix
DogLooksGood Jan 5, 2024
5cc0226
Update GameInfo
DogLooksGood Jan 7, 2024
7262741
Refactor client
DogLooksGood Jan 8, 2024
6991e6f
Fix sdk compile error
DogLooksGood Jan 8, 2024
e655f9d
Update SDK
DogLooksGood Jan 9, 2024
2bef889
Bugfixes
DogLooksGood Jan 11, 2024
a929e07
Add return type for settle_game
DogLooksGood Jan 11, 2024
735e864
Bugfix
DogLooksGood Jan 11, 2024
67dbf4b
Fix validator mode
DogLooksGood Jan 11, 2024
3d029a2
Bugfix
DogLooksGood Jan 11, 2024
f9229c2
Fix pfp loading in SDK
DogLooksGood Jan 12, 2024
d67cba0
Bugfixes
DogLooksGood Jan 12, 2024
f45f83d
Fix link
DogLooksGood Jan 12, 2024
c7fc8e1
Fixes
Jan 31, 2024
a22e950
Add typescript to flake
DogLooksGood Feb 1, 2024
2e7e151
Bugfixes
DogLooksGood Feb 4, 2024
f24d3f6
Bugfixes
DogLooksGood Feb 6, 2024
f764809
Bugfixes
DogLooksGood Feb 11, 2024
61d938e
Remove solana-file-wallet
Feb 12, 2024
fd04f51
Refactor InitAccount
Feb 25, 2024
c3ca736
Fixes to make simple game works again
Feb 27, 2024
1dcad65
Fixes to make subgame creation work
Feb 27, 2024
0d98ab9
Add client-only events
Mar 3, 2024
e36580f
Track players in game context
Mar 4, 2024
a4843c6
Fix subgame initialization
Mar 11, 2024
816056c
Add debug_mode
Mar 11, 2024
f46f8b7
Fix SubGame constructor
Mar 12, 2024
db120c6
Bugfixes
DogLooksGood Mar 24, 2024
d37a6b8
Refactor checkpoint
DogLooksGood Mar 28, 2024
4773299
Bugfixes
DogLooksGood Apr 1, 2024
a247871
Bugfixes
DogLooksGood Apr 2, 2024
3acf96e
Create InitAccount from GameContext
DogLooksGood Apr 2, 2024
26b3107
Bugfixes
DogLooksGood Apr 5, 2024
c73555b
Add priorization fee
DogLooksGood Apr 17, 2024
7707ef8
Add prioritization fee & switch to transaction v0
DogLooksGood Apr 20, 2024
422dd1a
Remove unnecessary queries, update facade transport
DogLooksGood May 9, 2024
e2d1440
Broadcast all historical events in one frame
DogLooksGood Jun 3, 2024
5e2a827
Bugfixes
DogLooksGood Jul 4, 2024
e73502d
bugfixes
DogLooksGood Jul 31, 2024
499bd53
Bugfixes
DogLooksGood Aug 8, 2024
89e781d
Bugfixes
DogLooksGood Aug 10, 2024
df0652b
Bugfixes
DogLooksGood Aug 10, 2024
092b60a
Bugfixes
DogLooksGood Aug 14, 2024
f33251f
Bugfixes
DogLooksGood Aug 31, 2024
a593ac2
Bugfixes
DogLooksGood Sep 1, 2024
103cf62
Bump dependencies, remove mpl-token-metadata
DogLooksGood Sep 4, 2024
7d81a00
Add close-all-games command to CLI
DogLooksGood Sep 5, 2024
b7f44f1
Use subscription for account updates
DogLooksGood Sep 9, 2024
3eafb35
Bump rustc version
DogLooksGood Oct 3, 2024
91989ee
Add local db
DogLooksGood Oct 3, 2024
997391c
Add storage to submitter
DogLooksGood Oct 3, 2024
7ecf690
Save checkpoint partly offchain
DogLooksGood Oct 7, 2024
e93e9cd
Fix game initialization
DogLooksGood Oct 9, 2024
007e71f
Checkpoint refactor
DogLooksGood Oct 10, 2024
bc13659
refactor checkpoint in frontend
DogLooksGood Oct 15, 2024
988ec9c
Bugfixes
DogLooksGood Oct 17, 2024
8ed6c9f
Bugfixes
DogLooksGood Oct 20, 2024
8051d04
Bugfixes
DogLooksGood Oct 29, 2024
93c53a2
Bugfixes
DogLooksGood Oct 29, 2024
e08158e
Fix tests
DogLooksGood Oct 30, 2024
a1c6092
Use NodeJS 18 for CI
DogLooksGood Oct 30, 2024
056106f
Remove packages from flake.nix
DogLooksGood Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: 'npm'
cache-dependency-path: js/package-lock.json

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ test-ledger/
result
.direnv
.blacklist
logs
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@ Race Protocol: A multi-chain infrastructure for asymmetric competitive games

# Master(Unreleased)

## Breaking Changes
- Facade: Argument format updated. Now it receives `-g` for game, and `-b` for bundle.

### Replace addr with id in games
- Now we use `id: u64` instead of `addr: string` in games. The value of `id` is taken from the `access_version` which is incremental and unique in game. This update helps us to improve the performance and reduce the sizes of checkpoints and states.
- API: `Effect::count_players` and `Effect::count_servers` has been removed, use `Effect::count_nodes` to count how many nodes are involved in the randomization.
- SDK: `AppClient.getProfiles` now receives both `addr: string` and `id: bigint`.
- TestKit: Add `TestClient::join`.

## Enhancements
- SDK: Remove dependency `crypto` to support NodeJS runtime.
- CLI: Print `checkpoint` in hex format in command `game-info`.
- TestKit: Add `handle_dispatch_until_no_events` to TestHandler.

## Features
- CLI: Update `publish` command. Now it receives the path to the WASM bundle instead of the Arweave URL to solana metadata.
- Add optional `createProfileIfNeeded` to join options.
- SDK: Add `recipientClaim` and its solana implementation.

## Fixes
- Transactor: Improve the retry mechanism for settle.
Expand Down
Loading
Loading