@gitmyabi/rari 1.0.2 → 1.0.3

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,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * TransparentUpgradeableProxy_json ABI
3
+ * TransparentUpgradeableProxy ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const TransparentUpgradeableProxy_jsonAbi: readonly [{
7
+ export declare const TransparentUpgradeableProxyAbi: readonly [{
8
8
  readonly inputs: readonly [{
9
9
  readonly internalType: "address";
10
10
  readonly name: "_logic";
@@ -117,15 +117,15 @@ export declare const TransparentUpgradeableProxy_jsonAbi: readonly [{
117
117
  readonly type: "receive";
118
118
  }];
119
119
  /**
120
- * Type-safe ABI for TransparentUpgradeableProxy_json
120
+ * Type-safe ABI for TransparentUpgradeableProxy
121
121
  */
122
- export type TransparentUpgradeableProxy_jsonAbi = typeof TransparentUpgradeableProxy_jsonAbi;
122
+ export type TransparentUpgradeableProxyAbi = typeof TransparentUpgradeableProxyAbi;
123
123
  /**
124
- * Contract instance type for TransparentUpgradeableProxy_json
124
+ * Contract instance type for TransparentUpgradeableProxy
125
125
  */
126
- export type TransparentUpgradeableProxy_jsonContract = any;
126
+ export type TransparentUpgradeableProxyContract = any;
127
127
  /**
128
- * TransparentUpgradeableProxy_json Contract Class
128
+ * TransparentUpgradeableProxy Contract Class
129
129
  *
130
130
  * Provides a class-based API similar to TypeChain for interacting with the contract.
131
131
  *
@@ -133,12 +133,12 @@ export type TransparentUpgradeableProxy_jsonContract = any;
133
133
  * ```typescript
134
134
  * import { createPublicClient, createWalletClient, http } from 'viem';
135
135
  * import { mainnet } from 'viem/chains';
136
- * import { TransparentUpgradeableProxy_json } from 'TransparentUpgradeableProxy_json';
136
+ * import { TransparentUpgradeableProxy } from 'TransparentUpgradeableProxy';
137
137
  *
138
138
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
139
139
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
140
140
  *
141
- * const contract = new TransparentUpgradeableProxy_json('0x...', { publicClient, walletClient });
141
+ * const contract = new TransparentUpgradeableProxy('0x...', { publicClient, walletClient });
142
142
  *
143
143
  * // Read functions
144
144
  * const result = await contract.balanceOf('0x...');
@@ -156,7 +156,7 @@ export type TransparentUpgradeableProxy_jsonContract = any;
156
156
  * });
157
157
  * ```
158
158
  */
159
- export declare class TransparentUpgradeableProxy_json {
159
+ export declare class TransparentUpgradeableProxy {
160
160
  private contract;
161
161
  private contractAddress;
162
162
  private publicClient;
@@ -169,9 +169,9 @@ export declare class TransparentUpgradeableProxy_json {
169
169
  */
170
170
  get address(): Address;
171
171
  /**
172
- * Get the underlying viem contract instance
172
+ * Get the underlying viem contract instance.
173
173
  */
174
- getContract(): TransparentUpgradeableProxy_jsonContract;
174
+ getContract(): TransparentUpgradeableProxyContract;
175
175
  /**
176
176
  * admin
177
177
  * nonpayable
@@ -384,7 +384,7 @@ export declare class TransparentUpgradeableProxy_json {
384
384
  BeaconUpgraded: (callback: (event: {
385
385
  beacon: `0x${string}`;
386
386
  }) => void, filter?: {
387
- beacon: `0x${string}`;
387
+ beacon?: `0x${string}` | `0x${string}`[] | null;
388
388
  }) => () => void;
389
389
  /**
390
390
  * Watch Upgraded events
@@ -395,7 +395,7 @@ export declare class TransparentUpgradeableProxy_json {
395
395
  Upgraded: (callback: (event: {
396
396
  implementation: `0x${string}`;
397
397
  }) => void, filter?: {
398
- implementation: `0x${string}`;
398
+ implementation?: `0x${string}` | `0x${string}`[] | null;
399
399
  }) => () => void;
400
400
  };
401
401
  }
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransparentUpgradeableProxy_json = exports.TransparentUpgradeableProxy_jsonAbi = void 0;
3
+ exports.TransparentUpgradeableProxy = exports.TransparentUpgradeableProxyAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * TransparentUpgradeableProxy_json ABI
6
+ * TransparentUpgradeableProxy ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.TransparentUpgradeableProxy_jsonAbi = [
10
+ exports.TransparentUpgradeableProxyAbi = [
11
11
  {
12
12
  "inputs": [
13
13
  {
@@ -154,7 +154,7 @@ exports.TransparentUpgradeableProxy_jsonAbi = [
154
154
  }
155
155
  ];
156
156
  /**
157
- * TransparentUpgradeableProxy_json Contract Class
157
+ * TransparentUpgradeableProxy Contract Class
158
158
  *
159
159
  * Provides a class-based API similar to TypeChain for interacting with the contract.
160
160
  *
@@ -162,12 +162,12 @@ exports.TransparentUpgradeableProxy_jsonAbi = [
162
162
  * ```typescript
163
163
  * import { createPublicClient, createWalletClient, http } from 'viem';
164
164
  * import { mainnet } from 'viem/chains';
165
- * import { TransparentUpgradeableProxy_json } from 'TransparentUpgradeableProxy_json';
165
+ * import { TransparentUpgradeableProxy } from 'TransparentUpgradeableProxy';
166
166
  *
167
167
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
168
168
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
169
169
  *
170
- * const contract = new TransparentUpgradeableProxy_json('0x...', { publicClient, walletClient });
170
+ * const contract = new TransparentUpgradeableProxy('0x...', { publicClient, walletClient });
171
171
  *
172
172
  * // Read functions
173
173
  * const result = await contract.balanceOf('0x...');
@@ -185,13 +185,13 @@ exports.TransparentUpgradeableProxy_jsonAbi = [
185
185
  * });
186
186
  * ```
187
187
  */
188
- class TransparentUpgradeableProxy_json {
188
+ class TransparentUpgradeableProxy {
189
189
  constructor(address, clients) {
190
190
  this.contractAddress = address;
191
191
  this.publicClient = clients.publicClient;
192
192
  this.contract = (0, viem_1.getContract)({
193
193
  address,
194
- abi: exports.TransparentUpgradeableProxy_jsonAbi,
194
+ abi: exports.TransparentUpgradeableProxyAbi,
195
195
  client: {
196
196
  public: clients.publicClient,
197
197
  wallet: clients.walletClient,
@@ -205,7 +205,7 @@ class TransparentUpgradeableProxy_json {
205
205
  return this.contractAddress;
206
206
  }
207
207
  /**
208
- * Get the underlying viem contract instance
208
+ * Get the underlying viem contract instance.
209
209
  */
210
210
  getContract() {
211
211
  return this.contract;
@@ -345,7 +345,7 @@ class TransparentUpgradeableProxy_json {
345
345
  AdminChanged: (callback) => {
346
346
  return this.publicClient.watchContractEvent({
347
347
  address: this.contractAddress,
348
- abi: exports.TransparentUpgradeableProxy_jsonAbi,
348
+ abi: exports.TransparentUpgradeableProxyAbi,
349
349
  eventName: 'AdminChanged',
350
350
  onLogs: (logs) => {
351
351
  logs.forEach((log) => {
@@ -363,7 +363,7 @@ class TransparentUpgradeableProxy_json {
363
363
  BeaconUpgraded: (callback, filter) => {
364
364
  return this.publicClient.watchContractEvent({
365
365
  address: this.contractAddress,
366
- abi: exports.TransparentUpgradeableProxy_jsonAbi,
366
+ abi: exports.TransparentUpgradeableProxyAbi,
367
367
  eventName: 'BeaconUpgraded',
368
368
  args: filter,
369
369
  onLogs: (logs) => {
@@ -382,7 +382,7 @@ class TransparentUpgradeableProxy_json {
382
382
  Upgraded: (callback, filter) => {
383
383
  return this.publicClient.watchContractEvent({
384
384
  address: this.contractAddress,
385
- abi: exports.TransparentUpgradeableProxy_jsonAbi,
385
+ abi: exports.TransparentUpgradeableProxyAbi,
386
386
  eventName: 'Upgraded',
387
387
  args: filter,
388
388
  onLogs: (logs) => {
@@ -395,4 +395,4 @@ class TransparentUpgradeableProxy_json {
395
395
  };
396
396
  }
397
397
  }
398
- exports.TransparentUpgradeableProxy_json = TransparentUpgradeableProxy_json;
398
+ exports.TransparentUpgradeableProxy = TransparentUpgradeableProxy;
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * TransparentUpgradeableProxy_json ABI
5
+ * TransparentUpgradeableProxy ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const TransparentUpgradeableProxy_jsonAbi = [
9
+ export const TransparentUpgradeableProxyAbi = [
10
10
  {
11
11
  "inputs": [
12
12
  {
@@ -154,19 +154,19 @@ export const TransparentUpgradeableProxy_jsonAbi = [
154
154
  ] as const satisfies Abi;
155
155
 
156
156
  /**
157
- * Type-safe ABI for TransparentUpgradeableProxy_json
157
+ * Type-safe ABI for TransparentUpgradeableProxy
158
158
  */
159
- export type TransparentUpgradeableProxy_jsonAbi = typeof TransparentUpgradeableProxy_jsonAbi;
159
+ export type TransparentUpgradeableProxyAbi = typeof TransparentUpgradeableProxyAbi;
160
160
 
161
161
  /**
162
- * Contract instance type for TransparentUpgradeableProxy_json
162
+ * Contract instance type for TransparentUpgradeableProxy
163
163
  */
164
164
  // Use any for contract type to avoid complex viem type issues
165
165
  // The runtime behavior is type-safe through viem's ABI typing
166
- export type TransparentUpgradeableProxy_jsonContract = any;
166
+ export type TransparentUpgradeableProxyContract = any;
167
167
 
168
168
  /**
169
- * TransparentUpgradeableProxy_json Contract Class
169
+ * TransparentUpgradeableProxy Contract Class
170
170
  *
171
171
  * Provides a class-based API similar to TypeChain for interacting with the contract.
172
172
  *
@@ -174,12 +174,12 @@ export type TransparentUpgradeableProxy_jsonContract = any;
174
174
  * ```typescript
175
175
  * import { createPublicClient, createWalletClient, http } from 'viem';
176
176
  * import { mainnet } from 'viem/chains';
177
- * import { TransparentUpgradeableProxy_json } from 'TransparentUpgradeableProxy_json';
177
+ * import { TransparentUpgradeableProxy } from 'TransparentUpgradeableProxy';
178
178
  *
179
179
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
180
180
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
181
181
  *
182
- * const contract = new TransparentUpgradeableProxy_json('0x...', { publicClient, walletClient });
182
+ * const contract = new TransparentUpgradeableProxy('0x...', { publicClient, walletClient });
183
183
  *
184
184
  * // Read functions
185
185
  * const result = await contract.balanceOf('0x...');
@@ -197,8 +197,8 @@ export type TransparentUpgradeableProxy_jsonContract = any;
197
197
  * });
198
198
  * ```
199
199
  */
200
- export class TransparentUpgradeableProxy_json {
201
- private contract: TransparentUpgradeableProxy_jsonContract;
200
+ export class TransparentUpgradeableProxy {
201
+ private contract: TransparentUpgradeableProxyContract;
202
202
  private contractAddress: Address;
203
203
  private publicClient: PublicClient;
204
204
 
@@ -213,7 +213,7 @@ export class TransparentUpgradeableProxy_json {
213
213
  this.publicClient = clients.publicClient;
214
214
  this.contract = getContract({
215
215
  address,
216
- abi: TransparentUpgradeableProxy_jsonAbi,
216
+ abi: TransparentUpgradeableProxyAbi,
217
217
  client: {
218
218
  public: clients.publicClient,
219
219
  wallet: clients.walletClient,
@@ -229,9 +229,9 @@ export class TransparentUpgradeableProxy_json {
229
229
  }
230
230
 
231
231
  /**
232
- * Get the underlying viem contract instance
232
+ * Get the underlying viem contract instance.
233
233
  */
234
- getContract(): TransparentUpgradeableProxy_jsonContract {
234
+ getContract(): TransparentUpgradeableProxyContract {
235
235
  return this.contract;
236
236
  }
237
237
 
@@ -489,7 +489,7 @@ export class TransparentUpgradeableProxy_json {
489
489
  AdminChanged: (callback: (event: { previousAdmin: `0x${string}`; newAdmin: `0x${string}` }) => void) => {
490
490
  return this.publicClient.watchContractEvent({
491
491
  address: this.contractAddress,
492
- abi: TransparentUpgradeableProxy_jsonAbi,
492
+ abi: TransparentUpgradeableProxyAbi,
493
493
  eventName: 'AdminChanged',
494
494
 
495
495
  onLogs: (logs: any[]) => {
@@ -505,12 +505,12 @@ export class TransparentUpgradeableProxy_json {
505
505
  * @param filter Optional filter for indexed parameters
506
506
  * @returns Unwatch function to stop listening
507
507
  */
508
- BeaconUpgraded: (callback: (event: { beacon: `0x${string}` }) => void, filter?: { beacon: `0x${string}` }) => {
508
+ BeaconUpgraded: (callback: (event: { beacon: `0x${string}` }) => void, filter?: { beacon?: `0x${string}` | `0x${string}`[] | null }) => {
509
509
  return this.publicClient.watchContractEvent({
510
510
  address: this.contractAddress,
511
- abi: TransparentUpgradeableProxy_jsonAbi,
511
+ abi: TransparentUpgradeableProxyAbi,
512
512
  eventName: 'BeaconUpgraded',
513
- args: filter,
513
+ args: filter as any,
514
514
  onLogs: (logs: any[]) => {
515
515
  logs.forEach((log: any) => {
516
516
  callback(log.args as any);
@@ -524,12 +524,12 @@ export class TransparentUpgradeableProxy_json {
524
524
  * @param filter Optional filter for indexed parameters
525
525
  * @returns Unwatch function to stop listening
526
526
  */
527
- Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation: `0x${string}` }) => {
527
+ Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation?: `0x${string}` | `0x${string}`[] | null }) => {
528
528
  return this.publicClient.watchContractEvent({
529
529
  address: this.contractAddress,
530
- abi: TransparentUpgradeableProxy_jsonAbi,
530
+ abi: TransparentUpgradeableProxyAbi,
531
531
  eventName: 'Upgraded',
532
- args: filter,
532
+ args: filter as any,
533
533
  onLogs: (logs: any[]) => {
534
534
  logs.forEach((log: any) => {
535
535
  callback(log.args as any);
@@ -1,4 +1,4 @@
1
- export { TransparentUpgradeableProxy_jsonAbi, TransparentUpgradeableProxy_json } from './TransparentUpgradeableProxy_json';
2
- export type { TransparentUpgradeableProxy_jsonAbi as TransparentUpgradeableProxy_jsonAbiType, TransparentUpgradeableProxy_jsonContract } from './TransparentUpgradeableProxy_json';
3
- export { ERC1155Rarible_jsonAbi, ERC1155Rarible_json } from './ERC1155Rarible_json';
4
- export type { ERC1155Rarible_jsonAbi as ERC1155Rarible_jsonAbiType, ERC1155Rarible_jsonContract } from './ERC1155Rarible_json';
1
+ export { ERC721RaribleMinimalAbi, ERC721RaribleMinimal } from './ERC721RaribleMinimal';
2
+ export type { ERC721RaribleMinimalAbi as ERC721RaribleMinimalAbiType, ERC721RaribleMinimalContract } from './ERC721RaribleMinimal';
3
+ export { TransparentUpgradeableProxyAbi, TransparentUpgradeableProxy } from './TransparentUpgradeableProxy';
4
+ export type { TransparentUpgradeableProxyAbi as TransparentUpgradeableProxyAbiType, TransparentUpgradeableProxyContract } from './TransparentUpgradeableProxy';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ERC1155Rarible_json = exports.ERC1155Rarible_jsonAbi = exports.TransparentUpgradeableProxy_json = exports.TransparentUpgradeableProxy_jsonAbi = void 0;
3
+ exports.TransparentUpgradeableProxy = exports.TransparentUpgradeableProxyAbi = exports.ERC721RaribleMinimal = exports.ERC721RaribleMinimalAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var TransparentUpgradeableProxy_json_1 = require("./TransparentUpgradeableProxy_json");
6
- Object.defineProperty(exports, "TransparentUpgradeableProxy_jsonAbi", { enumerable: true, get: function () { return TransparentUpgradeableProxy_json_1.TransparentUpgradeableProxy_jsonAbi; } });
7
- Object.defineProperty(exports, "TransparentUpgradeableProxy_json", { enumerable: true, get: function () { return TransparentUpgradeableProxy_json_1.TransparentUpgradeableProxy_json; } });
8
- var ERC1155Rarible_json_1 = require("./ERC1155Rarible_json");
9
- Object.defineProperty(exports, "ERC1155Rarible_jsonAbi", { enumerable: true, get: function () { return ERC1155Rarible_json_1.ERC1155Rarible_jsonAbi; } });
10
- Object.defineProperty(exports, "ERC1155Rarible_json", { enumerable: true, get: function () { return ERC1155Rarible_json_1.ERC1155Rarible_json; } });
5
+ var ERC721RaribleMinimal_1 = require("./ERC721RaribleMinimal");
6
+ Object.defineProperty(exports, "ERC721RaribleMinimalAbi", { enumerable: true, get: function () { return ERC721RaribleMinimal_1.ERC721RaribleMinimalAbi; } });
7
+ Object.defineProperty(exports, "ERC721RaribleMinimal", { enumerable: true, get: function () { return ERC721RaribleMinimal_1.ERC721RaribleMinimal; } });
8
+ var TransparentUpgradeableProxy_1 = require("./TransparentUpgradeableProxy");
9
+ Object.defineProperty(exports, "TransparentUpgradeableProxyAbi", { enumerable: true, get: function () { return TransparentUpgradeableProxy_1.TransparentUpgradeableProxyAbi; } });
10
+ Object.defineProperty(exports, "TransparentUpgradeableProxy", { enumerable: true, get: function () { return TransparentUpgradeableProxy_1.TransparentUpgradeableProxy; } });
@@ -1,5 +1,5 @@
1
1
  // Auto-generated exports for all contracts
2
- export { TransparentUpgradeableProxy_jsonAbi, TransparentUpgradeableProxy_json } from './TransparentUpgradeableProxy_json';
3
- export type { TransparentUpgradeableProxy_jsonAbi as TransparentUpgradeableProxy_jsonAbiType, TransparentUpgradeableProxy_jsonContract } from './TransparentUpgradeableProxy_json';
4
- export { ERC1155Rarible_jsonAbi, ERC1155Rarible_json } from './ERC1155Rarible_json';
5
- export type { ERC1155Rarible_jsonAbi as ERC1155Rarible_jsonAbiType, ERC1155Rarible_jsonContract } from './ERC1155Rarible_json';
2
+ export { ERC721RaribleMinimalAbi, ERC721RaribleMinimal } from './ERC721RaribleMinimal';
3
+ export type { ERC721RaribleMinimalAbi as ERC721RaribleMinimalAbiType, ERC721RaribleMinimalContract } from './ERC721RaribleMinimal';
4
+ export { TransparentUpgradeableProxyAbi, TransparentUpgradeableProxy } from './TransparentUpgradeableProxy';
5
+ export type { TransparentUpgradeableProxyAbi as TransparentUpgradeableProxyAbiType, TransparentUpgradeableProxyContract } from './TransparentUpgradeableProxy';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/rari",
3
- "version": "1.0.2",
4
- "description": "Auto-generated TypeScript type bindings for RARI (build etherscan-rari-b66a603f-1788029097691, commit 4848053, branch etherscan)",
3
+ "version": "1.0.3",
4
+ "description": "Auto-generated TypeScript type bindings for RARI (build etherscan-rari-c9154424-1794013406021, commit d0fa169, 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": "MIT",
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/rari"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "4848053"
42
+ "shortHash": "d0fa169"
43
43
  }