@gitmyabi/mrkr 1.0.0

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.
@@ -0,0 +1,101 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * Mrkr_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const Mrkr_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ readonly type: "constructor";
11
+ }, {
12
+ readonly stateMutability: "payable";
13
+ readonly type: "fallback";
14
+ }, {
15
+ readonly inputs: readonly [];
16
+ readonly name: "implementation";
17
+ readonly outputs: readonly [{
18
+ readonly internalType: "address";
19
+ readonly name: "";
20
+ readonly type: "address";
21
+ }];
22
+ readonly stateMutability: "view";
23
+ readonly type: "function";
24
+ }, {
25
+ readonly stateMutability: "payable";
26
+ readonly type: "receive";
27
+ }];
28
+ /**
29
+ * Type-safe ABI for Mrkr_json
30
+ */
31
+ export type Mrkr_jsonAbi = typeof Mrkr_jsonAbi;
32
+ /**
33
+ * Contract instance type for Mrkr_json
34
+ */
35
+ export type Mrkr_jsonContract = any;
36
+ /**
37
+ * Mrkr_json Contract Class
38
+ *
39
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * import { createPublicClient, createWalletClient, http } from 'viem';
44
+ * import { mainnet } from 'viem/chains';
45
+ * import { Mrkr_json } from 'Mrkr_json';
46
+ *
47
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
48
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
49
+ *
50
+ * const contract = new Mrkr_json('0x...', { publicClient, walletClient });
51
+ *
52
+ * // Read functions
53
+ * const result = await contract.balanceOf('0x...');
54
+ *
55
+ * // Write functions
56
+ * const hash = await contract.transfer('0x...', 1000n);
57
+ *
58
+ * // Simulate transactions (dry-run)
59
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
60
+ * console.log('Gas estimate:', simulation.request.gas);
61
+ *
62
+ * // Watch events
63
+ * const unwatch = contract.watch.Transfer((event) => {
64
+ * console.log('Transfer event:', event);
65
+ * });
66
+ * ```
67
+ */
68
+ export declare class Mrkr_json {
69
+ private contract;
70
+ private contractAddress;
71
+ private publicClient;
72
+ constructor(address: Address, clients: {
73
+ publicClient: PublicClient;
74
+ walletClient?: WalletClient;
75
+ });
76
+ /**
77
+ * Get the contract address
78
+ */
79
+ get address(): Address;
80
+ /**
81
+ * Get the underlying viem contract instance
82
+ */
83
+ getContract(): Mrkr_jsonContract;
84
+ /**
85
+ * implementation
86
+ * view
87
+ */
88
+ implementation(): Promise<`0x${string}`>;
89
+ /**
90
+ * Simulate contract write operations (dry-run without sending transaction)
91
+ *
92
+ * Note: This contract has no write functions, so simulate returns an empty object.
93
+ */
94
+ get simulate(): {};
95
+ /**
96
+ * Watch contract events
97
+ *
98
+ * Note: This contract has no events, so watch returns an empty object.
99
+ */
100
+ get watch(): {};
101
+ }
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Mrkr_json = exports.Mrkr_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * Mrkr_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.Mrkr_jsonAbi = [
11
+ {
12
+ "inputs": [],
13
+ "stateMutability": "nonpayable",
14
+ "type": "constructor"
15
+ },
16
+ {
17
+ "stateMutability": "payable",
18
+ "type": "fallback"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "implementation",
23
+ "outputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "stateMutability": "view",
31
+ "type": "function"
32
+ },
33
+ {
34
+ "stateMutability": "payable",
35
+ "type": "receive"
36
+ }
37
+ ];
38
+ /**
39
+ * Mrkr_json Contract Class
40
+ *
41
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * import { createPublicClient, createWalletClient, http } from 'viem';
46
+ * import { mainnet } from 'viem/chains';
47
+ * import { Mrkr_json } from 'Mrkr_json';
48
+ *
49
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
50
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
51
+ *
52
+ * const contract = new Mrkr_json('0x...', { publicClient, walletClient });
53
+ *
54
+ * // Read functions
55
+ * const result = await contract.balanceOf('0x...');
56
+ *
57
+ * // Write functions
58
+ * const hash = await contract.transfer('0x...', 1000n);
59
+ *
60
+ * // Simulate transactions (dry-run)
61
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
62
+ * console.log('Gas estimate:', simulation.request.gas);
63
+ *
64
+ * // Watch events
65
+ * const unwatch = contract.watch.Transfer((event) => {
66
+ * console.log('Transfer event:', event);
67
+ * });
68
+ * ```
69
+ */
70
+ class Mrkr_json {
71
+ constructor(address, clients) {
72
+ this.contractAddress = address;
73
+ this.publicClient = clients.publicClient;
74
+ this.contract = (0, viem_1.getContract)({
75
+ address,
76
+ abi: exports.Mrkr_jsonAbi,
77
+ client: {
78
+ public: clients.publicClient,
79
+ wallet: clients.walletClient,
80
+ },
81
+ });
82
+ }
83
+ /**
84
+ * Get the contract address
85
+ */
86
+ get address() {
87
+ return this.contractAddress;
88
+ }
89
+ /**
90
+ * Get the underlying viem contract instance
91
+ */
92
+ getContract() {
93
+ return this.contract;
94
+ }
95
+ /**
96
+ * implementation
97
+ * view
98
+ */
99
+ async implementation() {
100
+ return this.contract.read.implementation();
101
+ }
102
+ // No write functions
103
+ /**
104
+ * Simulate contract write operations (dry-run without sending transaction)
105
+ *
106
+ * Note: This contract has no write functions, so simulate returns an empty object.
107
+ */
108
+ get simulate() {
109
+ return {};
110
+ }
111
+ /**
112
+ * Watch contract events
113
+ *
114
+ * Note: This contract has no events, so watch returns an empty object.
115
+ */
116
+ get watch() {
117
+ return {};
118
+ }
119
+ }
120
+ exports.Mrkr_json = Mrkr_json;
@@ -0,0 +1,149 @@
1
+ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
+ import { getContract } from 'viem';
3
+
4
+ /**
5
+ * Mrkr_json ABI
6
+ *
7
+ * This ABI is typed using viem's type system for full type safety.
8
+ */
9
+ export const Mrkr_jsonAbi = [
10
+ {
11
+ "inputs": [],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "stateMutability": "payable",
17
+ "type": "fallback"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "implementation",
22
+ "outputs": [
23
+ {
24
+ "internalType": "address",
25
+ "name": "",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "stateMutability": "payable",
34
+ "type": "receive"
35
+ }
36
+ ] as const satisfies Abi;
37
+
38
+ /**
39
+ * Type-safe ABI for Mrkr_json
40
+ */
41
+ export type Mrkr_jsonAbi = typeof Mrkr_jsonAbi;
42
+
43
+ /**
44
+ * Contract instance type for Mrkr_json
45
+ */
46
+ // Use any for contract type to avoid complex viem type issues
47
+ // The runtime behavior is type-safe through viem's ABI typing
48
+ export type Mrkr_jsonContract = any;
49
+
50
+ /**
51
+ * Mrkr_json Contract Class
52
+ *
53
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * import { createPublicClient, createWalletClient, http } from 'viem';
58
+ * import { mainnet } from 'viem/chains';
59
+ * import { Mrkr_json } from 'Mrkr_json';
60
+ *
61
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
62
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
63
+ *
64
+ * const contract = new Mrkr_json('0x...', { publicClient, walletClient });
65
+ *
66
+ * // Read functions
67
+ * const result = await contract.balanceOf('0x...');
68
+ *
69
+ * // Write functions
70
+ * const hash = await contract.transfer('0x...', 1000n);
71
+ *
72
+ * // Simulate transactions (dry-run)
73
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
74
+ * console.log('Gas estimate:', simulation.request.gas);
75
+ *
76
+ * // Watch events
77
+ * const unwatch = contract.watch.Transfer((event) => {
78
+ * console.log('Transfer event:', event);
79
+ * });
80
+ * ```
81
+ */
82
+ export class Mrkr_json {
83
+ private contract: Mrkr_jsonContract;
84
+ private contractAddress: Address;
85
+ private publicClient: PublicClient;
86
+
87
+ constructor(
88
+ address: Address,
89
+ clients: {
90
+ publicClient: PublicClient;
91
+ walletClient?: WalletClient;
92
+ }
93
+ ) {
94
+ this.contractAddress = address;
95
+ this.publicClient = clients.publicClient;
96
+ this.contract = getContract({
97
+ address,
98
+ abi: Mrkr_jsonAbi,
99
+ client: {
100
+ public: clients.publicClient,
101
+ wallet: clients.walletClient,
102
+ },
103
+ });
104
+ }
105
+
106
+ /**
107
+ * Get the contract address
108
+ */
109
+ get address(): Address {
110
+ return this.contractAddress;
111
+ }
112
+
113
+ /**
114
+ * Get the underlying viem contract instance
115
+ */
116
+ getContract(): Mrkr_jsonContract {
117
+ return this.contract;
118
+ }
119
+
120
+ /**
121
+ * implementation
122
+ * view
123
+ */
124
+ async implementation(): Promise<`0x${string}`> {
125
+ return this.contract.read.implementation() as Promise<`0x${string}`>;
126
+ }
127
+
128
+ // No write functions
129
+
130
+
131
+
132
+ /**
133
+ * Simulate contract write operations (dry-run without sending transaction)
134
+ *
135
+ * Note: This contract has no write functions, so simulate returns an empty object.
136
+ */
137
+ get simulate() {
138
+ return {};
139
+ }
140
+
141
+ /**
142
+ * Watch contract events
143
+ *
144
+ * Note: This contract has no events, so watch returns an empty object.
145
+ */
146
+ get watch() {
147
+ return {};
148
+ }
149
+ }
@@ -0,0 +1,4 @@
1
+ export { Mrkr_jsonAbi, Mrkr_json } from './Mrkr_json';
2
+ export type { Mrkr_jsonAbi as Mrkr_jsonAbiType, Mrkr_jsonContract } from './Mrkr_json';
3
+ export { ERC721CreatorImplementation_jsonAbi, ERC721CreatorImplementation_json } from './ERC721CreatorImplementation_json';
4
+ export type { ERC721CreatorImplementation_jsonAbi as ERC721CreatorImplementation_jsonAbiType, ERC721CreatorImplementation_jsonContract } from './ERC721CreatorImplementation_json';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC721CreatorImplementation_json = exports.ERC721CreatorImplementation_jsonAbi = exports.Mrkr_json = exports.Mrkr_jsonAbi = void 0;
4
+ // Auto-generated exports for all contracts
5
+ var Mrkr_json_1 = require("./Mrkr_json");
6
+ Object.defineProperty(exports, "Mrkr_jsonAbi", { enumerable: true, get: function () { return Mrkr_json_1.Mrkr_jsonAbi; } });
7
+ Object.defineProperty(exports, "Mrkr_json", { enumerable: true, get: function () { return Mrkr_json_1.Mrkr_json; } });
8
+ var ERC721CreatorImplementation_json_1 = require("./ERC721CreatorImplementation_json");
9
+ Object.defineProperty(exports, "ERC721CreatorImplementation_jsonAbi", { enumerable: true, get: function () { return ERC721CreatorImplementation_json_1.ERC721CreatorImplementation_jsonAbi; } });
10
+ Object.defineProperty(exports, "ERC721CreatorImplementation_json", { enumerable: true, get: function () { return ERC721CreatorImplementation_json_1.ERC721CreatorImplementation_json; } });
@@ -0,0 +1,5 @@
1
+ // Auto-generated exports for all contracts
2
+ export { Mrkr_jsonAbi, Mrkr_json } from './Mrkr_json';
3
+ export type { Mrkr_jsonAbi as Mrkr_jsonAbiType, Mrkr_jsonContract } from './Mrkr_json';
4
+ export { ERC721CreatorImplementation_jsonAbi, ERC721CreatorImplementation_json } from './ERC721CreatorImplementation_json';
5
+ export type { ERC721CreatorImplementation_jsonAbi as ERC721CreatorImplementation_jsonAbiType, ERC721CreatorImplementation_jsonContract } from './ERC721CreatorImplementation_json';
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './contracts';
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // Auto-generated TypeScript type bindings
3
+ // This file exports all generated contract types
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ __exportStar(require("./contracts"), exports);
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@gitmyabi/mrkr",
3
+ "version": "1.0.0",
4
+ "description": "Auto-generated TypeScript type bindings for Mrkr (build etherscan-mrkr-71dba84f-1784984647416, commit e17d5b2, branch etherscan)",
5
+ "main": "./index.js",
6
+ "types": "./index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./index.js",
10
+ "require": "./index.js",
11
+ "types": "./index.d.ts"
12
+ },
13
+ "./contracts": {
14
+ "import": "./contracts/index.js",
15
+ "require": "./contracts/index.js",
16
+ "types": "./contracts/index.d.ts"
17
+ }
18
+ },
19
+ "files": [
20
+ "index.js",
21
+ "index.d.ts",
22
+ "contracts"
23
+ ],
24
+ "keywords": [
25
+ "ethereum",
26
+ "smart-contracts",
27
+ "viem",
28
+ "wagmi",
29
+ "typescript",
30
+ "abi",
31
+ "ethers-v6"
32
+ ],
33
+ "license": "MIT",
34
+ "dependencies": {
35
+ "viem": "^2.0.0"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/etherscan/mrkr"
40
+ },
41
+ "branch": "etherscan",
42
+ "shortHash": "e17d5b2"
43
+ }