Skip to content

Commit

Permalink
The very sad going back to work commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFlicker committed Jan 2, 2024
1 parent 819e40c commit b92fe05
Show file tree
Hide file tree
Showing 73 changed files with 2,697 additions and 456 deletions.
48 changes: 32 additions & 16 deletions apps/cli/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ type InscriptionTransaction {
initTapKey: String!
initLeaf: String!
initCBlock: String!
privateKey: String!
}

type InscriptionTransactionContent {
Expand Down Expand Up @@ -140,22 +139,24 @@ input InscriptionRequest {
feePerByte: Int
}

type S3Object {
bucket: String!
key: String!
enum FundingStatus {
FUNDING
FUNDED
GENESIS
REVEALED
}

type InscriptionFunding {
id: ID!

s3Object: S3Object!
fundingAmountBtc: String!
fundingAmountSats: Int!
fundingAddress: String!
network: BitcoinNetwork!
qrValue: String!
qrSrc: String!
inscriptionTransaction: InscriptionTransaction!
status: FundingStatus!

inscriptionContent(tapKey: String!): InscriptionData!
}
Expand Down Expand Up @@ -211,6 +212,14 @@ enum BlockchainNetwork {
ETHEREUM
}

type Query {
currentBitcoinFees(
network: BitcoinNetwork!
speed: FeeLevel
feePerByte: Int
): Int!
}

type BitcoinScriptItem {
text: String
base64: String
Expand Down Expand Up @@ -250,7 +259,7 @@ type AxolotlProblem {

type AxolotlOpenEditionResponse {
problems: [AxolotlProblem!]
funding: AxolotlFunding
data: AxolotlFunding
}

type AxolotlFundingPage {
Expand All @@ -266,19 +275,10 @@ input AxolotlAvailableClaimedRequest {
}

input AxolotlAvailableOpenEditionRequest {
destinationAddress: String!
destinationAddress: String
collectionId: ID!
}

enum FundingStatus {
UNVERIFIED
UNCLAIMED
FUNDING
FUNDED
GENESIS
REVEAL
}

type AxolotlAvailableClaimedFunding {
id: ID!
destinationAddress: String!
Expand All @@ -298,6 +298,16 @@ type AxolotlAvailableOpenEditionFunding {
tokenIds: [Int!]!
}

type AxolotlFeeEstimate {
tipPerTokenSats: Int!
tipPerTokenBtc: String!
totalInscriptionSats: Int!
totalInscriptionBtc: String!
totalFeeSats: Int!
totalFeeBtc: String!
feePerByte: Int!
}

type Mutation {
#requestFundingAddress(request: InscriptionRequest!): InscriptionFunding!
#axolotlFundingClaimRequest(request: AxolotlClaimRequest!): [AxolotlFunding!]!
Expand All @@ -313,6 +323,12 @@ type Query {
axolotlAvailableOpenEditionFundingClaims(
request: AxolotlAvailableOpenEditionRequest!
): [AxolotlAvailableOpenEditionFunding!]!
axolotlEstimateFee(
network: BitcoinNetwork!
feeLevel: FeeLevel
feePerByte: Int
count: Int
): AxolotlFeeEstimate!
}

type Mutation {
Expand Down
1 change: 1 addition & 0 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@cmdcode/tapscript": "^1.2.10",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/base": "^5.0.0-beta.29",
"@mui/icons-material": "^5.14.1",
"@mui/material": "^5.13.4",
"@noble/secp256k1": "^2.0.0",
Expand Down
48 changes: 32 additions & 16 deletions apps/www/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ type InscriptionTransaction {
initTapKey: String!
initLeaf: String!
initCBlock: String!
privateKey: String!
}

type InscriptionTransactionContent {
Expand Down Expand Up @@ -140,22 +139,24 @@ input InscriptionRequest {
feePerByte: Int
}

type S3Object {
bucket: String!
key: String!
enum FundingStatus {
FUNDING
FUNDED
GENESIS
REVEALED
}

type InscriptionFunding {
id: ID!

s3Object: S3Object!
fundingAmountBtc: String!
fundingAmountSats: Int!
fundingAddress: String!
network: BitcoinNetwork!
qrValue: String!
qrSrc: String!
inscriptionTransaction: InscriptionTransaction!
status: FundingStatus!

inscriptionContent(tapKey: String!): InscriptionData!
}
Expand Down Expand Up @@ -211,6 +212,14 @@ enum BlockchainNetwork {
ETHEREUM
}

type Query {
currentBitcoinFees(
network: BitcoinNetwork!
speed: FeeLevel
feePerByte: Int
): Int!
}

type BitcoinScriptItem {
text: String
base64: String
Expand Down Expand Up @@ -250,7 +259,7 @@ type AxolotlProblem {

type AxolotlOpenEditionResponse {
problems: [AxolotlProblem!]
funding: AxolotlFunding
data: AxolotlFunding
}

type AxolotlFundingPage {
Expand All @@ -266,19 +275,10 @@ input AxolotlAvailableClaimedRequest {
}

input AxolotlAvailableOpenEditionRequest {
destinationAddress: String!
destinationAddress: String
collectionId: ID!
}

enum FundingStatus {
UNVERIFIED
UNCLAIMED
FUNDING
FUNDED
GENESIS
REVEAL
}

type AxolotlAvailableClaimedFunding {
id: ID!
destinationAddress: String!
Expand All @@ -298,6 +298,16 @@ type AxolotlAvailableOpenEditionFunding {
tokenIds: [Int!]!
}

type AxolotlFeeEstimate {
tipPerTokenSats: Int!
tipPerTokenBtc: String!
totalInscriptionSats: Int!
totalInscriptionBtc: String!
totalFeeSats: Int!
totalFeeBtc: String!
feePerByte: Int!
}

type Mutation {
#requestFundingAddress(request: InscriptionRequest!): InscriptionFunding!
#axolotlFundingClaimRequest(request: AxolotlClaimRequest!): [AxolotlFunding!]!
Expand All @@ -313,6 +323,12 @@ type Query {
axolotlAvailableOpenEditionFundingClaims(
request: AxolotlAvailableOpenEditionRequest!
): [AxolotlAvailableOpenEditionFunding!]!
axolotlEstimateFee(
network: BitcoinNetwork!
feeLevel: FeeLevel
feePerByte: Int
count: Int
): AxolotlFeeEstimate!
}

type Mutation {
Expand Down
20 changes: 20 additions & 0 deletions apps/www/src/app/claim/[collectionId]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Inter } from "next/font/google";

const inter = Inter({ subsets: ["latin"] });

export const metadata = {
title: "Bitflick",
description: "Bitflick inscription launchpad",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}
16 changes: 16 additions & 0 deletions apps/www/src/app/claim/[collectionId]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { ClaimRoute } from "@/routes/Claim";
import { AddressPurpose, BitcoinNetworkType } from "sats-connect";

export default function Page({
params: { collectionId },
}: {
params: { collectionId: string };
}) {
return (
<ClaimRoute
initialBitcoinNetwork={BitcoinNetworkType.Mainnet}
initialBitcoinPurpose={AddressPurpose.Payment}
collectionId={collectionId}
/>
);
}
20 changes: 20 additions & 0 deletions apps/www/src/app/testnet/agreement/[collectionId]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Inter } from "next/font/google";

const inter = Inter({ subsets: ["latin"] });

export const metadata = {
title: "Bitflick",
description: "Bitflick inscription launchpad",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}
16 changes: 16 additions & 0 deletions apps/www/src/app/testnet/agreement/[collectionId]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { AgreementRoute } from "@/routes/Agreement";
import { AddressPurpose, BitcoinNetworkType } from "sats-connect";

export default function Page({
params: { collectionId },
}: {
params: { collectionId: string };
}) {
return (
<AgreementRoute
initialBitcoinNetwork={BitcoinNetworkType.Testnet}
initialBitcoinPurpose={AddressPurpose.Payment}
collectionId={collectionId}
/>
);
}
20 changes: 20 additions & 0 deletions apps/www/src/app/testnet/claim/[collectionId]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Inter } from "next/font/google";

const inter = Inter({ subsets: ["latin"] });

export const metadata = {
title: "Bitflick",
description: "Bitflick inscription launchpad",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}
16 changes: 16 additions & 0 deletions apps/www/src/app/testnet/claim/[collectionId]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { ClaimRoute } from "@/routes/Claim";
import { AddressPurpose, BitcoinNetworkType } from "sats-connect";

export default function Page({
params: { collectionId },
}: {
params: { collectionId: string };
}) {
return (
<ClaimRoute
initialBitcoinNetwork={BitcoinNetworkType.Testnet}
initialBitcoinPurpose={AddressPurpose.Payment}
collectionId={collectionId}
/>
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MintRoute } from "@/routes/Mint";
import { AddressPurpose } from "sats-connect";
import { AddressPurpose, BitcoinNetworkType } from "sats-connect";

export default function Page({
params: { collectionId, destinationAddress },
Expand All @@ -8,7 +8,7 @@ export default function Page({
}) {
return (
<MintRoute
initialBitcoinNetwork="Testnet"
initialBitcoinNetwork={BitcoinNetworkType.Testnet}
initialBitcoinPurpose={AddressPurpose.Payment}
collectionId={collectionId}
destinationAddress={destinationAddress}
Expand Down
4 changes: 2 additions & 2 deletions apps/www/src/app/testnet/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Home } from "@/routes/Home";
import { AddressPurpose } from "sats-connect";
import { AddressPurpose, BitcoinNetworkType } from "sats-connect";

export default function Page() {
return (
<Home
initialBitcoinNetwork="Testnet"
initialBitcoinNetwork={BitcoinNetworkType.Testnet}
initialBitcoinPurpose={AddressPurpose.Ordinals}
/>
);
Expand Down
20 changes: 20 additions & 0 deletions apps/www/src/app/testnet/start/[collectionId]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Inter } from "next/font/google";

const inter = Inter({ subsets: ["latin"] });

export const metadata = {
title: "Bitflick",
description: "Bitflick inscription launchpad",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}
Loading

0 comments on commit b92fe05

Please sign in to comment.