New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@skill-wallet/sw-abi-types

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skill-wallet/sw-abi-types

Aut contract functions

latest
Source
npmnpm
Version
0.0.50
Version published
Maintainers
3
Created
Source

Getting Started with Aut Abi types

Generate types

npm run build

Install dependency on your project

npm install sw-abi-types

Provider Config Parameters

export interface Web3ProviderExtras {
  event: string; // event emitted from smart contract
  beforeRequest: Function; // useful for cases like change network
  afterRequest: Function; // for cases
  transactionState: (
    state: "started" | "rejected" | "waiting" | "done",
    ...args: any
  ) => void; // state of smart contract call, before user accepts and is complete
}

Usage

SkillWalletABI & Provider

import { SkillWalletContractEventType, Web3SkillWalletProvider } from "@skill-wallet/sw-abi-types";

const address = 0x00000...;
const contract = await Web3SkillWalletProvider(address, {
  event: SkillWalletContractEventType.CoreTeamMemberAdded,
  transactionState: (state: string) => {
    console.log(state); // or use redux to dispatch action;
  }
});
try {
  const response = await contract.addNewCoreTeamMembers(0x00000);
  return response;
} catch (error) {
  console.log(error);
}

Available Web3 Providers

  • Web3CheckpointsProvider
  • Web3CommunityRegistryProvider
  • Web3CompetitionsProvider
  • Web3DITOCommunityProvider
  • Web3GigsProvider
  • Web3OlympicsProvider
  • Web3PartnersAgreementProvider
  • Web3PartnersRegistryProvider
  • Web3SkillWalletProvider
  • Web3SkillWalletCommunityProvider
  • Web3ActivitiesProvider

FAQs

Package last updated on 23 Jul 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