File: enums.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (245 lines) | stat: -rw-r--r-- 8,287 bytes parent folder | download
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

type ConfirmationStatus string

// Enum values for ConfirmationStatus
const (
	ConfirmationStatusFinal ConfirmationStatus = "FINAL"
)

// Values returns all known values for ConfirmationStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ConfirmationStatus) Values() []ConfirmationStatus {
	return []ConfirmationStatus{
		"FINAL",
	}
}

type ErrorType string

// Enum values for ErrorType
const (
	// An API request validation exception
	ErrorTypeValidationException ErrorType = "VALIDATION_EXCEPTION"
	// An API request retrieving an item that can't be found
	ErrorTypeResourceNotFoundException ErrorType = "RESOURCE_NOT_FOUND_EXCEPTION"
)

// Values returns all known values for ErrorType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (ErrorType) Values() []ErrorType {
	return []ErrorType{
		"VALIDATION_EXCEPTION",
		"RESOURCE_NOT_FOUND_EXCEPTION",
	}
}

type ExecutionStatus string

// Enum values for ExecutionStatus
const (
	ExecutionStatusFailed    ExecutionStatus = "FAILED"
	ExecutionStatusSucceeded ExecutionStatus = "SUCCEEDED"
)

// Values returns all known values for ExecutionStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ExecutionStatus) Values() []ExecutionStatus {
	return []ExecutionStatus{
		"FAILED",
		"SUCCEEDED",
	}
}

type ListTransactionsSortBy string

// Enum values for ListTransactionsSortBy
const (
	// Timestamp of a transaction
	ListTransactionsSortByTransactionTimestamp ListTransactionsSortBy = "TRANSACTION_TIMESTAMP"
)

// Values returns all known values for ListTransactionsSortBy. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ListTransactionsSortBy) Values() []ListTransactionsSortBy {
	return []ListTransactionsSortBy{
		"TRANSACTION_TIMESTAMP",
	}
}

type QueryNetwork string

// Enum values for QueryNetwork
const (
	// Ethereum main network
	QueryNetworkEthereumMainnet QueryNetwork = "ETHEREUM_MAINNET"
	// SEPOLIA network (ethereum testnet)
	QueryNetworkEthereumSepoliaTestnet QueryNetwork = "ETHEREUM_SEPOLIA_TESTNET"
	// Bitcoin main network
	QueryNetworkBitcoinMainnet QueryNetwork = "BITCOIN_MAINNET"
	// Bitcoin test network
	QueryNetworkBitcoinTestnet QueryNetwork = "BITCOIN_TESTNET"
)

// Values returns all known values for QueryNetwork. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (QueryNetwork) Values() []QueryNetwork {
	return []QueryNetwork{
		"ETHEREUM_MAINNET",
		"ETHEREUM_SEPOLIA_TESTNET",
		"BITCOIN_MAINNET",
		"BITCOIN_TESTNET",
	}
}

type QueryTokenStandard string

// Enum values for QueryTokenStandard
const (
	QueryTokenStandardErc20   QueryTokenStandard = "ERC20"
	QueryTokenStandardErc721  QueryTokenStandard = "ERC721"
	QueryTokenStandardErc1155 QueryTokenStandard = "ERC1155"
)

// Values returns all known values for QueryTokenStandard. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (QueryTokenStandard) Values() []QueryTokenStandard {
	return []QueryTokenStandard{
		"ERC20",
		"ERC721",
		"ERC1155",
	}
}

type QueryTransactionEventType string

// Enum values for QueryTransactionEventType
const (
	// An ERC20 transfer type
	QueryTransactionEventTypeErc20Transfer QueryTransactionEventType = "ERC20_TRANSFER"
	// An ERC20_MINT transfer type
	QueryTransactionEventTypeErc20Mint QueryTransactionEventType = "ERC20_MINT"
	// An ERC20_BURN transfer type
	QueryTransactionEventTypeErc20Burn QueryTransactionEventType = "ERC20_BURN"
	// An ERC20_DEPOSIT transfer type
	QueryTransactionEventTypeErc20Deposit QueryTransactionEventType = "ERC20_DEPOSIT"
	// An ERC20_WITHDRAWAL transfer type
	QueryTransactionEventTypeErc20Withdrawal QueryTransactionEventType = "ERC20_WITHDRAWAL"
	// An ERC721 transfer type
	QueryTransactionEventTypeErc721Transfer QueryTransactionEventType = "ERC721_TRANSFER"
	// An ERC1155 transfer type
	QueryTransactionEventTypeErc1155Transfer QueryTransactionEventType = "ERC1155_TRANSFER"
	// A Bitcoin Vin transfer type
	QueryTransactionEventTypeBitcoinVin QueryTransactionEventType = "BITCOIN_VIN"
	// A Bitcoin Vout transfer type
	QueryTransactionEventTypeBitcoinVout QueryTransactionEventType = "BITCOIN_VOUT"
	// An internal ETH transfer type
	QueryTransactionEventTypeInternalEthTransfer QueryTransactionEventType = "INTERNAL_ETH_TRANSFER"
	// An ETH transfer type
	QueryTransactionEventTypeEthTransfer QueryTransactionEventType = "ETH_TRANSFER"
)

// Values returns all known values for QueryTransactionEventType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (QueryTransactionEventType) Values() []QueryTransactionEventType {
	return []QueryTransactionEventType{
		"ERC20_TRANSFER",
		"ERC20_MINT",
		"ERC20_BURN",
		"ERC20_DEPOSIT",
		"ERC20_WITHDRAWAL",
		"ERC721_TRANSFER",
		"ERC1155_TRANSFER",
		"BITCOIN_VIN",
		"BITCOIN_VOUT",
		"INTERNAL_ETH_TRANSFER",
		"ETH_TRANSFER",
	}
}

type QueryTransactionStatus string

// Enum values for QueryTransactionStatus
const (
	// The transaction has been confirmed and is final in the blockchain
	QueryTransactionStatusFinal QueryTransactionStatus = "FINAL"
	// The transaction completed on the blockchain, but failed
	QueryTransactionStatusFailed QueryTransactionStatus = "FAILED"
)

// Values returns all known values for QueryTransactionStatus. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (QueryTransactionStatus) Values() []QueryTransactionStatus {
	return []QueryTransactionStatus{
		"FINAL",
		"FAILED",
	}
}

type ResourceType string

// Enum values for ResourceType
const (
	ResourceTypeCollection ResourceType = "collection"
)

// Values returns all known values for ResourceType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ResourceType) Values() []ResourceType {
	return []ResourceType{
		"collection",
	}
}

type SortOrder string

// Enum values for SortOrder
const (
	// Result sorted in ascending order
	SortOrderAscending SortOrder = "ASCENDING"
	// Result sorted in descending order
	SortOrderDescending SortOrder = "DESCENDING"
)

// Values returns all known values for SortOrder. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (SortOrder) Values() []SortOrder {
	return []SortOrder{
		"ASCENDING",
		"DESCENDING",
	}
}

type ValidationExceptionReason string

// Enum values for ValidationExceptionReason
const (
	ValidationExceptionReasonUnknownOperation      ValidationExceptionReason = "unknownOperation"
	ValidationExceptionReasonCannotParse           ValidationExceptionReason = "cannotParse"
	ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "fieldValidationFailed"
	ValidationExceptionReasonOther                 ValidationExceptionReason = "other"
)

// Values returns all known values for ValidationExceptionReason. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (ValidationExceptionReason) Values() []ValidationExceptionReason {
	return []ValidationExceptionReason{
		"unknownOperation",
		"cannotParse",
		"fieldValidationFailed",
		"other",
	}
}