Readonly
assetsOptional
Readonly
merchantReadonly
senderReadonly
walletSend jetton to merchant wallet address (in-game shop).
Send TON to merchant wallet address (in-game shop).
Call connectWallet programmatically in case you are not going to use TonConnectUI provided UI or game engine provided button and you draw your own UI.
Creates the connect button as ConnectWalletButton
instance and adds it to the passed scene.
ConnectWalletButton
is child class of Phaser.GameObjects.Container
.
It's possible to interact with the button using Container API, like changing position setPosition
.
Open Jetton contract.
Open Jetton Wallet contract.
Open NFT collection contract.
Open NFT contract.
Get NFT item from collection using its index.
Open NFT sale contract.
Open SBT collection contract.
Send jetton to other wallet address.
Send TON to other wallet address.
Static
Protected
addressStatic
createSetups and creates GameFi instance. The instance provides all the needed functionality via various methods.
Static
Protected
createStatic
Protected
createPrepares dependencies to game engine implementations use it for create
method.
These dependencies will be used to create an GameFi instance further.
Static
Protected
isGenerated using TypeDoc
GameFiBase is a parent for every implementation of GameFi. Game engine specific implementations like Phaser only needs to define its own
create
andcreateConnectButton
methods.