mirror of
https://github.com/codex-storage/codex-marketplace-ui.git
synced 2025-02-23 13:18:37 +00:00
Merge branch 'availabilities-space-repartition-improvements' into releases/v0.0.4
This commit is contained in:
commit
984538bb99
@ -22,7 +22,8 @@
|
||||
overflow: hidden;
|
||||
transition: height 0.35s;
|
||||
will-change: height;
|
||||
padding: 0 1rem;
|
||||
padding-left: 3rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.availabilitySlotRow--active .availabilitySlotRow-cell-content {
|
||||
|
67
src/proxy.ts
67
src/proxy.ts
@ -3,6 +3,7 @@ import {
|
||||
CodexData,
|
||||
CodexDataResponse,
|
||||
CodexMarketplace,
|
||||
CodexReservation,
|
||||
SafeValue,
|
||||
UploadResponse,
|
||||
} from "@codex-storage/sdk-js";
|
||||
@ -142,39 +143,39 @@ class CodexMarketplaceMock extends CodexMarketplace {
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
// override reservations(): Promise<SafeValue<CodexReservation[]>> {
|
||||
// return Promise.resolve({
|
||||
// error: false,
|
||||
// data: [
|
||||
// {
|
||||
// id: "0x123456789",
|
||||
// availabilityId: "0x12345678910",
|
||||
// requestId: "0x1234567891011",
|
||||
// /**
|
||||
// * Size in bytes
|
||||
// */
|
||||
// size: 500_000_000 + "",
|
||||
// /**
|
||||
// * Slot Index as hexadecimal string
|
||||
// */
|
||||
// slotIndex: "2",
|
||||
// },
|
||||
// {
|
||||
// id: "0x987654321",
|
||||
// availabilityId: "0x9876543210",
|
||||
// requestId: "0x98765432100",
|
||||
// /**
|
||||
// * Size in bytes
|
||||
// */
|
||||
// size: 500_000_000 + "",
|
||||
// /**
|
||||
// * Slot Index as hexadecimal string
|
||||
// */
|
||||
// slotIndex: "1",
|
||||
// },
|
||||
// ],
|
||||
// });
|
||||
// }
|
||||
override reservations(): Promise<SafeValue<CodexReservation[]>> {
|
||||
return Promise.resolve({
|
||||
error: false,
|
||||
data: [
|
||||
{
|
||||
id: "0x123456789",
|
||||
availabilityId: "0x12345678910",
|
||||
requestId: "0x1234567891011",
|
||||
/**
|
||||
* Size in bytes
|
||||
*/
|
||||
size: 500_000_000 + "",
|
||||
/**
|
||||
* Slot Index as hexadecimal string
|
||||
*/
|
||||
slotIndex: "2",
|
||||
},
|
||||
{
|
||||
id: "0x987654321",
|
||||
availabilityId: "0x9876543210",
|
||||
requestId: "0x98765432100",
|
||||
/**
|
||||
* Size in bytes
|
||||
*/
|
||||
size: 500_000_000 + "",
|
||||
/**
|
||||
* Slot Index as hexadecimal string
|
||||
*/
|
||||
slotIndex: "1",
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const CodexSdk = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user