@gitmyabi/usdt 1.0.27 → 1.0.29

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.
@@ -1,4 +1,2 @@
1
- export { TokenProxy_jsonAbi, TokenProxy_json } from './TokenProxy_json';
2
- export type { TokenProxy_jsonAbi as TokenProxy_jsonAbiType, TokenProxy_jsonContract } from './TokenProxy_json';
3
- export { PermittableToken_jsonAbi, PermittableToken_json } from './PermittableToken_json';
4
- export type { PermittableToken_jsonAbi as PermittableToken_jsonAbiType, PermittableToken_jsonContract } from './PermittableToken_json';
1
+ export { TetherToken_jsonAbi, TetherToken_json } from './TetherToken_json';
2
+ export type { TetherToken_jsonAbi as TetherToken_jsonAbiType, TetherToken_jsonContract } from './TetherToken_json';
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PermittableToken_json = exports.PermittableToken_jsonAbi = exports.TokenProxy_json = exports.TokenProxy_jsonAbi = void 0;
3
+ exports.TetherToken_json = exports.TetherToken_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var TokenProxy_json_1 = require("./TokenProxy_json");
6
- Object.defineProperty(exports, "TokenProxy_jsonAbi", { enumerable: true, get: function () { return TokenProxy_json_1.TokenProxy_jsonAbi; } });
7
- Object.defineProperty(exports, "TokenProxy_json", { enumerable: true, get: function () { return TokenProxy_json_1.TokenProxy_json; } });
8
- var PermittableToken_json_1 = require("./PermittableToken_json");
9
- Object.defineProperty(exports, "PermittableToken_jsonAbi", { enumerable: true, get: function () { return PermittableToken_json_1.PermittableToken_jsonAbi; } });
10
- Object.defineProperty(exports, "PermittableToken_json", { enumerable: true, get: function () { return PermittableToken_json_1.PermittableToken_json; } });
5
+ var TetherToken_json_1 = require("./TetherToken_json");
6
+ Object.defineProperty(exports, "TetherToken_jsonAbi", { enumerable: true, get: function () { return TetherToken_json_1.TetherToken_jsonAbi; } });
7
+ Object.defineProperty(exports, "TetherToken_json", { enumerable: true, get: function () { return TetherToken_json_1.TetherToken_json; } });
@@ -1,5 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { TokenProxy_jsonAbi, TokenProxy_json } from './TokenProxy_json';
3
- export type { TokenProxy_jsonAbi as TokenProxy_jsonAbiType, TokenProxy_jsonContract } from './TokenProxy_json';
4
- export { PermittableToken_jsonAbi, PermittableToken_json } from './PermittableToken_json';
5
- export type { PermittableToken_jsonAbi as PermittableToken_jsonAbiType, PermittableToken_jsonContract } from './PermittableToken_json';
2
+ export { TetherToken_jsonAbi, TetherToken_json } from './TetherToken_json';
3
+ export type { TetherToken_jsonAbi as TetherToken_jsonAbiType, TetherToken_jsonContract } from './TetherToken_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/usdt",
3
- "version": "1.0.27",
4
- "description": "Auto-generated TypeScript type bindings for USDT (build etherscan-usdt-050e978e-1788874381657, commit 5077b22, branch etherscan)",
3
+ "version": "1.0.29",
4
+ "description": "Auto-generated TypeScript type bindings for USDT (build etherscan-usdt-0a0081ec-1788977046521, commit d4c2f70, 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/usdt"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "5077b22"
42
+ "shortHash": "d4c2f70"
43
43
  }
@@ -1,145 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * TokenProxy_json ABI
4
- *
5
- * This ABI is typed using viem's type system for full type safety.
6
- */
7
- export declare const TokenProxy_jsonAbi: readonly [{
8
- readonly inputs: readonly [{
9
- readonly internalType: "address";
10
- readonly name: "_tokenImage";
11
- readonly type: "address";
12
- }, {
13
- readonly internalType: "string";
14
- readonly name: "_name";
15
- readonly type: "string";
16
- }, {
17
- readonly internalType: "string";
18
- readonly name: "_symbol";
19
- readonly type: "string";
20
- }, {
21
- readonly internalType: "uint8";
22
- readonly name: "_decimals";
23
- readonly type: "uint8";
24
- }, {
25
- readonly internalType: "uint256";
26
- readonly name: "_chainId";
27
- readonly type: "uint256";
28
- }, {
29
- readonly internalType: "address";
30
- readonly name: "_owner";
31
- readonly type: "address";
32
- }];
33
- readonly stateMutability: "nonpayable";
34
- readonly type: "constructor";
35
- }, {
36
- readonly stateMutability: "payable";
37
- readonly type: "fallback";
38
- }, {
39
- readonly inputs: readonly [];
40
- readonly name: "getTokenProxyInterfacesVersion";
41
- readonly outputs: readonly [{
42
- readonly internalType: "uint64";
43
- readonly name: "major";
44
- readonly type: "uint64";
45
- }, {
46
- readonly internalType: "uint64";
47
- readonly name: "minor";
48
- readonly type: "uint64";
49
- }, {
50
- readonly internalType: "uint64";
51
- readonly name: "patch";
52
- readonly type: "uint64";
53
- }];
54
- readonly stateMutability: "pure";
55
- readonly type: "function";
56
- }, {
57
- readonly inputs: readonly [];
58
- readonly name: "implementation";
59
- readonly outputs: readonly [{
60
- readonly internalType: "address";
61
- readonly name: "impl";
62
- readonly type: "address";
63
- }];
64
- readonly stateMutability: "view";
65
- readonly type: "function";
66
- }];
67
- /**
68
- * Type-safe ABI for TokenProxy_json
69
- */
70
- export type TokenProxy_jsonAbi = typeof TokenProxy_jsonAbi;
71
- /**
72
- * Contract instance type for TokenProxy_json
73
- */
74
- export type TokenProxy_jsonContract = any;
75
- /**
76
- * TokenProxy_json Contract Class
77
- *
78
- * Provides a class-based API similar to TypeChain for interacting with the contract.
79
- *
80
- * @example
81
- * ```typescript
82
- * import { createPublicClient, createWalletClient, http } from 'viem';
83
- * import { mainnet } from 'viem/chains';
84
- * import { TokenProxy_json } from 'TokenProxy_json';
85
- *
86
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
87
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
88
- *
89
- * const contract = new TokenProxy_json('0x...', { publicClient, walletClient });
90
- *
91
- * // Read functions
92
- * const result = await contract.balanceOf('0x...');
93
- *
94
- * // Write functions
95
- * const hash = await contract.transfer('0x...', 1000n);
96
- *
97
- * // Simulate transactions (dry-run)
98
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
99
- * console.log('Gas estimate:', simulation.request.gas);
100
- *
101
- * // Watch events
102
- * const unwatch = contract.watch.Transfer((event) => {
103
- * console.log('Transfer event:', event);
104
- * });
105
- * ```
106
- */
107
- export declare class TokenProxy_json {
108
- private contract;
109
- private contractAddress;
110
- private publicClient;
111
- constructor(address: Address, clients: {
112
- publicClient: PublicClient;
113
- walletClient?: WalletClient;
114
- });
115
- /**
116
- * Get the contract address
117
- */
118
- get address(): Address;
119
- /**
120
- * Get the underlying viem contract instance
121
- */
122
- getContract(): TokenProxy_jsonContract;
123
- /**
124
- * getTokenProxyInterfacesVersion
125
- * pure
126
- */
127
- getTokenProxyInterfacesVersion(): Promise<[bigint, bigint, bigint]>;
128
- /**
129
- * implementation
130
- * view
131
- */
132
- implementation(): Promise<`0x${string}`>;
133
- /**
134
- * Simulate contract write operations (dry-run without sending transaction)
135
- *
136
- * Note: This contract has no write functions, so simulate returns an empty object.
137
- */
138
- get simulate(): {};
139
- /**
140
- * Watch contract events
141
- *
142
- * Note: This contract has no events, so watch returns an empty object.
143
- */
144
- get watch(): {};
145
- }
@@ -1,177 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TokenProxy_json = exports.TokenProxy_jsonAbi = void 0;
4
- const viem_1 = require("viem");
5
- /**
6
- * TokenProxy_json ABI
7
- *
8
- * This ABI is typed using viem's type system for full type safety.
9
- */
10
- exports.TokenProxy_jsonAbi = [
11
- {
12
- "inputs": [
13
- {
14
- "internalType": "address",
15
- "name": "_tokenImage",
16
- "type": "address"
17
- },
18
- {
19
- "internalType": "string",
20
- "name": "_name",
21
- "type": "string"
22
- },
23
- {
24
- "internalType": "string",
25
- "name": "_symbol",
26
- "type": "string"
27
- },
28
- {
29
- "internalType": "uint8",
30
- "name": "_decimals",
31
- "type": "uint8"
32
- },
33
- {
34
- "internalType": "uint256",
35
- "name": "_chainId",
36
- "type": "uint256"
37
- },
38
- {
39
- "internalType": "address",
40
- "name": "_owner",
41
- "type": "address"
42
- }
43
- ],
44
- "stateMutability": "nonpayable",
45
- "type": "constructor"
46
- },
47
- {
48
- "stateMutability": "payable",
49
- "type": "fallback"
50
- },
51
- {
52
- "inputs": [],
53
- "name": "getTokenProxyInterfacesVersion",
54
- "outputs": [
55
- {
56
- "internalType": "uint64",
57
- "name": "major",
58
- "type": "uint64"
59
- },
60
- {
61
- "internalType": "uint64",
62
- "name": "minor",
63
- "type": "uint64"
64
- },
65
- {
66
- "internalType": "uint64",
67
- "name": "patch",
68
- "type": "uint64"
69
- }
70
- ],
71
- "stateMutability": "pure",
72
- "type": "function"
73
- },
74
- {
75
- "inputs": [],
76
- "name": "implementation",
77
- "outputs": [
78
- {
79
- "internalType": "address",
80
- "name": "impl",
81
- "type": "address"
82
- }
83
- ],
84
- "stateMutability": "view",
85
- "type": "function"
86
- }
87
- ];
88
- /**
89
- * TokenProxy_json Contract Class
90
- *
91
- * Provides a class-based API similar to TypeChain for interacting with the contract.
92
- *
93
- * @example
94
- * ```typescript
95
- * import { createPublicClient, createWalletClient, http } from 'viem';
96
- * import { mainnet } from 'viem/chains';
97
- * import { TokenProxy_json } from 'TokenProxy_json';
98
- *
99
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
100
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
101
- *
102
- * const contract = new TokenProxy_json('0x...', { publicClient, walletClient });
103
- *
104
- * // Read functions
105
- * const result = await contract.balanceOf('0x...');
106
- *
107
- * // Write functions
108
- * const hash = await contract.transfer('0x...', 1000n);
109
- *
110
- * // Simulate transactions (dry-run)
111
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
112
- * console.log('Gas estimate:', simulation.request.gas);
113
- *
114
- * // Watch events
115
- * const unwatch = contract.watch.Transfer((event) => {
116
- * console.log('Transfer event:', event);
117
- * });
118
- * ```
119
- */
120
- class TokenProxy_json {
121
- constructor(address, clients) {
122
- this.contractAddress = address;
123
- this.publicClient = clients.publicClient;
124
- this.contract = (0, viem_1.getContract)({
125
- address,
126
- abi: exports.TokenProxy_jsonAbi,
127
- client: {
128
- public: clients.publicClient,
129
- wallet: clients.walletClient,
130
- },
131
- });
132
- }
133
- /**
134
- * Get the contract address
135
- */
136
- get address() {
137
- return this.contractAddress;
138
- }
139
- /**
140
- * Get the underlying viem contract instance
141
- */
142
- getContract() {
143
- return this.contract;
144
- }
145
- /**
146
- * getTokenProxyInterfacesVersion
147
- * pure
148
- */
149
- async getTokenProxyInterfacesVersion() {
150
- return this.contract.read.getTokenProxyInterfacesVersion();
151
- }
152
- /**
153
- * implementation
154
- * view
155
- */
156
- async implementation() {
157
- return this.contract.read.implementation();
158
- }
159
- // No write functions
160
- /**
161
- * Simulate contract write operations (dry-run without sending transaction)
162
- *
163
- * Note: This contract has no write functions, so simulate returns an empty object.
164
- */
165
- get simulate() {
166
- return {};
167
- }
168
- /**
169
- * Watch contract events
170
- *
171
- * Note: This contract has no events, so watch returns an empty object.
172
- */
173
- get watch() {
174
- return {};
175
- }
176
- }
177
- exports.TokenProxy_json = TokenProxy_json;
@@ -1,207 +0,0 @@
1
- import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
- import { getContract } from 'viem';
3
-
4
- /**
5
- * TokenProxy_json ABI
6
- *
7
- * This ABI is typed using viem's type system for full type safety.
8
- */
9
- export const TokenProxy_jsonAbi = [
10
- {
11
- "inputs": [
12
- {
13
- "internalType": "address",
14
- "name": "_tokenImage",
15
- "type": "address"
16
- },
17
- {
18
- "internalType": "string",
19
- "name": "_name",
20
- "type": "string"
21
- },
22
- {
23
- "internalType": "string",
24
- "name": "_symbol",
25
- "type": "string"
26
- },
27
- {
28
- "internalType": "uint8",
29
- "name": "_decimals",
30
- "type": "uint8"
31
- },
32
- {
33
- "internalType": "uint256",
34
- "name": "_chainId",
35
- "type": "uint256"
36
- },
37
- {
38
- "internalType": "address",
39
- "name": "_owner",
40
- "type": "address"
41
- }
42
- ],
43
- "stateMutability": "nonpayable",
44
- "type": "constructor"
45
- },
46
- {
47
- "stateMutability": "payable",
48
- "type": "fallback"
49
- },
50
- {
51
- "inputs": [],
52
- "name": "getTokenProxyInterfacesVersion",
53
- "outputs": [
54
- {
55
- "internalType": "uint64",
56
- "name": "major",
57
- "type": "uint64"
58
- },
59
- {
60
- "internalType": "uint64",
61
- "name": "minor",
62
- "type": "uint64"
63
- },
64
- {
65
- "internalType": "uint64",
66
- "name": "patch",
67
- "type": "uint64"
68
- }
69
- ],
70
- "stateMutability": "pure",
71
- "type": "function"
72
- },
73
- {
74
- "inputs": [],
75
- "name": "implementation",
76
- "outputs": [
77
- {
78
- "internalType": "address",
79
- "name": "impl",
80
- "type": "address"
81
- }
82
- ],
83
- "stateMutability": "view",
84
- "type": "function"
85
- }
86
- ] as const satisfies Abi;
87
-
88
- /**
89
- * Type-safe ABI for TokenProxy_json
90
- */
91
- export type TokenProxy_jsonAbi = typeof TokenProxy_jsonAbi;
92
-
93
- /**
94
- * Contract instance type for TokenProxy_json
95
- */
96
- // Use any for contract type to avoid complex viem type issues
97
- // The runtime behavior is type-safe through viem's ABI typing
98
- export type TokenProxy_jsonContract = any;
99
-
100
- /**
101
- * TokenProxy_json Contract Class
102
- *
103
- * Provides a class-based API similar to TypeChain for interacting with the contract.
104
- *
105
- * @example
106
- * ```typescript
107
- * import { createPublicClient, createWalletClient, http } from 'viem';
108
- * import { mainnet } from 'viem/chains';
109
- * import { TokenProxy_json } from 'TokenProxy_json';
110
- *
111
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
112
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
113
- *
114
- * const contract = new TokenProxy_json('0x...', { publicClient, walletClient });
115
- *
116
- * // Read functions
117
- * const result = await contract.balanceOf('0x...');
118
- *
119
- * // Write functions
120
- * const hash = await contract.transfer('0x...', 1000n);
121
- *
122
- * // Simulate transactions (dry-run)
123
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
124
- * console.log('Gas estimate:', simulation.request.gas);
125
- *
126
- * // Watch events
127
- * const unwatch = contract.watch.Transfer((event) => {
128
- * console.log('Transfer event:', event);
129
- * });
130
- * ```
131
- */
132
- export class TokenProxy_json {
133
- private contract: TokenProxy_jsonContract;
134
- private contractAddress: Address;
135
- private publicClient: PublicClient;
136
-
137
- constructor(
138
- address: Address,
139
- clients: {
140
- publicClient: PublicClient;
141
- walletClient?: WalletClient;
142
- }
143
- ) {
144
- this.contractAddress = address;
145
- this.publicClient = clients.publicClient;
146
- this.contract = getContract({
147
- address,
148
- abi: TokenProxy_jsonAbi,
149
- client: {
150
- public: clients.publicClient,
151
- wallet: clients.walletClient,
152
- },
153
- });
154
- }
155
-
156
- /**
157
- * Get the contract address
158
- */
159
- get address(): Address {
160
- return this.contractAddress;
161
- }
162
-
163
- /**
164
- * Get the underlying viem contract instance
165
- */
166
- getContract(): TokenProxy_jsonContract {
167
- return this.contract;
168
- }
169
-
170
- /**
171
- * getTokenProxyInterfacesVersion
172
- * pure
173
- */
174
- async getTokenProxyInterfacesVersion(): Promise<[bigint, bigint, bigint]> {
175
- return this.contract.read.getTokenProxyInterfacesVersion() as Promise<[bigint, bigint, bigint]>;
176
- }
177
-
178
- /**
179
- * implementation
180
- * view
181
- */
182
- async implementation(): Promise<`0x${string}`> {
183
- return this.contract.read.implementation() as Promise<`0x${string}`>;
184
- }
185
-
186
- // No write functions
187
-
188
-
189
-
190
- /**
191
- * Simulate contract write operations (dry-run without sending transaction)
192
- *
193
- * Note: This contract has no write functions, so simulate returns an empty object.
194
- */
195
- get simulate() {
196
- return {};
197
- }
198
-
199
- /**
200
- * Watch contract events
201
- *
202
- * Note: This contract has no events, so watch returns an empty object.
203
- */
204
- get watch() {
205
- return {};
206
- }
207
- }