bonkers-sdk
v0.2.0
Published
A Library For Interacting With Bonkers EVM Contracts: Controller, Vault Factory, Vault, and More
Downloads
98
Maintainers
Readme
Bonkers SDK
A Javascript SDK for interacting with Bonkers Contracts
Installation
npm install bonkers-sdk
Client Config
import { type Config, mainnet, http, injected } from "bonkers-sdk"
const config: Config = {
mode: 'client',
options: {
wagmiConfig: {
chains: [mainnet],
transports: {
[mainnet.id]: http()
},
connectors: [injected({ target: "metaMask", shimDisconnect: true })]
}
}
}
Server Config
import { type Config, mainnet } from "bonkers-sdk"
const config: Config = {
mode: 'server',
options: {
chains: [mainnet]
privateKey: '0x...123'
}
}
SDK
import BonkersSDK from "bonkers-sdk"
const bonkers = new BonkersSDK(config)
Controller
import {Controller} from "bonkers-sdk"
const controller = new Controller(config)
Vault
import {Vault} from "bonkers-sdk"
const vault = new Vault(config)
Vault Factory
import {VaultFactory} from "bonkers-sdk"
const vaultFactory = new VaultFactory(config)