@gitmyabi/lunodepositforwarder 1.0.0 → 1.0.1
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/{LunoDepositForwarder_json.d.ts → LunoDepositForwarder.d.ts} +13 -13
- package/contracts/{LunoDepositForwarder_json.js → LunoDepositForwarder.js} +11 -11
- package/contracts/{LunoDepositForwarder_json.ts → LunoDepositForwarder.ts} +17 -17
- 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
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Auto-generated TypeScript type bindings for **LunoDepositForwarder**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-lunodepositforwarder-
|
|
5
|
+
- **Build ID**: `etherscan-lunodepositforwarder-8eaeb9d8-1793818457267`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `2f2f02d`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 1
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **LunoDepositForwarder**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/lunodepositforwarder@1.0.
|
|
15
|
+
npm install @gitmyabi/lunodepositforwarder@1.0.1
|
|
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
|
+
* LunoDepositForwarder 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 LunoDepositForwarderAbi: readonly [{
|
|
8
8
|
readonly payable: true;
|
|
9
9
|
readonly stateMutability: "payable";
|
|
10
10
|
readonly type: "fallback";
|
|
@@ -31,15 +31,15 @@ export declare const LunoDepositForwarder_jsonAbi: readonly [{
|
|
|
31
31
|
readonly type: "event";
|
|
32
32
|
}];
|
|
33
33
|
/**
|
|
34
|
-
* Type-safe ABI for
|
|
34
|
+
* Type-safe ABI for LunoDepositForwarder
|
|
35
35
|
*/
|
|
36
|
-
export type
|
|
36
|
+
export type LunoDepositForwarderAbi = typeof LunoDepositForwarderAbi;
|
|
37
37
|
/**
|
|
38
|
-
* Contract instance type for
|
|
38
|
+
* Contract instance type for LunoDepositForwarder
|
|
39
39
|
*/
|
|
40
|
-
export type
|
|
40
|
+
export type LunoDepositForwarderContract = any;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* LunoDepositForwarder Contract Class
|
|
43
43
|
*
|
|
44
44
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
45
45
|
*
|
|
@@ -47,12 +47,12 @@ export type LunoDepositForwarder_jsonContract = any;
|
|
|
47
47
|
* ```typescript
|
|
48
48
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
49
49
|
* import { mainnet } from 'viem/chains';
|
|
50
|
-
* import {
|
|
50
|
+
* import { LunoDepositForwarder } from 'LunoDepositForwarder';
|
|
51
51
|
*
|
|
52
52
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
53
53
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
54
54
|
*
|
|
55
|
-
* const contract = new
|
|
55
|
+
* const contract = new LunoDepositForwarder('0x...', { publicClient, walletClient });
|
|
56
56
|
*
|
|
57
57
|
* // Read functions
|
|
58
58
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -70,7 +70,7 @@ export type LunoDepositForwarder_jsonContract = any;
|
|
|
70
70
|
* });
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
|
-
export declare class
|
|
73
|
+
export declare class LunoDepositForwarder {
|
|
74
74
|
private contract;
|
|
75
75
|
private contractAddress;
|
|
76
76
|
private publicClient;
|
|
@@ -83,9 +83,9 @@ export declare class LunoDepositForwarder_json {
|
|
|
83
83
|
*/
|
|
84
84
|
get address(): Address;
|
|
85
85
|
/**
|
|
86
|
-
* Get the underlying viem contract instance
|
|
86
|
+
* Get the underlying viem contract instance.
|
|
87
87
|
*/
|
|
88
|
-
getContract():
|
|
88
|
+
getContract(): LunoDepositForwarderContract;
|
|
89
89
|
/**
|
|
90
90
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
91
91
|
*
|
|
@@ -117,7 +117,7 @@ export declare class LunoDepositForwarder_json {
|
|
|
117
117
|
sender: `0x${string}`;
|
|
118
118
|
amount: bigint;
|
|
119
119
|
}) => void, filter?: {
|
|
120
|
-
destination
|
|
120
|
+
destination?: `0x${string}` | `0x${string}`[] | null;
|
|
121
121
|
}) => () => void;
|
|
122
122
|
};
|
|
123
123
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LunoDepositForwarder = exports.LunoDepositForwarderAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* LunoDepositForwarder ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.LunoDepositForwarderAbi = [
|
|
11
11
|
{
|
|
12
12
|
"payable": true,
|
|
13
13
|
"stateMutability": "payable",
|
|
@@ -42,7 +42,7 @@ exports.LunoDepositForwarder_jsonAbi = [
|
|
|
42
42
|
}
|
|
43
43
|
];
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* LunoDepositForwarder Contract Class
|
|
46
46
|
*
|
|
47
47
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
48
48
|
*
|
|
@@ -50,12 +50,12 @@ exports.LunoDepositForwarder_jsonAbi = [
|
|
|
50
50
|
* ```typescript
|
|
51
51
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
52
52
|
* import { mainnet } from 'viem/chains';
|
|
53
|
-
* import {
|
|
53
|
+
* import { LunoDepositForwarder } from 'LunoDepositForwarder';
|
|
54
54
|
*
|
|
55
55
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
56
56
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
57
57
|
*
|
|
58
|
-
* const contract = new
|
|
58
|
+
* const contract = new LunoDepositForwarder('0x...', { publicClient, walletClient });
|
|
59
59
|
*
|
|
60
60
|
* // Read functions
|
|
61
61
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -73,13 +73,13 @@ exports.LunoDepositForwarder_jsonAbi = [
|
|
|
73
73
|
* });
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
class
|
|
76
|
+
class LunoDepositForwarder {
|
|
77
77
|
constructor(address, clients) {
|
|
78
78
|
this.contractAddress = address;
|
|
79
79
|
this.publicClient = clients.publicClient;
|
|
80
80
|
this.contract = (0, viem_1.getContract)({
|
|
81
81
|
address,
|
|
82
|
-
abi: exports.
|
|
82
|
+
abi: exports.LunoDepositForwarderAbi,
|
|
83
83
|
client: {
|
|
84
84
|
public: clients.publicClient,
|
|
85
85
|
wallet: clients.walletClient,
|
|
@@ -93,7 +93,7 @@ class LunoDepositForwarder_json {
|
|
|
93
93
|
return this.contractAddress;
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
* Get the underlying viem contract instance
|
|
96
|
+
* Get the underlying viem contract instance.
|
|
97
97
|
*/
|
|
98
98
|
getContract() {
|
|
99
99
|
return this.contract;
|
|
@@ -131,7 +131,7 @@ class LunoDepositForwarder_json {
|
|
|
131
131
|
LogForwarded: (callback, filter) => {
|
|
132
132
|
return this.publicClient.watchContractEvent({
|
|
133
133
|
address: this.contractAddress,
|
|
134
|
-
abi: exports.
|
|
134
|
+
abi: exports.LunoDepositForwarderAbi,
|
|
135
135
|
eventName: 'LogForwarded',
|
|
136
136
|
args: filter,
|
|
137
137
|
onLogs: (logs) => {
|
|
@@ -144,4 +144,4 @@ class LunoDepositForwarder_json {
|
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
exports.
|
|
147
|
+
exports.LunoDepositForwarder = LunoDepositForwarder;
|
|
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* LunoDepositForwarder 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 LunoDepositForwarderAbi = [
|
|
10
10
|
{
|
|
11
11
|
"payable": true,
|
|
12
12
|
"stateMutability": "payable",
|
|
@@ -42,19 +42,19 @@ export const LunoDepositForwarder_jsonAbi = [
|
|
|
42
42
|
] as const satisfies Abi;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Type-safe ABI for
|
|
45
|
+
* Type-safe ABI for LunoDepositForwarder
|
|
46
46
|
*/
|
|
47
|
-
export type
|
|
47
|
+
export type LunoDepositForwarderAbi = typeof LunoDepositForwarderAbi;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Contract instance type for
|
|
50
|
+
* Contract instance type for LunoDepositForwarder
|
|
51
51
|
*/
|
|
52
52
|
// Use any for contract type to avoid complex viem type issues
|
|
53
53
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
54
|
-
export type
|
|
54
|
+
export type LunoDepositForwarderContract = any;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* LunoDepositForwarder Contract Class
|
|
58
58
|
*
|
|
59
59
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
60
60
|
*
|
|
@@ -62,12 +62,12 @@ export type LunoDepositForwarder_jsonContract = any;
|
|
|
62
62
|
* ```typescript
|
|
63
63
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
64
64
|
* import { mainnet } from 'viem/chains';
|
|
65
|
-
* import {
|
|
65
|
+
* import { LunoDepositForwarder } from 'LunoDepositForwarder';
|
|
66
66
|
*
|
|
67
67
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
68
68
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
69
69
|
*
|
|
70
|
-
* const contract = new
|
|
70
|
+
* const contract = new LunoDepositForwarder('0x...', { publicClient, walletClient });
|
|
71
71
|
*
|
|
72
72
|
* // Read functions
|
|
73
73
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -85,8 +85,8 @@ export type LunoDepositForwarder_jsonContract = any;
|
|
|
85
85
|
* });
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
|
-
export class
|
|
89
|
-
private contract:
|
|
88
|
+
export class LunoDepositForwarder {
|
|
89
|
+
private contract: LunoDepositForwarderContract;
|
|
90
90
|
private contractAddress: Address;
|
|
91
91
|
private publicClient: PublicClient;
|
|
92
92
|
|
|
@@ -101,7 +101,7 @@ export class LunoDepositForwarder_json {
|
|
|
101
101
|
this.publicClient = clients.publicClient;
|
|
102
102
|
this.contract = getContract({
|
|
103
103
|
address,
|
|
104
|
-
abi:
|
|
104
|
+
abi: LunoDepositForwarderAbi,
|
|
105
105
|
client: {
|
|
106
106
|
public: clients.publicClient,
|
|
107
107
|
wallet: clients.walletClient,
|
|
@@ -117,9 +117,9 @@ export class LunoDepositForwarder_json {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Get the underlying viem contract instance
|
|
120
|
+
* Get the underlying viem contract instance.
|
|
121
121
|
*/
|
|
122
|
-
getContract():
|
|
122
|
+
getContract(): LunoDepositForwarderContract {
|
|
123
123
|
return this.contract;
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -158,12 +158,12 @@ export class LunoDepositForwarder_json {
|
|
|
158
158
|
* @param filter Optional filter for indexed parameters
|
|
159
159
|
* @returns Unwatch function to stop listening
|
|
160
160
|
*/
|
|
161
|
-
LogForwarded: (callback: (event: { destination: `0x${string}`; depositAddress: `0x${string}`; sender: `0x${string}`; amount: bigint }) => void, filter?: { destination
|
|
161
|
+
LogForwarded: (callback: (event: { destination: `0x${string}`; depositAddress: `0x${string}`; sender: `0x${string}`; amount: bigint }) => void, filter?: { destination?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
162
162
|
return this.publicClient.watchContractEvent({
|
|
163
163
|
address: this.contractAddress,
|
|
164
|
-
abi:
|
|
164
|
+
abi: LunoDepositForwarderAbi,
|
|
165
165
|
eventName: 'LogForwarded',
|
|
166
|
-
args: filter,
|
|
166
|
+
args: filter as any,
|
|
167
167
|
onLogs: (logs: any[]) => {
|
|
168
168
|
logs.forEach((log: any) => {
|
|
169
169
|
callback(log.args as any);
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export { LunoDepositForwarderAbi, LunoDepositForwarder } from './LunoDepositForwarder';
|
|
2
|
+
export type { LunoDepositForwarderAbi as LunoDepositForwarderAbiType, LunoDepositForwarderContract } from './LunoDepositForwarder';
|
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.LunoDepositForwarder = exports.LunoDepositForwarderAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
Object.defineProperty(exports, "
|
|
5
|
+
var LunoDepositForwarder_1 = require("./LunoDepositForwarder");
|
|
6
|
+
Object.defineProperty(exports, "LunoDepositForwarderAbi", { enumerable: true, get: function () { return LunoDepositForwarder_1.LunoDepositForwarderAbi; } });
|
|
7
|
+
Object.defineProperty(exports, "LunoDepositForwarder", { enumerable: true, get: function () { return LunoDepositForwarder_1.LunoDepositForwarder; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
|
-
export {
|
|
3
|
-
export type {
|
|
2
|
+
export { LunoDepositForwarderAbi, LunoDepositForwarder } from './LunoDepositForwarder';
|
|
3
|
+
export type { LunoDepositForwarderAbi as LunoDepositForwarderAbiType, LunoDepositForwarderContract } from './LunoDepositForwarder';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/lunodepositforwarder",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for LunoDepositForwarder (build etherscan-lunodepositforwarder-
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for LunoDepositForwarder (build etherscan-lunodepositforwarder-8eaeb9d8-1793818457267, commit 2f2f02d, 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/lunodepositforwarder"
|
|
40
40
|
},
|
|
41
41
|
"branch": "etherscan",
|
|
42
|
-
"shortHash": "
|
|
42
|
+
"shortHash": "2f2f02d"
|
|
43
43
|
}
|