Skip to content

ignite-hq/ignite.com

Repository files navigation

Commands

npm i
npm run dev

Generated code

The two packages, tendermint-spn-ts-client and tendermint-spn-vue, inside src/generated were generated by Ignite CLI on top of Ignite Network chain.

To make use of the Vue Api, do =

import { useTendermintFundraising } from 'tendermint-spn-vue-client'

const { queryActions } = useTendermintFundraising()

To get the igniteClient instance, do =

import { useSpn } from 'tendermint-spn-ts-client'

const { spn } = useSpn()

To sign in/out, do =

const { signIn, signOut } = useSpn()

To use the keplr plugin, do =

ignite.keplr // fully typed

To attach a custom plugin, do =

import { _use, createIgnite } from 'tendermint-spn-ts-client'

function plugBlockEx(): { blockex: {} } {
  return {
    blockex: {} // implementation of the plugin goes here
  }
}

let ignite = _use({
  ...createIgnite(),
  ...plugBlockEx()
})

ignite.blockex // blockex is fully typed

🏗 WIP

The generated code is on early alpha. This means a bunch of minor and couple of major issues are yet to be solved.