@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.
- package/README.md +4 -4
- package/contracts/{ERC1155Rarible_json.d.ts → ERC721RaribleMinimal.d.ts} +214 -385
- package/contracts/{ERC1155Rarible_json.js → ERC721RaribleMinimal.js} +237 -451
- package/contracts/{ERC1155Rarible_json.ts → ERC721RaribleMinimal.ts} +271 -484
- package/contracts/{TransparentUpgradeableProxy_json.d.ts → TransparentUpgradeableProxy.d.ts} +14 -14
- package/contracts/{TransparentUpgradeableProxy_json.js → TransparentUpgradeableProxy.js} +13 -13
- package/contracts/{TransparentUpgradeableProxy_json.ts → TransparentUpgradeableProxy.ts} +21 -21
- package/contracts/index.d.ts +4 -4
- package/contracts/index.js +7 -7
- package/contracts/index.ts +4 -4
- package/package.json +4 -4
package/contracts/{TransparentUpgradeableProxy_json.d.ts → TransparentUpgradeableProxy.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
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
|
|
120
|
+
* Type-safe ABI for TransparentUpgradeableProxy
|
|
121
121
|
*/
|
|
122
|
-
export type
|
|
122
|
+
export type TransparentUpgradeableProxyAbi = typeof TransparentUpgradeableProxyAbi;
|
|
123
123
|
/**
|
|
124
|
-
* Contract instance type for
|
|
124
|
+
* Contract instance type for TransparentUpgradeableProxy
|
|
125
125
|
*/
|
|
126
|
-
export type
|
|
126
|
+
export type TransparentUpgradeableProxyContract = any;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
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():
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
exports.TransparentUpgradeableProxy = exports.TransparentUpgradeableProxyAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* TransparentUpgradeableProxy ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.TransparentUpgradeableProxyAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
@@ -154,7 +154,7 @@ exports.TransparentUpgradeableProxy_jsonAbi = [
|
|
|
154
154
|
}
|
|
155
155
|
];
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
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
|
|
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
|
|
157
|
+
* Type-safe ABI for TransparentUpgradeableProxy
|
|
158
158
|
*/
|
|
159
|
-
export type
|
|
159
|
+
export type TransparentUpgradeableProxyAbi = typeof TransparentUpgradeableProxyAbi;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
|
-
* Contract instance type for
|
|
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
|
|
166
|
+
export type TransparentUpgradeableProxyContract = any;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
201
|
-
private contract:
|
|
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:
|
|
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():
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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);
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
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';
|
package/contracts/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TransparentUpgradeableProxy = exports.TransparentUpgradeableProxyAbi = exports.ERC721RaribleMinimal = exports.ERC721RaribleMinimalAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
|
-
export {
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
5
|
-
export type {
|
|
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.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for RARI (build etherscan-rari-
|
|
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": "
|
|
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": "
|
|
42
|
+
"shortHash": "d0fa169"
|
|
43
43
|
}
|