0.0.50 • Published 3 years ago

@skill-wallet/sw-abi-types v0.0.50

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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
0.0.40

3 years ago

0.0.41

3 years ago

0.0.42

3 years ago

0.0.43

3 years ago

0.0.44

3 years ago

0.0.46

3 years ago

0.0.47

3 years ago

0.0.39

3 years ago

0.0.50

3 years ago

0.0.48

3 years ago

0.0.49

3 years ago

0.0.37

3 years ago

0.0.38

3 years ago

0.0.35

3 years ago

0.0.36

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.33

3 years ago

0.0.34

3 years ago

0.0.30

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.15

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.14

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.1

3 years ago