Skip to content

Commit

Permalink
types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
orman committed Nov 28, 2023
1 parent 3417248 commit 936e24d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ export interface GetAssetWalletsResponse {
paging: {
after?: string;
before?: string;
}
};
}

export interface VaultBalancesFilter {
Expand Down Expand Up @@ -1561,17 +1561,33 @@ export enum NFTOwnershipWalletType {
"END_USER_WALLET" = "END_USER_WALLET",
}

export enum ContractTemplateType {
FUNGIBLE_TOKEN = "FUNGIBLE_TOKEN",
NON_FUNGIBLE_TOKEN = "NON_FUNGIBLE_TOKEN",
NON_TOKEN = "NON_TOKEN",
UUPS_PROXY = "UUPS_PROXY",
}

export enum ContractInitializationPhase {
ON_DEPLOYMENT = "ON_DEPLOYMENT",
POST_DEPLOYMENT = "POST_DEPLOYMENT",
}

export interface ContractUploadRequest {
name: string;
description: string;
longDescription: string;
bytecode: string;
sourcecode: string;
type?: ContractTemplateType;
implementationContractId?: string;
initializationPhase: ContractInitializationPhase;
compilerOutputMetadata?: object;
docs?: ContractDoc;
abi?: AbiFunction[];
attributes?: Record<string, string>;
}

interface AbiFunction {
name?: string;
stateMutability?: string;
Expand Down Expand Up @@ -1643,6 +1659,10 @@ export interface ContractTemplateDto {
owner?: string;
vendor?: VendorDto;
isPublic: boolean;
canDeploy: boolean;
type: ContractTemplateType;
implementationContractId?: string;
initializationPhase: ContractInitializationPhase;
}

export interface LinkedTokenMetadata {
Expand Down

0 comments on commit 936e24d

Please sign in to comment.