Skip to content

Commit

Permalink
feat: new type for transfer (#177)
Browse files Browse the repository at this point in the history
* feat: new type for transfer

* chore: value for semifungible transfers
  • Loading branch information
wainola authored Apr 24, 2024
1 parent 1792eb7 commit ce9016a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/types/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export const enum ResourceTypes {
NON_FUNGIBLE = "nonfungible",
PERMISSIONED_GENERIC = "permissionedGeneric",
PERMISSIONLESS_GENERIC = "permissionlessGeneric",
SEMI_FUNGIBLE = "semifungible",
}

export type SharedConfig = {
Expand Down
4 changes: 3 additions & 1 deletion src/utils/Helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ export const formatTransferType = (transferType: ResourceTypes): string => {
return "Generic"
case ResourceTypes.PERMISSIONLESS_GENERIC:
return "Generic"
case ResourceTypes.SEMI_FUNGIBLE:
return "Semifungible"
default:
return "Fungible"
}
Expand Down Expand Up @@ -273,7 +275,7 @@ export const renderAmountValue = (
resourceID: string,
fromDomainInfo: SharedConfigDomain | undefined,
): string | undefined => {
if (type === ResourceTypes.PERMISSIONLESS_GENERIC) {
if (type === ResourceTypes.PERMISSIONLESS_GENERIC || type === ResourceTypes.SEMI_FUNGIBLE) {
return "Contract call"
}

Expand Down

0 comments on commit ce9016a

Please sign in to comment.