quantumswap 0.0.5 → 0.0.7

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
- // Auto-generated by sdkgen
2
- import { ContractFactory, ContractRunner } from "quantumcoin";
3
- import { WQ } from "./WQ";
4
- import type * as Types from "./types";
5
-
6
- export declare class WQ__factory extends ContractFactory {
7
- constructor(runner: ContractRunner);
8
- deploy(overrides?: any): Promise<WQ>;
9
- static connect(address: string, runner?: ContractRunner): WQ;
10
- }
1
+ // Auto-generated by sdkgen
2
+ import { ContractFactory, ContractRunner } from "quantumcoin";
3
+ import { WQ } from "./WQ";
4
+ import type * as Types from "./types";
5
+
6
+ export declare class WQ__factory extends ContractFactory {
7
+ constructor(runner: ContractRunner);
8
+ deploy(overrides?: any): Promise<WQ>;
9
+ static connect(address: string, runner?: ContractRunner): WQ;
10
+ }
@@ -1,29 +1,29 @@
1
- // Auto-generated by sdkgen
2
- const { ContractFactory, getCreateAddress } = require("quantumcoin");
3
- const { WQ } = require("./WQ");
4
-
5
- class WQ__factory extends ContractFactory {
6
- constructor(runner) {
7
- super(WQ.abi, WQ.bytecode, runner);
8
- }
9
-
10
- async deploy(overrides) {
11
- const signer = this.signer;
12
- if (!signer) { throw new Error("missing signer"); }
13
- const from = signer.getAddress ? await signer.getAddress() : signer.address;
14
- const provider = signer.provider;
15
- if (!provider || !provider.getTransactionCount) { throw new Error("missing provider"); }
16
- let nonce;
17
- try { nonce = await provider.getTransactionCount(from, "pending"); } catch { nonce = await provider.getTransactionCount(from, "latest"); }
18
- const address = getCreateAddress({ from, nonce });
19
- const txReq = this.getDeployTransaction();
20
- const tx = await signer.sendTransaction({ ...txReq, ...(overrides || {}), nonce });
21
- return new WQ(address, signer, tx);
22
- }
23
-
24
- static connect(address, runner) {
25
- return WQ.connect(address, runner);
26
- }
27
- }
28
-
29
- module.exports = { WQ__factory };
1
+ // Auto-generated by sdkgen
2
+ const { ContractFactory, getCreateAddress } = require("quantumcoin");
3
+ const { WQ } = require("./WQ");
4
+
5
+ class WQ__factory extends ContractFactory {
6
+ constructor(runner) {
7
+ super(WQ.abi, WQ.bytecode, runner);
8
+ }
9
+
10
+ async deploy(overrides) {
11
+ const signer = this.signer;
12
+ if (!signer) { throw new Error("missing signer"); }
13
+ const from = signer.getAddress ? await signer.getAddress() : signer.address;
14
+ const provider = signer.provider;
15
+ if (!provider || !provider.getTransactionCount) { throw new Error("missing provider"); }
16
+ let nonce;
17
+ try { nonce = await provider.getTransactionCount(from, "pending"); } catch { nonce = await provider.getTransactionCount(from, "latest"); }
18
+ const address = getCreateAddress({ from, nonce });
19
+ const txReq = this.getDeployTransaction();
20
+ const tx = await signer.sendTransaction({ ...txReq, ...(overrides || {}), nonce });
21
+ return new WQ(address, signer, tx);
22
+ }
23
+
24
+ static connect(address, runner) {
25
+ return WQ.connect(address, runner);
26
+ }
27
+ }
28
+
29
+ module.exports = { WQ__factory };
package/src/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- // Auto-generated by sdkgen
2
- export * from "./types";
3
- export * from "./IERC20";
4
- export * from "./IERC20__factory";
5
- export * from "./QuantumSwapV2ERC20";
6
- export * from "./QuantumSwapV2ERC20__factory";
7
- export * from "./QuantumSwapV2Factory";
8
- export * from "./QuantumSwapV2Factory__factory";
9
- export * from "./QuantumSwapV2Pair";
10
- export * from "./QuantumSwapV2Pair__factory";
11
- export * from "./QuantumSwapV2Router02";
12
- export * from "./QuantumSwapV2Router02__factory";
13
- export * from "./WQ";
14
- export * from "./WQ__factory";
1
+ // Auto-generated by sdkgen
2
+ export * from "./types";
3
+ export * from "./IERC20";
4
+ export * from "./IERC20__factory";
5
+ export * from "./QuantumSwapV2ERC20";
6
+ export * from "./QuantumSwapV2ERC20__factory";
7
+ export * from "./QuantumSwapV2Factory";
8
+ export * from "./QuantumSwapV2Factory__factory";
9
+ export * from "./QuantumSwapV2Pair";
10
+ export * from "./QuantumSwapV2Pair__factory";
11
+ export * from "./QuantumSwapV2Router02";
12
+ export * from "./QuantumSwapV2Router02__factory";
13
+ export * from "./WQ";
14
+ export * from "./WQ__factory";
package/src/index.js CHANGED
@@ -1,15 +1,15 @@
1
- // Auto-generated by sdkgen
2
-
3
- Object.assign(exports, require("./types"));
4
- exports.IERC20 = require("./IERC20").IERC20;
5
- exports.IERC20__factory = require("./IERC20__factory").IERC20__factory;
6
- exports.QuantumSwapV2ERC20 = require("./QuantumSwapV2ERC20").QuantumSwapV2ERC20;
7
- exports.QuantumSwapV2ERC20__factory = require("./QuantumSwapV2ERC20__factory").QuantumSwapV2ERC20__factory;
8
- exports.QuantumSwapV2Factory = require("./QuantumSwapV2Factory").QuantumSwapV2Factory;
9
- exports.QuantumSwapV2Factory__factory = require("./QuantumSwapV2Factory__factory").QuantumSwapV2Factory__factory;
10
- exports.QuantumSwapV2Pair = require("./QuantumSwapV2Pair").QuantumSwapV2Pair;
11
- exports.QuantumSwapV2Pair__factory = require("./QuantumSwapV2Pair__factory").QuantumSwapV2Pair__factory;
12
- exports.QuantumSwapV2Router02 = require("./QuantumSwapV2Router02").QuantumSwapV2Router02;
13
- exports.QuantumSwapV2Router02__factory = require("./QuantumSwapV2Router02__factory").QuantumSwapV2Router02__factory;
14
- exports.WQ = require("./WQ").WQ;
15
- exports.WQ__factory = require("./WQ__factory").WQ__factory;
1
+ // Auto-generated by sdkgen
2
+
3
+ Object.assign(exports, require("./types"));
4
+ exports.IERC20 = require("./IERC20").IERC20;
5
+ exports.IERC20__factory = require("./IERC20__factory").IERC20__factory;
6
+ exports.QuantumSwapV2ERC20 = require("./QuantumSwapV2ERC20").QuantumSwapV2ERC20;
7
+ exports.QuantumSwapV2ERC20__factory = require("./QuantumSwapV2ERC20__factory").QuantumSwapV2ERC20__factory;
8
+ exports.QuantumSwapV2Factory = require("./QuantumSwapV2Factory").QuantumSwapV2Factory;
9
+ exports.QuantumSwapV2Factory__factory = require("./QuantumSwapV2Factory__factory").QuantumSwapV2Factory__factory;
10
+ exports.QuantumSwapV2Pair = require("./QuantumSwapV2Pair").QuantumSwapV2Pair;
11
+ exports.QuantumSwapV2Pair__factory = require("./QuantumSwapV2Pair__factory").QuantumSwapV2Pair__factory;
12
+ exports.QuantumSwapV2Router02 = require("./QuantumSwapV2Router02").QuantumSwapV2Router02;
13
+ exports.QuantumSwapV2Router02__factory = require("./QuantumSwapV2Router02__factory").QuantumSwapV2Router02__factory;
14
+ exports.WQ = require("./WQ").WQ;
15
+ exports.WQ__factory = require("./WQ__factory").WQ__factory;
@@ -1,25 +1,25 @@
1
- declare module "quantumcoin" {
2
- export type ContractRunner = any;
3
- export type TransactionResponse = any;
4
- export type ContractTransactionResponse = any;
5
- export type TransactionRequest = any;
6
-
7
- export class Contract {
8
- constructor(address: string, abi: any, runner?: any, bytecode?: any);
9
- target: string;
10
- address: string;
11
- interface: any;
12
- populateTransaction: any;
13
- call(methodName: string, args: any[], overrides?: TransactionRequest): Promise<any>;
14
- send(methodName: string, args: any[], overrides?: TransactionRequest): Promise<ContractTransactionResponse>;
15
- deployTransaction(): TransactionResponse | null;
16
- }
17
-
18
- export class ContractFactory {
19
- signer: any;
20
- constructor(abi: any, bytecode: string, signer: any);
21
- getDeployTransaction(...args: any[]): TransactionRequest;
22
- }
23
-
24
- export function getCreateAddress(opts: { from: string; nonce: number }): string;
25
- }
1
+ declare module "quantumcoin" {
2
+ export type ContractRunner = any;
3
+ export type TransactionResponse = any;
4
+ export type ContractTransactionResponse = any;
5
+ export type TransactionRequest = any;
6
+
7
+ export class Contract {
8
+ constructor(address: string, abi: any, runner?: any, bytecode?: any);
9
+ target: string;
10
+ address: string;
11
+ interface: any;
12
+ populateTransaction: any;
13
+ call(methodName: string, args: any[], overrides?: TransactionRequest): Promise<any>;
14
+ send(methodName: string, args: any[], overrides?: TransactionRequest): Promise<ContractTransactionResponse>;
15
+ deployTransaction(): TransactionResponse | null;
16
+ }
17
+
18
+ export class ContractFactory {
19
+ signer: any;
20
+ constructor(abi: any, bytecode: string, signer: any);
21
+ getDeployTransaction(...args: any[]): TransactionRequest;
22
+ }
23
+
24
+ export function getCreateAddress(opts: { from: string; nonce: number }): string;
25
+ }
package/src/types.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- // Auto-generated by sdkgen
2
-
3
- export type * from "quantumcoin/types";
1
+ // Auto-generated by sdkgen
2
+
3
+ export type * from "quantumcoin/types";
package/src/types.js CHANGED
@@ -1,3 +1,3 @@
1
- // Auto-generated by sdkgen
2
-
3
- module.exports = {};
1
+ // Auto-generated by sdkgen
2
+
3
+ module.exports = {};