@flaunch/sdk 0.3.1 → 0.4.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.
Files changed (82) hide show
  1. package/README.md +78 -0
  2. package/dist/abi/BidWallV1_1.d.ts +740 -0
  3. package/dist/abi/BidWallV1_1.d.ts.map +1 -0
  4. package/dist/abi/FairLaunchV1_1.d.ts +522 -0
  5. package/dist/abi/FairLaunchV1_1.d.ts.map +1 -0
  6. package/dist/abi/FastFlaunchZap.d.ts +30 -20
  7. package/dist/abi/FastFlaunchZap.d.ts.map +1 -1
  8. package/dist/abi/FlaunchPositionManagerV1_1.d.ts +2053 -0
  9. package/dist/abi/FlaunchPositionManagerV1_1.d.ts.map +1 -0
  10. package/dist/abi/FlaunchV1_1.d.ts +850 -0
  11. package/dist/abi/FlaunchV1_1.d.ts.map +1 -0
  12. package/dist/abi/FlaunchZap.d.ts +330 -0
  13. package/dist/abi/FlaunchZap.d.ts.map +1 -0
  14. package/dist/abi/RevenueManager.d.ts +648 -0
  15. package/dist/abi/RevenueManager.d.ts.map +1 -0
  16. package/dist/abi/TreasuryManagerFactory.d.ts +434 -0
  17. package/dist/abi/TreasuryManagerFactory.d.ts.map +1 -0
  18. package/dist/abi/index.cjs +27 -58
  19. package/dist/abi/index.cjs.map +1 -1
  20. package/dist/abi/index.js +27 -58
  21. package/dist/abi/index.js.map +1 -1
  22. package/dist/addresses/index.cjs +127 -91
  23. package/dist/addresses/index.cjs.map +1 -1
  24. package/dist/addresses/index.js +121 -92
  25. package/dist/addresses/index.js.map +1 -1
  26. package/dist/addresses.d.ts +7 -0
  27. package/dist/addresses.d.ts.map +1 -1
  28. package/dist/clients/BidWallClient.d.ts +20 -0
  29. package/dist/clients/BidWallClient.d.ts.map +1 -1
  30. package/dist/clients/BidWallV1_1Client.d.ts +46 -0
  31. package/dist/clients/BidWallV1_1Client.d.ts.map +1 -0
  32. package/dist/clients/FairLaunchClient.d.ts +20 -0
  33. package/dist/clients/FairLaunchClient.d.ts.map +1 -1
  34. package/dist/clients/FairLaunchV1_1Client.d.ts +50 -0
  35. package/dist/clients/FairLaunchV1_1Client.d.ts.map +1 -0
  36. package/dist/clients/FastFlaunchClient.d.ts +40 -0
  37. package/dist/clients/FastFlaunchClient.d.ts.map +1 -1
  38. package/dist/clients/FlaunchClient.d.ts +20 -0
  39. package/dist/clients/FlaunchClient.d.ts.map +1 -1
  40. package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts +90 -0
  41. package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts.map +1 -0
  42. package/dist/clients/FlaunchV1_1Client.d.ts +31 -0
  43. package/dist/clients/FlaunchV1_1Client.d.ts.map +1 -0
  44. package/dist/clients/FlaunchZapClient.d.ts +70 -0
  45. package/dist/clients/FlaunchZapClient.d.ts.map +1 -0
  46. package/dist/clients/MemecoinClient.d.ts +27 -0
  47. package/dist/clients/MemecoinClient.d.ts.map +1 -1
  48. package/dist/clients/Permit2Client.d.ts +17 -0
  49. package/dist/clients/Permit2Client.d.ts.map +1 -1
  50. package/dist/clients/QuoterClient.d.ts +39 -3
  51. package/dist/clients/QuoterClient.d.ts.map +1 -1
  52. package/dist/clients/RevenueManagerClient.d.ts +42 -0
  53. package/dist/clients/RevenueManagerClient.d.ts.map +1 -0
  54. package/dist/clients/StateViewClient.d.ts +30 -0
  55. package/dist/clients/StateViewClient.d.ts.map +1 -1
  56. package/dist/clients/TreasuryManagerFactoryClient.d.ts +24 -0
  57. package/dist/clients/TreasuryManagerFactoryClient.d.ts.map +1 -0
  58. package/dist/helpers/chainIdToChain.d.ts +5 -0
  59. package/dist/helpers/chainIdToChain.d.ts.map +1 -0
  60. package/dist/helpers/index.cjs +5310 -0
  61. package/dist/helpers/index.cjs.map +1 -1
  62. package/dist/helpers/index.d.ts +1 -0
  63. package/dist/helpers/index.d.ts.map +1 -1
  64. package/dist/helpers/index.js +5313 -4
  65. package/dist/helpers/index.js.map +1 -1
  66. package/dist/hooks/FlaunchPositionManagerHooks.d.ts +42 -0
  67. package/dist/hooks/FlaunchPositionManagerHooks.d.ts.map +1 -1
  68. package/dist/hooks/index.cjs +95 -0
  69. package/dist/hooks/index.cjs.map +1 -1
  70. package/dist/hooks/index.js +94 -1
  71. package/dist/hooks/index.js.map +1 -1
  72. package/dist/index.cjs.js +16748 -11289
  73. package/dist/index.cjs.js.map +1 -1
  74. package/dist/index.esm.js +16742 -11291
  75. package/dist/index.esm.js.map +1 -1
  76. package/dist/index.umd.js +1 -1
  77. package/dist/index.umd.js.map +1 -1
  78. package/dist/sdk/FlaunchSDK.d.ts +288 -15
  79. package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
  80. package/dist/utils/universalRouter.d.ts +2 -0
  81. package/dist/utils/universalRouter.d.ts.map +1 -1
  82. package/package.json +8 -3
@@ -1,11 +1,18 @@
1
1
  import { Addresses, PoolKey } from "./types";
2
2
  export declare const FlaunchPositionManagerAddress: Addresses;
3
+ export declare const FlaunchPositionManagerV1_1Address: Addresses;
3
4
  export declare const FLETHAddress: Addresses;
4
5
  export declare const FLETHHooksAddress: Addresses;
5
6
  export declare const FairLaunchAddress: Addresses;
7
+ export declare const FairLaunchV1_1Address: Addresses;
6
8
  export declare const FlaunchAddress: Addresses;
9
+ export declare const FlaunchV1_1Address: Addresses;
7
10
  export declare const BidWallAddress: Addresses;
11
+ export declare const BidWallV1_1Address: Addresses;
8
12
  export declare const FastFlaunchZapAddress: Addresses;
13
+ export declare const FlaunchZapAddress: Addresses;
14
+ export declare const RevenueManagerAddress: Addresses;
15
+ export declare const TreasuryManagerFactoryAddress: Addresses;
9
16
  export declare const PoolManagerAddress: Addresses;
10
17
  export declare const UniversalRouterAddress: Addresses;
11
18
  export declare const QuoterAddress: Addresses;
@@ -1 +1 @@
1
- {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG7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qB,EAAE,SAGnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAG/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAGnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,SAG3C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,SAGhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,SAGpC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAG3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAG9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAG5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE;IAC5B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;CAgB5B,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
2
2
  import { BidwallAbi } from "../abi/BidWall";
3
3
  export type BidwallABI = typeof BidwallAbi;
4
+ /**
5
+ * Client for interacting with the BidWall V1 contract in read-only mode
6
+ * Provides methods to query bid wall positions and pool information
7
+ */
4
8
  export declare class ReadBidWall {
5
9
  readonly contract: ReadContract<BidwallABI>;
10
+ /**
11
+ * Creates a new ReadBidWall instance
12
+ * @param address - The address of the BidWall contract
13
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
14
+ * @throws Error if address is not provided
15
+ */
6
16
  constructor(address: Address, drift?: Drift);
17
+ /**
18
+ * Gets information about a bid wall position for a specific pool
19
+ * @param poolId - The ID of the pool
20
+ * @returns Promise<{amount0_: bigint, amount1_: bigint, pendingEth_: bigint}> - Position details including token amounts and pending ETH
21
+ */
7
22
  position({ poolId }: {
8
23
  poolId: HexString;
9
24
  }): Promise<{
@@ -11,6 +26,11 @@ export declare class ReadBidWall {
11
26
  amount1_: bigint;
12
27
  pendingEth_: bigint;
13
28
  }>;
29
+ /**
30
+ * Gets configuration information about a pool's bid wall
31
+ * @param poolId - The ID of the pool
32
+ * @returns Promise<{tickLower: number, tickUpper: number}> - Pool configuration including tick range
33
+ */
14
34
  poolInfo({ poolId }: {
15
35
  poolId: HexString;
16
36
  }): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"BidWallClient.d.ts","sourceRoot":"","sources":["../../src/clients/BidWallClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C,qBAAa,WAAW;IACtB,SAAgB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;IAM1C,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;CAK3C"}
1
+ {"version":3,"file":"BidWallClient.d.ts","sourceRoot":"","sources":["../../src/clients/BidWallClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C;;;GAGG;AACH,qBAAa,WAAW;IACtB,SAAgB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAEnD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;IAM1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;CAK3C"}
@@ -0,0 +1,46 @@
1
+ import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
2
+ import { BidWallV1_1Abi } from "../abi/BidWallV1_1";
3
+ export type BidwallV1_1ABI = typeof BidWallV1_1Abi;
4
+ /**
5
+ * Client for interacting with the BidWall V1.1 contract in read-only mode
6
+ * Provides methods to query bid wall positions and pool information
7
+ * Enhanced version of the V1 contract with additional features
8
+ */
9
+ export declare class ReadBidWallV1_1 {
10
+ readonly contract: ReadContract<BidwallV1_1ABI>;
11
+ /**
12
+ * Creates a new ReadBidWallV1_1 instance
13
+ * @param address - The address of the BidWall V1.1 contract
14
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
15
+ * @throws Error if address is not provided
16
+ */
17
+ constructor(address: Address, drift?: Drift);
18
+ /**
19
+ * Gets information about a bid wall position for a specific pool
20
+ * @param poolId - The ID of the pool
21
+ * @returns Promise<{amount0_: bigint, amount1_: bigint, pendingEth_: bigint}> - Position details including token amounts and pending ETH
22
+ */
23
+ position({ poolId }: {
24
+ poolId: HexString;
25
+ }): Promise<{
26
+ amount0_: bigint;
27
+ amount1_: bigint;
28
+ pendingEth_: bigint;
29
+ }>;
30
+ /**
31
+ * Gets configuration information about a pool's bid wall
32
+ * @param poolId - The ID of the pool
33
+ * @returns Promise<{tickLower: number, tickUpper: number}> - Pool configuration including tick range
34
+ */
35
+ poolInfo({ poolId }: {
36
+ poolId: HexString;
37
+ }): Promise<{
38
+ tickLower: number;
39
+ tickUpper: number;
40
+ disabled: boolean;
41
+ initialized: boolean;
42
+ pendingETHFees: bigint;
43
+ cumulativeSwapFees: bigint;
44
+ }>;
45
+ }
46
+ //# sourceMappingURL=BidWallV1_1Client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BidWallV1_1Client.d.ts","sourceRoot":"","sources":["../../src/clients/BidWallV1_1Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,SAAgB,QAAQ,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAEvD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;IAM1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;CAK3C"}
@@ -1,9 +1,24 @@
1
1
  import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
2
2
  import { FairLaunchAbi } from "../abi/FairLaunch";
3
3
  export type FairLaunchABI = typeof FairLaunchAbi;
4
+ /**
5
+ * Client for interacting with the FairLaunch V1 contract in read-only mode
6
+ * Provides methods to query fair launch information and status
7
+ */
4
8
  export declare class ReadFairLaunch {
5
9
  readonly contract: ReadContract<FairLaunchABI>;
10
+ /**
11
+ * Creates a new ReadFairLaunch instance
12
+ * @param address - The address of the FairLaunch contract
13
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
14
+ * @throws Error if address is not provided
15
+ */
6
16
  constructor(address: Address, drift?: Drift);
17
+ /**
18
+ * Gets information about a fair launch for a specific pool
19
+ * @param poolId - The ID of the pool
20
+ * @returns Promise<{initialTick: number, closed: boolean, endsAt: number}> - Fair launch details
21
+ */
7
22
  fairLaunchInfo({ poolId }: {
8
23
  poolId: HexString;
9
24
  }): Promise<{
@@ -14,6 +29,11 @@ export declare class ReadFairLaunch {
14
29
  supply: bigint;
15
30
  closed: boolean;
16
31
  }>;
32
+ /**
33
+ * Checks if a fair launch is currently active
34
+ * @param poolId - The ID of the pool
35
+ * @returns Promise<boolean> - True if the fair launch is active (not closed and not expired), false otherwise
36
+ */
17
37
  isFairLaunchActive({ poolId }: {
18
38
  poolId: HexString;
19
39
  }): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"FairLaunchClient.d.ts","sourceRoot":"","sources":["../../src/clients/FairLaunchClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AAEjD,qBAAa,cAAc;IACzB,SAAgB,QAAQ,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;gBAE1C,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;IAM1C,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;CAY3D"}
1
+ {"version":3,"file":"FairLaunchClient.d.ts","sourceRoot":"","sources":["../../src/clients/FairLaunchClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AAEjD;;;GAGG;AACH,qBAAa,cAAc;IACzB,SAAgB,QAAQ,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAEtD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;IAMhD;;;;OAIG;IACG,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;CAY3D"}
@@ -0,0 +1,50 @@
1
+ import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
2
+ import { FairLaunchV1_1Abi } from "../abi/FairLaunchV1_1";
3
+ export type FairLaunchV1_1ABI = typeof FairLaunchV1_1Abi;
4
+ /**
5
+ * Client for interacting with the FairLaunch V1.1 contract in read-only mode
6
+ * Provides methods to query fair launch information and status
7
+ * Enhanced version of the V1 contract with additional features like variable duration
8
+ */
9
+ export declare class ReadFairLaunchV1_1 {
10
+ readonly contract: ReadContract<FairLaunchV1_1ABI>;
11
+ /**
12
+ * Creates a new ReadFairLaunchV1_1 instance
13
+ * @param address - The address of the FairLaunch V1.1 contract
14
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
15
+ * @throws Error if address is not provided
16
+ */
17
+ constructor(address: Address, drift?: Drift);
18
+ /**
19
+ * Gets information about a fair launch for a specific pool
20
+ * @param poolId - The ID of the pool
21
+ * @returns Promise<{initialTick: number, closed: boolean, startsAt: number, endsAt: number}> - Fair launch details
22
+ */
23
+ fairLaunchInfo({ poolId }: {
24
+ poolId: HexString;
25
+ }): Promise<{
26
+ startsAt: bigint;
27
+ endsAt: bigint;
28
+ initialTick: number;
29
+ revenue: bigint;
30
+ supply: bigint;
31
+ closed: boolean;
32
+ }>;
33
+ /**
34
+ * Calculates the duration of a fair launch
35
+ * @param poolId - The ID of the pool
36
+ * @returns Promise<number> - The duration in seconds between start and end time
37
+ */
38
+ fairLaunchDuration({ poolId }: {
39
+ poolId: HexString;
40
+ }): Promise<bigint>;
41
+ /**
42
+ * Checks if a fair launch is currently active
43
+ * @param poolId - The ID of the pool
44
+ * @returns Promise<boolean> - True if the fair launch is active (not closed and not expired), false otherwise
45
+ */
46
+ isFairLaunchActive({ poolId }: {
47
+ poolId: HexString;
48
+ }): Promise<boolean>;
49
+ }
50
+ //# sourceMappingURL=FairLaunchV1_1Client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FairLaunchV1_1Client.d.ts","sourceRoot":"","sources":["../../src/clients/FairLaunchV1_1Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AAEzD;;;;GAIG;AACH,qBAAa,kBAAkB;IAC7B,SAAgB,QAAQ,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAE1D;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;IAMhD;;;;OAIG;IACG,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;IAK1D;;;;OAIG;IACG,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;CAY3D"}
@@ -2,22 +2,62 @@ import { type ReadContract, type Address, type Drift, type ReadWriteContract, ty
2
2
  import { FastFlaunchZapAbi } from "../abi/FastFlaunchZap";
3
3
  import { IPFSParams } from "../types";
4
4
  export type FastFlaunchZapABI = typeof FastFlaunchZapAbi;
5
+ /**
6
+ * Base client for interacting with the FastFlaunchZap contract in read-only mode
7
+ * Provides basic contract initialization
8
+ */
5
9
  export declare class ReadFastFlaunchZap {
6
10
  readonly contract: ReadContract<FastFlaunchZapABI>;
11
+ /**
12
+ * Creates a new ReadFastFlaunchZap instance
13
+ * @param address - The address of the FastFlaunchZap contract
14
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
15
+ * @throws Error if address is not provided
16
+ */
7
17
  constructor(address: Address, drift?: Drift);
8
18
  }
19
+ /**
20
+ * Parameters for creating a new fast flaunch with direct token URI
21
+ */
9
22
  export interface FastFlaunchParams {
23
+ /** The name of the token */
10
24
  name: string;
25
+ /** The symbol of the token */
11
26
  symbol: string;
27
+ /** The URI containing the token metadata */
12
28
  tokenUri: string;
29
+ /** The address of the token creator */
13
30
  creator: Address;
14
31
  }
32
+ /**
33
+ * Parameters for creating a new fast flaunch with IPFS metadata
34
+ * Extends FastFlaunchParams (without tokenUri) and IPFSParams
35
+ */
15
36
  export interface FastFlaunchIPFSParams extends Omit<FastFlaunchParams, "tokenUri">, IPFSParams {
16
37
  }
38
+ /**
39
+ * Extended client for interacting with the FastFlaunchZap contract with write capabilities
40
+ * Provides methods to create new fast flaunches with direct URI or IPFS metadata
41
+ */
17
42
  export declare class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
18
43
  contract: ReadWriteContract<FastFlaunchZapABI>;
44
+ /**
45
+ * Creates a new ReadWriteFastFlaunchZap instance
46
+ * @param address - The address of the FastFlaunchZap contract
47
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
48
+ */
19
49
  constructor(address: Address, drift?: Drift<ReadWriteAdapter>);
50
+ /**
51
+ * Creates a new fast flaunch with direct token URI
52
+ * @param params - Parameters for the fast flaunch including name, symbol, tokenUri, and creator
53
+ * @returns Transaction response for the flaunch creation
54
+ */
20
55
  fastFlaunch({ name, symbol, tokenUri, creator }: FastFlaunchParams): Promise<`0x${string}`>;
56
+ /**
57
+ * Creates a new fast flaunch with metadata stored on IPFS
58
+ * @param params - Parameters for the fast flaunch including name, symbol, creator, metadata, and Pinata config
59
+ * @returns Promise resolving to the transaction response for the flaunch creation
60
+ */
21
61
  fastFlaunchIPFS({ name, symbol, creator, metadata, pinataConfig, }: FastFlaunchIPFSParams): Promise<`0x${string}`>;
22
62
  }
23
63
  //# sourceMappingURL=FastFlaunchClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FastFlaunchClient.d.ts","sourceRoot":"","sources":["../../src/clients/FastFlaunchClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAEV,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAEtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AAEzD,qBAAa,kBAAkB;IAC7B,SAAgB,QAAQ,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;gBAE9C,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;CAS3D;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,EACzC,UAAU;CAAG;AAEjB,qBAAa,uBAAwB,SAAQ,kBAAkB;IACrD,QAAQ,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;gBAGrD,OAAO,EAAE,OAAO,EAChB,KAAK,GAAE,KAAK,CAAC,gBAAgB,CAAiB;IAKhD,WAAW,CAAC,EAAE,IAAI,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hD;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,iBAAiB;IAWlE;;;;OAIG;IACG,eAAe,CAAC,EACpB,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,GACb,EAAE,qBAAqB;CAazB"}
@@ -1,10 +1,30 @@
1
1
  import { type ReadContract, type Address, type Drift } from "@delvtech/drift";
2
2
  import { FlaunchAbi } from "../abi/Flaunch";
3
3
  export type FlaunchABI = typeof FlaunchAbi;
4
+ /**
5
+ * Client for interacting with the Flaunch V1 contract in read-only mode
6
+ * Provides methods to query token IDs and metadata URIs
7
+ */
4
8
  export declare class ReadFlaunch {
5
9
  readonly contract: ReadContract<FlaunchABI>;
10
+ /**
11
+ * Creates a new ReadFlaunch instance
12
+ * @param address - The address of the Flaunch contract
13
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
14
+ * @throws Error if address is not provided
15
+ */
6
16
  constructor(address: Address, drift?: Drift);
17
+ /**
18
+ * Gets the token ID associated with a memecoin
19
+ * @param coinAddress - The address of the memecoin
20
+ * @returns Promise<bigint> - The token ID
21
+ */
7
22
  tokenId(coinAddress: Address): Promise<bigint>;
23
+ /**
24
+ * Gets the metadata URI for a token
25
+ * @param tokenId - The ID of the token
26
+ * @returns Promise<string> - The token's metadata URI
27
+ */
8
28
  tokenURI(tokenId: bigint): Promise<string>;
9
29
  }
10
30
  //# sourceMappingURL=FlaunchClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlaunchClient.d.ts","sourceRoot":"","sources":["../../src/clients/FlaunchClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAMX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C,qBAAa,WAAW;IACtB,SAAgB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D,OAAO,CAAC,WAAW,EAAE,OAAO;IAM5B,QAAQ,CAAC,OAAO,EAAE,MAAM;CAKzB"}
1
+ {"version":3,"file":"FlaunchClient.d.ts","sourceRoot":"","sources":["../../src/clients/FlaunchClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAMX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C;;;GAGG;AACH,qBAAa,WAAW;IACtB,SAAgB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAEnD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,OAAO,CAAC,WAAW,EAAE,OAAO;IAM5B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM;CAKzB"}
@@ -0,0 +1,90 @@
1
+ import { type ReadContract, type Address, type Drift, type EventLog, type ReadWriteContract, type ReadWriteAdapter, HexString } from "@delvtech/drift";
2
+ import { FlaunchPositionManagerV1_1Abi } from "../abi/FlaunchPositionManagerV1_1";
3
+ import { IPFSParams } from "../types";
4
+ export type FlaunchPositionManagerV1_1ABI = typeof FlaunchPositionManagerV1_1Abi;
5
+ export type PoolCreatedLog = EventLog<FlaunchPositionManagerV1_1ABI, "PoolCreated"> & {
6
+ timestamp: number;
7
+ };
8
+ export type PoolCreatedLogs = PoolCreatedLog[];
9
+ export interface WatchPoolCreatedParams {
10
+ onPoolCreated: ({ logs, isFetchingFromStart, }: {
11
+ logs: PoolCreatedLogs;
12
+ isFetchingFromStart: boolean;
13
+ }) => void;
14
+ startBlockNumber?: bigint;
15
+ }
16
+ export type BaseSwapLog = EventLog<FlaunchPositionManagerV1_1ABI, "PoolSwap"> & {
17
+ timestamp: number;
18
+ };
19
+ export type BuySwapLog = BaseSwapLog & {
20
+ type: "BUY";
21
+ delta: {
22
+ coinsBought: bigint;
23
+ flETHSold: bigint;
24
+ fees: {
25
+ isInFLETH: boolean;
26
+ amount: bigint;
27
+ };
28
+ };
29
+ };
30
+ export type SellSwapLog = BaseSwapLog & {
31
+ type: "SELL";
32
+ delta: {
33
+ coinsSold: bigint;
34
+ flETHBought: bigint;
35
+ fees: {
36
+ isInFLETH: boolean;
37
+ amount: bigint;
38
+ };
39
+ };
40
+ };
41
+ export type PoolSwapLog = BuySwapLog | SellSwapLog | BaseSwapLog;
42
+ export type PoolSwapLogs = PoolSwapLog[];
43
+ export interface WatchPoolSwapParams<TFLETHIsCurrencyZero extends boolean | undefined = undefined> {
44
+ onPoolSwap: ({ logs, isFetchingFromStart, }: {
45
+ logs: TFLETHIsCurrencyZero extends boolean ? (BuySwapLog | SellSwapLog)[] : BaseSwapLog[];
46
+ isFetchingFromStart: boolean;
47
+ }) => void;
48
+ flETHIsCurrencyZero?: TFLETHIsCurrencyZero;
49
+ startBlockNumber?: bigint;
50
+ filterByPoolId?: HexString;
51
+ }
52
+ export interface FlaunchParams {
53
+ flaunchingETHFees: bigint;
54
+ name: string;
55
+ symbol: string;
56
+ tokenUri: string;
57
+ fairLaunchPercent: number;
58
+ fairLaunchDuration: bigint;
59
+ initialMarketCapUSD: number;
60
+ creator: Address;
61
+ creatorFeeAllocationPercent: number;
62
+ flaunchAt?: bigint;
63
+ premineAmount?: bigint;
64
+ }
65
+ export interface FlaunchIPFSParams extends Omit<FlaunchParams, "tokenUri">, IPFSParams {
66
+ }
67
+ export declare class ReadFlaunchPositionManagerV1_1 {
68
+ readonly contract: ReadContract<FlaunchPositionManagerV1_1ABI>;
69
+ drift: Drift;
70
+ pollPoolCreatedNow?: () => Promise<void>;
71
+ pollPoolSwapNow?: () => Promise<void>;
72
+ readonly TOTAL_SUPPLY: bigint;
73
+ constructor(address: Address, drift?: Drift);
74
+ isValidCoin(coinAddress: Address): Promise<boolean>;
75
+ watchPoolCreated({ onPoolCreated, startBlockNumber, }: WatchPoolCreatedParams): Promise<{
76
+ cleanup: () => void;
77
+ pollPoolCreatedNow: () => Promise<void>;
78
+ }>;
79
+ watchPoolSwap<T extends boolean | undefined = undefined>({ onPoolSwap, flETHIsCurrencyZero, startBlockNumber, filterByPoolId, }: WatchPoolSwapParams<T>): Promise<{
80
+ cleanup: () => void;
81
+ pollPoolSwapNow: () => Promise<void>;
82
+ }>;
83
+ }
84
+ export declare class ReadWriteFlaunchPositionManagerV1_1 extends ReadFlaunchPositionManagerV1_1 {
85
+ contract: ReadWriteContract<FlaunchPositionManagerV1_1ABI>;
86
+ constructor(address: Address, drift?: Drift<ReadWriteAdapter>);
87
+ flaunch({ flaunchingETHFees, name, symbol, tokenUri, fairLaunchPercent, fairLaunchDuration, initialMarketCapUSD, creator, creatorFeeAllocationPercent, flaunchAt, premineAmount, }: FlaunchParams): Promise<`0x${string}`>;
88
+ flaunchIPFS({ flaunchingETHFees, name, symbol, fairLaunchPercent, fairLaunchDuration, initialMarketCapUSD, creator, creatorFeeAllocationPercent, flaunchAt, premineAmount, metadata, pinataConfig, }: FlaunchIPFSParams): Promise<`0x${string}`>;
89
+ }
90
+ //# sourceMappingURL=FlaunchPositionManagerV1_1Client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlaunchPositionManagerV1_1Client.d.ts","sourceRoot":"","sources":["../../src/clients/FlaunchPositionManagerV1_1Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAErB,SAAS,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,6BAA6B,EAAE,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AqB;IAWpD,WAAW,CAAC,WAAW,EAAE,OAAO;IAQhC,gBAAgB,CAAC,EACrB,aAAa,EACb,gBAAgB,GACjB,EAAE,sBAAsB;;;;IAyEnB,aAAa,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,EAC7D,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,EAAE,mBAAmB,CAAC,CAAC,CAAC;;;;CAsK1B;AAED,qBAAa,mCAAoC,SAAQ,8BAA8B;IAC7E,QAAQ,EAAE,iBAAiB,CAAC,6BAA6B,CAAC,CAAC;gBAGjE,OAAO,EAAE,OAAO,EAChB,KAAK,GAAE,KAAK,CAAC,gBAAgB,CAAiB;IAMhD,OAAO,CAAC,EACN,iBAAiB,EACjB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,2BAA2B,EAC3B,SAAS,EACT,aAAa,GACd,EAAE,aAAa;IA2CV,WAAW,CAAC,EAChB,iBAAiB,EACjB,IAAI,EACJ,MAAM,EACN,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,2BAA2B,EAC3B,SAAS,EACT,aAAa,EACb,QAAQ,EACR,YAAY,GACb,EAAE,iBAAiB;CAoBrB"}
@@ -0,0 +1,31 @@
1
+ import { type ReadContract, type Address, type Drift } from "@delvtech/drift";
2
+ import { FlaunchV1_1Abi } from "../abi/FlaunchV1_1";
3
+ export type FlaunchV1_1ABI = typeof FlaunchV1_1Abi;
4
+ /**
5
+ * Client for interacting with the Flaunch V1.1 contract in read-only mode
6
+ * Provides methods to query token IDs and metadata URIs
7
+ * Enhanced version of the V1 contract with additional features
8
+ */
9
+ export declare class ReadFlaunchV1_1 {
10
+ readonly contract: ReadContract<FlaunchV1_1ABI>;
11
+ /**
12
+ * Creates a new ReadFlaunchV1_1 instance
13
+ * @param address - The address of the Flaunch V1.1 contract
14
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
15
+ * @throws Error if address is not provided
16
+ */
17
+ constructor(address: Address, drift?: Drift);
18
+ /**
19
+ * Gets the token ID associated with a memecoin
20
+ * @param coinAddress - The address of the memecoin
21
+ * @returns Promise<bigint> - The token ID
22
+ */
23
+ tokenId(coinAddress: Address): Promise<bigint>;
24
+ /**
25
+ * Gets the metadata URI for a token
26
+ * @param tokenId - The ID of the token
27
+ * @returns Promise<string> - The token's metadata URI
28
+ */
29
+ tokenURI(tokenId: bigint): Promise<string>;
30
+ }
31
+ //# sourceMappingURL=FlaunchV1_1Client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlaunchV1_1Client.d.ts","sourceRoot":"","sources":["../../src/clients/FlaunchV1_1Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAMX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,SAAgB,QAAQ,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAEvD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,OAAO,CAAC,WAAW,EAAE,OAAO;IAM5B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM;CAKzB"}
@@ -0,0 +1,70 @@
1
+ import { type ReadContract, type Address, type Drift, type ReadWriteContract, type ReadWriteAdapter } from "@delvtech/drift";
2
+ import { FlaunchZapAbi } from "../abi/FlaunchZap";
3
+ import { IPFSParams } from "../types";
4
+ export type FlaunchZapABI = typeof FlaunchZapAbi;
5
+ /**
6
+ * Base client for interacting with the FlaunchZap contract in read-only mode
7
+ * Provides basic contract initialization
8
+ */
9
+ export declare class ReadFlaunchZap {
10
+ readonly contract: ReadContract<FlaunchZapABI>;
11
+ readonly TOTAL_SUPPLY: bigint;
12
+ /**
13
+ * Creates a new ReadFlaunchZap instance
14
+ * @param address - The address of the FlaunchZap contract
15
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
16
+ * @throws Error if address is not provided
17
+ */
18
+ constructor(address: Address, drift?: Drift);
19
+ }
20
+ export interface FlaunchParams {
21
+ flaunchingETHFees: bigint;
22
+ name: string;
23
+ symbol: string;
24
+ tokenUri: string;
25
+ fairLaunchPercent: number;
26
+ fairLaunchDuration: number;
27
+ initialMarketCapUSD: number;
28
+ creator: Address;
29
+ creatorFeeAllocationPercent: number;
30
+ flaunchAt?: bigint;
31
+ premineAmount?: bigint;
32
+ }
33
+ export interface FlaunchWithRevenueManagerParams extends FlaunchParams {
34
+ revenueManagerInstanceAddress: Address;
35
+ }
36
+ export interface FlaunchWithRevenueManagerIPFSParams extends Omit<FlaunchWithRevenueManagerParams, "tokenUri">, IPFSParams {
37
+ }
38
+ /**
39
+ * Extended client for interacting with the FlaunchZap contract with write capabilities
40
+ */
41
+ export declare class ReadWriteFlaunchZap extends ReadFlaunchZap {
42
+ chainId: number;
43
+ contract: ReadWriteContract<FlaunchZapABI>;
44
+ constructor(chainId: number, address: Address, drift?: Drift<ReadWriteAdapter>);
45
+ /**
46
+ * Creates a new flaunch with revenue manager configuration
47
+ * @param params - Parameters for the flaunch with revenue manager
48
+ * @param params.name - The name of the token
49
+ * @param params.symbol - The symbol of the token
50
+ * @param params.tokenUri - The URI containing the token metadata
51
+ * @param params.fairLaunchPercent - Percentage of total supply to be used in fair launch (0-100)
52
+ * @param params.fairLaunchDuration - Duration of fair launch in seconds
53
+ * @param params.initialMarketCapUSD - Initial market cap in USD
54
+ * @param params.creator - Address of the token creator
55
+ * @param params.creatorFeeAllocationPercent - Percentage of fees allocated to creator (0-100)
56
+ * @param params.protocolRecipient - Address to receive protocol fees
57
+ * @param params.protocolFeePercent - Percentage of fees allocated to protocol (0-100)
58
+ * @param params.flaunchAt - Optional timestamp when the flaunch should start
59
+ * @param params.premineAmount - Optional amount of tokens to premine
60
+ * @returns Transaction response for the flaunch creation
61
+ */
62
+ flaunchWithRevenueManager(params: FlaunchWithRevenueManagerParams): Promise<`0x${string}`>;
63
+ /**
64
+ * Creates a new flaunch with revenue manager using metadata stored on IPFS
65
+ * @param params - Parameters for the flaunch including all revenue manager params and IPFS metadata
66
+ * @returns Promise resolving to the transaction response for the flaunch creation
67
+ */
68
+ flaunchIPFSWithRevenueManager(params: FlaunchWithRevenueManagerIPFSParams): Promise<`0x${string}`>;
69
+ }
70
+ //# sourceMappingURL=FlaunchZapClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlaunchZapClient.d.ts","sourceRoot":"","sources":["../../src/clients/FlaunchZapClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAEV,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAGtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AAEjD;;;GAGG;AACH,qBAAa,cAAc;IACzB,SAAgB,QAAQ,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IACtD,SAAgB,YAAY,SAAqB;IAEjD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;CAS3D;AAED,MAAM,WAAW,aAAa;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,2BAA2B,EAAE,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,+BAAgC,SAAQ,aAAa;IACpE,6BAA6B,EAAE,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,mCACf,SAAQ,IAAI,CAAC,+BAA+B,EAAE,UAAU,CAAC,EACvD,UAAU;CAAG;AAEjB;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc;IACrD,OAAO,EAAE,MAAM,CAAC;IACR,QAAQ,EAAE,iBAAiB,CAAC,aAAa,CAAC,CAAC;gBAGjD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,EAChB,KAAK,GAAE,KAAK,CAAC,gBAAgB,CAAiB;IAMhD;;;;;;;;;;;;;;;;OAgBG;IACH,yBAAyB,CAAC,MAAM,EAAE,+BAA+B;IAmDjE;;;;OAIG;IACG,6BAA6B,CACjC,MAAM,EAAE,mCAAmC;CAY9C"}
@@ -1,12 +1,39 @@
1
1
  import { type ReadContract, type Address, type Drift } from "@delvtech/drift";
2
2
  import { MemecoinAbi } from "../abi/Memecoin";
3
3
  export type MemecoinABI = typeof MemecoinAbi;
4
+ /**
5
+ * Client for interacting with Memecoin (ERC20) contracts in read-only mode
6
+ * Provides methods to query basic token information and balances
7
+ */
4
8
  export declare class ReadMemecoin {
5
9
  readonly contract: ReadContract<MemecoinABI>;
10
+ /**
11
+ * Creates a new ReadMemecoin instance
12
+ * @param address - The address of the Memecoin contract
13
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
14
+ * @throws Error if address is not provided
15
+ */
6
16
  constructor(address: Address, drift?: Drift);
17
+ /**
18
+ * Gets the name of the token
19
+ * @returns Promise<string> - The name of the token
20
+ */
7
21
  name(): Promise<string>;
22
+ /**
23
+ * Gets the symbol of the token
24
+ * @returns Promise<string> - The symbol of the token
25
+ */
8
26
  symbol(): Promise<string>;
27
+ /**
28
+ * Gets the token URI containing metadata
29
+ * @returns Promise<string> - The token URI
30
+ */
9
31
  tokenURI(): Promise<string>;
32
+ /**
33
+ * Gets the token balance of a specific user
34
+ * @param user - The address of the user to check
35
+ * @returns Promise<bigint> - The token balance
36
+ */
10
37
  balanceOf(user: Address): Promise<bigint>;
11
38
  }
12
39
  //# sourceMappingURL=MemecoinClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MemecoinClient.d.ts","sourceRoot":"","sources":["../../src/clients/MemecoinClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAMX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C,qBAAa,YAAY;IACvB,SAAgB,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;gBAExC,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D,IAAI;IAIJ,MAAM;IAIN,QAAQ;IAIR,SAAS,CAAC,IAAI,EAAE,OAAO;CAKxB"}
1
+ {"version":3,"file":"MemecoinClient.d.ts","sourceRoot":"","sources":["../../src/clients/MemecoinClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAMX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C;;;GAGG;AACH,qBAAa,YAAY;IACvB,SAAgB,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAEpD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,MAAM;IAIN;;;OAGG;IACH,QAAQ;IAIR;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,OAAO;CAKxB"}
@@ -1,9 +1,26 @@
1
1
  import { type ReadContract, type Address, type Drift } from "@delvtech/drift";
2
2
  import { Permit2Abi } from "../abi/Permit2";
3
3
  export type Permit2ABI = typeof Permit2Abi;
4
+ /**
5
+ * Client for interacting with Uniswap's Permit2 contract in read-only mode
6
+ * Provides methods to query token approvals and allowances
7
+ */
4
8
  export declare class ReadPermit2 {
5
9
  readonly contract: ReadContract<Permit2ABI>;
10
+ /**
11
+ * Creates a new ReadPermit2 instance
12
+ * @param address - The address of the Permit2 contract
13
+ * @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
14
+ * @throws Error if address is not provided
15
+ */
6
16
  constructor(address: Address, drift?: Drift);
17
+ /**
18
+ * Gets the allowance and nonce for a token approval
19
+ * @param owner - The address of the token owner
20
+ * @param coinAddress - The address of the token contract
21
+ * @param spender - The address of the spender
22
+ * @returns Promise<{amount: bigint, expiration: bigint, nonce: bigint}> - The allowance details
23
+ */
7
24
  allowance(owner: Address, coinAddress: Address, spender: Address): Promise<{
8
25
  nonce: number;
9
26
  amount: bigint;
@@ -1 +1 @@
1
- {"version":3,"file":"Permit2Client.d.ts","sourceRoot":"","sources":["../../src/clients/Permit2Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAMX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C,qBAAa,WAAW;IACtB,SAAgB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAWpD,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;;;;;CAOvE"}
1
+ {"version":3,"file":"Permit2Client.d.ts","sourceRoot":"","sources":["../../src/clients/Permit2Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAMX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C;;;GAGG;AACH,qBAAa,WAAW;IACtB,SAAgB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAEnD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;;;OAMG;IACG,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;;;;;CAOvE"}