@gitmyabi/topup 1.0.10 → 1.0.11

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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **TopUp**
4
4
 
5
- - **Build ID**: `etherscan-topup-7a9f8f6a-1787232291699`
5
+ - **Build ID**: `etherscan-topup-64d332d6-1787482394160`
6
6
  - **Build Number**: 1
7
- - **Commit**: `36e82b0`
7
+ - **Commit**: `8eacf25`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 2
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **TopUp**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/topup@1.0.10
15
+ npm install @gitmyabi/topup@1.0.11
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -68,6 +68,10 @@ export declare const TopUpV2_jsonAbi: readonly [{
68
68
  readonly inputs: readonly [];
69
69
  readonly name: "Unauthorized";
70
70
  readonly type: "error";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "WrapperNotSet";
74
+ readonly type: "error";
71
75
  }, {
72
76
  readonly anonymous: false;
73
77
  readonly inputs: readonly [{
@@ -282,6 +286,20 @@ export declare const TopUpV2_jsonAbi: readonly [{
282
286
  }];
283
287
  readonly stateMutability: "view";
284
288
  readonly type: "function";
289
+ }, {
290
+ readonly inputs: readonly [{
291
+ readonly internalType: "address";
292
+ readonly name: "token";
293
+ readonly type: "address";
294
+ }, {
295
+ readonly internalType: "uint256";
296
+ readonly name: "amount";
297
+ readonly type: "uint256";
298
+ }];
299
+ readonly name: "wrap";
300
+ readonly outputs: readonly [];
301
+ readonly stateMutability: "nonpayable";
302
+ readonly type: "function";
285
303
  }, {
286
304
  readonly stateMutability: "payable";
287
305
  readonly type: "receive";
@@ -520,6 +538,23 @@ export declare class TopUpV2_json {
520
538
  nonce?: number;
521
539
  value?: bigint;
522
540
  }): Promise<`0x${string}`>;
541
+ /**
542
+ * wrap
543
+ * nonpayable
544
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
545
+ */
546
+ wrap(token: `0x${string}`, amount: bigint, options?: {
547
+ accessList?: import('viem').AccessList;
548
+ authorizationList?: import('viem').AuthorizationList;
549
+ chain?: import('viem').Chain | null;
550
+ dataSuffix?: `0x${string}`;
551
+ gas?: bigint;
552
+ gasPrice?: bigint;
553
+ maxFeePerGas?: bigint;
554
+ maxPriorityFeePerGas?: bigint;
555
+ nonce?: number;
556
+ value?: bigint;
557
+ }): Promise<`0x${string}`>;
523
558
  /**
524
559
  * Simulate contract write operations (dry-run without sending transaction)
525
560
  *
@@ -682,6 +717,23 @@ export declare class TopUpV2_json {
682
717
  nonce?: number;
683
718
  value?: bigint;
684
719
  }): Promise<void>;
720
+ /**
721
+ * Simulate wrap
722
+ * Returns gas estimate and result without sending transaction
723
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
724
+ */
725
+ wrap(token: `0x${string}`, amount: bigint, options?: {
726
+ accessList?: import("viem").AccessList;
727
+ authorizationList?: import("viem").AuthorizationList;
728
+ chain?: import("viem").Chain | null;
729
+ dataSuffix?: `0x${string}`;
730
+ gas?: bigint;
731
+ gasPrice?: bigint;
732
+ maxFeePerGas?: bigint;
733
+ maxPriorityFeePerGas?: bigint;
734
+ nonce?: number;
735
+ value?: bigint;
736
+ }): Promise<void>;
685
737
  };
686
738
  /**
687
739
  * Watch contract events
@@ -90,6 +90,11 @@ exports.TopUpV2_jsonAbi = [
90
90
  "name": "Unauthorized",
91
91
  "type": "error"
92
92
  },
93
+ {
94
+ "inputs": [],
95
+ "name": "WrapperNotSet",
96
+ "type": "error"
97
+ },
93
98
  {
94
99
  "anonymous": false,
95
100
  "inputs": [
@@ -364,6 +369,24 @@ exports.TopUpV2_jsonAbi = [
364
369
  "stateMutability": "view",
365
370
  "type": "function"
366
371
  },
372
+ {
373
+ "inputs": [
374
+ {
375
+ "internalType": "address",
376
+ "name": "token",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "internalType": "uint256",
381
+ "name": "amount",
382
+ "type": "uint256"
383
+ }
384
+ ],
385
+ "name": "wrap",
386
+ "outputs": [],
387
+ "stateMutability": "nonpayable",
388
+ "type": "function"
389
+ },
367
390
  {
368
391
  "stateMutability": "payable",
369
392
  "type": "receive"
@@ -560,6 +583,17 @@ class TopUpV2_json {
560
583
  }
561
584
  return this.contract.write.transferOwnership([newOwner], options);
562
585
  }
586
+ /**
587
+ * wrap
588
+ * nonpayable
589
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
590
+ */
591
+ async wrap(token, amount, options) {
592
+ if (!this.contract.write) {
593
+ throw new Error('Wallet client is required for write operations');
594
+ }
595
+ return this.contract.write.wrap([token, amount], options);
596
+ }
563
597
  /**
564
598
  * Simulate contract write operations (dry-run without sending transaction)
565
599
  *
@@ -645,6 +679,14 @@ class TopUpV2_json {
645
679
  */
646
680
  async transferOwnership(newOwner, options) {
647
681
  return contract.simulate.transferOwnership([newOwner], options);
682
+ },
683
+ /**
684
+ * Simulate wrap
685
+ * Returns gas estimate and result without sending transaction
686
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
687
+ */
688
+ async wrap(token, amount, options) {
689
+ return contract.simulate.wrap([token, amount], options);
648
690
  }
649
691
  };
650
692
  }
@@ -89,6 +89,11 @@ export const TopUpV2_jsonAbi = [
89
89
  "name": "Unauthorized",
90
90
  "type": "error"
91
91
  },
92
+ {
93
+ "inputs": [],
94
+ "name": "WrapperNotSet",
95
+ "type": "error"
96
+ },
92
97
  {
93
98
  "anonymous": false,
94
99
  "inputs": [
@@ -363,6 +368,24 @@ export const TopUpV2_jsonAbi = [
363
368
  "stateMutability": "view",
364
369
  "type": "function"
365
370
  },
371
+ {
372
+ "inputs": [
373
+ {
374
+ "internalType": "address",
375
+ "name": "token",
376
+ "type": "address"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "amount",
381
+ "type": "uint256"
382
+ }
383
+ ],
384
+ "name": "wrap",
385
+ "outputs": [],
386
+ "stateMutability": "nonpayable",
387
+ "type": "function"
388
+ },
366
389
  {
367
390
  "stateMutability": "payable",
368
391
  "type": "receive"
@@ -698,6 +721,29 @@ export class TopUpV2_json {
698
721
  return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
699
722
  }
700
723
 
724
+ /**
725
+ * wrap
726
+ * nonpayable
727
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
728
+ */
729
+ async wrap(token: `0x${string}`, amount: bigint, options?: {
730
+ accessList?: import('viem').AccessList;
731
+ authorizationList?: import('viem').AuthorizationList;
732
+ chain?: import('viem').Chain | null;
733
+ dataSuffix?: `0x${string}`;
734
+ gas?: bigint;
735
+ gasPrice?: bigint;
736
+ maxFeePerGas?: bigint;
737
+ maxPriorityFeePerGas?: bigint;
738
+ nonce?: number;
739
+ value?: bigint;
740
+ }): Promise<`0x${string}`> {
741
+ if (!this.contract.write) {
742
+ throw new Error('Wallet client is required for write operations');
743
+ }
744
+ return this.contract.write.wrap([token, amount] as const, options) as Promise<`0x${string}`>;
745
+ }
746
+
701
747
 
702
748
 
703
749
  /**
@@ -884,6 +930,25 @@ export class TopUpV2_json {
884
930
  value?: bigint;
885
931
  }): Promise<void> {
886
932
  return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
933
+ },
934
+ /**
935
+ * Simulate wrap
936
+ * Returns gas estimate and result without sending transaction
937
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
938
+ */
939
+ async wrap(token: `0x${string}`, amount: bigint, options?: {
940
+ accessList?: import('viem').AccessList;
941
+ authorizationList?: import('viem').AuthorizationList;
942
+ chain?: import('viem').Chain | null;
943
+ dataSuffix?: `0x${string}`;
944
+ gas?: bigint;
945
+ gasPrice?: bigint;
946
+ maxFeePerGas?: bigint;
947
+ maxPriorityFeePerGas?: bigint;
948
+ nonce?: number;
949
+ value?: bigint;
950
+ }): Promise<void> {
951
+ return contract.simulate.wrap([token, amount] as const, options) as Promise<void>;
887
952
  }
888
953
  };
889
954
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/topup",
3
- "version": "1.0.10",
4
- "description": "Auto-generated TypeScript type bindings for TopUp (build etherscan-topup-7a9f8f6a-1787232291699, commit 36e82b0, branch etherscan)",
3
+ "version": "1.0.11",
4
+ "description": "Auto-generated TypeScript type bindings for TopUp (build etherscan-topup-64d332d6-1787482394160, commit 8eacf25, 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/topup"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "36e82b0"
42
+ "shortHash": "8eacf25"
43
43
  }