bitbadgesjs-sdk 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-indexer/BitBadgesAddressList.d.ts +1 -1
- package/dist/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/api-indexer/BitBadgesApi.d.ts +8 -9
- package/dist/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesApi.js +31 -43
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/BitBadgesCollection.d.ts +8 -18
- package/dist/api-indexer/BitBadgesCollection.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesCollection.js +8 -15
- package/dist/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.d.ts +6 -5
- package/dist/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/api-indexer/base.d.ts +1 -1
- package/dist/api-indexer/base.d.ts.map +1 -1
- package/dist/api-indexer/base.js.map +1 -1
- package/dist/api-indexer/docs/activity.d.ts +12 -14
- package/dist/api-indexer/docs/activity.d.ts.map +1 -1
- package/dist/api-indexer/docs/activity.js +1 -5
- package/dist/api-indexer/docs/activity.js.map +1 -1
- package/dist/api-indexer/docs/docs.d.ts +44 -54
- package/dist/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/api-indexer/docs/docs.js +8 -29
- package/dist/api-indexer/docs/docs.js.map +1 -1
- package/dist/api-indexer/docs/interfaces.d.ts +54 -63
- package/dist/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
- package/dist/api-indexer/metadata/badgeMetadata.js +7 -11
- package/dist/api-indexer/metadata/badgeMetadata.js.map +1 -1
- package/dist/api-indexer/metadata/metadata.d.ts +3 -6
- package/dist/api-indexer/metadata/metadata.d.ts.map +1 -1
- package/dist/api-indexer/metadata/metadata.js +0 -4
- package/dist/api-indexer/metadata/metadata.js.map +1 -1
- package/dist/api-indexer/metadata/metadataIds.d.ts.map +1 -1
- package/dist/api-indexer/requests/blockin.d.ts +2 -1
- package/dist/api-indexer/requests/blockin.d.ts.map +1 -1
- package/dist/api-indexer/requests/blockin.js.map +1 -1
- package/dist/api-indexer/requests/collections.d.ts +5 -5
- package/dist/api-indexer/requests/collections.d.ts.map +1 -1
- package/dist/api-indexer/requests/collections.js +4 -4
- package/dist/api-indexer/requests/collections.js.map +1 -1
- package/dist/api-indexer/requests/maps.d.ts.map +1 -1
- package/dist/api-indexer/requests/maps.js.map +1 -1
- package/dist/api-indexer/requests/requests.d.ts +45 -54
- package/dist/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/api-indexer/requests/requests.js +21 -14
- package/dist/api-indexer/requests/requests.js.map +1 -1
- package/dist/api-indexer/requests/routes.d.ts +2 -4
- package/dist/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/api-indexer/requests/routes.js +3 -5
- package/dist/api-indexer/requests/routes.js.map +1 -1
- package/dist/combined.d.ts +1832 -0
- package/dist/combined.d.ts.map +1 -1
- package/dist/combined.js +11 -0
- package/dist/combined.js.map +1 -1
- package/dist/core/approval-utils.d.ts.map +1 -1
- package/dist/core/approvals.d.ts +2 -6
- package/dist/core/approvals.d.ts.map +1 -1
- package/dist/core/approvals.js.map +1 -1
- package/dist/core/balances.d.ts.map +1 -1
- package/dist/core/batch-utils.d.ts.map +1 -1
- package/dist/core/batch-utils.js.map +1 -1
- package/dist/core/misc.d.ts +6 -5
- package/dist/core/misc.d.ts.map +1 -1
- package/dist/core/misc.js.map +1 -1
- package/dist/core/secrets.d.ts +4 -4
- package/dist/core/secrets.d.ts.map +1 -1
- package/dist/core/secrets.js +2 -2
- package/dist/core/secrets.js.map +1 -1
- package/dist/core/transfers.d.ts +5 -4
- package/dist/core/transfers.d.ts.map +1 -1
- package/dist/core/transfers.js.map +1 -1
- package/dist/interfaces/badges/approvals.d.ts.map +1 -1
- package/dist/interfaces/badges/core.d.ts +22 -21
- package/dist/interfaces/badges/core.d.ts.map +1 -1
- package/dist/interfaces/badges/permissions.d.ts.map +1 -1
- package/dist/interfaces/badges/userBalances.d.ts.map +1 -1
- package/dist/proto/amino/amino_pb.d.ts +6 -5
- package/dist/proto/amino/amino_pb.d.ts.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/module_pb.d.ts +2 -2
- package/dist/proto/cosmos/app/v1alpha1/module_pb.d.ts.map +1 -1
- package/dist/proto/cosmos/msg/v1/msg_pb.d.ts +3 -2
- package/dist/proto/cosmos/msg/v1/msg_pb.d.ts.map +1 -1
- package/dist/proto/cosmos/orm/v1/orm_pb.d.ts +3 -3
- package/dist/proto/cosmos/orm/v1/orm_pb.d.ts.map +1 -1
- package/dist/proto/cosmos/orm/v1alpha1/schema_pb.d.ts +2 -2
- package/dist/proto/cosmos/orm/v1alpha1/schema_pb.d.ts.map +1 -1
- package/dist/proto/cosmos/query/v1/query_pb.d.ts +2 -1
- package/dist/proto/cosmos/query/v1/query_pb.d.ts.map +1 -1
- package/dist/proto/cosmos_proto/cosmos_pb.d.ts +6 -6
- package/dist/proto/cosmos_proto/cosmos_pb.d.ts.map +1 -1
- package/dist/proto/gogoproto/gogo_pb.d.ts +78 -77
- package/dist/proto/gogoproto/gogo_pb.d.ts.map +1 -1
- package/dist/proto/google/api/annotations_pb.d.ts +3 -1
- package/dist/proto/google/api/annotations_pb.d.ts.map +1 -1
- package/dist/transactions/eip712/payload/samples/getSampleMsg.d.ts.map +1 -1
- package/dist/transactions/eip712/payload/samples/getSampleMsg.js +0 -14
- package/dist/transactions/eip712/payload/samples/getSampleMsg.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/interfaces.d.ts +6 -5
- package/dist/transactions/messages/bitbadges/badges/interfaces.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.d.ts +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.d.ts +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.d.ts +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.d.ts +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.d.ts +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js.map +1 -1
- package/dist/transactions/messages/bitbadges/maps/interfaces.d.ts +13 -12
- package/dist/transactions/messages/bitbadges/maps/interfaces.d.ts.map +1 -1
- package/dist/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
- package/dist/transactions/messages/common.d.ts +2 -1
- package/dist/transactions/messages/common.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/combined.d.ts
CHANGED
|
@@ -1 +1,1833 @@
|
|
|
1
|
+
import { DeliverTxResponse } from '@cosmjs/stargate';
|
|
2
|
+
import MerkleTree from 'merkletreejs';
|
|
3
|
+
import { Options as MerkleTreeJsOptions } from 'merkletreejs/dist/MerkleTree';
|
|
4
|
+
export type SupportedChain = 'Bitcoin' | 'Ethereum' | 'Cosmos' | 'Solana' | 'Unknown';
|
|
5
|
+
export interface AssetDetails {
|
|
6
|
+
chain: string;
|
|
7
|
+
collectionId: string | number;
|
|
8
|
+
assetIds: (string | iUintRange)[];
|
|
9
|
+
ownershipTimes: iUintRange[];
|
|
10
|
+
mustOwnAmounts: iUintRange;
|
|
11
|
+
additionalCriteria?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AndGroup {
|
|
14
|
+
$and: AssetConditionGroup[];
|
|
15
|
+
}
|
|
16
|
+
export interface OrGroup {
|
|
17
|
+
$or: AssetConditionGroup[];
|
|
18
|
+
}
|
|
19
|
+
export type AssetConditionGroup = AndGroup | OrGroup | OwnershipRequirements;
|
|
20
|
+
export interface OwnershipRequirements {
|
|
21
|
+
assets: AssetDetails[];
|
|
22
|
+
options?: {
|
|
23
|
+
numMatchesForVerification?: string | number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface ChallengeParams {
|
|
27
|
+
domain: string;
|
|
28
|
+
statement: string;
|
|
29
|
+
address: NativeAddress;
|
|
30
|
+
uri: string;
|
|
31
|
+
nonce: string;
|
|
32
|
+
version?: string;
|
|
33
|
+
chainId?: string;
|
|
34
|
+
issuedAt?: string;
|
|
35
|
+
expirationDate?: string;
|
|
36
|
+
notBefore?: string;
|
|
37
|
+
resources?: string[];
|
|
38
|
+
assetOwnershipRequirements?: AssetConditionGroup;
|
|
39
|
+
}
|
|
40
|
+
export interface VerifyChallengeOptions {
|
|
41
|
+
expectedChallengeParams?: Partial<ChallengeParams>;
|
|
42
|
+
balancesSnapshot?: object;
|
|
43
|
+
skipTimestampVerification?: boolean;
|
|
44
|
+
skipAssetVerification?: boolean;
|
|
45
|
+
earliestIssuedAt?: string;
|
|
46
|
+
issuedAtTimeWindowMs?: number;
|
|
47
|
+
skipSignatureVerification?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface Doc {
|
|
50
|
+
_docId: string;
|
|
51
|
+
_id?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ErrorResponse {
|
|
54
|
+
error?: string;
|
|
55
|
+
errorMessage: string;
|
|
56
|
+
unauthorized?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface PaginationInfo {
|
|
59
|
+
bookmark: string;
|
|
60
|
+
hasMore: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface iUpdateHistory {
|
|
63
|
+
txHash: string;
|
|
64
|
+
block: string | number;
|
|
65
|
+
blockTimestamp: UNIXMilliTimestamp;
|
|
66
|
+
timestamp: UNIXMilliTimestamp;
|
|
67
|
+
}
|
|
68
|
+
export interface ErrorDoc {
|
|
69
|
+
_docId: string;
|
|
70
|
+
_id?: string;
|
|
71
|
+
error: string;
|
|
72
|
+
function: string;
|
|
73
|
+
}
|
|
74
|
+
export type UNIXMilliTimestamp = string | number;
|
|
75
|
+
export type CosmosAddress = string;
|
|
76
|
+
export type BlockinMessage = string;
|
|
77
|
+
export type NativeAddress = string;
|
|
78
|
+
export interface iSocialConnections {
|
|
79
|
+
discord?: {
|
|
80
|
+
username: string;
|
|
81
|
+
id: string;
|
|
82
|
+
discriminator?: string;
|
|
83
|
+
lastUpdated: UNIXMilliTimestamp;
|
|
84
|
+
};
|
|
85
|
+
twitter?: {
|
|
86
|
+
username: string;
|
|
87
|
+
id: string;
|
|
88
|
+
lastUpdated: UNIXMilliTimestamp;
|
|
89
|
+
};
|
|
90
|
+
google?: {
|
|
91
|
+
username: string;
|
|
92
|
+
id: string;
|
|
93
|
+
lastUpdated: UNIXMilliTimestamp;
|
|
94
|
+
};
|
|
95
|
+
github?: {
|
|
96
|
+
username: string;
|
|
97
|
+
id: string;
|
|
98
|
+
lastUpdated: UNIXMilliTimestamp;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export interface iNotificationPreferences {
|
|
102
|
+
email?: string;
|
|
103
|
+
emailVerification?: iEmailVerificationStatus;
|
|
104
|
+
preferences?: {
|
|
105
|
+
listActivity?: boolean;
|
|
106
|
+
transferActivity?: boolean;
|
|
107
|
+
claimAlerts?: boolean;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export interface iEmailVerificationStatus {
|
|
111
|
+
verified?: boolean;
|
|
112
|
+
token?: string;
|
|
113
|
+
expiry?: UNIXMilliTimestamp;
|
|
114
|
+
antiPhishingCode?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface iActivityDoc extends Doc {
|
|
117
|
+
timestamp: UNIXMilliTimestamp;
|
|
118
|
+
block: string | number;
|
|
119
|
+
_notificationsHandled?: boolean;
|
|
120
|
+
}
|
|
121
|
+
export interface iReviewDoc extends iActivityDoc {
|
|
122
|
+
review: string;
|
|
123
|
+
stars: string | number;
|
|
124
|
+
from: CosmosAddress;
|
|
125
|
+
collectionId?: string | number;
|
|
126
|
+
reviewedAddress?: CosmosAddress;
|
|
127
|
+
}
|
|
128
|
+
export interface iTransferActivityDoc extends iActivityDoc {
|
|
129
|
+
to: CosmosAddress[];
|
|
130
|
+
from: CosmosAddress;
|
|
131
|
+
balances: iBalance[];
|
|
132
|
+
collectionId: string | number;
|
|
133
|
+
memo?: string;
|
|
134
|
+
precalculateBalancesFromApproval?: iApprovalIdentifierDetails;
|
|
135
|
+
prioritizedApprovals?: iApprovalIdentifierDetails[];
|
|
136
|
+
onlyCheckPrioritizedApprovals?: boolean;
|
|
137
|
+
initiatedBy: CosmosAddress;
|
|
138
|
+
txHash?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface iListActivityDoc extends iActivityDoc {
|
|
141
|
+
listId: string;
|
|
142
|
+
addedToList?: boolean;
|
|
143
|
+
addresses?: CosmosAddress[];
|
|
144
|
+
txHash?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface iClaimAlertDoc extends iActivityDoc {
|
|
147
|
+
from: string;
|
|
148
|
+
cosmosAddresses: CosmosAddress[];
|
|
149
|
+
collectionId: string | number;
|
|
150
|
+
message?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface iCollectionDoc extends Doc {
|
|
153
|
+
collectionId: string | number;
|
|
154
|
+
collectionMetadataTimeline: iCollectionMetadataTimeline[];
|
|
155
|
+
badgeMetadataTimeline: iBadgeMetadataTimeline[];
|
|
156
|
+
balancesType: 'Standard' | 'Off-Chain - Indexed' | 'Non-Public' | 'Off-Chain - Non-Indexed';
|
|
157
|
+
offChainBalancesMetadataTimeline: iOffChainBalancesMetadataTimeline[];
|
|
158
|
+
customDataTimeline: iCustomDataTimeline[];
|
|
159
|
+
managerTimeline: iManagerTimeline[];
|
|
160
|
+
collectionApprovals: iCollectionApproval[];
|
|
161
|
+
standardsTimeline: iStandardsTimeline[];
|
|
162
|
+
isArchivedTimeline: iIsArchivedTimeline[];
|
|
163
|
+
createdBy: CosmosAddress;
|
|
164
|
+
createdBlock: string | number;
|
|
165
|
+
createdTimestamp: UNIXMilliTimestamp;
|
|
166
|
+
updateHistory: iUpdateHistory[];
|
|
167
|
+
aliasAddress: CosmosAddress;
|
|
168
|
+
}
|
|
169
|
+
export interface iAccountDoc extends Doc {
|
|
170
|
+
publicKey: string;
|
|
171
|
+
accountNumber: string | number;
|
|
172
|
+
pubKeyType: string;
|
|
173
|
+
cosmosAddress: CosmosAddress;
|
|
174
|
+
ethAddress: string;
|
|
175
|
+
solAddress: string;
|
|
176
|
+
btcAddress: string;
|
|
177
|
+
sequence?: string | number;
|
|
178
|
+
balance?: iCosmosCoin;
|
|
179
|
+
}
|
|
180
|
+
export interface iCustomLink {
|
|
181
|
+
title: string;
|
|
182
|
+
url: string;
|
|
183
|
+
image: string;
|
|
184
|
+
}
|
|
185
|
+
export interface iCustomPage {
|
|
186
|
+
title: string;
|
|
187
|
+
description: string;
|
|
188
|
+
items: iBatchBadgeDetails[];
|
|
189
|
+
}
|
|
190
|
+
export interface iCustomListPage {
|
|
191
|
+
title: string;
|
|
192
|
+
description: string;
|
|
193
|
+
items: string[];
|
|
194
|
+
}
|
|
195
|
+
export interface iProfileDoc extends Doc {
|
|
196
|
+
fetchedProfile?: boolean;
|
|
197
|
+
seenActivity?: UNIXMilliTimestamp;
|
|
198
|
+
createdAt?: UNIXMilliTimestamp;
|
|
199
|
+
discord?: string;
|
|
200
|
+
twitter?: string;
|
|
201
|
+
github?: string;
|
|
202
|
+
telegram?: string;
|
|
203
|
+
readme?: string;
|
|
204
|
+
customLinks?: iCustomLink[];
|
|
205
|
+
hiddenBadges?: iBatchBadgeDetails[];
|
|
206
|
+
hiddenLists?: string[];
|
|
207
|
+
customPages?: {
|
|
208
|
+
badges: iCustomPage[];
|
|
209
|
+
lists: iCustomListPage[];
|
|
210
|
+
};
|
|
211
|
+
watchlists?: {
|
|
212
|
+
badges: iCustomPage[];
|
|
213
|
+
lists: iCustomListPage[];
|
|
214
|
+
};
|
|
215
|
+
profilePicUrl?: string;
|
|
216
|
+
username?: string;
|
|
217
|
+
latestSignedInChain?: SupportedChain;
|
|
218
|
+
solAddress?: string;
|
|
219
|
+
notifications?: iNotificationPreferences;
|
|
220
|
+
socialConnections?: iSocialConnections;
|
|
221
|
+
approvedSignInMethods?: {
|
|
222
|
+
discord?: {
|
|
223
|
+
username: string;
|
|
224
|
+
discriminator?: string;
|
|
225
|
+
id: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
export interface iQueueDoc extends Doc {
|
|
230
|
+
uri: string;
|
|
231
|
+
collectionId: string | number;
|
|
232
|
+
loadBalanceId: string | number;
|
|
233
|
+
refreshRequestTime: UNIXMilliTimestamp;
|
|
234
|
+
numRetries: string | number;
|
|
235
|
+
lastFetchedAt?: UNIXMilliTimestamp;
|
|
236
|
+
error?: string;
|
|
237
|
+
deletedAt?: UNIXMilliTimestamp;
|
|
238
|
+
nextFetchTime?: UNIXMilliTimestamp;
|
|
239
|
+
emailMessage?: string;
|
|
240
|
+
recipientAddress?: string;
|
|
241
|
+
activityDocId?: string;
|
|
242
|
+
notificationType?: string;
|
|
243
|
+
}
|
|
244
|
+
export interface iIndexerStatus {
|
|
245
|
+
status: iStatusDoc;
|
|
246
|
+
}
|
|
247
|
+
export interface iLatestBlockStatus {
|
|
248
|
+
height: string | number;
|
|
249
|
+
txIndex: string | number;
|
|
250
|
+
timestamp: UNIXMilliTimestamp;
|
|
251
|
+
}
|
|
252
|
+
export interface iStatusDoc extends Doc {
|
|
253
|
+
block: iLatestBlockStatus;
|
|
254
|
+
nextCollectionId: string | number;
|
|
255
|
+
gasPrice: number;
|
|
256
|
+
lastXGasAmounts: (string | number)[];
|
|
257
|
+
lastXGasLimits: (string | number)[];
|
|
258
|
+
}
|
|
259
|
+
export interface iAddressListEditKey {
|
|
260
|
+
key: string;
|
|
261
|
+
expirationDate: UNIXMilliTimestamp;
|
|
262
|
+
mustSignIn?: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface iAddressListDoc extends iAddressList, Doc {
|
|
265
|
+
updateHistory: iUpdateHistory[];
|
|
266
|
+
createdBlock: string | number;
|
|
267
|
+
lastUpdated: UNIXMilliTimestamp;
|
|
268
|
+
nsfw?: {
|
|
269
|
+
reason: string;
|
|
270
|
+
};
|
|
271
|
+
reported?: {
|
|
272
|
+
reason: string;
|
|
273
|
+
};
|
|
274
|
+
private?: boolean;
|
|
275
|
+
viewableWithLink?: boolean;
|
|
276
|
+
}
|
|
277
|
+
export interface iBalanceDoc extends iUserBalanceStore, Doc {
|
|
278
|
+
collectionId: string | number;
|
|
279
|
+
cosmosAddress: CosmosAddress;
|
|
280
|
+
onChain: boolean;
|
|
281
|
+
uri?: string;
|
|
282
|
+
fetchedAt?: UNIXMilliTimestamp;
|
|
283
|
+
fetchedAtBlock?: string | number;
|
|
284
|
+
isPermanent?: boolean;
|
|
285
|
+
contentHash?: string;
|
|
286
|
+
updateHistory: iUpdateHistory[];
|
|
287
|
+
}
|
|
288
|
+
export type ClaimIntegrationPluginType = 'password' | 'numUses' | 'discord' | 'codes' | 'github' | 'google' | 'twitter' | 'transferTimes' | 'requiresProofOfAddress' | 'whitelist' | 'mustOwnBadges' | 'api' | 'email';
|
|
289
|
+
export interface iClaimBuilderDoc extends Doc {
|
|
290
|
+
cid: string;
|
|
291
|
+
createdBy: CosmosAddress;
|
|
292
|
+
docClaimed: boolean;
|
|
293
|
+
collectionId: string | number;
|
|
294
|
+
plugins: any[];
|
|
295
|
+
manualDistribution?: boolean;
|
|
296
|
+
state: {
|
|
297
|
+
[pluginId: string]: any;
|
|
298
|
+
};
|
|
299
|
+
action: {
|
|
300
|
+
codes?: string[];
|
|
301
|
+
seedCode?: string;
|
|
302
|
+
balancesToSet?: iIncrementedBalances;
|
|
303
|
+
listId?: string;
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
export interface iApprovalTrackerDoc extends iAmountTrackerIdDetails, Doc {
|
|
307
|
+
numTransfers: string | number;
|
|
308
|
+
amounts: iBalance[];
|
|
309
|
+
}
|
|
310
|
+
export interface iChallengeTrackerIdDetails {
|
|
311
|
+
collectionId: string | number;
|
|
312
|
+
approvalId: string;
|
|
313
|
+
challengeTrackerId: string;
|
|
314
|
+
approvalLevel: 'collection' | 'incoming' | 'outgoing' | '';
|
|
315
|
+
approverAddress: CosmosAddress;
|
|
316
|
+
}
|
|
317
|
+
export interface iMerkleChallengeDoc extends Doc {
|
|
318
|
+
collectionId: string | number;
|
|
319
|
+
challengeTrackerId: string;
|
|
320
|
+
approvalId: string;
|
|
321
|
+
approvalLevel: 'collection' | 'incoming' | 'outgoing' | '';
|
|
322
|
+
approverAddress: CosmosAddress;
|
|
323
|
+
usedLeafIndices: (string | number)[];
|
|
324
|
+
}
|
|
325
|
+
export interface iMerklechallengeTrackerIdDetails {
|
|
326
|
+
collectionId: string | number;
|
|
327
|
+
challengeTrackerId: string;
|
|
328
|
+
approvalLevel: 'collection' | 'incoming' | 'outgoing' | '';
|
|
329
|
+
approverAddress: CosmosAddress;
|
|
330
|
+
usedLeafIndices: (string | number)[];
|
|
331
|
+
}
|
|
332
|
+
export interface iFetchDoc extends Doc {
|
|
333
|
+
content?: iMetadata | iApprovalInfoDetails | iOffChainBalancesMap | iChallengeDetails;
|
|
334
|
+
fetchedAt: UNIXMilliTimestamp;
|
|
335
|
+
fetchedAtBlock: string | number;
|
|
336
|
+
db: 'ApprovalInfo' | 'Metadata' | 'Balances' | 'ChallengeInfo';
|
|
337
|
+
isPermanent: boolean;
|
|
338
|
+
}
|
|
339
|
+
export interface iRefreshDoc extends Doc {
|
|
340
|
+
collectionId: string | number;
|
|
341
|
+
refreshRequestTime: UNIXMilliTimestamp;
|
|
342
|
+
}
|
|
343
|
+
export interface iAirdropDoc extends Doc {
|
|
344
|
+
airdropped: boolean;
|
|
345
|
+
timestamp: UNIXMilliTimestamp;
|
|
346
|
+
hash?: string;
|
|
347
|
+
}
|
|
348
|
+
export interface iIPFSTotalsDoc extends Doc {
|
|
349
|
+
bytesUploaded: string | number;
|
|
350
|
+
}
|
|
351
|
+
export interface iComplianceDoc extends Doc {
|
|
352
|
+
badges: {
|
|
353
|
+
nsfw: iBatchBadgeDetails[];
|
|
354
|
+
reported: iBatchBadgeDetails[];
|
|
355
|
+
};
|
|
356
|
+
addressLists: {
|
|
357
|
+
nsfw: {
|
|
358
|
+
listId: string;
|
|
359
|
+
reason: string;
|
|
360
|
+
}[];
|
|
361
|
+
reported: {
|
|
362
|
+
listId: string;
|
|
363
|
+
reason: string;
|
|
364
|
+
}[];
|
|
365
|
+
};
|
|
366
|
+
accounts: {
|
|
367
|
+
nsfw: {
|
|
368
|
+
cosmosAddress: CosmosAddress;
|
|
369
|
+
reason: string;
|
|
370
|
+
}[];
|
|
371
|
+
reported: {
|
|
372
|
+
cosmosAddress: CosmosAddress;
|
|
373
|
+
reason: string;
|
|
374
|
+
}[];
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
export interface iBlockinAuthSignatureDoc extends Doc {
|
|
378
|
+
signature: string;
|
|
379
|
+
publicKey?: string;
|
|
380
|
+
name: string;
|
|
381
|
+
description: string;
|
|
382
|
+
image: string;
|
|
383
|
+
cosmosAddress: CosmosAddress;
|
|
384
|
+
params: ChallengeParams;
|
|
385
|
+
secretsProofs: iSecretsProof[];
|
|
386
|
+
createdAt: UNIXMilliTimestamp;
|
|
387
|
+
deletedAt?: UNIXMilliTimestamp;
|
|
388
|
+
}
|
|
389
|
+
export interface iSecretDoc extends Doc, iSecret {
|
|
390
|
+
updateHistory: iUpdateHistory[];
|
|
391
|
+
}
|
|
392
|
+
export interface iFollowDetailsDoc extends Doc {
|
|
393
|
+
cosmosAddress: CosmosAddress;
|
|
394
|
+
followingCount: string | number;
|
|
395
|
+
followersCount: string | number;
|
|
396
|
+
followers: CosmosAddress[];
|
|
397
|
+
following: CosmosAddress[];
|
|
398
|
+
followingCollectionId: string | number;
|
|
399
|
+
}
|
|
400
|
+
export interface iMapDoc extends Doc, iMapWithValues {
|
|
401
|
+
}
|
|
402
|
+
export interface iBadgeMetadataDetails {
|
|
403
|
+
metadataId?: string | number;
|
|
404
|
+
badgeIds: iUintRange[];
|
|
405
|
+
metadata: iMetadata;
|
|
406
|
+
uri?: string;
|
|
407
|
+
customData?: string;
|
|
408
|
+
toUpdate?: boolean;
|
|
409
|
+
}
|
|
410
|
+
export interface iMetadata {
|
|
411
|
+
name: string;
|
|
412
|
+
description: string;
|
|
413
|
+
image: string;
|
|
414
|
+
video?: string;
|
|
415
|
+
category?: string;
|
|
416
|
+
externalUrl?: string;
|
|
417
|
+
tags?: string[];
|
|
418
|
+
socials?: {
|
|
419
|
+
[key: string]: string;
|
|
420
|
+
};
|
|
421
|
+
offChainTransferabilityInfo?: {
|
|
422
|
+
host: string;
|
|
423
|
+
assignMethod: string;
|
|
424
|
+
};
|
|
425
|
+
attributes?: {
|
|
426
|
+
type?: 'date' | 'url';
|
|
427
|
+
name: string;
|
|
428
|
+
value: string | number | boolean;
|
|
429
|
+
}[];
|
|
430
|
+
fetchedAtBlock?: string | number;
|
|
431
|
+
fetchedAt?: UNIXMilliTimestamp;
|
|
432
|
+
_isUpdating?: boolean;
|
|
433
|
+
}
|
|
434
|
+
export interface iBitBadgesAddressList extends iAddressListDoc {
|
|
435
|
+
metadata?: iMetadata;
|
|
436
|
+
listsActivity: iListActivityDoc[];
|
|
437
|
+
views: {
|
|
438
|
+
[viewId: string]: {
|
|
439
|
+
ids: string[];
|
|
440
|
+
type: string;
|
|
441
|
+
pagination: PaginationInfo;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
claims: {
|
|
445
|
+
claimId: string;
|
|
446
|
+
plugins: any[];
|
|
447
|
+
}[];
|
|
448
|
+
}
|
|
449
|
+
export interface GetAddressListsRouteRequestBody {
|
|
450
|
+
listsToFetch: {
|
|
451
|
+
listId: string;
|
|
452
|
+
viewsToFetch?: {
|
|
453
|
+
viewId: string;
|
|
454
|
+
viewType: 'listActivity';
|
|
455
|
+
bookmark: string;
|
|
456
|
+
}[];
|
|
457
|
+
fetchPrivateParams?: boolean;
|
|
458
|
+
}[];
|
|
459
|
+
}
|
|
460
|
+
export interface iGetAddressListsRouteSuccessResponse {
|
|
461
|
+
addressLists: iBitBadgesAddressList[];
|
|
462
|
+
}
|
|
463
|
+
export interface UpdateAddressListsRouteRequestBody {
|
|
464
|
+
addressLists: (iAddressList & {
|
|
465
|
+
private?: boolean;
|
|
466
|
+
viewableWithLink?: boolean;
|
|
467
|
+
claims: {
|
|
468
|
+
claimId: string;
|
|
469
|
+
plugins: any[];
|
|
470
|
+
}[];
|
|
471
|
+
})[];
|
|
472
|
+
}
|
|
473
|
+
export interface iUpdateAddressListsRouteSuccessResponse {
|
|
474
|
+
}
|
|
475
|
+
export interface CreateAddressListsRouteRequestBody extends UpdateAddressListsRouteRequestBody {
|
|
476
|
+
}
|
|
477
|
+
export interface iCreateAddressListsRouteSuccessResponse {
|
|
478
|
+
}
|
|
479
|
+
export interface DeleteAddressListsRouteRequestBody {
|
|
480
|
+
listIds: string[];
|
|
481
|
+
}
|
|
482
|
+
export interface iDeleteAddressListsRouteSuccessResponse {
|
|
483
|
+
}
|
|
484
|
+
export interface iBitBadgesUserInfo extends Doc {
|
|
485
|
+
publicKey: string;
|
|
486
|
+
accountNumber: string | number;
|
|
487
|
+
pubKeyType: string;
|
|
488
|
+
cosmosAddress: CosmosAddress;
|
|
489
|
+
ethAddress: string;
|
|
490
|
+
btcAddress: string;
|
|
491
|
+
sequence?: string | number;
|
|
492
|
+
balance?: iCosmosCoin;
|
|
493
|
+
fetchedProfile?: boolean;
|
|
494
|
+
seenActivity?: UNIXMilliTimestamp;
|
|
495
|
+
createdAt?: UNIXMilliTimestamp;
|
|
496
|
+
discord?: string;
|
|
497
|
+
twitter?: string;
|
|
498
|
+
github?: string;
|
|
499
|
+
telegram?: string;
|
|
500
|
+
readme?: string;
|
|
501
|
+
customLinks?: iCustomLink[];
|
|
502
|
+
hiddenBadges?: iBatchBadgeDetails[];
|
|
503
|
+
hiddenLists?: string[];
|
|
504
|
+
customPages?: {
|
|
505
|
+
badges: iCustomPage[];
|
|
506
|
+
lists: iCustomListPage[];
|
|
507
|
+
};
|
|
508
|
+
watchlists?: {
|
|
509
|
+
badges: iCustomPage[];
|
|
510
|
+
lists: iCustomListPage[];
|
|
511
|
+
};
|
|
512
|
+
profilePicUrl?: string;
|
|
513
|
+
username?: string;
|
|
514
|
+
latestSignedInChain?: SupportedChain;
|
|
515
|
+
notifications?: iNotificationPreferences;
|
|
516
|
+
socialConnections?: iSocialConnections;
|
|
517
|
+
approvedSignInMethods?: {
|
|
518
|
+
discord?: {
|
|
519
|
+
username: string;
|
|
520
|
+
discriminator?: string;
|
|
521
|
+
id: string;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
resolvedName?: string;
|
|
525
|
+
avatar?: string;
|
|
526
|
+
solAddress: string;
|
|
527
|
+
chain: SupportedChain;
|
|
528
|
+
airdropped?: boolean;
|
|
529
|
+
collected: iBalanceDoc[];
|
|
530
|
+
activity: iTransferActivityDoc[];
|
|
531
|
+
listsActivity: iListActivityDoc[];
|
|
532
|
+
reviews: iReviewDoc[];
|
|
533
|
+
merkleChallenges: iMerkleChallengeDoc[];
|
|
534
|
+
approvalTrackers: iApprovalTrackerDoc[];
|
|
535
|
+
addressLists: iBitBadgesAddressList[];
|
|
536
|
+
claimAlerts: iClaimAlertDoc[];
|
|
537
|
+
authCodes: iBlockinAuthSignatureDoc[];
|
|
538
|
+
secrets: iSecretDoc[];
|
|
539
|
+
reservedMap?: iMapDoc;
|
|
540
|
+
address: NativeAddress;
|
|
541
|
+
nsfw?: {
|
|
542
|
+
[badgeId: string]: string;
|
|
543
|
+
};
|
|
544
|
+
reported?: {
|
|
545
|
+
[badgeId: string]: string;
|
|
546
|
+
};
|
|
547
|
+
views: {
|
|
548
|
+
[viewId: string]: {
|
|
549
|
+
ids: string[];
|
|
550
|
+
type: string;
|
|
551
|
+
pagination: PaginationInfo;
|
|
552
|
+
} | undefined;
|
|
553
|
+
};
|
|
554
|
+
alias?: {
|
|
555
|
+
collectionId?: string | number;
|
|
556
|
+
listId?: string;
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
export type AccountViewKey = 'createdLists' | 'privateLists' | 'authCodes' | 'transferActivity' | 'reviews' | 'badgesCollected' | 'claimAlerts' | 'sentClaimAlerts' | 'allLists' | 'whitelists' | 'blacklists' | 'createdBadges' | 'managingBadges' | 'listsActivity' | 'createdSecrets' | 'receivedSecrets';
|
|
560
|
+
export type AccountFetchDetails = {
|
|
561
|
+
address?: string;
|
|
562
|
+
username?: string;
|
|
563
|
+
fetchSequence?: boolean;
|
|
564
|
+
fetchBalance?: boolean;
|
|
565
|
+
noExternalCalls?: boolean;
|
|
566
|
+
viewsToFetch?: {
|
|
567
|
+
viewId: string;
|
|
568
|
+
viewType: AccountViewKey;
|
|
569
|
+
specificCollections?: iBatchBadgeDetails[];
|
|
570
|
+
specificLists?: string[];
|
|
571
|
+
oldestFirst?: boolean;
|
|
572
|
+
bookmark: string;
|
|
573
|
+
}[];
|
|
574
|
+
};
|
|
575
|
+
export interface GetAccountsRouteRequestBody {
|
|
576
|
+
accountsToFetch: AccountFetchDetails[];
|
|
577
|
+
}
|
|
578
|
+
export interface iGetAccountsRouteSuccessResponse {
|
|
579
|
+
accounts: iBitBadgesUserInfo[];
|
|
580
|
+
}
|
|
581
|
+
export interface GetFollowDetailsRouteRequestBody {
|
|
582
|
+
cosmosAddress: string;
|
|
583
|
+
followingBookmark?: string;
|
|
584
|
+
followersBookmark?: string;
|
|
585
|
+
protocol?: string;
|
|
586
|
+
activityBookmark?: string;
|
|
587
|
+
}
|
|
588
|
+
export interface iGetFollowDetailsRouteSuccessResponse extends iFollowDetailsDoc {
|
|
589
|
+
followersPagination: PaginationInfo;
|
|
590
|
+
followingPagination: PaginationInfo;
|
|
591
|
+
activity: iTransferActivityDoc[];
|
|
592
|
+
activityPagination: PaginationInfo;
|
|
593
|
+
}
|
|
594
|
+
export interface FilterBadgesInCollectionRequestBody {
|
|
595
|
+
collectionId: string | number;
|
|
596
|
+
badgeIds?: iUintRange[];
|
|
597
|
+
categories?: string[];
|
|
598
|
+
tags?: string[];
|
|
599
|
+
mostViewed?: 'daily' | 'allTime' | 'weekly' | 'monthly' | 'yearly';
|
|
600
|
+
bookmark?: string;
|
|
601
|
+
attributes?: {
|
|
602
|
+
name: string;
|
|
603
|
+
value: string | number | boolean;
|
|
604
|
+
}[];
|
|
605
|
+
}
|
|
606
|
+
export interface iFilterBadgesInCollectionSuccessResponse {
|
|
607
|
+
badgeIds: iUintRange[];
|
|
608
|
+
pagination: PaginationInfo;
|
|
609
|
+
}
|
|
610
|
+
export interface GetOwnersForBadgeRouteRequestBody {
|
|
611
|
+
bookmark?: string;
|
|
612
|
+
}
|
|
613
|
+
export interface iGetOwnersForBadgeRouteSuccessResponse {
|
|
614
|
+
owners: iBalanceDoc[];
|
|
615
|
+
pagination: PaginationInfo;
|
|
616
|
+
}
|
|
617
|
+
export interface GetBadgeBalanceByAddressRouteRequestBody {
|
|
618
|
+
}
|
|
619
|
+
export interface iGetBadgeBalanceByAddressRouteSuccessResponse extends iBalanceDoc {
|
|
620
|
+
}
|
|
621
|
+
export interface GetBadgeActivityRouteRequestBody {
|
|
622
|
+
bookmark?: string;
|
|
623
|
+
}
|
|
624
|
+
export interface iGetBadgeActivityRouteSuccessResponse {
|
|
625
|
+
activity: iTransferActivityDoc[];
|
|
626
|
+
pagination: PaginationInfo;
|
|
627
|
+
}
|
|
628
|
+
export interface MetadataFetchOptions {
|
|
629
|
+
doNotFetchCollectionMetadata?: boolean;
|
|
630
|
+
metadataIds?: string | number[] | iUintRange[];
|
|
631
|
+
uris?: string[];
|
|
632
|
+
badgeIds?: string | number[] | iUintRange[];
|
|
633
|
+
}
|
|
634
|
+
export type CollectionViewKey = 'transferActivity' | 'reviews' | 'owners' | 'amountTrackers' | 'challengeTrackers';
|
|
635
|
+
export interface GetAdditionalCollectionDetailsRequestBody {
|
|
636
|
+
viewsToFetch?: {
|
|
637
|
+
viewType: CollectionViewKey;
|
|
638
|
+
viewId: string;
|
|
639
|
+
bookmark: string;
|
|
640
|
+
oldestFirst?: boolean;
|
|
641
|
+
}[];
|
|
642
|
+
fetchTotalAndMintBalances?: boolean;
|
|
643
|
+
challengeTrackersToFetch?: iChallengeTrackerIdDetails[];
|
|
644
|
+
approvalTrackersToFetch?: iAmountTrackerIdDetails[];
|
|
645
|
+
handleAllAndAppendDefaults?: boolean;
|
|
646
|
+
fetchPrivateParams?: boolean;
|
|
647
|
+
}
|
|
648
|
+
export interface GetMetadataForCollectionRequestBody {
|
|
649
|
+
metadataToFetch?: MetadataFetchOptions;
|
|
650
|
+
}
|
|
651
|
+
export interface GetCollectionsRouteRequestBody {
|
|
652
|
+
collectionsToFetch: ({
|
|
653
|
+
collectionId: string | number;
|
|
654
|
+
} & GetMetadataForCollectionRequestBody & GetAdditionalCollectionDetailsRequestBody)[];
|
|
655
|
+
}
|
|
656
|
+
export interface iGetCollectionsRouteSuccessResponse {
|
|
657
|
+
collections: iBitBadgesCollection[];
|
|
658
|
+
}
|
|
659
|
+
export interface GetCollectionByIdRouteRequestBody extends GetAdditionalCollectionDetailsRequestBody, GetMetadataForCollectionRequestBody {
|
|
660
|
+
}
|
|
661
|
+
export interface iGetCollectionByIdRouteSuccessResponse {
|
|
662
|
+
collection: iBitBadgesCollection;
|
|
663
|
+
}
|
|
664
|
+
export interface RefreshMetadataRouteRequestBody {
|
|
665
|
+
}
|
|
666
|
+
export interface iRefreshMetadataRouteSuccessResponse {
|
|
667
|
+
}
|
|
668
|
+
export interface RefreshStatusRouteRequestBody {
|
|
669
|
+
}
|
|
670
|
+
export interface iRefreshStatusRouteSuccessResponse {
|
|
671
|
+
inQueue: boolean;
|
|
672
|
+
errorDocs: iQueueDoc[];
|
|
673
|
+
refreshDoc: iRefreshDoc;
|
|
674
|
+
}
|
|
675
|
+
export interface GetStatusRouteRequestBody {
|
|
676
|
+
}
|
|
677
|
+
export interface iGetStatusRouteSuccessResponse {
|
|
678
|
+
status: iStatusDoc;
|
|
679
|
+
}
|
|
680
|
+
export interface GetSearchRouteRequestBody {
|
|
681
|
+
noCollections?: boolean;
|
|
682
|
+
noAccounts?: boolean;
|
|
683
|
+
noAddressLists?: boolean;
|
|
684
|
+
noBadges?: boolean;
|
|
685
|
+
specificCollectionId?: string | number;
|
|
686
|
+
}
|
|
687
|
+
export interface iGetSearchRouteSuccessResponse {
|
|
688
|
+
collections: iBitBadgesCollection[];
|
|
689
|
+
accounts: iBitBadgesUserInfo[];
|
|
690
|
+
addressLists: iBitBadgesAddressList[];
|
|
691
|
+
badges: {
|
|
692
|
+
collection: iBitBadgesCollection;
|
|
693
|
+
badgeIds: iUintRange[];
|
|
694
|
+
}[];
|
|
695
|
+
}
|
|
696
|
+
export interface GetClaimsRouteRequestBody {
|
|
697
|
+
claimIds: string[];
|
|
698
|
+
listId?: string;
|
|
699
|
+
}
|
|
700
|
+
export interface iClaimDetails {
|
|
701
|
+
claimId: string;
|
|
702
|
+
balancesToSet?: iIncrementedBalances;
|
|
703
|
+
plugins: any[];
|
|
704
|
+
manualDistribution?: boolean;
|
|
705
|
+
}
|
|
706
|
+
export interface iGetClaimsRouteSuccessResponse {
|
|
707
|
+
claims: iClaimDetails[];
|
|
708
|
+
}
|
|
709
|
+
export interface CheckAndCompleteClaimRouteRequestBody {
|
|
710
|
+
[pluginId: string]: any;
|
|
711
|
+
prevCodesOnly?: boolean;
|
|
712
|
+
}
|
|
713
|
+
export interface iCheckAndCompleteClaimRouteSuccessResponse {
|
|
714
|
+
code?: string;
|
|
715
|
+
prevCodes?: string[];
|
|
716
|
+
}
|
|
717
|
+
export interface DeleteReviewRouteRequestBody {
|
|
718
|
+
reviewId: string;
|
|
719
|
+
}
|
|
720
|
+
export interface iDeleteReviewRouteSuccessResponse {
|
|
721
|
+
}
|
|
722
|
+
export interface AddReviewForCollectionRouteRequestBody {
|
|
723
|
+
review: string;
|
|
724
|
+
stars: string | number;
|
|
725
|
+
cosmosAddress: CosmosAddress;
|
|
726
|
+
collectionId: string | number;
|
|
727
|
+
}
|
|
728
|
+
export interface iAddReviewForCollectionRouteSuccessResponse {
|
|
729
|
+
}
|
|
730
|
+
export interface AddReviewForUserRouteRequestBody {
|
|
731
|
+
review: string;
|
|
732
|
+
stars: string | number;
|
|
733
|
+
}
|
|
734
|
+
export interface iAddReviewForUserRouteSuccessResponse {
|
|
735
|
+
}
|
|
736
|
+
export interface UpdateAccountInfoRouteRequestBody {
|
|
737
|
+
discord?: string;
|
|
738
|
+
twitter?: string;
|
|
739
|
+
github?: string;
|
|
740
|
+
telegram?: string;
|
|
741
|
+
seenActivity?: UNIXMilliTimestamp;
|
|
742
|
+
readme?: string;
|
|
743
|
+
hiddenBadges?: iBatchBadgeDetails[];
|
|
744
|
+
hiddenLists?: string[];
|
|
745
|
+
customPages?: {
|
|
746
|
+
badges: iCustomPage[];
|
|
747
|
+
lists: iCustomListPage[];
|
|
748
|
+
};
|
|
749
|
+
watchlists?: {
|
|
750
|
+
badges: iCustomPage[];
|
|
751
|
+
lists: iCustomListPage[];
|
|
752
|
+
};
|
|
753
|
+
profilePicUrl?: string;
|
|
754
|
+
username?: string;
|
|
755
|
+
profilePicImageFile?: any;
|
|
756
|
+
notifications?: {
|
|
757
|
+
email?: string;
|
|
758
|
+
antiPhishingCode?: string;
|
|
759
|
+
preferences?: {};
|
|
760
|
+
};
|
|
761
|
+
approvedSignInMethods?: {
|
|
762
|
+
discord?: {
|
|
763
|
+
username: string;
|
|
764
|
+
discriminator?: string;
|
|
765
|
+
id: string;
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
socialConntections?: iSocialConnections;
|
|
769
|
+
}
|
|
770
|
+
export interface iUpdateAccountInfoRouteSuccessResponse {
|
|
771
|
+
}
|
|
772
|
+
export interface AddBalancesToOffChainStorageRouteRequestBody {
|
|
773
|
+
balances?: iOffChainBalancesMap;
|
|
774
|
+
claims?: {
|
|
775
|
+
claimId: string;
|
|
776
|
+
plugins: any[];
|
|
777
|
+
balancesToSet?: iIncrementedBalances;
|
|
778
|
+
}[];
|
|
779
|
+
method: 'ipfs' | 'centralized';
|
|
780
|
+
collectionId: string | number;
|
|
781
|
+
}
|
|
782
|
+
export interface iAddBalancesToOffChainStorageRouteSuccessResponse {
|
|
783
|
+
uri?: string;
|
|
784
|
+
result: {
|
|
785
|
+
cid?: string;
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
export interface AddMetadataToIpfsRouteRequestBody {
|
|
789
|
+
collectionMetadata?: iMetadata;
|
|
790
|
+
badgeMetadata?: iBadgeMetadataDetails[] | iMetadata[];
|
|
791
|
+
}
|
|
792
|
+
export interface iAddMetadataToIpfsRouteSuccessResponse {
|
|
793
|
+
collectionMetadataResult?: {
|
|
794
|
+
cid: string;
|
|
795
|
+
};
|
|
796
|
+
badgeMetadataResults: {
|
|
797
|
+
cid: string;
|
|
798
|
+
}[];
|
|
799
|
+
}
|
|
800
|
+
export interface AddApprovalDetailsToOffChainStorageRouteRequestBody {
|
|
801
|
+
name: string;
|
|
802
|
+
description: string;
|
|
803
|
+
challengeDetails?: iChallengeDetails;
|
|
804
|
+
claims?: {
|
|
805
|
+
plugins: any[];
|
|
806
|
+
claimId: string;
|
|
807
|
+
manualDistribution?: boolean;
|
|
808
|
+
}[];
|
|
809
|
+
}
|
|
810
|
+
export interface iAddApprovalDetailsToOffChainStorageRouteSuccessResponse {
|
|
811
|
+
result: {
|
|
812
|
+
cid: string;
|
|
813
|
+
};
|
|
814
|
+
challengeResult?: {
|
|
815
|
+
cid: string;
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
export interface GetSignInChallengeRouteRequestBody {
|
|
819
|
+
chain: SupportedChain;
|
|
820
|
+
address: NativeAddress;
|
|
821
|
+
hours?: string | number;
|
|
822
|
+
}
|
|
823
|
+
export interface iGetSignInChallengeRouteSuccessResponse {
|
|
824
|
+
nonce: string;
|
|
825
|
+
params: ChallengeParams;
|
|
826
|
+
message: BlockinMessage;
|
|
827
|
+
}
|
|
828
|
+
export interface VerifySignInRouteRequestBody {
|
|
829
|
+
message: BlockinMessage;
|
|
830
|
+
signature: string;
|
|
831
|
+
publicKey?: string;
|
|
832
|
+
}
|
|
833
|
+
export interface iVerifySignInRouteSuccessResponse {
|
|
834
|
+
}
|
|
835
|
+
export interface CheckSignInStatusRequestBody {
|
|
836
|
+
}
|
|
837
|
+
export interface iCheckSignInStatusRequestSuccessResponse {
|
|
838
|
+
signedIn: boolean;
|
|
839
|
+
message: BlockinMessage;
|
|
840
|
+
discord?: {
|
|
841
|
+
username: string;
|
|
842
|
+
discriminator: string;
|
|
843
|
+
id: string;
|
|
844
|
+
};
|
|
845
|
+
twitter?: {
|
|
846
|
+
id: string;
|
|
847
|
+
username: string;
|
|
848
|
+
};
|
|
849
|
+
github?: {
|
|
850
|
+
id: string;
|
|
851
|
+
username: string;
|
|
852
|
+
};
|
|
853
|
+
google?: {
|
|
854
|
+
id: string;
|
|
855
|
+
username: string;
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
export interface SignOutRequestBody {
|
|
859
|
+
signOutBlockin: boolean;
|
|
860
|
+
signOutDiscord?: boolean;
|
|
861
|
+
signOutTwitter?: boolean;
|
|
862
|
+
signOutGoogle?: boolean;
|
|
863
|
+
signOutGithub?: boolean;
|
|
864
|
+
}
|
|
865
|
+
export interface iSignOutSuccessResponse {
|
|
866
|
+
}
|
|
867
|
+
export interface GetBrowseCollectionsRouteRequestBody {
|
|
868
|
+
}
|
|
869
|
+
export interface iGetBrowseCollectionsRouteSuccessResponse {
|
|
870
|
+
collections: {
|
|
871
|
+
[category: string]: iBitBadgesCollection[];
|
|
872
|
+
};
|
|
873
|
+
addressLists: {
|
|
874
|
+
[category: string]: iBitBadgesAddressList[];
|
|
875
|
+
};
|
|
876
|
+
profiles: {
|
|
877
|
+
[category: string]: iBitBadgesUserInfo[];
|
|
878
|
+
};
|
|
879
|
+
activity: iTransferActivityDoc[];
|
|
880
|
+
badges: {
|
|
881
|
+
[category: string]: {
|
|
882
|
+
collection: iBitBadgesCollection;
|
|
883
|
+
badgeIds: iUintRange[];
|
|
884
|
+
}[];
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
export type BroadcastTxRouteRequestBody = BroadcastPostBody;
|
|
888
|
+
export interface iBroadcastTxRouteSuccessResponse {
|
|
889
|
+
tx_response: {
|
|
890
|
+
code: number;
|
|
891
|
+
codespace: string;
|
|
892
|
+
data: string;
|
|
893
|
+
events: {
|
|
894
|
+
type: string;
|
|
895
|
+
attributes: {
|
|
896
|
+
key: string;
|
|
897
|
+
value: string;
|
|
898
|
+
index: boolean;
|
|
899
|
+
}[];
|
|
900
|
+
}[];
|
|
901
|
+
gas_wanted: string;
|
|
902
|
+
gas_used: string;
|
|
903
|
+
height: string;
|
|
904
|
+
Doc: string;
|
|
905
|
+
logs: {
|
|
906
|
+
events: {
|
|
907
|
+
type: string;
|
|
908
|
+
attributes: {
|
|
909
|
+
key: string;
|
|
910
|
+
value: string;
|
|
911
|
+
index: boolean;
|
|
912
|
+
}[];
|
|
913
|
+
}[];
|
|
914
|
+
}[];
|
|
915
|
+
raw_log: string;
|
|
916
|
+
timestamp: string;
|
|
917
|
+
tx: object | null;
|
|
918
|
+
txhash: string;
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
export type SimulateTxRouteRequestBody = BroadcastPostBody;
|
|
922
|
+
export interface iSimulateTxRouteSuccessResponse {
|
|
923
|
+
gas_info: {
|
|
924
|
+
gas_used: string;
|
|
925
|
+
gas_wanted: string;
|
|
926
|
+
};
|
|
927
|
+
result: {
|
|
928
|
+
data: string;
|
|
929
|
+
log: string;
|
|
930
|
+
events: {
|
|
931
|
+
type: string;
|
|
932
|
+
attributes: {
|
|
933
|
+
key: string;
|
|
934
|
+
value: string;
|
|
935
|
+
index: boolean;
|
|
936
|
+
}[];
|
|
937
|
+
}[];
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
export interface FetchMetadataDirectlyRouteRequestBody {
|
|
941
|
+
uris: string[];
|
|
942
|
+
}
|
|
943
|
+
export interface iFetchMetadataDirectlyRouteSuccessResponse {
|
|
944
|
+
metadata: iMetadata[];
|
|
945
|
+
}
|
|
946
|
+
export interface GetTokensFromFaucetRouteRequestBody {
|
|
947
|
+
}
|
|
948
|
+
export type iGetTokensFromFaucetRouteSuccessResponse = DeliverTxResponse;
|
|
949
|
+
export interface SendClaimAlertsRouteRequestBody {
|
|
950
|
+
claimAlerts: {
|
|
951
|
+
collectionId: string | number;
|
|
952
|
+
message?: string;
|
|
953
|
+
cosmosAddresses: CosmosAddress[];
|
|
954
|
+
}[];
|
|
955
|
+
}
|
|
956
|
+
export interface iSendClaimAlertsRouteSuccessResponse {
|
|
957
|
+
}
|
|
958
|
+
export interface CosmosAccountResponse {
|
|
959
|
+
account_number: number;
|
|
960
|
+
sequence: number;
|
|
961
|
+
pub_key: {
|
|
962
|
+
key: string;
|
|
963
|
+
};
|
|
964
|
+
address: CosmosAddress;
|
|
965
|
+
}
|
|
966
|
+
export interface GenericBlockinVerifyRouteRequestBody extends VerifySignInRouteRequestBody {
|
|
967
|
+
options?: VerifyChallengeOptions;
|
|
968
|
+
}
|
|
969
|
+
export interface iGenericBlockinVerifyRouteSuccessResponse extends iVerifySignInRouteSuccessResponse {
|
|
970
|
+
}
|
|
971
|
+
export interface CreateSecretRouteRequestBody {
|
|
972
|
+
proofOfIssuance: {
|
|
973
|
+
message: string;
|
|
974
|
+
signature: string;
|
|
975
|
+
signer: string;
|
|
976
|
+
publicKey?: string;
|
|
977
|
+
};
|
|
978
|
+
messageFormat: 'plaintext' | 'json';
|
|
979
|
+
scheme: 'bbs' | 'standard';
|
|
980
|
+
type: string;
|
|
981
|
+
secretMessages: string[];
|
|
982
|
+
dataIntegrityProof: {
|
|
983
|
+
signature: string;
|
|
984
|
+
signer: string;
|
|
985
|
+
publicKey?: string;
|
|
986
|
+
};
|
|
987
|
+
name: string;
|
|
988
|
+
image: string;
|
|
989
|
+
description: string;
|
|
990
|
+
}
|
|
991
|
+
export interface iCreateSecretRouteSuccessResponse {
|
|
992
|
+
secretId: string;
|
|
993
|
+
}
|
|
994
|
+
export interface GetSecretRouteRequestBody {
|
|
995
|
+
secretId: string;
|
|
996
|
+
}
|
|
997
|
+
export interface iGetSecretRouteSuccessResponse extends iSecretDoc {
|
|
998
|
+
}
|
|
999
|
+
export interface DeleteSecretRouteRequestBody {
|
|
1000
|
+
secretId: string;
|
|
1001
|
+
}
|
|
1002
|
+
export interface iDeleteSecretRouteSuccessResponse {
|
|
1003
|
+
}
|
|
1004
|
+
export interface UpdateSecretRouteRequestBody {
|
|
1005
|
+
secretId: string;
|
|
1006
|
+
holdersToSet?: {
|
|
1007
|
+
cosmosAddress: CosmosAddress;
|
|
1008
|
+
delete?: boolean;
|
|
1009
|
+
}[];
|
|
1010
|
+
anchorsToAdd?: {
|
|
1011
|
+
txHash?: string;
|
|
1012
|
+
message?: string;
|
|
1013
|
+
}[];
|
|
1014
|
+
proofOfIssuance?: {
|
|
1015
|
+
message: string;
|
|
1016
|
+
signer: string;
|
|
1017
|
+
signature: string;
|
|
1018
|
+
publicKey?: string;
|
|
1019
|
+
};
|
|
1020
|
+
messageFormat?: 'plaintext' | 'json';
|
|
1021
|
+
scheme?: 'bbs' | 'standard';
|
|
1022
|
+
type?: string;
|
|
1023
|
+
secretMessages?: string[];
|
|
1024
|
+
dataIntegrityProof?: {
|
|
1025
|
+
signature: string;
|
|
1026
|
+
signer: string;
|
|
1027
|
+
publicKey?: string;
|
|
1028
|
+
};
|
|
1029
|
+
name?: string;
|
|
1030
|
+
image?: string;
|
|
1031
|
+
description?: string;
|
|
1032
|
+
}
|
|
1033
|
+
export interface iUpdateSecretRouteSuccessResponse {
|
|
1034
|
+
}
|
|
1035
|
+
export interface CreateBlockinAuthCodeRouteRequestBody {
|
|
1036
|
+
name: string;
|
|
1037
|
+
description: string;
|
|
1038
|
+
image: string;
|
|
1039
|
+
message: BlockinMessage;
|
|
1040
|
+
signature: string;
|
|
1041
|
+
publicKey?: string;
|
|
1042
|
+
secretsProofs?: iSecretsProof[];
|
|
1043
|
+
}
|
|
1044
|
+
export interface iCreateBlockinAuthCodeRouteSuccessResponse {
|
|
1045
|
+
id: string;
|
|
1046
|
+
}
|
|
1047
|
+
export interface GetBlockinAuthCodeRouteRequestBody {
|
|
1048
|
+
id: string;
|
|
1049
|
+
options?: VerifyChallengeOptions;
|
|
1050
|
+
}
|
|
1051
|
+
export interface iGetBlockinAuthCodeRouteSuccessResponse {
|
|
1052
|
+
message: BlockinMessage;
|
|
1053
|
+
signature: string;
|
|
1054
|
+
params: ChallengeParams;
|
|
1055
|
+
cosmosAddress: CosmosAddress;
|
|
1056
|
+
verificationResponse: {
|
|
1057
|
+
success: boolean;
|
|
1058
|
+
errorMessage?: string;
|
|
1059
|
+
};
|
|
1060
|
+
secretsProofs: iSecretsProof[];
|
|
1061
|
+
}
|
|
1062
|
+
export interface DeleteBlockinAuthCodeRouteRequestBody {
|
|
1063
|
+
id: string;
|
|
1064
|
+
}
|
|
1065
|
+
export interface iDeleteBlockinAuthCodeRouteSuccessResponse {
|
|
1066
|
+
}
|
|
1067
|
+
export interface GenerateAppleWalletPassRouteRequestBody {
|
|
1068
|
+
name: string;
|
|
1069
|
+
description: string;
|
|
1070
|
+
message: BlockinMessage;
|
|
1071
|
+
signature: string;
|
|
1072
|
+
}
|
|
1073
|
+
export interface iGenerateAppleWalletPassRouteSuccessResponse {
|
|
1074
|
+
type: string;
|
|
1075
|
+
data: string;
|
|
1076
|
+
}
|
|
1077
|
+
export interface GetClaimAlertsForCollectionRouteRequestBody {
|
|
1078
|
+
collectionId: string | number;
|
|
1079
|
+
bookmark: string;
|
|
1080
|
+
}
|
|
1081
|
+
export interface iGetClaimAlertsForCollectionRouteSuccessResponse {
|
|
1082
|
+
claimAlerts: iClaimAlertDoc[];
|
|
1083
|
+
pagination: PaginationInfo;
|
|
1084
|
+
}
|
|
1085
|
+
export interface GetExternalCallRouteRequestBody {
|
|
1086
|
+
uri: string;
|
|
1087
|
+
key: string;
|
|
1088
|
+
}
|
|
1089
|
+
export interface iGetExternalCallRouteSuccessResponse {
|
|
1090
|
+
key: string;
|
|
1091
|
+
timestamp: number;
|
|
1092
|
+
}
|
|
1093
|
+
export interface GetMapsRouteRequestBody {
|
|
1094
|
+
mapIds: string[];
|
|
1095
|
+
}
|
|
1096
|
+
export interface iMapWithValues extends iMap {
|
|
1097
|
+
values: {
|
|
1098
|
+
[key: string]: iValueStore;
|
|
1099
|
+
};
|
|
1100
|
+
metadata?: iMetadata;
|
|
1101
|
+
updateHistory: iUpdateHistory[];
|
|
1102
|
+
}
|
|
1103
|
+
export interface iGetMapsRouteSuccessResponse {
|
|
1104
|
+
maps: iMapWithValues[];
|
|
1105
|
+
}
|
|
1106
|
+
export interface iBitBadgesCollection extends iCollectionDoc {
|
|
1107
|
+
collectionApprovals: iCollectionApproval[];
|
|
1108
|
+
collectionPermissions: iCollectionPermissions;
|
|
1109
|
+
cachedCollectionMetadata?: iMetadata;
|
|
1110
|
+
cachedBadgeMetadata: iBadgeMetadataDetails[];
|
|
1111
|
+
defaultBalances: iUserBalanceStore;
|
|
1112
|
+
activity: iTransferActivityDoc[];
|
|
1113
|
+
reviews: iReviewDoc[];
|
|
1114
|
+
owners: iBalanceDoc[];
|
|
1115
|
+
merkleChallenges: iMerkleChallengeDoc[];
|
|
1116
|
+
approvalTrackers: iApprovalTrackerDoc[];
|
|
1117
|
+
nsfw?: {
|
|
1118
|
+
badgeIds: iUintRange[];
|
|
1119
|
+
reason: string;
|
|
1120
|
+
};
|
|
1121
|
+
reported?: {
|
|
1122
|
+
badgeIds: iUintRange[];
|
|
1123
|
+
reason: string;
|
|
1124
|
+
};
|
|
1125
|
+
reservedMap?: iMapDoc;
|
|
1126
|
+
views: {
|
|
1127
|
+
[viewId: string]: {
|
|
1128
|
+
ids: string[];
|
|
1129
|
+
type: string;
|
|
1130
|
+
pagination: PaginationInfo;
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
};
|
|
1133
|
+
claims: iClaimDetails[];
|
|
1134
|
+
}
|
|
1135
|
+
export interface iOffChainBalancesMap {
|
|
1136
|
+
[cosmosAddressOrListId: string]: iBalance[];
|
|
1137
|
+
}
|
|
1138
|
+
export interface iTransferWithIncrements extends iTransfer {
|
|
1139
|
+
toAddressesLength?: string | number;
|
|
1140
|
+
incrementBadgeIdsBy?: string | number;
|
|
1141
|
+
incrementOwnershipTimesBy?: string | number;
|
|
1142
|
+
}
|
|
1143
|
+
export interface iBatchBadgeDetails {
|
|
1144
|
+
collectionId: string | number;
|
|
1145
|
+
badgeIds: iUintRange[];
|
|
1146
|
+
}
|
|
1147
|
+
export interface iChallengeDetails {
|
|
1148
|
+
leaves: string[];
|
|
1149
|
+
isHashed: boolean;
|
|
1150
|
+
preimages?: string[];
|
|
1151
|
+
seedCode?: string;
|
|
1152
|
+
tree?: MerkleTree;
|
|
1153
|
+
treeOptions?: MerkleTreeJsOptions;
|
|
1154
|
+
numLeaves?: string | number;
|
|
1155
|
+
currCode?: string | number;
|
|
1156
|
+
}
|
|
1157
|
+
export interface iChallengeInfoDetails {
|
|
1158
|
+
challengeDetails: iChallengeDetails;
|
|
1159
|
+
claim?: iClaimDetails;
|
|
1160
|
+
}
|
|
1161
|
+
export interface iApprovalInfoDetails {
|
|
1162
|
+
name: string;
|
|
1163
|
+
description: string;
|
|
1164
|
+
}
|
|
1165
|
+
export interface iCosmosCoin {
|
|
1166
|
+
amount: string | number;
|
|
1167
|
+
denom: string;
|
|
1168
|
+
}
|
|
1169
|
+
export type PermissionNameString = 'canDeleteCollection' | 'canArchiveCollection' | 'canUpdateOffChainBalancesMetadata' | 'canUpdateBadgeMetadata' | 'canUpdateCollectionMetadata' | 'canCreateMoreBadges' | 'canUpdateCollectionApprovals' | 'canUpdateAutoApproveSelfInitiatedIncomingTransfers' | 'canUpdateAutoApproveSelfInitiatedOutgoingTransfers' | 'canUpdateStandards' | 'canUpdateCustomData' | 'canUpdateManager';
|
|
1170
|
+
export interface Validator {
|
|
1171
|
+
commission: {
|
|
1172
|
+
commission_rates: {
|
|
1173
|
+
max_change_rate: string;
|
|
1174
|
+
max_rate: string;
|
|
1175
|
+
rate: string;
|
|
1176
|
+
};
|
|
1177
|
+
update_time: string;
|
|
1178
|
+
};
|
|
1179
|
+
consensus_pubkey: {
|
|
1180
|
+
'@type': string;
|
|
1181
|
+
key: string;
|
|
1182
|
+
};
|
|
1183
|
+
delegator_shares: string;
|
|
1184
|
+
description: {
|
|
1185
|
+
details: string;
|
|
1186
|
+
identity: string;
|
|
1187
|
+
moniker: string;
|
|
1188
|
+
security_contact: string;
|
|
1189
|
+
website: string;
|
|
1190
|
+
};
|
|
1191
|
+
jailed: boolean;
|
|
1192
|
+
min_self_delegation: string;
|
|
1193
|
+
operator_address: string;
|
|
1194
|
+
status: string;
|
|
1195
|
+
tokens: string;
|
|
1196
|
+
unbonding_height: string;
|
|
1197
|
+
unbonding_time: string;
|
|
1198
|
+
}
|
|
1199
|
+
export interface GetValidatorsResponse {
|
|
1200
|
+
validators: Validator[];
|
|
1201
|
+
pagination: {
|
|
1202
|
+
next_key: string;
|
|
1203
|
+
total: number;
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
export interface UndelegationResponse {
|
|
1207
|
+
delegator_address: string;
|
|
1208
|
+
validator_address: string;
|
|
1209
|
+
entries: [
|
|
1210
|
+
{
|
|
1211
|
+
creation_height: string;
|
|
1212
|
+
completion_time: string;
|
|
1213
|
+
initial_balance: string;
|
|
1214
|
+
balance: string;
|
|
1215
|
+
}
|
|
1216
|
+
];
|
|
1217
|
+
}
|
|
1218
|
+
export interface GetUndelegationsResponse {
|
|
1219
|
+
unbonding_responses: UndelegationResponse[];
|
|
1220
|
+
pagination: {
|
|
1221
|
+
next_key: string;
|
|
1222
|
+
total: string;
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
export interface CounterParty {
|
|
1226
|
+
port_id: string;
|
|
1227
|
+
channel_id: string;
|
|
1228
|
+
}
|
|
1229
|
+
export interface Channel {
|
|
1230
|
+
state: string;
|
|
1231
|
+
ordering: string;
|
|
1232
|
+
counterparty: CounterParty;
|
|
1233
|
+
connection_hops: string[];
|
|
1234
|
+
version: string;
|
|
1235
|
+
port_id: string;
|
|
1236
|
+
channel_id: string;
|
|
1237
|
+
}
|
|
1238
|
+
export interface ChannelsResponse {
|
|
1239
|
+
channels: Channel[];
|
|
1240
|
+
pagination: {
|
|
1241
|
+
next_key?: string;
|
|
1242
|
+
total: string;
|
|
1243
|
+
};
|
|
1244
|
+
height: {
|
|
1245
|
+
revision_number: string;
|
|
1246
|
+
revision_height: string;
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
export interface TallyResponse {
|
|
1250
|
+
tally: {
|
|
1251
|
+
yes: string;
|
|
1252
|
+
abstain: string;
|
|
1253
|
+
no: string;
|
|
1254
|
+
no_with_veto: string;
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
export interface AccountResponse {
|
|
1258
|
+
account: {
|
|
1259
|
+
'@type': string;
|
|
1260
|
+
base_account: {
|
|
1261
|
+
address: string;
|
|
1262
|
+
pub_key?: {
|
|
1263
|
+
'@type': string;
|
|
1264
|
+
key: string;
|
|
1265
|
+
};
|
|
1266
|
+
account_number: string;
|
|
1267
|
+
sequence: string;
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
export declare enum BroadcastMode {
|
|
1272
|
+
Unspecified = "BROADCAST_MODE_UNSPECIFIED",
|
|
1273
|
+
Sync = "BROADCAST_MODE_SYNC",
|
|
1274
|
+
Async = "BROADCAST_MODE_ASYNC"
|
|
1275
|
+
}
|
|
1276
|
+
export interface BroadcastPostBody {
|
|
1277
|
+
tx_bytes: Uint8Array;
|
|
1278
|
+
mode: string;
|
|
1279
|
+
}
|
|
1280
|
+
export interface TxContext {
|
|
1281
|
+
chain: Chain;
|
|
1282
|
+
sender: Sender;
|
|
1283
|
+
fee: Fee;
|
|
1284
|
+
memo: string;
|
|
1285
|
+
}
|
|
1286
|
+
export interface EIP712ToSign {
|
|
1287
|
+
types: object;
|
|
1288
|
+
primaryType: string;
|
|
1289
|
+
domain: {
|
|
1290
|
+
name: string;
|
|
1291
|
+
version: string;
|
|
1292
|
+
chainId: number;
|
|
1293
|
+
verifyingContract: string;
|
|
1294
|
+
salt: string;
|
|
1295
|
+
};
|
|
1296
|
+
message: object;
|
|
1297
|
+
}
|
|
1298
|
+
export interface Fee {
|
|
1299
|
+
amount: string;
|
|
1300
|
+
denom: string;
|
|
1301
|
+
gas: string;
|
|
1302
|
+
}
|
|
1303
|
+
export interface Sender {
|
|
1304
|
+
accountAddress: CosmosAddress;
|
|
1305
|
+
sequence: number;
|
|
1306
|
+
accountNumber: number;
|
|
1307
|
+
pubkey: string;
|
|
1308
|
+
}
|
|
1309
|
+
export interface Chain {
|
|
1310
|
+
chainId: number;
|
|
1311
|
+
cosmosChainId: string;
|
|
1312
|
+
chain: SupportedChain;
|
|
1313
|
+
}
|
|
1314
|
+
export interface iMsgInstantiateContractCompat {
|
|
1315
|
+
sender: string;
|
|
1316
|
+
codeId: string;
|
|
1317
|
+
label: string;
|
|
1318
|
+
funds: string;
|
|
1319
|
+
}
|
|
1320
|
+
export interface iMsgStoreCodeCompat {
|
|
1321
|
+
sender: string;
|
|
1322
|
+
hexWasmByteCode: string;
|
|
1323
|
+
}
|
|
1324
|
+
export interface iMsgExecuteContractCompat {
|
|
1325
|
+
sender: string;
|
|
1326
|
+
contract: string;
|
|
1327
|
+
msg: string;
|
|
1328
|
+
funds: string;
|
|
1329
|
+
}
|
|
1330
|
+
export interface iValueStore {
|
|
1331
|
+
key: string;
|
|
1332
|
+
value: string;
|
|
1333
|
+
lastSetBy: string;
|
|
1334
|
+
}
|
|
1335
|
+
export interface iMapUpdateCriteria {
|
|
1336
|
+
managerOnly: boolean;
|
|
1337
|
+
collectionId: string | number;
|
|
1338
|
+
creatorOnly: boolean;
|
|
1339
|
+
firstComeFirstServe: boolean;
|
|
1340
|
+
}
|
|
1341
|
+
export interface iValueOptions {
|
|
1342
|
+
noDuplicates: boolean;
|
|
1343
|
+
permanentOnceSet: boolean;
|
|
1344
|
+
expectUint: boolean;
|
|
1345
|
+
expectBoolean: boolean;
|
|
1346
|
+
expectAddress: boolean;
|
|
1347
|
+
expectUri: boolean;
|
|
1348
|
+
}
|
|
1349
|
+
export interface iMapPermissions {
|
|
1350
|
+
canUpdateMetadata: iTimedUpdatePermission[];
|
|
1351
|
+
canUpdateManager: iTimedUpdatePermission[];
|
|
1352
|
+
canDeleteMap: iActionPermission[];
|
|
1353
|
+
}
|
|
1354
|
+
export interface iMap {
|
|
1355
|
+
creator: CosmosAddress;
|
|
1356
|
+
mapId: string;
|
|
1357
|
+
inheritManagerTimelineFrom: string | number;
|
|
1358
|
+
managerTimeline: iManagerTimeline[];
|
|
1359
|
+
updateCriteria: iMapUpdateCriteria;
|
|
1360
|
+
valueOptions: iValueOptions;
|
|
1361
|
+
defaultValue: string;
|
|
1362
|
+
permissions: iMapPermissions;
|
|
1363
|
+
metadataTimeline: iMapMetadataTimeline[];
|
|
1364
|
+
}
|
|
1365
|
+
export interface iMapMetadataTimeline {
|
|
1366
|
+
timelineTimes: iUintRange[];
|
|
1367
|
+
metadata: iCollectionMetadata;
|
|
1368
|
+
}
|
|
1369
|
+
export interface iMsgCreateMap {
|
|
1370
|
+
creator: CosmosAddress;
|
|
1371
|
+
mapId: string;
|
|
1372
|
+
inheritManagerTimelineFrom: string | number;
|
|
1373
|
+
managerTimeline: iManagerTimeline[];
|
|
1374
|
+
updateCriteria: iMapUpdateCriteria;
|
|
1375
|
+
valueOptions: iValueOptions;
|
|
1376
|
+
defaultValue: string;
|
|
1377
|
+
metadataTimeline: iMapMetadataTimeline[];
|
|
1378
|
+
permissions: iMapPermissions;
|
|
1379
|
+
}
|
|
1380
|
+
export interface iMsgUpdateMap {
|
|
1381
|
+
creator: CosmosAddress;
|
|
1382
|
+
mapId: string;
|
|
1383
|
+
updateManagerTimeline: boolean;
|
|
1384
|
+
managerTimeline: iManagerTimeline[];
|
|
1385
|
+
updateMetadataTimeline: boolean;
|
|
1386
|
+
metadataTimeline: iMapMetadataTimeline[];
|
|
1387
|
+
updatePermissions: boolean;
|
|
1388
|
+
permissions: iMapPermissions;
|
|
1389
|
+
}
|
|
1390
|
+
export interface iMsgDeleteMap {
|
|
1391
|
+
creator: CosmosAddress;
|
|
1392
|
+
mapId: string;
|
|
1393
|
+
}
|
|
1394
|
+
export interface iMsgSetValue {
|
|
1395
|
+
creator: CosmosAddress;
|
|
1396
|
+
mapId: string;
|
|
1397
|
+
key: string;
|
|
1398
|
+
value: string;
|
|
1399
|
+
options: iSetOptions;
|
|
1400
|
+
}
|
|
1401
|
+
export interface iSetOptions {
|
|
1402
|
+
useMostRecentCollectionId: boolean;
|
|
1403
|
+
}
|
|
1404
|
+
export interface iMsgCreateAddressLists {
|
|
1405
|
+
creator: CosmosAddress;
|
|
1406
|
+
addressLists: iAddressList[];
|
|
1407
|
+
}
|
|
1408
|
+
export interface iMsgCreateCollection {
|
|
1409
|
+
creator: CosmosAddress;
|
|
1410
|
+
balancesType?: string;
|
|
1411
|
+
defaultBalances?: iUserBalanceStore;
|
|
1412
|
+
badgesToCreate?: iBalance[];
|
|
1413
|
+
collectionPermissions?: iCollectionPermissions;
|
|
1414
|
+
managerTimeline?: iManagerTimeline[];
|
|
1415
|
+
collectionMetadataTimeline?: iCollectionMetadataTimeline[];
|
|
1416
|
+
badgeMetadataTimeline?: iBadgeMetadataTimeline[];
|
|
1417
|
+
offChainBalancesMetadataTimeline?: iOffChainBalancesMetadataTimeline[];
|
|
1418
|
+
customDataTimeline?: iCustomDataTimeline[];
|
|
1419
|
+
collectionApprovals?: iCollectionApproval[];
|
|
1420
|
+
standardsTimeline?: iStandardsTimeline[];
|
|
1421
|
+
isArchivedTimeline?: iIsArchivedTimeline[];
|
|
1422
|
+
}
|
|
1423
|
+
export interface iMsgDeleteCollection {
|
|
1424
|
+
creator: CosmosAddress;
|
|
1425
|
+
collectionId: string | number;
|
|
1426
|
+
}
|
|
1427
|
+
export interface iMsgTransferBadges {
|
|
1428
|
+
creator: CosmosAddress;
|
|
1429
|
+
collectionId: string | number;
|
|
1430
|
+
transfers: iTransfer[];
|
|
1431
|
+
}
|
|
1432
|
+
export interface iMsgUniversalUpdateCollection extends iMsgCreateCollection {
|
|
1433
|
+
collectionId: string | number;
|
|
1434
|
+
updateCollectionPermissions?: boolean;
|
|
1435
|
+
updateManagerTimeline?: boolean;
|
|
1436
|
+
updateCollectionMetadataTimeline?: boolean;
|
|
1437
|
+
updateBadgeMetadataTimeline?: boolean;
|
|
1438
|
+
updateOffChainBalancesMetadataTimeline?: boolean;
|
|
1439
|
+
updateCustomDataTimeline?: boolean;
|
|
1440
|
+
updateCollectionApprovals?: boolean;
|
|
1441
|
+
updateStandardsTimeline?: boolean;
|
|
1442
|
+
updateIsArchivedTimeline?: boolean;
|
|
1443
|
+
}
|
|
1444
|
+
export interface iMsgUpdateCollection extends Omit<iMsgUniversalUpdateCollection, 'defaultBalances' | 'balancesType'> {
|
|
1445
|
+
}
|
|
1446
|
+
export interface iMsgUpdateUserApprovals {
|
|
1447
|
+
creator: CosmosAddress;
|
|
1448
|
+
collectionId: string | number;
|
|
1449
|
+
updateOutgoingApprovals?: boolean;
|
|
1450
|
+
outgoingApprovals?: iUserOutgoingApproval[];
|
|
1451
|
+
updateIncomingApprovals?: boolean;
|
|
1452
|
+
incomingApprovals?: iUserIncomingApproval[];
|
|
1453
|
+
updateAutoApproveSelfInitiatedOutgoingTransfers?: boolean;
|
|
1454
|
+
autoApproveSelfInitiatedOutgoingTransfers?: boolean;
|
|
1455
|
+
updateAutoApproveSelfInitiatedIncomingTransfers?: boolean;
|
|
1456
|
+
autoApproveSelfInitiatedIncomingTransfers?: boolean;
|
|
1457
|
+
updateUserPermissions?: boolean;
|
|
1458
|
+
userPermissions?: iUserPermissions;
|
|
1459
|
+
}
|
|
1460
|
+
export type SupportedChainType = 'Bitcoin' | 'Ethereum' | 'Cosmos' | 'Solana' | 'Unknown';
|
|
1461
|
+
export type NumberType = bigint | number | string;
|
|
1462
|
+
export type JSPrimitiveNumberType = string | number;
|
|
1463
|
+
export interface iUserPermissions {
|
|
1464
|
+
canUpdateOutgoingApprovals: iUserOutgoingApprovalPermission[];
|
|
1465
|
+
canUpdateIncomingApprovals: iUserIncomingApprovalPermission[];
|
|
1466
|
+
canUpdateAutoApproveSelfInitiatedOutgoingTransfers: iActionPermission[];
|
|
1467
|
+
canUpdateAutoApproveSelfInitiatedIncomingTransfers: iActionPermission[];
|
|
1468
|
+
}
|
|
1469
|
+
export interface iUserOutgoingApprovalPermission {
|
|
1470
|
+
toListId: string;
|
|
1471
|
+
toList: iAddressList;
|
|
1472
|
+
initiatedByListId: string;
|
|
1473
|
+
initiatedByList: iAddressList;
|
|
1474
|
+
transferTimes: iUintRange[];
|
|
1475
|
+
badgeIds: iUintRange[];
|
|
1476
|
+
ownershipTimes: iUintRange[];
|
|
1477
|
+
approvalId: string;
|
|
1478
|
+
permanentlyPermittedTimes: iUintRange[];
|
|
1479
|
+
permanentlyForbiddenTimes: iUintRange[];
|
|
1480
|
+
}
|
|
1481
|
+
export interface iUserIncomingApprovalPermission {
|
|
1482
|
+
fromListId: string;
|
|
1483
|
+
fromList: iAddressList;
|
|
1484
|
+
initiatedByListId: string;
|
|
1485
|
+
initiatedByList: iAddressList;
|
|
1486
|
+
transferTimes: iUintRange[];
|
|
1487
|
+
badgeIds: iUintRange[];
|
|
1488
|
+
ownershipTimes: iUintRange[];
|
|
1489
|
+
approvalId: string;
|
|
1490
|
+
permanentlyPermittedTimes: iUintRange[];
|
|
1491
|
+
permanentlyForbiddenTimes: iUintRange[];
|
|
1492
|
+
}
|
|
1493
|
+
export interface iCollectionPermissions {
|
|
1494
|
+
canDeleteCollection: iActionPermission[];
|
|
1495
|
+
canArchiveCollection: iTimedUpdatePermission[];
|
|
1496
|
+
canUpdateOffChainBalancesMetadata: iTimedUpdatePermission[];
|
|
1497
|
+
canUpdateStandards: iTimedUpdatePermission[];
|
|
1498
|
+
canUpdateCustomData: iTimedUpdatePermission[];
|
|
1499
|
+
canUpdateManager: iTimedUpdatePermission[];
|
|
1500
|
+
canUpdateCollectionMetadata: iTimedUpdatePermission[];
|
|
1501
|
+
canCreateMoreBadges: iBalancesActionPermission[];
|
|
1502
|
+
canUpdateBadgeMetadata: iTimedUpdateWithBadgeIdsPermission[];
|
|
1503
|
+
canUpdateCollectionApprovals: iCollectionApprovalPermission[];
|
|
1504
|
+
}
|
|
1505
|
+
export interface iActionPermission {
|
|
1506
|
+
permanentlyPermittedTimes: iUintRange[];
|
|
1507
|
+
permanentlyForbiddenTimes: iUintRange[];
|
|
1508
|
+
}
|
|
1509
|
+
export interface iTimedUpdatePermission {
|
|
1510
|
+
timelineTimes: iUintRange[];
|
|
1511
|
+
permanentlyPermittedTimes: iUintRange[];
|
|
1512
|
+
permanentlyForbiddenTimes: iUintRange[];
|
|
1513
|
+
}
|
|
1514
|
+
export interface iBalancesActionPermission {
|
|
1515
|
+
badgeIds: iUintRange[];
|
|
1516
|
+
ownershipTimes: iUintRange[];
|
|
1517
|
+
permanentlyPermittedTimes: iUintRange[];
|
|
1518
|
+
permanentlyForbiddenTimes: iUintRange[];
|
|
1519
|
+
}
|
|
1520
|
+
export interface iTimedUpdateWithBadgeIdsPermission {
|
|
1521
|
+
timelineTimes: iUintRange[];
|
|
1522
|
+
badgeIds: iUintRange[];
|
|
1523
|
+
permanentlyPermittedTimes: iUintRange[];
|
|
1524
|
+
permanentlyForbiddenTimes: iUintRange[];
|
|
1525
|
+
}
|
|
1526
|
+
export interface iCollectionApprovalPermission {
|
|
1527
|
+
fromListId: string;
|
|
1528
|
+
fromList: iAddressList;
|
|
1529
|
+
toListId: string;
|
|
1530
|
+
toList: iAddressList;
|
|
1531
|
+
initiatedByListId: string;
|
|
1532
|
+
initiatedByList: iAddressList;
|
|
1533
|
+
transferTimes: iUintRange[];
|
|
1534
|
+
badgeIds: iUintRange[];
|
|
1535
|
+
ownershipTimes: iUintRange[];
|
|
1536
|
+
approvalId: string;
|
|
1537
|
+
permanentlyPermittedTimes: iUintRange[];
|
|
1538
|
+
permanentlyForbiddenTimes: iUintRange[];
|
|
1539
|
+
}
|
|
1540
|
+
export interface iUintRange {
|
|
1541
|
+
start: string | number;
|
|
1542
|
+
end: string | number;
|
|
1543
|
+
}
|
|
1544
|
+
export interface iBadgeMetadata {
|
|
1545
|
+
uri: string;
|
|
1546
|
+
badgeIds: iUintRange[];
|
|
1547
|
+
customData: string;
|
|
1548
|
+
}
|
|
1549
|
+
export interface iCollectionMetadata {
|
|
1550
|
+
uri: string;
|
|
1551
|
+
customData: string;
|
|
1552
|
+
}
|
|
1553
|
+
export interface iOffChainBalancesMetadata {
|
|
1554
|
+
uri: string;
|
|
1555
|
+
customData: string;
|
|
1556
|
+
}
|
|
1557
|
+
export interface iSecretsProof {
|
|
1558
|
+
entropies?: string[];
|
|
1559
|
+
updateHistory?: iUpdateHistory[];
|
|
1560
|
+
messageFormat: 'plaintext' | 'json';
|
|
1561
|
+
createdBy: CosmosAddress;
|
|
1562
|
+
proofOfIssuance: {
|
|
1563
|
+
message: string;
|
|
1564
|
+
signature: string;
|
|
1565
|
+
signer: string;
|
|
1566
|
+
publicKey?: string;
|
|
1567
|
+
};
|
|
1568
|
+
scheme: 'bbs' | 'standard';
|
|
1569
|
+
secretMessages: string[];
|
|
1570
|
+
dataIntegrityProof: {
|
|
1571
|
+
signature: string;
|
|
1572
|
+
signer: string;
|
|
1573
|
+
publicKey?: string;
|
|
1574
|
+
};
|
|
1575
|
+
name: string;
|
|
1576
|
+
image: string;
|
|
1577
|
+
description: string;
|
|
1578
|
+
anchors?: {
|
|
1579
|
+
txHash?: string;
|
|
1580
|
+
message?: string;
|
|
1581
|
+
}[];
|
|
1582
|
+
}
|
|
1583
|
+
export interface iSecret {
|
|
1584
|
+
messageFormat: 'plaintext' | 'json';
|
|
1585
|
+
createdBy: CosmosAddress;
|
|
1586
|
+
proofOfIssuance: {
|
|
1587
|
+
message: string;
|
|
1588
|
+
signature: string;
|
|
1589
|
+
signer: string;
|
|
1590
|
+
publicKey?: string;
|
|
1591
|
+
};
|
|
1592
|
+
secretId: string;
|
|
1593
|
+
scheme: 'bbs' | 'standard';
|
|
1594
|
+
type: string;
|
|
1595
|
+
secretMessages: string[];
|
|
1596
|
+
dataIntegrityProof: {
|
|
1597
|
+
signature: string;
|
|
1598
|
+
signer: string;
|
|
1599
|
+
publicKey?: string;
|
|
1600
|
+
};
|
|
1601
|
+
name: string;
|
|
1602
|
+
image: string;
|
|
1603
|
+
description: string;
|
|
1604
|
+
holders: string[];
|
|
1605
|
+
anchors: {
|
|
1606
|
+
txHash?: string;
|
|
1607
|
+
message?: string;
|
|
1608
|
+
}[];
|
|
1609
|
+
}
|
|
1610
|
+
export interface iZkProof {
|
|
1611
|
+
verificationKey: string;
|
|
1612
|
+
uri: string;
|
|
1613
|
+
customData: string;
|
|
1614
|
+
zkpTrackerId: string;
|
|
1615
|
+
}
|
|
1616
|
+
export interface iZkProofSolution {
|
|
1617
|
+
proof: string;
|
|
1618
|
+
publicInputs: string;
|
|
1619
|
+
}
|
|
1620
|
+
export interface iMustOwnBadges {
|
|
1621
|
+
collectionId: string | number;
|
|
1622
|
+
amountRange: iUintRange;
|
|
1623
|
+
ownershipTimes: iUintRange[];
|
|
1624
|
+
badgeIds: iUintRange[];
|
|
1625
|
+
overrideWithCurrentTime: boolean;
|
|
1626
|
+
mustSatisfyForAllAssets: boolean;
|
|
1627
|
+
}
|
|
1628
|
+
export interface iBalance {
|
|
1629
|
+
amount: string | number;
|
|
1630
|
+
badgeIds: iUintRange[];
|
|
1631
|
+
ownershipTimes: iUintRange[];
|
|
1632
|
+
}
|
|
1633
|
+
export interface iAddressList {
|
|
1634
|
+
listId: string;
|
|
1635
|
+
addresses: string[];
|
|
1636
|
+
whitelist: boolean;
|
|
1637
|
+
uri: string;
|
|
1638
|
+
customData: string;
|
|
1639
|
+
createdBy?: CosmosAddress;
|
|
1640
|
+
aliasAddress?: CosmosAddress;
|
|
1641
|
+
}
|
|
1642
|
+
export interface iTransfer {
|
|
1643
|
+
from: CosmosAddress;
|
|
1644
|
+
toAddresses: CosmosAddress[];
|
|
1645
|
+
balances: iBalance[];
|
|
1646
|
+
precalculateBalancesFromApproval?: iApprovalIdentifierDetails;
|
|
1647
|
+
merkleProofs?: iMerkleProof[];
|
|
1648
|
+
memo?: string;
|
|
1649
|
+
prioritizedApprovals?: iApprovalIdentifierDetails[];
|
|
1650
|
+
onlyCheckPrioritizedApprovals?: boolean;
|
|
1651
|
+
zkProofSolutions?: iZkProofSolution[];
|
|
1652
|
+
}
|
|
1653
|
+
export interface iApprovalIdentifierDetails {
|
|
1654
|
+
approvalId: string;
|
|
1655
|
+
approvalLevel: string;
|
|
1656
|
+
approverAddress: CosmosAddress;
|
|
1657
|
+
}
|
|
1658
|
+
export interface iCoinTransfer {
|
|
1659
|
+
to: CosmosAddress;
|
|
1660
|
+
coins: iCosmosCoin[];
|
|
1661
|
+
}
|
|
1662
|
+
export interface iAmountTrackerIdDetails {
|
|
1663
|
+
collectionId: string | number;
|
|
1664
|
+
approvalId: string;
|
|
1665
|
+
amountTrackerId: string;
|
|
1666
|
+
approvalLevel: string;
|
|
1667
|
+
approverAddress: CosmosAddress;
|
|
1668
|
+
trackerType: string;
|
|
1669
|
+
approvedAddress: CosmosAddress;
|
|
1670
|
+
}
|
|
1671
|
+
export interface iMerkleChallenge {
|
|
1672
|
+
root: string;
|
|
1673
|
+
expectedProofLength: string | number;
|
|
1674
|
+
useCreatorAddressAsLeaf: boolean;
|
|
1675
|
+
maxUsesPerLeaf: string | number;
|
|
1676
|
+
uri: string;
|
|
1677
|
+
customData: string;
|
|
1678
|
+
challengeTrackerId: string;
|
|
1679
|
+
}
|
|
1680
|
+
export interface iMerklePathItem {
|
|
1681
|
+
aunt: string;
|
|
1682
|
+
onRight: boolean;
|
|
1683
|
+
}
|
|
1684
|
+
export interface iMerkleProof {
|
|
1685
|
+
aunts: iMerklePathItem[];
|
|
1686
|
+
leaf: string;
|
|
1687
|
+
}
|
|
1688
|
+
export interface iTimelineItem {
|
|
1689
|
+
timelineTimes: iUintRange[];
|
|
1690
|
+
}
|
|
1691
|
+
export interface iManagerTimeline extends iTimelineItem {
|
|
1692
|
+
manager: CosmosAddress;
|
|
1693
|
+
}
|
|
1694
|
+
export interface iCollectionMetadataTimeline extends iTimelineItem {
|
|
1695
|
+
collectionMetadata: iCollectionMetadata;
|
|
1696
|
+
}
|
|
1697
|
+
export interface iBadgeMetadataTimeline extends iTimelineItem {
|
|
1698
|
+
badgeMetadata: iBadgeMetadata[];
|
|
1699
|
+
}
|
|
1700
|
+
export interface iOffChainBalancesMetadataTimeline extends iTimelineItem {
|
|
1701
|
+
offChainBalancesMetadata: iOffChainBalancesMetadata;
|
|
1702
|
+
}
|
|
1703
|
+
export interface iCustomDataTimeline extends iTimelineItem {
|
|
1704
|
+
customData: string;
|
|
1705
|
+
}
|
|
1706
|
+
export interface iStandardsTimeline extends iTimelineItem {
|
|
1707
|
+
standards: string[];
|
|
1708
|
+
}
|
|
1709
|
+
export interface iIsArchivedTimeline extends iTimelineItem {
|
|
1710
|
+
isArchived: boolean;
|
|
1711
|
+
}
|
|
1712
|
+
export interface iUserOutgoingApproval {
|
|
1713
|
+
toListId: string;
|
|
1714
|
+
toList: iAddressList;
|
|
1715
|
+
initiatedByListId: string;
|
|
1716
|
+
initiatedByList: iAddressList;
|
|
1717
|
+
transferTimes: iUintRange[];
|
|
1718
|
+
badgeIds: iUintRange[];
|
|
1719
|
+
ownershipTimes: iUintRange[];
|
|
1720
|
+
approvalId: string;
|
|
1721
|
+
uri?: string;
|
|
1722
|
+
customData?: string;
|
|
1723
|
+
approvalCriteria?: iOutgoingApprovalCriteria;
|
|
1724
|
+
}
|
|
1725
|
+
export interface iOutgoingApprovalCriteria {
|
|
1726
|
+
mustOwnBadges?: iMustOwnBadges[];
|
|
1727
|
+
zkProofs?: iZkProof[];
|
|
1728
|
+
coinTransfers?: iCoinTransfer[];
|
|
1729
|
+
merkleChallenges?: iMerkleChallenge[];
|
|
1730
|
+
predeterminedBalances?: iPredeterminedBalances;
|
|
1731
|
+
approvalAmounts?: iApprovalAmounts;
|
|
1732
|
+
maxNumTransfers?: iMaxNumTransfers;
|
|
1733
|
+
requireToEqualsInitiatedBy?: boolean;
|
|
1734
|
+
requireToDoesNotEqualInitiatedBy?: boolean;
|
|
1735
|
+
}
|
|
1736
|
+
export interface iPredeterminedBalances {
|
|
1737
|
+
manualBalances: iManualBalances[];
|
|
1738
|
+
incrementedBalances: iIncrementedBalances;
|
|
1739
|
+
orderCalculationMethod: iPredeterminedOrderCalculationMethod;
|
|
1740
|
+
}
|
|
1741
|
+
export interface iManualBalances {
|
|
1742
|
+
balances: iBalance[];
|
|
1743
|
+
}
|
|
1744
|
+
export interface iIncrementedBalances {
|
|
1745
|
+
startBalances: iBalance[];
|
|
1746
|
+
incrementBadgeIdsBy: string | number;
|
|
1747
|
+
incrementOwnershipTimesBy: string | number;
|
|
1748
|
+
}
|
|
1749
|
+
export interface iPredeterminedOrderCalculationMethod {
|
|
1750
|
+
useOverallNumTransfers: boolean;
|
|
1751
|
+
usePerToAddressNumTransfers: boolean;
|
|
1752
|
+
usePerFromAddressNumTransfers: boolean;
|
|
1753
|
+
usePerInitiatedByAddressNumTransfers: boolean;
|
|
1754
|
+
useMerkleChallengeLeafIndex: boolean;
|
|
1755
|
+
challengeTrackerId: string;
|
|
1756
|
+
}
|
|
1757
|
+
export interface iApprovalAmounts {
|
|
1758
|
+
overallApprovalAmount: string | number;
|
|
1759
|
+
perToAddressApprovalAmount: string | number;
|
|
1760
|
+
perFromAddressApprovalAmount: string | number;
|
|
1761
|
+
perInitiatedByAddressApprovalAmount: string | number;
|
|
1762
|
+
amountTrackerId: string;
|
|
1763
|
+
}
|
|
1764
|
+
export interface iMaxNumTransfers {
|
|
1765
|
+
overallMaxNumTransfers: string | number;
|
|
1766
|
+
perToAddressMaxNumTransfers: string | number;
|
|
1767
|
+
perFromAddressMaxNumTransfers: string | number;
|
|
1768
|
+
perInitiatedByAddressMaxNumTransfers: string | number;
|
|
1769
|
+
amountTrackerId: string;
|
|
1770
|
+
}
|
|
1771
|
+
export interface iUserIncomingApproval {
|
|
1772
|
+
fromListId: string;
|
|
1773
|
+
fromList: iAddressList;
|
|
1774
|
+
initiatedByListId: string;
|
|
1775
|
+
initiatedByList: iAddressList;
|
|
1776
|
+
transferTimes: iUintRange[];
|
|
1777
|
+
badgeIds: iUintRange[];
|
|
1778
|
+
ownershipTimes: iUintRange[];
|
|
1779
|
+
approvalId: string;
|
|
1780
|
+
uri?: string;
|
|
1781
|
+
customData?: string;
|
|
1782
|
+
approvalCriteria?: iIncomingApprovalCriteria;
|
|
1783
|
+
}
|
|
1784
|
+
export interface iIncomingApprovalCriteria {
|
|
1785
|
+
mustOwnBadges?: iMustOwnBadges[];
|
|
1786
|
+
zkProofs?: iZkProof[];
|
|
1787
|
+
coinTransfers?: iCoinTransfer[];
|
|
1788
|
+
merkleChallenges?: iMerkleChallenge[];
|
|
1789
|
+
predeterminedBalances?: iPredeterminedBalances;
|
|
1790
|
+
approvalAmounts?: iApprovalAmounts;
|
|
1791
|
+
maxNumTransfers?: iMaxNumTransfers;
|
|
1792
|
+
requireFromEqualsInitiatedBy?: boolean;
|
|
1793
|
+
requireFromDoesNotEqualInitiatedBy?: boolean;
|
|
1794
|
+
}
|
|
1795
|
+
export interface iCollectionApproval {
|
|
1796
|
+
toListId: string;
|
|
1797
|
+
toList: iAddressList;
|
|
1798
|
+
fromListId: string;
|
|
1799
|
+
fromList: iAddressList;
|
|
1800
|
+
initiatedByListId: string;
|
|
1801
|
+
initiatedByList: iAddressList;
|
|
1802
|
+
transferTimes: iUintRange[];
|
|
1803
|
+
badgeIds: iUintRange[];
|
|
1804
|
+
ownershipTimes: iUintRange[];
|
|
1805
|
+
approvalId: string;
|
|
1806
|
+
uri?: string;
|
|
1807
|
+
customData?: string;
|
|
1808
|
+
approvalCriteria?: iApprovalCriteria;
|
|
1809
|
+
}
|
|
1810
|
+
export interface iApprovalCriteria {
|
|
1811
|
+
mustOwnBadges?: iMustOwnBadges[];
|
|
1812
|
+
zkProofs?: iZkProof[];
|
|
1813
|
+
coinTransfers?: iCoinTransfer[];
|
|
1814
|
+
merkleChallenges?: iMerkleChallenge[];
|
|
1815
|
+
predeterminedBalances?: iPredeterminedBalances;
|
|
1816
|
+
approvalAmounts?: iApprovalAmounts;
|
|
1817
|
+
maxNumTransfers?: iMaxNumTransfers;
|
|
1818
|
+
requireToEqualsInitiatedBy?: boolean;
|
|
1819
|
+
requireFromEqualsInitiatedBy?: boolean;
|
|
1820
|
+
requireToDoesNotEqualInitiatedBy?: boolean;
|
|
1821
|
+
requireFromDoesNotEqualInitiatedBy?: boolean;
|
|
1822
|
+
overridesFromOutgoingApprovals?: boolean;
|
|
1823
|
+
overridesToIncomingApprovals?: boolean;
|
|
1824
|
+
}
|
|
1825
|
+
export interface iUserBalanceStore {
|
|
1826
|
+
balances: iBalance[];
|
|
1827
|
+
incomingApprovals: iUserIncomingApproval[];
|
|
1828
|
+
outgoingApprovals: iUserOutgoingApproval[];
|
|
1829
|
+
userPermissions: iUserPermissions;
|
|
1830
|
+
autoApproveSelfInitiatedOutgoingTransfers: boolean;
|
|
1831
|
+
autoApproveSelfInitiatedIncomingTransfers: boolean;
|
|
1832
|
+
}
|
|
1
1833
|
//# sourceMappingURL=combined.d.ts.map
|