forked from fireblocks/ts-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontract-upload-request.ts
98 lines (91 loc) · 2.83 KB
/
contract-upload-request.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* tslint:disable */
/* eslint-disable */
/**
* Fireblocks API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.6.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { AbiFunction } from './abi-function';
// May contain unused imports in some cases
// @ts-ignore
import { ContractAttributes } from './contract-attributes';
// May contain unused imports in some cases
// @ts-ignore
import { ContractDoc } from './contract-doc';
/**
*
* @export
* @interface ContractUploadRequest
*/
export interface ContractUploadRequest {
/**
* The name of the contract template
* @type {string}
* @memberof ContractUploadRequest
*/
'name': string;
/**
* A short description of the contract template
* @type {string}
* @memberof ContractUploadRequest
*/
'description': string;
/**
* The compiled artifact of this smart contract. Used for deployment of this contract template
* @type {string}
* @memberof ContractUploadRequest
*/
'bytecode': string;
/**
* The abi of the contract template. Necessary for displaying and for after deployment encoding
* @type {Array<AbiFunction>}
* @memberof ContractUploadRequest
*/
'abi': Array<AbiFunction>;
/**
* A full description of the contract template. May contain to break the lines
* @type {string}
* @memberof ContractUploadRequest
*/
'longDescription'?: string;
/**
* The source code of the contract. Optional.
* @type {string}
* @memberof ContractUploadRequest
*/
'sourcecode'?: string;
/**
* The type of the contract template
* @type {string}
* @memberof ContractUploadRequest
*/
'type'?: ContractUploadRequestTypeEnum;
/**
* A `natspec` compliant documentation json. Can be retrieved from the output json after compilation
* @type {ContractDoc}
* @memberof ContractUploadRequest
*/
'docs'?: ContractDoc;
/**
* The attributes related to this contract template. It will be displayed in the tokenization page
* @type {ContractAttributes}
* @memberof ContractUploadRequest
*/
'attributes'?: ContractAttributes;
}
export const ContractUploadRequestTypeEnum = {
FungibleToken: 'FUNGIBLE_TOKEN',
NonFungibleToken: 'NON_FUNGIBLE_TOKEN',
NonToken: 'NON_TOKEN',
TokenExtension: 'TOKEN_EXTENSION',
TokenUtility: 'TOKEN_UTILITY'
} as const;
export type ContractUploadRequestTypeEnum = typeof ContractUploadRequestTypeEnum[keyof typeof ContractUploadRequestTypeEnum];