Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions examples/blockfrost-adapter-example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ const MIN: Asset = {

async function main(): Promise<void> {
const networkId: NetworkId = NetworkId.TESTNET;
const blockfrostProjectId = "<YOUR_BLOCKFROST_API_KEY>";
// Replace with your Blockfrost project ID
const blockfrostProjectId = "preprodBA1p1STJuuCjuw2QjfqFIecfT9SCyC9M";
const blockfrostUrl = "https://cardano-preprod.blockfrost.io/api/v0";

const address = "<YOUR_ADDRESS>";
// Replace with your address
const address = "addr_test1vp0rfn7x3mf85jctsd85uu4pzga0ujh23dsxhznlktazflsjze52n";
const lucid = await getBackendBlockfrostLucidInstance(
networkId,
blockfrostProjectId,
Expand All @@ -41,13 +43,15 @@ async function main(): Promise<void> {
lucid,
blockfrostAdapter,
address,
utxos
);

// Replace with your private key
const signedTx = await txComplete
.signWithPrivateKey("<YOUR_PRIVATE_KEY>")
.signWithPrivateKey("ed25519_sk1j9gkra33ts20pvjjq4my4lazpttmv98usq2e49um7sj67yy2clmqjdeuj9")
.commit();

const txId = await signedTx.submit();
console.info(`Transaction submitted successfully: ${txId}`);
}

void main();
60 changes: 30 additions & 30 deletions src/types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,37 +931,37 @@ export namespace LbeV2Constant {
}

export enum MetadataMessage {
DEPOSIT_ORDER = "SDK Minswap: Deposit Order",
CANCEL_ORDER = "SDK Minswap: Cancel Order",
CANCEL_ORDERS_AUTOMATICALLY = "SDK Minswap: Cancel Orders Automatically",
ZAP_IN_ORDER = "SDK Minswap: Zap Order",
ZAP_OUT_ORDER = "SDK Minswap: Zap Out Order",
SWAP_EXACT_IN_ORDER = "SDK Minswap: Swap Exact In Order",
SWAP_EXACT_IN_LIMIT_ORDER = "SDK Minswap: Swap Exact In Limit Order",
SWAP_EXACT_OUT_ORDER = "SDK Minswap: Swap Exact Out Order",
WITHDRAW_ORDER = "SDK Minswap: Withdraw Order",
STOP_ORDER = "SDK Minswap: Stop Order",
OCO_ORDER = "SDK Minswap: OCO Order",
ROUTING_ORDER = "SDK Minswap: Routing Order",
PARTIAL_SWAP_ORDER = "SDK Minswap: Partial Fill Order",
DONATION_ORDER = "SDK Minswap: Donation Order",
MIXED_ORDERS = "SDK Minswap: Mixed Orders",
CREATE_POOL = "SDK Minswap: Create Pool",
DEPOSIT_ORDER = "Minswap SDK: Deposit Order",
CANCEL_ORDER = "Minswap SDK: Cancel Order",
CANCEL_ORDERS_AUTOMATICALLY = "Minswap SDK: Cancel Orders Automatically",
ZAP_IN_ORDER = "Minswap SDK: Zap Order",
ZAP_OUT_ORDER = "Minswap SDK: Zap Out Order",
SWAP_EXACT_IN_ORDER = "Minswap SDK: Swap Exact In Order",
SWAP_EXACT_IN_LIMIT_ORDER = "Minswap SDK: Swap Exact In Limit Order",
SWAP_EXACT_OUT_ORDER = "Minswap SDK: Swap Exact Out Order",
WITHDRAW_ORDER = "Minswap SDK: Withdraw Order",
STOP_ORDER = "Minswap SDK: Stop Order",
OCO_ORDER = "Minswap SDK: OCO Order",
ROUTING_ORDER = "Minswap SDK: Routing Order",
PARTIAL_SWAP_ORDER = "Minswap SDK: Partial Fill Order",
DONATION_ORDER = "Minswap SDK: Donation Order",
MIXED_ORDERS = "Minswap SDK: Mixed Orders",
CREATE_POOL = "Minswap SDK: Create Pool",
// LAUNCH
CREATE_EVENT = "SDK Minswap: Create Event",
UPDATE_EVENT = "SDK Minswap: Update Event",
CANCEL_EVENT_BY_OWNER = "SDK Minswap: Cancel Event By Onwer",
CANCEL_EVENT_BY_WORKER = "SDK Minswap: Cancel Event By Worker",
LBE_V2_DEPOSIT_ORDER_EVENT = "SDK Minswap: Deposit Lbe V2 Order",
LBE_V2_WITHDRAW_ORDER_EVENT = "SDK Minswap: Withdraw Lbe V2 Order",
CLOSE_EVENT = "SDK Minswap: Close Event",
LBE_V2_ADD_SELLERS = "SDK Minswap: Lbe V2 add more sellers",
LBE_V2_COUNTING_SELLERS = "SDK Minswap: Lbe V2 counting sellers",
LBE_V2_COLLECT_MANAGER = "SDK Minswap: Lbe V2 collect manager",
LBE_V2_COLLECT_ORDER = "SDK Minswap: Lbe V2 collect order",
LBE_V2_REDEEM_LP = "SDK Minswap: Lbe V2 redeem lp",
LBE_V2_REFUND = "SDK Minswap: Lbe V2 refund",
LBE_V2_CREATE_AMM_POOL = "SDK Minswap: Lbe V2 create AMM pool",
CREATE_EVENT = "Minswap SDK: Create Event",
UPDATE_EVENT = "Minswap SDK: Update Event",
CANCEL_EVENT_BY_OWNER = "Minswap SDK: Cancel Event By Onwer",
CANCEL_EVENT_BY_WORKER = "Minswap SDK: Cancel Event By Worker",
LBE_V2_DEPOSIT_ORDER_EVENT = "Minswap SDK: Deposit Lbe V2 Order",
LBE_V2_WITHDRAW_ORDER_EVENT = "Minswap SDK: Withdraw Lbe V2 Order",
CLOSE_EVENT = "Minswap SDK: Close Event",
LBE_V2_ADD_SELLERS = "Minswap SDK: Lbe V2 add more sellers",
LBE_V2_COUNTING_SELLERS = "Minswap SDK: Lbe V2 counting sellers",
LBE_V2_COLLECT_MANAGER = "Minswap SDK: Lbe V2 collect manager",
LBE_V2_COLLECT_ORDER = "Minswap SDK: Lbe V2 collect order",
LBE_V2_REDEEM_LP = "Minswap SDK: Lbe V2 redeem lp",
LBE_V2_REFUND = "Minswap SDK: Lbe V2 refund",
LBE_V2_CREATE_AMM_POOL = "Minswap SDK: Lbe V2 create AMM pool",
}

export const FIXED_DEPOSIT_ADA = 2_000_000n;
Expand Down
Loading