Skip to content

Commit

Permalink
Merge pull request #53 from xch-dev/ui
Browse files Browse the repository at this point in the history
Overhaul assets
  • Loading branch information
Rigidity authored Oct 24, 2024
2 parents 627e538 + 9cf0267 commit 4c94dfa
Show file tree
Hide file tree
Showing 56 changed files with 2,299 additions and 851 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: pnpm prettier:check

- name: Install GTK
run: sudo apt-get install libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
run: sudo apt-get update && sudo apt-get install libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev

- name: Clippy
run: cargo clippy --workspace --all-features --all-targets
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:

- name: Ubuntu dependencies
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'linux-arm64'
run: sudo apt-get install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev

- name: Windows dependencies
if: matrix.platform == 'windows-latest'
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/sage-api/src/records/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ pub struct NftRecord {
pub data_mime_type: Option<String>,
pub data: Option<String>,
pub metadata: Option<String>,
pub created_height: Option<u32>,
pub create_transaction_id: Option<String>,
pub visible: bool,
}
2 changes: 2 additions & 0 deletions crates/sage-api/src/requests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod bulk_mint_nfts;
mod get_nfts;

pub use bulk_mint_nfts::*;
pub use get_nfts::*;
27 changes: 27 additions & 0 deletions crates/sage-api/src/requests/bulk_mint_nfts.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
use serde::{Deserialize, Serialize};
use specta::Type;

use crate::Amount;

#[derive(Debug, Clone, Serialize, Deserialize, Type)]
pub struct BulkMintNfts {
pub nft_mints: Vec<NftMint>,
pub did_id: String,
pub fee: Amount,
}

#[derive(Debug, Clone, Serialize, Deserialize, Type)]
pub struct NftMint {
pub edition_number: Option<u32>,
pub edition_total: Option<u32>,
pub data_uris: Vec<String>,
pub metadata_uris: Vec<String>,
pub license_uris: Vec<String>,
pub royalty_address: Option<String>,
pub royalty_percent: Amount,
}

#[derive(Debug, Clone, Serialize, Deserialize, Type)]
pub struct BulkMintNftsResponse {
pub nft_ids: Vec<String>,
}
Loading

0 comments on commit 4c94dfa

Please sign in to comment.