Update proxy.ts to reflect slots for demo

This commit is contained in:
Arnaud 2024-10-09 13:37:46 +02:00 committed by GitHub
parent 0c749a9859
commit cbd45b8293
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,39 +101,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 = {