๐งฉ gamba-react-v2
๐งฉ
Gamba React package with essential hooks and context providers
npm install gamba-react-v2
๐ Contexts
๐
SendTransactionContext
- Props:
priorityFee?: number
simulationUnits: number
computeUnitLimitMargin: number
import { SendTransactionProvider } from "gamba-react-v2";
// Wrap your app in SendTransactionProvider
function App() {
return (
<SendTransactionProvider
priorityFee={10}
simulationUnits={1000}
computeUnitLimitMargin={200}
>
{/* Your application code */}
</SendTransactionProvider>
);
}
๐
GambaContext
- Props:
provider: GambaProvider
plugins: GambaPlugin[]
import { GambaProvider } from "gamba-react-v2";
// Wrap your app in GambaProvider
function App() {
return (
<GambaProvider provider={someProviderInstance} plugins={[plugin1, plugin2]}>
{/* Your application code */}
</GambaProvider>
);
}
โ๏ธ
SendTransactionProvider
- Props:
children
- Additional props from
SendTransactionContext
.
import { SendTransactionProvider } from "gamba-react-v2";
// Wrap your app or component in SendTransactionProvider
function App() {
return (
<SendTransactionProvider
priorityFee={10}
simulationUnits={1000}
computeUnitLimitMargin={200}
>
{/* Your application code */}
</SendTransactionProvider>
);
}
โ๏ธ
GambaProvider
- Props:
__experimental_plugins?: GambaPlugin[]
children
import { GambaProvider } from 'gamba-react-v2;
// Wrap your app or component in GambaProvider
function App() {
return (
<GambaProvider provider={someProviderInstance} plugins={[plugin1, plugin2]}>
{/* Your application code */}
</GambaProvider>
);
}
๐ Types
๐
๐
๐
๐
๐
๐
๐
๐
๐
๐
๐ Methods and Hooks
๐
๐
๐
๐
๐
๐
๐
๐
๐
๐
๐
๐
๐
โ๏ธ Utilities and Functions
โ๏ธ