@gitmyabi/wf-quiz 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/contracts/{wf_quiz_json.d.ts → WF_quiz_json.d.ts} +11 -11
- package/contracts/{wf_quiz_json.js → WF_quiz_json.js} +9 -9
- package/contracts/{wf_quiz_json.ts → WF_quiz_json.ts} +13 -13
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @gitmyabi/wf-quiz
|
|
2
2
|
|
|
3
|
-
Auto-generated TypeScript type bindings for **
|
|
3
|
+
Auto-generated TypeScript type bindings for **WF_quiz**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-wf-quiz-
|
|
5
|
+
- **Build ID**: `etherscan-wf-quiz-4037a487-1789818278193`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `a6a8f21`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 1
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **wf_quiz**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/wf-quiz@1.0.
|
|
15
|
+
npm install @gitmyabi/wf-quiz@1.0.1
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* WF_quiz_json ABI
|
|
4
4
|
*
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const WF_quiz_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "bytes32[]";
|
|
10
10
|
readonly name: "admins";
|
|
@@ -71,15 +71,15 @@ export declare const wf_quiz_jsonAbi: readonly [{
|
|
|
71
71
|
readonly type: "function";
|
|
72
72
|
}];
|
|
73
73
|
/**
|
|
74
|
-
* Type-safe ABI for
|
|
74
|
+
* Type-safe ABI for WF_quiz_json
|
|
75
75
|
*/
|
|
76
|
-
export type
|
|
76
|
+
export type WF_quiz_jsonAbi = typeof WF_quiz_jsonAbi;
|
|
77
77
|
/**
|
|
78
|
-
* Contract instance type for
|
|
78
|
+
* Contract instance type for WF_quiz_json
|
|
79
79
|
*/
|
|
80
|
-
export type
|
|
80
|
+
export type WF_quiz_jsonContract = any;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* WF_quiz_json Contract Class
|
|
83
83
|
*
|
|
84
84
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
85
85
|
*
|
|
@@ -87,12 +87,12 @@ export type wf_quiz_jsonContract = any;
|
|
|
87
87
|
* ```typescript
|
|
88
88
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
89
89
|
* import { mainnet } from 'viem/chains';
|
|
90
|
-
* import {
|
|
90
|
+
* import { WF_quiz_json } from 'WF_quiz_json';
|
|
91
91
|
*
|
|
92
92
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
93
93
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
94
94
|
*
|
|
95
|
-
* const contract = new
|
|
95
|
+
* const contract = new WF_quiz_json('0x...', { publicClient, walletClient });
|
|
96
96
|
*
|
|
97
97
|
* // Read functions
|
|
98
98
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -110,7 +110,7 @@ export type wf_quiz_jsonContract = any;
|
|
|
110
110
|
* });
|
|
111
111
|
* ```
|
|
112
112
|
*/
|
|
113
|
-
export declare class
|
|
113
|
+
export declare class WF_quiz_json {
|
|
114
114
|
private contract;
|
|
115
115
|
private contractAddress;
|
|
116
116
|
private publicClient;
|
|
@@ -125,7 +125,7 @@ export declare class wf_quiz_json {
|
|
|
125
125
|
/**
|
|
126
126
|
* Get the underlying viem contract instance
|
|
127
127
|
*/
|
|
128
|
-
getContract():
|
|
128
|
+
getContract(): WF_quiz_jsonContract;
|
|
129
129
|
/**
|
|
130
130
|
* question
|
|
131
131
|
* view
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WF_quiz_json = exports.WF_quiz_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* WF_quiz_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.WF_quiz_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
@@ -94,7 +94,7 @@ exports.wf_quiz_jsonAbi = [
|
|
|
94
94
|
}
|
|
95
95
|
];
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* WF_quiz_json Contract Class
|
|
98
98
|
*
|
|
99
99
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
100
100
|
*
|
|
@@ -102,12 +102,12 @@ exports.wf_quiz_jsonAbi = [
|
|
|
102
102
|
* ```typescript
|
|
103
103
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
104
104
|
* import { mainnet } from 'viem/chains';
|
|
105
|
-
* import {
|
|
105
|
+
* import { WF_quiz_json } from 'WF_quiz_json';
|
|
106
106
|
*
|
|
107
107
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
108
108
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
109
109
|
*
|
|
110
|
-
* const contract = new
|
|
110
|
+
* const contract = new WF_quiz_json('0x...', { publicClient, walletClient });
|
|
111
111
|
*
|
|
112
112
|
* // Read functions
|
|
113
113
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -125,13 +125,13 @@ exports.wf_quiz_jsonAbi = [
|
|
|
125
125
|
* });
|
|
126
126
|
* ```
|
|
127
127
|
*/
|
|
128
|
-
class
|
|
128
|
+
class WF_quiz_json {
|
|
129
129
|
constructor(address, clients) {
|
|
130
130
|
this.contractAddress = address;
|
|
131
131
|
this.publicClient = clients.publicClient;
|
|
132
132
|
this.contract = (0, viem_1.getContract)({
|
|
133
133
|
address,
|
|
134
|
-
abi: exports.
|
|
134
|
+
abi: exports.WF_quiz_jsonAbi,
|
|
135
135
|
client: {
|
|
136
136
|
public: clients.publicClient,
|
|
137
137
|
wallet: clients.walletClient,
|
|
@@ -258,4 +258,4 @@ class wf_quiz_json {
|
|
|
258
258
|
return {};
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
exports.
|
|
261
|
+
exports.WF_quiz_json = WF_quiz_json;
|
|
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* WF_quiz_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const WF_quiz_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [
|
|
12
12
|
{
|
|
@@ -94,19 +94,19 @@ export const wf_quiz_jsonAbi = [
|
|
|
94
94
|
] as const satisfies Abi;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Type-safe ABI for
|
|
97
|
+
* Type-safe ABI for WF_quiz_json
|
|
98
98
|
*/
|
|
99
|
-
export type
|
|
99
|
+
export type WF_quiz_jsonAbi = typeof WF_quiz_jsonAbi;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Contract instance type for
|
|
102
|
+
* Contract instance type for WF_quiz_json
|
|
103
103
|
*/
|
|
104
104
|
// Use any for contract type to avoid complex viem type issues
|
|
105
105
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
106
|
-
export type
|
|
106
|
+
export type WF_quiz_jsonContract = any;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* WF_quiz_json Contract Class
|
|
110
110
|
*
|
|
111
111
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
112
112
|
*
|
|
@@ -114,12 +114,12 @@ export type wf_quiz_jsonContract = any;
|
|
|
114
114
|
* ```typescript
|
|
115
115
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
116
116
|
* import { mainnet } from 'viem/chains';
|
|
117
|
-
* import {
|
|
117
|
+
* import { WF_quiz_json } from 'WF_quiz_json';
|
|
118
118
|
*
|
|
119
119
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
120
120
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
121
121
|
*
|
|
122
|
-
* const contract = new
|
|
122
|
+
* const contract = new WF_quiz_json('0x...', { publicClient, walletClient });
|
|
123
123
|
*
|
|
124
124
|
* // Read functions
|
|
125
125
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -137,8 +137,8 @@ export type wf_quiz_jsonContract = any;
|
|
|
137
137
|
* });
|
|
138
138
|
* ```
|
|
139
139
|
*/
|
|
140
|
-
export class
|
|
141
|
-
private contract:
|
|
140
|
+
export class WF_quiz_json {
|
|
141
|
+
private contract: WF_quiz_jsonContract;
|
|
142
142
|
private contractAddress: Address;
|
|
143
143
|
private publicClient: PublicClient;
|
|
144
144
|
|
|
@@ -153,7 +153,7 @@ export class wf_quiz_json {
|
|
|
153
153
|
this.publicClient = clients.publicClient;
|
|
154
154
|
this.contract = getContract({
|
|
155
155
|
address,
|
|
156
|
-
abi:
|
|
156
|
+
abi: WF_quiz_jsonAbi,
|
|
157
157
|
client: {
|
|
158
158
|
public: clients.publicClient,
|
|
159
159
|
wallet: clients.walletClient,
|
|
@@ -171,7 +171,7 @@ export class wf_quiz_json {
|
|
|
171
171
|
/**
|
|
172
172
|
* Get the underlying viem contract instance
|
|
173
173
|
*/
|
|
174
|
-
getContract():
|
|
174
|
+
getContract(): WF_quiz_jsonContract {
|
|
175
175
|
return this.contract;
|
|
176
176
|
}
|
|
177
177
|
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export { WF_quiz_jsonAbi, WF_quiz_json } from './WF_quiz_json';
|
|
2
|
+
export type { WF_quiz_jsonAbi as WF_quiz_jsonAbiType, WF_quiz_jsonContract } from './WF_quiz_json';
|
package/contracts/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WF_quiz_json = exports.WF_quiz_jsonAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
Object.defineProperty(exports, "
|
|
5
|
+
var WF_quiz_json_1 = require("./WF_quiz_json");
|
|
6
|
+
Object.defineProperty(exports, "WF_quiz_jsonAbi", { enumerable: true, get: function () { return WF_quiz_json_1.WF_quiz_jsonAbi; } });
|
|
7
|
+
Object.defineProperty(exports, "WF_quiz_json", { enumerable: true, get: function () { return WF_quiz_json_1.WF_quiz_json; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
|
-
export {
|
|
3
|
-
export type {
|
|
2
|
+
export { WF_quiz_jsonAbi, WF_quiz_json } from './WF_quiz_json';
|
|
3
|
+
export type { WF_quiz_jsonAbi as WF_quiz_jsonAbiType, WF_quiz_jsonContract } from './WF_quiz_json';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/wf-quiz",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for WF_quiz (build etherscan-wf-quiz-4037a487-1789818278193, commit a6a8f21, branch etherscan)",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "https://github.com/etherscan/wf-quiz"
|
|
40
40
|
},
|
|
41
41
|
"branch": "etherscan",
|
|
42
|
-
"shortHash": "
|
|
42
|
+
"shortHash": "a6a8f21"
|
|
43
43
|
}
|