Skip to content

Commit

Permalink
move file
Browse files Browse the repository at this point in the history
  • Loading branch information
ljttl3q04t committed Jun 18, 2024
1 parent e5807ac commit 8b90215
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 39 deletions.
40 changes: 1 addition & 39 deletions src/cmd/set-up.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import type {
Address,
Credential,
LbeScript,
MaestroSupportedNetworks,
OutRef,
Script,
Expand All @@ -35,45 +36,6 @@ type LbeParams = {
seedOutRef: OutRef;
};

type LbeScript = {
factoryRefInput: string; // hex<UTxO>
treasuryRefInput: string; // hex<UTxO>
managerRefInput: string; // hex<UTxO>
sellerRefInput: string; // hex<UTxO>
orderRefInput: string; // hex<UTxO>

factoryAddress: string;
treasuryAddress: string;
managerAddress: string;
sellerAddress: string;
orderAddress: string;

factoryHash: string;
treasuryHash: string;
managerHash: string;
sellerHash: string;
orderHash: string;

seedOutRef: OutRef;
factoryOutRef: OutRef;
treasuryOutRef: OutRef;
managerOutRef: OutRef;
sellerOutRef: OutRef;
orderOutRef: OutRef;

// Minswap AMM
ammAuthenRefInput: string;
ammFactoryRefInput: string;
ammPoolRefInput: string;

ammSeedOutRef: OutRef;
ammPoolStakeCredential: Credential;
ammAuthenHash: string;
ammFactoryHash: string;
ammPoolHash: string;
ammPoolBatchingHash: string;
};

const getParams = () => {
let network: MaestroSupportedNetworks = process
.argv[2] as MaestroSupportedNetworks;
Expand Down
39 changes: 39 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,42 @@ export type MintRedeemer = FactoryValidateFactoryMinting["redeemer"];
export type OrderRedeemer = OrderValidateOrder["redeemer"];
export type SellerRedeemer = SellerValidateSellerSpending["redeemer"];
export type TreasuryRedeemer = TreasuryValidateTreasurySpending["redeemer"];

export type LbeScript = {
factoryRefInput: string;
treasuryRefInput: string;
managerRefInput: string;
sellerRefInput: string;
orderRefInput: string;

factoryAddress: string;
treasuryAddress: string;
managerAddress: string;
sellerAddress: string;
orderAddress: string;

factoryHash: string;
treasuryHash: string;
managerHash: string;
sellerHash: string;
orderHash: string;

seedOutRef: OutRef;
factoryOutRef: OutRef;
treasuryOutRef: OutRef;
managerOutRef: OutRef;
sellerOutRef: OutRef;
orderOutRef: OutRef;

// Minswap AMM
ammAuthenRefInput: string;
ammFactoryRefInput: string;
ammPoolRefInput: string;

ammSeedOutRef: OutRef;
ammPoolStakeCredential: Credential;
ammAuthenHash: string;
ammFactoryHash: string;
ammPoolHash: string;
ammPoolBatchingHash: string;
};

0 comments on commit 8b90215

Please sign in to comment.