Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

sw-abi-types

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

sw-abi-types

Skillwallet/DitoCommunity contract functions

unpublished
latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Getting Started with Skillwallet Abi types

Generate types

npm run build

Install dependency on your project

Add dependency to you package.json

{
  "dependencies": {
    ...
    "sw-abi-types": "git+https://github.com/SkillWallet/abi-types.git#main"
  }
}

npm install sw-abi-types

Usage

Normal usage

import { SWContractFunctions, SWContractEvents } from 'sw-abi-types';

If you are using ethers then you will want to extends Contracts class

import { SWContractFunctions, SWContractEvents } from 'sw-abi-types';
declare module 'ethers' {
  export class Contract extends BaseContract implements SWContractFunctions {
    readonly [key: string]: ContractFunction | any;
  }
}

NOTE: It will ask you to Implement interface SWContractFunctions

All available types

Abi types

- SWEvent -> {event, args}
- SWContractFunctions -> main methods
- SWContractEvents -> events > SWEvent[]
- SWContractEventType -> event types

Abi lists

SkillWalletAbi: JsonFragment[]
DitoCommunityAbi: JsonFragment[]

Other

JsonFragment
JsonFragmentType

FAQs

Package last updated on 25 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts