-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pure JavaScript version of the lib.
- Loading branch information
1 parent
4581326
commit 600dde0
Showing
11 changed files
with
80 additions
and
5 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
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
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,7 @@ | ||
# phaser-sdk | ||
|
||
TON blockchain bindings and utilities for any JavaScript project. | ||
|
||
# Documentation | ||
|
||
Please read the documentation in the official [repository](https://github.com/ton-org/game-engines-sdk). |
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 @@ | ||
{ | ||
"name": "@ton/vanilla-sdk", | ||
"version": "0.0.1-beta.1", | ||
"files": ["./dist"], | ||
"main": "dist/vanilla/src/index.js", | ||
"types": "dist/vanilla/src/index.d.ts", | ||
"scripts": { | ||
"dev": "tsc -p tsconfig.dev.json --watch", | ||
"build": "tsc" | ||
}, | ||
"dependencies": { | ||
"@tonconnect/ui": "^2.0.6", | ||
"@ton/ton": "^13.9.0", | ||
"@orbs-network/ton-access": "^2.3.3", | ||
"@ton-community/assets-sdk": "~0.0.4" | ||
} | ||
} |
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,11 @@ | ||
import {GameFiBase, GameFiInitializationParams} from '../../common/game-fi'; | ||
|
||
export class GameFi extends GameFiBase { | ||
/** | ||
* Setups and creates GameFi instance. | ||
* The instance provides all the needed functionality via various methods. | ||
*/ | ||
public static async create(params: GameFiInitializationParams = {}): Promise<GameFi> { | ||
return new GameFi(await GameFi.createDependencies(params)); | ||
} | ||
} |
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,5 @@ | ||
export * from '../../common/content-resolver'; | ||
export * from '../../common/external'; | ||
export * from '../../common/game-fi'; | ||
export * from '../../common/interfaces'; | ||
export * from './game-fi'; |
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,3 @@ | ||
{ | ||
"extends": ["./tsconfig.json", "../../tsconfig.dev.json"] | ||
} |
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,7 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./dist" | ||
}, | ||
"include": ["./src"] | ||
} |
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