@gitmyabi/play-it 1.0.0 → 1.0.2
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 +5 -5
- package/contracts/{play_it_json.d.ts → Play_IT.d.ts} +12 -12
- package/contracts/{play_it_json.js → Play_IT.js} +10 -10
- package/contracts/{play_it_json.ts → Play_IT.ts} +14 -14
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @gitmyabi/play-it
|
|
2
2
|
|
|
3
|
-
Auto-generated TypeScript type bindings for **
|
|
3
|
+
Auto-generated TypeScript type bindings for **Play_IT**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-play-it-
|
|
5
|
+
- **Build ID**: `etherscan-play-it-c05b4883-1795968010967`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `f964b74`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 1
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **play_it**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/play-it@1.0.
|
|
15
|
+
npm install @gitmyabi/play-it@1.0.2
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -105,4 +105,4 @@ This package includes type bindings for 1 contract(s) generated from ABI artifac
|
|
|
105
105
|
|
|
106
106
|
## License
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
Apache License 2.0
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Play_IT 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 Play_ITAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "bytes32[]";
|
|
10
10
|
readonly name: "admins";
|
|
@@ -71,15 +71,15 @@ export declare const play_it_jsonAbi: readonly [{
|
|
|
71
71
|
readonly type: "function";
|
|
72
72
|
}];
|
|
73
73
|
/**
|
|
74
|
-
* Type-safe ABI for
|
|
74
|
+
* Type-safe ABI for Play_IT
|
|
75
75
|
*/
|
|
76
|
-
export type
|
|
76
|
+
export type Play_ITAbi = typeof Play_ITAbi;
|
|
77
77
|
/**
|
|
78
|
-
* Contract instance type for
|
|
78
|
+
* Contract instance type for Play_IT
|
|
79
79
|
*/
|
|
80
|
-
export type
|
|
80
|
+
export type Play_ITContract = any;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Play_IT 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 play_it_jsonContract = any;
|
|
|
87
87
|
* ```typescript
|
|
88
88
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
89
89
|
* import { mainnet } from 'viem/chains';
|
|
90
|
-
* import {
|
|
90
|
+
* import { Play_IT } from 'Play_IT';
|
|
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 Play_IT('0x...', { publicClient, walletClient });
|
|
96
96
|
*
|
|
97
97
|
* // Read functions
|
|
98
98
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -110,7 +110,7 @@ export type play_it_jsonContract = any;
|
|
|
110
110
|
* });
|
|
111
111
|
* ```
|
|
112
112
|
*/
|
|
113
|
-
export declare class
|
|
113
|
+
export declare class Play_IT {
|
|
114
114
|
private contract;
|
|
115
115
|
private contractAddress;
|
|
116
116
|
private publicClient;
|
|
@@ -123,9 +123,9 @@ export declare class play_it_json {
|
|
|
123
123
|
*/
|
|
124
124
|
get address(): Address;
|
|
125
125
|
/**
|
|
126
|
-
* Get the underlying viem contract instance
|
|
126
|
+
* Get the underlying viem contract instance.
|
|
127
127
|
*/
|
|
128
|
-
getContract():
|
|
128
|
+
getContract(): Play_ITContract;
|
|
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.Play_IT = exports.Play_ITAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Play_IT ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.Play_ITAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
@@ -94,7 +94,7 @@ exports.play_it_jsonAbi = [
|
|
|
94
94
|
}
|
|
95
95
|
];
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Play_IT 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.play_it_jsonAbi = [
|
|
|
102
102
|
* ```typescript
|
|
103
103
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
104
104
|
* import { mainnet } from 'viem/chains';
|
|
105
|
-
* import {
|
|
105
|
+
* import { Play_IT } from 'Play_IT';
|
|
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 Play_IT('0x...', { publicClient, walletClient });
|
|
111
111
|
*
|
|
112
112
|
* // Read functions
|
|
113
113
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -125,13 +125,13 @@ exports.play_it_jsonAbi = [
|
|
|
125
125
|
* });
|
|
126
126
|
* ```
|
|
127
127
|
*/
|
|
128
|
-
class
|
|
128
|
+
class Play_IT {
|
|
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.Play_ITAbi,
|
|
135
135
|
client: {
|
|
136
136
|
public: clients.publicClient,
|
|
137
137
|
wallet: clients.walletClient,
|
|
@@ -145,7 +145,7 @@ class play_it_json {
|
|
|
145
145
|
return this.contractAddress;
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
|
-
* Get the underlying viem contract instance
|
|
148
|
+
* Get the underlying viem contract instance.
|
|
149
149
|
*/
|
|
150
150
|
getContract() {
|
|
151
151
|
return this.contract;
|
|
@@ -258,4 +258,4 @@ class play_it_json {
|
|
|
258
258
|
return {};
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
exports.
|
|
261
|
+
exports.Play_IT = Play_IT;
|
|
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Play_IT 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 Play_ITAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [
|
|
12
12
|
{
|
|
@@ -94,19 +94,19 @@ export const play_it_jsonAbi = [
|
|
|
94
94
|
] as const satisfies Abi;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Type-safe ABI for
|
|
97
|
+
* Type-safe ABI for Play_IT
|
|
98
98
|
*/
|
|
99
|
-
export type
|
|
99
|
+
export type Play_ITAbi = typeof Play_ITAbi;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Contract instance type for
|
|
102
|
+
* Contract instance type for Play_IT
|
|
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 Play_ITContract = any;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Play_IT 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 play_it_jsonContract = any;
|
|
|
114
114
|
* ```typescript
|
|
115
115
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
116
116
|
* import { mainnet } from 'viem/chains';
|
|
117
|
-
* import {
|
|
117
|
+
* import { Play_IT } from 'Play_IT';
|
|
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 Play_IT('0x...', { publicClient, walletClient });
|
|
123
123
|
*
|
|
124
124
|
* // Read functions
|
|
125
125
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -137,8 +137,8 @@ export type play_it_jsonContract = any;
|
|
|
137
137
|
* });
|
|
138
138
|
* ```
|
|
139
139
|
*/
|
|
140
|
-
export class
|
|
141
|
-
private contract:
|
|
140
|
+
export class Play_IT {
|
|
141
|
+
private contract: Play_ITContract;
|
|
142
142
|
private contractAddress: Address;
|
|
143
143
|
private publicClient: PublicClient;
|
|
144
144
|
|
|
@@ -153,7 +153,7 @@ export class play_it_json {
|
|
|
153
153
|
this.publicClient = clients.publicClient;
|
|
154
154
|
this.contract = getContract({
|
|
155
155
|
address,
|
|
156
|
-
abi:
|
|
156
|
+
abi: Play_ITAbi,
|
|
157
157
|
client: {
|
|
158
158
|
public: clients.publicClient,
|
|
159
159
|
wallet: clients.walletClient,
|
|
@@ -169,9 +169,9 @@ export class play_it_json {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
* Get the underlying viem contract instance
|
|
172
|
+
* Get the underlying viem contract instance.
|
|
173
173
|
*/
|
|
174
|
-
getContract():
|
|
174
|
+
getContract(): Play_ITContract {
|
|
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 { Play_ITAbi, Play_IT } from './Play_IT';
|
|
2
|
+
export type { Play_ITAbi as Play_ITAbiType, Play_ITContract } from './Play_IT';
|
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.Play_IT = exports.Play_ITAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
Object.defineProperty(exports, "
|
|
5
|
+
var Play_IT_1 = require("./Play_IT");
|
|
6
|
+
Object.defineProperty(exports, "Play_ITAbi", { enumerable: true, get: function () { return Play_IT_1.Play_ITAbi; } });
|
|
7
|
+
Object.defineProperty(exports, "Play_IT", { enumerable: true, get: function () { return Play_IT_1.Play_IT; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
|
-
export {
|
|
3
|
-
export type {
|
|
2
|
+
export { Play_ITAbi, Play_IT } from './Play_IT';
|
|
3
|
+
export type { Play_ITAbi as Play_ITAbiType, Play_ITContract } from './Play_IT';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/play-it",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for Play_IT (build etherscan-play-it-c05b4883-1795968010967, commit f964b74, branch etherscan)",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"abi",
|
|
31
31
|
"ethers-v6"
|
|
32
32
|
],
|
|
33
|
-
"license": "
|
|
33
|
+
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"viem": "^2.0.0"
|
|
36
36
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "https://github.com/etherscan/play-it"
|
|
40
40
|
},
|
|
41
41
|
"branch": "etherscan",
|
|
42
|
-
"shortHash": "
|
|
42
|
+
"shortHash": "f964b74"
|
|
43
43
|
}
|