0.0.50 • Published 2 years ago
@skill-wallet/sw-abi-types v0.0.50
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
2 years ago
0.0.41
2 years ago
0.0.42
2 years ago
0.0.43
2 years ago
0.0.44
2 years ago
0.0.46
2 years ago
0.0.47
2 years ago
0.0.39
2 years ago
0.0.50
2 years ago
0.0.48
2 years ago
0.0.49
2 years ago
0.0.37
2 years ago
0.0.38
2 years ago
0.0.35
2 years ago
0.0.36
2 years ago
0.0.31
2 years ago
0.0.32
2 years ago
0.0.33
2 years ago
0.0.34
2 years ago
0.0.30
2 years ago
0.0.24
2 years ago
0.0.25
2 years ago
0.0.26
2 years ago
0.0.27
2 years ago
0.0.28
2 years ago
0.0.29
2 years ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.22
2 years ago
0.0.23
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.15
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.14
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.1
2 years ago