Skip to content

Commit ff4a360

Browse files
committed
wip: remove lucid from core and gummiworm
1 parent f2a1f38 commit ff4a360

File tree

74 files changed

+860
-5795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+860
-5795
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default [
1919
"@typescript-eslint/no-this-alias": "off",
2020
"@typescript-eslint/no-explicit-any": "warn",
2121
"no-unused-expressions": "off",
22+
"no-dupe-class-members": "off",
2223
},
2324
languageOptions: {
2425
globals: {

packages/core/package.json

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
],
3535
"utilities": [
3636
"./dist/types/exports/utilities.d.ts"
37-
],
38-
"lucid": [
39-
"./dist/types/exports/lucid.d.ts"
40-
],
41-
"blaze": [
42-
"./dist/types/exports/blaze.d.ts"
4337
]
4438
}
4539
},
@@ -58,16 +52,6 @@
5852
"import": "./dist/esm/exports/utilities.js",
5953
"require": "./dist/cjs/exports/utilities.js",
6054
"types": "./dist/types/exports/utilities.d.ts"
61-
},
62-
"./lucid": {
63-
"import": "./dist/esm/exports/lucid.js",
64-
"require": "./dist/cjs/exports/lucid.js",
65-
"types": "./dist/types/exports/lucid.d.ts"
66-
},
67-
"./blaze": {
68-
"import": "./dist/esm/exports/blaze.js",
69-
"require": "./dist/cjs/exports/blaze.js",
70-
"types": "./dist/types/exports/blaze.d.ts"
7155
}
7256
},
7357
"scripts": {
@@ -92,12 +76,11 @@
9276
"cbor": "^9.0.0"
9377
},
9478
"peerDependencies": {
95-
"@blaze-cardano/sdk": "^0.2.20",
79+
"@blaze-cardano/sdk": "^0.2.26",
9680
"@sundaeswap/asset": "^1.0.3",
9781
"@sundaeswap/bigint-math": "^0.6.3",
9882
"@sundaeswap/cpp": "^1.0.7",
99-
"@sundaeswap/fraction": "^1.0.5",
100-
"lucid-cardano": "0.10.7"
83+
"@sundaeswap/fraction": "^1.0.5"
10184
},
10285
"gitHead": "ddc937102065a5a581fe7affe02474c0e68ad9a0"
10386
}

packages/core/src/@types/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { Blaze, Provider, Wallet } from "@blaze-cardano/sdk";
12
import type { QueryProvider } from "../Abstracts/QueryProvider.abstract.class.js";
2-
import type { TWalletBuilder } from "./txbuilders.js";
33

44
/**
55
* The SundaeSDK options argument when creating a new instance.
@@ -17,8 +17,7 @@ export interface ISundaeSDKOptions {
1717
name: string;
1818
/** The desired network. */
1919
network: "preview" | "mainnet";
20-
/** The type of builder to use. Currently only supports Lucid. */
21-
builder: TWalletBuilder;
20+
blazeInstance: Blaze<Provider, Wallet>;
2221
};
2322
}
2423

packages/core/src/@types/txbuilders.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import type { Blaze, Provider, Wallet } from "@blaze-cardano/sdk";
21
import { AssetAmount, IAssetAmountMetadata } from "@sundaeswap/asset";
3-
import type { Lucid } from "lucid-cardano";
42

53
import { ISwapConfigArgs } from "./configs.js";
64

@@ -55,35 +53,6 @@ export interface ITxBuilderReferralFee {
5553
feeLabel?: string;
5654
}
5755

58-
/**
59-
* Holds the acceptable provider types.
60-
*/
61-
export enum ETxBuilderType {
62-
LUCID = "lucid",
63-
BLAZE = "blaze",
64-
}
65-
66-
/**
67-
* The interface to describe a Lucid builder type.
68-
*/
69-
export interface ILucidBuilder {
70-
type: ETxBuilderType.LUCID;
71-
lucid: Lucid;
72-
}
73-
74-
/**
75-
* The interface to describe a Blaze builder type.
76-
*/
77-
export interface IBlazeBuilder {
78-
type: ETxBuilderType.BLAZE;
79-
blaze: Blaze<Provider, Wallet>;
80-
}
81-
82-
/**
83-
* The union type to hold all possible builder types.
84-
*/
85-
export type TWalletBuilder = ILucidBuilder | IBlazeBuilder;
86-
8756
/**
8857
* The contract version to be used when building transactions
8958
* of any time that interact with SundaeSwap contracts.

packages/core/src/Abstracts/TxBuilderV1.abstract.class.ts renamed to packages/core/src/Abstracts/TxBuilderAbstract.V1.class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { QueryProvider } from "./QueryProvider.abstract.class.js";
1212
*
1313
* @group Exported TxBuilders
1414
*/
15-
export abstract class TxBuilderV1 {
15+
export abstract class TxBuilderAbstractV1 {
1616
abstract queryProvider: QueryProvider;
1717
abstract datumBuilder: DatumBuilder;
1818
abstract network: TSupportedNetworks;

packages/core/src/Abstracts/TxBuilderV3.abstract.class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { QueryProvider } from "./QueryProvider.abstract.class.js";
1212
*
1313
* @group Exported TxBuilders
1414
*/
15-
export abstract class TxBuilderV3 {
15+
export abstract class TxBuilderAbstractV3 {
1616
abstract queryProvider: QueryProvider;
1717
abstract datumBuilder: DatumBuilder;
1818
abstract network: TSupportedNetworks;

packages/core/src/Abstracts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export * from "./Config.abstract.class.js";
22
export * from "./DatumBuilder.abstract.class.js";
33
export * from "./OrderConfig.abstract.class.js";
44
export * from "./QueryProvider.abstract.class.js";
5-
export * from "./TxBuilderV1.abstract.class.js";
5+
export * from "./TxBuilderAbstract.V1.class.js";
66
export * from "./TxBuilderV3.abstract.class.js";

packages/core/src/DatumBuilders/ContractTypes/Contract.Lucid.v1.ts

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)