Bonkers SDK - v0.2.0

Bonkers SDK

Statements Branches Functions Lines

Test

A Javascript SDK for interacting with Bonkers Contracts

npm install bonkers-sdk

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 })]
}
}
}

import { type Config, mainnet } from "bonkers-sdk"

const config: Config = {
mode: 'server',
options: {
chains: [mainnet]
privateKey: '0x...123'
}
}

import BonkersSDK from "bonkers-sdk"

const bonkers = new BonkersSDK(config)

import {Controller} from "bonkers-sdk"

const controller = new Controller(config)

import {Vault} from "bonkers-sdk"

const vault = new Vault(config)

import {VaultFactory} from "bonkers-sdk"

const vaultFactory = new VaultFactory(config)