Index
Synapse React - Main Entry Point
Example
Section titled “Example”import * as react from '@filoz/synapse-react'Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| DataSetWithPieces | Data set type |
| UseCreateDataSetProps | - |
| UseCreateDataSetVariables | - |
| UseDataSetsProps | - |
| UseDeletePieceProps | - |
| UseDeletePieceVariables | - |
| UseOperatorApprovalsProps | - |
| UseProvidersProps | - |
| UseServicePriceProps | The props for the useServicePrice hook. |
| UseUploadProps | - |
| UseUploadVariables | - |
| UseWatchUsdfcProps | - |
Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| OperatorApprovalsResult | - |
| PieceWithMetadata | - |
| UseCreateDataSetResult | - |
| UseDataSetsResult | - |
| UseProvidersResult | - |
| UseServicePriceResult | The result for the useServicePrice hook. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| useAccountInfo | Get the account info from the payments contract. |
| useAddUsdfc | Add the USDFC token to the wallet. |
| useApproveAllowance | Approve the allowance of the ERC20 token to the payments contract. |
| useApproveOperator | Approve a service contract to act as an operator for payment rails. |
| useCreateDataSet | - |
| useDataSets | - |
| useDeletePiece | - |
| useDeposit | Deposit ERC20 tokens into the payments contract. |
| useDepositAndApprove | Deposit ERC20 tokens into the payments contract. |
| useERC20Balance | Get the balance and allowance of the ERC20 token. |
| useFilsnap | - |
| useFundWallet | Fund the wallet with USDFC and FIL. |
| useOperatorApprovals | Get the operator approvals from the payments contract. |
| useProviders | - |
| useRevokeOperator | Revoke the operator to deposit and withdraw ERC20 tokens from the payments contract. |
| useServicePrice | Get the service price for the warm storage. |
| useUpload | - |
| useWithdraw | Withdraw ERC20 tokens from the payments contract. |