MCPcopy Create free account

hub / github.com/FuelLabs/sway-farm / functions

Functions92 in github.com/FuelLabs/sway-farm

↓ 15 callersFunctionupdatePageNum
()
frontend/src/components/Game.tsx:128
↓ 5 callersFunctionuseTransaction
()
frontend/src/hooks/useTransaction.ts:4
↓ 4 callersFunctiongetRecaptchaToken
()
frontend/src/hooks/usePaymaster.ts:40
↓ 3 callersFunctiongetBalance
()
frontend/src/components/show/ShowCoins.tsx:24
↓ 3 callersFunctionupdatePlayerPosition
( side: "left" | "center" | "right", position: Vector3 )
frontend/src/components/Player.tsx:405
↓ 2 callersFunctionconvertTime
(input: BN)
frontend/src/constants.ts:71
↓ 2 callersFunctioncreatePlayerWithoutGasStation
()
frontend/src/components/NewPlayer.tsx:92
↓ 2 callersFunctiondecodePosition
(encoded: BN)
frontend/src/components/Player.tsx:75
↓ 2 callersFunctionencodePosition
(value: number)
frontend/src/components/Player.tsx:64
↓ 2 callersFunctionhandlePlant
(tileIndex: number)
frontend/src/components/modals/PlantModal.tsx:177
↓ 2 callersFunctionharvestItem
(tileIndex: number)
frontend/src/components/modals/HarvestModal.tsx:179
↓ 2 callersFunctiononHarvestSuccess
(position: number)
frontend/src/components/Game.tsx:154
↓ 2 callersFunctionupdateTileState
()
frontend/src/components/GardenTile.tsx:49
↓ 1 callersFunctionbuySeeds
()
frontend/src/components/modals/BuySeeds.tsx:224
↓ 1 callersFunctionbuyWithoutGasStation
()
frontend/src/components/modals/BuySeeds.tsx:58
↓ 1 callersFunctioncheckIfAtMarket
()
frontend/src/components/Player.tsx:477
↓ 1 callersFunctioncheckIfInGarden
()
frontend/src/components/Player.tsx:464
↓ 1 callersFunctioncheckTiles
()
frontend/src/components/Player.tsx:422
↓ 1 callersFunctionconvertTaiTime
(num: string)
frontend/src/constants.ts:77
↓ 1 callersFunctioncopyToClipboard
(text: string)
frontend/src/components/show/WalletInfo.tsx:16
↓ 1 callersFunctioncreatePlayerWithGasStation
()
frontend/src/components/NewPlayer.tsx:132
↓ 1 callersFunctiongetAssetId
()
frontend/src/App.tsx:65
↓ 1 callersFunctiongetBalance
()
frontend/src/hooks/useWalletFunds.ts:13
↓ 1 callersFunctiongetPlantedSeeds
()
frontend/src/components/Garden.tsx:29
↓ 1 callersFunctiongetPlayerInfo
()
frontend/src/components/Game.tsx:84
↓ 1 callersFunctiongetTruncatedAddress
(address: string)
frontend/src/components/show/WalletInfo.tsx:9
↓ 1 callersFunctionhandleNewPlayer
()
frontend/src/components/NewPlayer.tsx:197
↓ 1 callersFunctionharvestWithoutGasStation
(tileIndex: number)
frontend/src/components/modals/HarvestModal.tsx:74
↓ 1 callersFunctionloadPosition
()
frontend/src/components/Player.tsx:346
↓ 1 callersFunctionmovePlayer
( dl: number, // eslint-disable-next-line @typescript-eslint/no-explicit-any state: any, mobil
frontend/src/components/Player.tsx:489
↓ 1 callersFunctiononConnectPress
()
frontend/src/components/home/Home.tsx:18
↓ 1 callersFunctionplantWithoutGasStation
(tileIndex: number)
frontend/src/components/modals/PlantModal.tsx:70
↓ 1 callersFunctionsavePosition
()
frontend/src/components/Player.tsx:161
↓ 1 callersFunctionsellItems
()
frontend/src/components/modals/SellItem.tsx:183
↓ 1 callersFunctionsellWithoutGasStation
()
frontend/src/components/modals/SellItem.tsx:62
↓ 1 callersFunctionupdateCameraPosition
()
frontend/src/components/Player.tsx:393
↓ 1 callersFunctionuseGaslessWalletSupported
()
frontend/src/constants.ts:99
↓ 1 callersFunctionusePaymaster
()
frontend/src/hooks/usePaymaster.ts:32
↓ 1 callersFunctionwaitForTransaction
()
frontend/src/components/modals/BuySeeds.tsx:234
↓ 1 callersFunctionwaitForTransaction
()
frontend/src/components/modals/PlantModal.tsx:187
↓ 1 callersFunctionwaitForTransaction
()
frontend/src/components/modals/HarvestModal.tsx:189
↓ 1 callersFunctionwaitForTransaction
()
frontend/src/components/modals/SellItem.tsx:191
FunctionApp
()
frontend/src/App.tsx:25
FunctionBackground
()
frontend/src/components/Background.tsx:3
FunctionBuySeeds
({ contract, updatePageNum, setCanMove, farmCoinAssetID, onBuySuccess, lastETHResolvedOutput, is
frontend/src/components/modals/BuySeeds.tsx:21
FunctionCamera
({ playerPosition, isMobile }: CameraProps)
frontend/src/components/Camera.tsx:11
FunctionCustomErrorIcon
()
frontend/src/components/toast/ToastIcons.tsx:18
FunctionCustomSuccessIcon
()
frontend/src/components/toast/ToastIcons.tsx:1
FunctionFaucetingModal
({ isOpen }: FaucetingModalProps)
frontend/src/components/FaucetingModal.tsx:8
FunctionGame
({ contract, isMobile, farmCoinAssetID, }: GameProps)
frontend/src/components/Game.tsx:49
FunctionGarden
({ tileStates, contract, setTileStates, updateNum, }: GardenProps)
frontend/src/components/Garden.tsx:21
FunctionGardenTile
({ position, state, updateNum, }: GardenTileProps)
frontend/src/components/GardenTile.tsx:19
FunctionGithubRepo
()
frontend/src/components/show/GithubRepo.tsx:4
FunctionHarvestModal
({ contract, tileArray, updatePageNum, setCanMove, setModal, onHarvestSuccess, lastETHResolvedOu
frontend/src/components/modals/HarvestModal.tsx:29
FunctionHome
({ isMobile }: HomeProps)
frontend/src/components/home/Home.tsx:13
FunctionInfo
({ player, contract, updateNum, seeds, items, farmCoinAssetID, }: InfoProps)
frontend/src/components/show/Info.tsx:24
FunctionInstructions
({ isMobile }: { isMobile: boolean })
frontend/src/components/home/Instructions.tsx:4
FunctionInventory
({ seeds, items }: InventoryProps)
frontend/src/components/show/Inventory.tsx:9
FunctionLoading
()
frontend/src/components/Loading.tsx:4
FunctionMainnetCTA
()
frontend/src/components/show/MainnetCTA.tsx:4
FunctionMarketModal
({ contract, updatePageNum, items, setItems, setCanMove, farmCoinAssetID, onBuySuccess, lastET
frontend/src/components/modals/MarketModal.tsx:21
FunctionMobileButton
({ direction, setMobileControlState, }: MobileButtonProps)
frontend/src/components/MobileControls.tsx:16
FunctionMobileControlButtons
({ setMobileControlState, }: MobileControlsProps)
frontend/src/components/MobileControls.tsx:61
FunctionNewPlayer
({ contract, updatePageNum, setPlayer, setModal, }: NewPlayerProps)
frontend/src/components/NewPlayer.tsx:29
FunctionNoFundsMessage
({ onRecheck }: NoFundsMessageProps)
frontend/src/components/modals/NoFundsMessage.tsx:9
FunctionPlantModal
({ contract, updatePageNum, tileArray, seeds, setCanMove, onPlantSuccess, setModal, lastETHRes
frontend/src/components/modals/PlantModal.tsx:26
FunctionPlayer
({ tileStates, contract, setModal, setTileArray, setPlayerPosition, playerPosition, canMove, l
frontend/src/components/Player.tsx:82
FunctionSellItem
({ contract, updatePageNum, items, setItems, setCanMove, lastETHResolvedOutput, isTransactionInP
frontend/src/components/modals/SellItem.tsx:27
FunctionShowCoins
({ updateNum, contract, farmCoinAssetID, }: ShowCoinsProps)
frontend/src/components/show/ShowCoins.tsx:15
FunctionShowPlayerInfo
({ player, contract, updateNum, farmCoinAssetID, }: PlayerProps)
frontend/src/components/show/ShowPlayerInfo.tsx:23
FunctionTransactionProvider
({ children }: { children: ReactNode })
frontend/src/contexts/TransactionContext.tsx:4
FunctionUnsupportedWalletsNoticeModal
({ isOpen, onClose, }: { isOpen: boolean; onClose: () => void; })
frontend/src/components/modals/UnsupportedWalletsNoticeModal.tsx:1
FunctionWalletInfo
()
frontend/src/components/show/WalletInfo.tsx:7
Functionallocate
()
frontend/src/hooks/usePaymaster.ts:76
Methodconstructor
(accountOrProvider: Account | Provider)
frontend/src/sway-api/contracts/FarmContractFactory.ts:28
Methodconstructor
()
frontend/src/sway-api/contracts/FarmContract.ts:1045
Methodconstructor
(id: string | Address, accountOrProvider: Account | Provider)
frontend/src/sway-api/contracts/FarmContract.ts:1123
Methoddeploy
(wallet: Account, options: DeployContractOptions = {})
frontend/src/sway-api/contracts/FarmContractFactory.ts:37
FunctionfetchSignature
(request: TransactionRequest, jobId: string)
frontend/src/hooks/usePaymaster.ts:105
FunctionhandleBuySuccess
()
frontend/src/components/Game.tsx:151
FunctionhandleGlobalKeyDown
(e: globalThis.KeyboardEvent)
frontend/src/components/NewPlayer.tsx:63
FunctionhandleGlobalKeyDown
(e: KeyboardEvent)
frontend/src/components/modals/BuySeeds.tsx:39
FunctionhandleGlobalKeyDown
(e: globalThis.KeyboardEvent)
frontend/src/components/modals/PlantModal.tsx:50
FunctionhandleGlobalKeyDown
(e: KeyboardEvent)
frontend/src/components/modals/HarvestModal.tsx:53
FunctionhandleGlobalKeyDown
(e: globalThis.KeyboardEvent)
frontend/src/components/modals/SellItem.tsx:43
FunctionhandlePlantSuccess
(position: number)
frontend/src/components/Game.tsx:133
FunctionhandleTouch
()
frontend/src/components/MobileControls.tsx:29
Functionmetadata
()
frontend/src/hooks/usePaymaster.ts:56
FunctionpostJobComplete
(jobId: string)
frontend/src/hooks/usePaymaster.ts:134
FunctionshouldUseGasless
()
frontend/src/hooks/usePaymaster.ts:152
FunctionshowNoFundsMessage
(duration = 1000)
frontend/src/hooks/useWalletFunds.ts:24
FunctionuseWalletFunds
(contract: FarmContract | null)
frontend/src/hooks/useWalletFunds.ts:5