-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: verify pool units * fix: resolve promise in transaction page * fix: update error message copy * fix: return pool unit or resource * fix: verify lsu 2 way linking * chore: add error logging * fix: update csp policy * build: increase pod memory
- Loading branch information
Showing
11 changed files
with
500 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { RadixEngineToolkit } from '@common/ret' | ||
import { error, json } from '@sveltejs/kit' | ||
import type { RequestEvent } from './$types' | ||
|
||
export const POST = async ({ request }: RequestEvent) => { | ||
const { addresses }: { addresses: string[] } = await request.json() | ||
|
||
try { | ||
const entityTypes = await Promise.all( | ||
addresses.map((address) => | ||
RadixEngineToolkit.Address.entityType(address).then((entityType) => ({ | ||
[address]: entityType | ||
})) | ||
) | ||
).then((entityTypes) => entityTypes.reduce((a, b) => ({ ...a, ...b }), {})) | ||
|
||
return json(entityTypes, { | ||
status: 200 | ||
}) | ||
} catch (e) { | ||
return error(400) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.