@herd-labs/sdk 0.5.1 → 0.5.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/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/src/errors.js +1 -1
- package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
- package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
- package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.d.ts +2 -2
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/DoubleClickServiceLive.d.ts +2 -2
- package/dist/src/live/DoubleClickServiceLive.js +31 -5
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.d.ts +2 -2
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/schemas/actions.d.ts +4 -4
- package/dist/src/schemas/actions.js +3 -3
- package/dist/src/schemas/agent-wallets.d.ts +6 -6
- package/dist/src/schemas/agent-wallets.js +1 -1
- package/dist/src/schemas/auth.d.ts +1 -1
- package/dist/src/schemas/auth.js +1 -1
- package/dist/src/schemas/bookmarks.d.ts +4 -4
- package/dist/src/schemas/codeblocks.d.ts +2 -2
- package/dist/src/schemas/codeblocks.js +2 -2
- package/dist/src/schemas/collections.d.ts +3 -3
- package/dist/src/schemas/collections.js +3 -3
- package/dist/src/schemas/common.d.ts +6 -6
- package/dist/src/schemas/common.js +12 -6
- package/dist/src/schemas/contracts.d.ts +55 -55
- package/dist/src/schemas/contracts.js +21 -21
- package/dist/src/schemas/doubleclick.d.ts +53 -7
- package/dist/src/schemas/doubleclick.js +11 -2
- package/dist/src/schemas/groups.d.ts +7 -7
- package/dist/src/schemas/groups.js +5 -5
- package/dist/src/schemas/hal.d.ts +16 -16
- package/dist/src/schemas/hal.js +5 -5
- package/dist/src/schemas/transactions.d.ts +145 -145
- package/dist/src/schemas/transactions.js +52 -52
- package/dist/src/schemas/wallets.d.ts +137 -137
- package/dist/src/schemas/wallets.js +51 -51
- package/dist/src/services/DoubleClickService.d.ts +13 -3
- package/package.json +3 -3
|
@@ -57,8 +57,8 @@ declare const CollectionsSearchParamsSchema: Schema.Struct<{
|
|
|
57
57
|
readonly filters: Schema.optional<Schema.Struct<{
|
|
58
58
|
readonly name: Schema.optional<Schema.String>;
|
|
59
59
|
}>>;
|
|
60
|
-
readonly limit: Schema.
|
|
61
|
-
readonly offset: Schema.
|
|
60
|
+
readonly limit: Schema.Finite;
|
|
61
|
+
readonly offset: Schema.Finite;
|
|
62
62
|
readonly scope: Schema.optional<Schema.$Array<Schema.Literals<readonly ["yours", "all", "verified"]>>>;
|
|
63
63
|
}>;
|
|
64
64
|
type CollectionsSearchParams = typeof CollectionsSearchParamsSchema.Type;
|
|
@@ -83,7 +83,7 @@ declare const CollectionsSearchResponseSchema: Schema.Struct<{
|
|
|
83
83
|
}>>;
|
|
84
84
|
readonly name: Schema.String;
|
|
85
85
|
}>>;
|
|
86
|
-
readonly total: Schema.
|
|
86
|
+
readonly total: Schema.Finite;
|
|
87
87
|
}>;
|
|
88
88
|
type CollectionsSearchResponse = typeof CollectionsSearchResponseSchema.Type;
|
|
89
89
|
declare const CreateCollectionParamsSchema: Schema.Struct<{
|
|
@@ -26,8 +26,8 @@ const CollectionSchema = Schema.Struct({
|
|
|
26
26
|
});
|
|
27
27
|
const CollectionsSearchParamsSchema = Schema.Struct({
|
|
28
28
|
filters: Schema.optional(Schema.Struct({ name: Schema.optional(Schema.String) })),
|
|
29
|
-
limit: Schema.
|
|
30
|
-
offset: Schema.
|
|
29
|
+
limit: Schema.Finite,
|
|
30
|
+
offset: Schema.Finite,
|
|
31
31
|
scope: Schema.optional(Schema.Array(Schema.Literals([
|
|
32
32
|
"yours",
|
|
33
33
|
"all",
|
|
@@ -36,7 +36,7 @@ const CollectionsSearchParamsSchema = Schema.Struct({
|
|
|
36
36
|
});
|
|
37
37
|
const CollectionsSearchResponseSchema = Schema.Struct({
|
|
38
38
|
items: Schema.Array(CollectionSchema),
|
|
39
|
-
total: Schema.
|
|
39
|
+
total: Schema.Finite
|
|
40
40
|
});
|
|
41
41
|
const CreateCollectionParamsSchema = Schema.Struct({
|
|
42
42
|
description: Schema.optional(Schema.String),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/common.d.ts
|
|
4
|
-
declare const BlockchainSchema: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
4
|
+
declare const BlockchainSchema: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
5
5
|
type Blockchain = typeof BlockchainSchema.Type;
|
|
6
6
|
declare const EvmAddressSchema: Schema.brand<Schema.String, "EvmAddress">;
|
|
7
7
|
type EvmAddress = typeof EvmAddressSchema.Type;
|
|
8
8
|
declare const PaginationParamsSchema: Schema.Struct<{
|
|
9
|
-
readonly afterBlocknumber: Schema.optional<Schema.
|
|
10
|
-
readonly afterTimestamp: Schema.optional<Schema.
|
|
11
|
-
readonly beforeBlocknumber: Schema.optional<Schema.
|
|
12
|
-
readonly beforeTimestamp: Schema.optional<Schema.
|
|
13
|
-
readonly page: Schema.optional<Schema.
|
|
9
|
+
readonly afterBlocknumber: Schema.optional<Schema.Finite>;
|
|
10
|
+
readonly afterTimestamp: Schema.optional<Schema.Finite>;
|
|
11
|
+
readonly beforeBlocknumber: Schema.optional<Schema.Finite>;
|
|
12
|
+
readonly beforeTimestamp: Schema.optional<Schema.Finite>;
|
|
13
|
+
readonly page: Schema.optional<Schema.Finite>;
|
|
14
14
|
}>;
|
|
15
15
|
type PaginationParams = typeof PaginationParamsSchema.Type;
|
|
16
16
|
//#endregion
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/common.ts
|
|
4
|
-
const BlockchainSchema = Schema.Literals([
|
|
4
|
+
const BlockchainSchema = Schema.Literals([
|
|
5
|
+
"ethereum",
|
|
6
|
+
"base",
|
|
7
|
+
"bsc",
|
|
8
|
+
"arbitrum",
|
|
9
|
+
"monad"
|
|
10
|
+
]);
|
|
5
11
|
const EvmAddressSchema = Schema.String.check(Schema.isPattern(/^0x[0-9a-fA-F]{40}$/u)).pipe(Schema.brand("EvmAddress"));
|
|
6
12
|
const PaginationParamsSchema = Schema.Struct({
|
|
7
|
-
afterBlocknumber: Schema.optional(Schema.
|
|
8
|
-
afterTimestamp: Schema.optional(Schema.
|
|
9
|
-
beforeBlocknumber: Schema.optional(Schema.
|
|
10
|
-
beforeTimestamp: Schema.optional(Schema.
|
|
11
|
-
page: Schema.optional(Schema.
|
|
13
|
+
afterBlocknumber: Schema.optional(Schema.Finite),
|
|
14
|
+
afterTimestamp: Schema.optional(Schema.Finite),
|
|
15
|
+
beforeBlocknumber: Schema.optional(Schema.Finite),
|
|
16
|
+
beforeTimestamp: Schema.optional(Schema.Finite),
|
|
17
|
+
page: Schema.optional(Schema.Finite)
|
|
12
18
|
});
|
|
13
19
|
|
|
14
20
|
//#endregion
|
|
@@ -20,51 +20,51 @@ declare const TokenImageSchema: Schema.Struct<{
|
|
|
20
20
|
type TokenImage = typeof TokenImageSchema.Type;
|
|
21
21
|
declare const TopHolderSchema: Schema.Struct<{
|
|
22
22
|
readonly address: Schema.String;
|
|
23
|
-
readonly balance: Schema.
|
|
23
|
+
readonly balance: Schema.Finite;
|
|
24
24
|
readonly coingeckoLabel: Schema.optional<Schema.String>;
|
|
25
25
|
readonly entityLabel: Schema.optional<Schema.String>;
|
|
26
26
|
readonly name: Schema.optional<Schema.String>;
|
|
27
|
-
readonly rank: Schema.
|
|
28
|
-
readonly sharePercentage: Schema.
|
|
27
|
+
readonly rank: Schema.Finite;
|
|
28
|
+
readonly sharePercentage: Schema.Finite;
|
|
29
29
|
readonly type: Schema.Literals<readonly ["contract", "wallet"]>;
|
|
30
|
-
readonly valueUsd: Schema.
|
|
30
|
+
readonly valueUsd: Schema.Finite;
|
|
31
31
|
}>;
|
|
32
32
|
type TopHolder = typeof TopHolderSchema.Type;
|
|
33
33
|
declare const TokenDetailsSchema: Schema.Struct<{
|
|
34
|
-
readonly athUsd: Schema.optional<Schema.
|
|
35
|
-
readonly currentPriceUsd: Schema.optional<Schema.
|
|
36
|
-
readonly decimals: Schema.optional<Schema.
|
|
34
|
+
readonly athUsd: Schema.optional<Schema.Finite>;
|
|
35
|
+
readonly currentPriceUsd: Schema.optional<Schema.Finite>;
|
|
36
|
+
readonly decimals: Schema.optional<Schema.Finite>;
|
|
37
37
|
readonly description: Schema.optional<Schema.String>;
|
|
38
|
-
readonly fullyDilutedValuationUsd: Schema.optional<Schema.
|
|
38
|
+
readonly fullyDilutedValuationUsd: Schema.optional<Schema.Finite>;
|
|
39
39
|
readonly image: Schema.optional<Schema.Struct<{
|
|
40
40
|
readonly large: Schema.optional<Schema.String>;
|
|
41
41
|
readonly small: Schema.optional<Schema.String>;
|
|
42
42
|
readonly thumb: Schema.optional<Schema.String>;
|
|
43
43
|
}>>;
|
|
44
|
-
readonly marketCapRank: Schema.optional<Schema.
|
|
45
|
-
readonly marketCapUsd: Schema.optional<Schema.
|
|
44
|
+
readonly marketCapRank: Schema.optional<Schema.Finite>;
|
|
45
|
+
readonly marketCapUsd: Schema.optional<Schema.Finite>;
|
|
46
46
|
readonly name: Schema.String;
|
|
47
47
|
readonly symbol: Schema.String;
|
|
48
48
|
readonly tokenType: Schema.Literals<readonly ["ERC20", "ERC721", "ERC1155"]>;
|
|
49
49
|
readonly topHolders: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
50
50
|
readonly address: Schema.String;
|
|
51
|
-
readonly balance: Schema.
|
|
51
|
+
readonly balance: Schema.Finite;
|
|
52
52
|
readonly coingeckoLabel: Schema.optional<Schema.String>;
|
|
53
53
|
readonly entityLabel: Schema.optional<Schema.String>;
|
|
54
54
|
readonly name: Schema.optional<Schema.String>;
|
|
55
|
-
readonly rank: Schema.
|
|
56
|
-
readonly sharePercentage: Schema.
|
|
55
|
+
readonly rank: Schema.Finite;
|
|
56
|
+
readonly sharePercentage: Schema.Finite;
|
|
57
57
|
readonly type: Schema.Literals<readonly ["contract", "wallet"]>;
|
|
58
|
-
readonly valueUsd: Schema.
|
|
58
|
+
readonly valueUsd: Schema.Finite;
|
|
59
59
|
}>>>;
|
|
60
|
-
readonly totalSupply: Schema.optional<Schema.
|
|
61
|
-
readonly totalVolumeUsd: Schema.optional<Schema.
|
|
60
|
+
readonly totalSupply: Schema.optional<Schema.Finite>;
|
|
61
|
+
readonly totalVolumeUsd: Schema.optional<Schema.Finite>;
|
|
62
62
|
}>;
|
|
63
63
|
type TokenDetails = typeof TokenDetailsSchema.Type;
|
|
64
64
|
declare const AddressDetailsSchema: Schema.Struct<{
|
|
65
65
|
readonly address: Schema.String;
|
|
66
66
|
readonly constructorArgs: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
67
|
-
readonly deploymentBlockNumber: Schema.optional<Schema.
|
|
67
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Finite>;
|
|
68
68
|
readonly deploymentTimestamp: Schema.optional<Schema.String>;
|
|
69
69
|
readonly deploymentTimestampUtc: Schema.optional<Schema.String>;
|
|
70
70
|
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
@@ -76,13 +76,13 @@ declare const AddressDetailsSchema: Schema.Struct<{
|
|
|
76
76
|
type AddressDetails = typeof AddressDetailsSchema.Type;
|
|
77
77
|
declare const HistoricalImplementationSchema: Schema.Struct<{
|
|
78
78
|
readonly address: Schema.String;
|
|
79
|
-
readonly deploymentBlockNumber: Schema.optional<Schema.
|
|
80
|
-
readonly deploymentBlockTimestamp: Schema.optional<Schema.
|
|
79
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Finite>;
|
|
80
|
+
readonly deploymentBlockTimestamp: Schema.optional<Schema.Finite>;
|
|
81
81
|
readonly deploymentBlockTimestampUtc: Schema.optional<Schema.String>;
|
|
82
82
|
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
83
83
|
readonly newEvents: Schema.optional<Schema.$Array<Schema.String>>;
|
|
84
84
|
readonly newFunctions: Schema.optional<Schema.$Array<Schema.String>>;
|
|
85
|
-
readonly versionNumber: Schema.
|
|
85
|
+
readonly versionNumber: Schema.Finite;
|
|
86
86
|
}>;
|
|
87
87
|
type HistoricalImplementation = typeof HistoricalImplementationSchema.Type;
|
|
88
88
|
declare const ContractMetadataSchema: Schema.Struct<{
|
|
@@ -90,7 +90,7 @@ declare const ContractMetadataSchema: Schema.Struct<{
|
|
|
90
90
|
readonly addressDetails: Schema.optional<Schema.Struct<{
|
|
91
91
|
readonly address: Schema.String;
|
|
92
92
|
readonly constructorArgs: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
93
|
-
readonly deploymentBlockNumber: Schema.optional<Schema.
|
|
93
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Finite>;
|
|
94
94
|
readonly deploymentTimestamp: Schema.optional<Schema.String>;
|
|
95
95
|
readonly deploymentTimestampUtc: Schema.optional<Schema.String>;
|
|
96
96
|
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
@@ -113,56 +113,56 @@ declare const ContractMetadataSchema: Schema.Struct<{
|
|
|
113
113
|
}>>>;
|
|
114
114
|
readonly historicalImplementations: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
115
115
|
readonly address: Schema.String;
|
|
116
|
-
readonly deploymentBlockNumber: Schema.optional<Schema.
|
|
117
|
-
readonly deploymentBlockTimestamp: Schema.optional<Schema.
|
|
116
|
+
readonly deploymentBlockNumber: Schema.optional<Schema.Finite>;
|
|
117
|
+
readonly deploymentBlockTimestamp: Schema.optional<Schema.Finite>;
|
|
118
118
|
readonly deploymentBlockTimestampUtc: Schema.optional<Schema.String>;
|
|
119
119
|
readonly deploymentTxHash: Schema.optional<Schema.String>;
|
|
120
120
|
readonly newEvents: Schema.optional<Schema.$Array<Schema.String>>;
|
|
121
121
|
readonly newFunctions: Schema.optional<Schema.$Array<Schema.String>>;
|
|
122
|
-
readonly versionNumber: Schema.
|
|
122
|
+
readonly versionNumber: Schema.Finite;
|
|
123
123
|
}>>>;
|
|
124
124
|
readonly proxyAbi: Schema.optional<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
125
125
|
readonly signatureImplementationNames: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
126
126
|
readonly signatureImplementations: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
127
127
|
readonly tokenDetails: Schema.optional<Schema.Struct<{
|
|
128
|
-
readonly athUsd: Schema.optional<Schema.
|
|
129
|
-
readonly currentPriceUsd: Schema.optional<Schema.
|
|
130
|
-
readonly decimals: Schema.optional<Schema.
|
|
128
|
+
readonly athUsd: Schema.optional<Schema.Finite>;
|
|
129
|
+
readonly currentPriceUsd: Schema.optional<Schema.Finite>;
|
|
130
|
+
readonly decimals: Schema.optional<Schema.Finite>;
|
|
131
131
|
readonly description: Schema.optional<Schema.String>;
|
|
132
|
-
readonly fullyDilutedValuationUsd: Schema.optional<Schema.
|
|
132
|
+
readonly fullyDilutedValuationUsd: Schema.optional<Schema.Finite>;
|
|
133
133
|
readonly image: Schema.optional<Schema.Struct<{
|
|
134
134
|
readonly large: Schema.optional<Schema.String>;
|
|
135
135
|
readonly small: Schema.optional<Schema.String>;
|
|
136
136
|
readonly thumb: Schema.optional<Schema.String>;
|
|
137
137
|
}>>;
|
|
138
|
-
readonly marketCapRank: Schema.optional<Schema.
|
|
139
|
-
readonly marketCapUsd: Schema.optional<Schema.
|
|
138
|
+
readonly marketCapRank: Schema.optional<Schema.Finite>;
|
|
139
|
+
readonly marketCapUsd: Schema.optional<Schema.Finite>;
|
|
140
140
|
readonly name: Schema.String;
|
|
141
141
|
readonly symbol: Schema.String;
|
|
142
142
|
readonly tokenType: Schema.Literals<readonly ["ERC20", "ERC721", "ERC1155"]>;
|
|
143
143
|
readonly topHolders: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
144
144
|
readonly address: Schema.String;
|
|
145
|
-
readonly balance: Schema.
|
|
145
|
+
readonly balance: Schema.Finite;
|
|
146
146
|
readonly coingeckoLabel: Schema.optional<Schema.String>;
|
|
147
147
|
readonly entityLabel: Schema.optional<Schema.String>;
|
|
148
148
|
readonly name: Schema.optional<Schema.String>;
|
|
149
|
-
readonly rank: Schema.
|
|
150
|
-
readonly sharePercentage: Schema.
|
|
149
|
+
readonly rank: Schema.Finite;
|
|
150
|
+
readonly sharePercentage: Schema.Finite;
|
|
151
151
|
readonly type: Schema.Literals<readonly ["contract", "wallet"]>;
|
|
152
|
-
readonly valueUsd: Schema.
|
|
152
|
+
readonly valueUsd: Schema.Finite;
|
|
153
153
|
}>>>;
|
|
154
|
-
readonly totalSupply: Schema.optional<Schema.
|
|
155
|
-
readonly totalVolumeUsd: Schema.optional<Schema.
|
|
154
|
+
readonly totalSupply: Schema.optional<Schema.Finite>;
|
|
155
|
+
readonly totalVolumeUsd: Schema.optional<Schema.Finite>;
|
|
156
156
|
}>>;
|
|
157
157
|
}>;
|
|
158
158
|
type ContractMetadata = typeof ContractMetadataSchema.Type;
|
|
159
159
|
declare const ContractCodeMatchBlockSchema: Schema.Struct<{
|
|
160
160
|
readonly code: Schema.String;
|
|
161
|
-
readonly endLine: Schema.
|
|
161
|
+
readonly endLine: Schema.Finite;
|
|
162
162
|
readonly fileName: Schema.String;
|
|
163
|
-
readonly numberOfMatches: Schema.
|
|
163
|
+
readonly numberOfMatches: Schema.Finite;
|
|
164
164
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
165
|
-
readonly startLine: Schema.
|
|
165
|
+
readonly startLine: Schema.Finite;
|
|
166
166
|
}>;
|
|
167
167
|
type ContractCodeMatchBlock = typeof ContractCodeMatchBlockSchema.Type;
|
|
168
168
|
declare const ContractCodeSearchResultSchema: Schema.Struct<{
|
|
@@ -172,11 +172,11 @@ declare const ContractCodeSearchResultSchema: Schema.Struct<{
|
|
|
172
172
|
readonly contractName: Schema.String;
|
|
173
173
|
readonly matches: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
174
174
|
readonly code: Schema.String;
|
|
175
|
-
readonly endLine: Schema.
|
|
175
|
+
readonly endLine: Schema.Finite;
|
|
176
176
|
readonly fileName: Schema.String;
|
|
177
|
-
readonly numberOfMatches: Schema.
|
|
177
|
+
readonly numberOfMatches: Schema.Finite;
|
|
178
178
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
179
|
-
readonly startLine: Schema.
|
|
179
|
+
readonly startLine: Schema.Finite;
|
|
180
180
|
}>>>;
|
|
181
181
|
readonly proxyCode: Schema.optional<Schema.String>;
|
|
182
182
|
}>;
|
|
@@ -198,11 +198,11 @@ declare const GetContractCodeResponseSchema: Schema.Struct<{
|
|
|
198
198
|
readonly contractName: Schema.String;
|
|
199
199
|
readonly matches: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
200
200
|
readonly code: Schema.String;
|
|
201
|
-
readonly endLine: Schema.
|
|
201
|
+
readonly endLine: Schema.Finite;
|
|
202
202
|
readonly fileName: Schema.String;
|
|
203
|
-
readonly numberOfMatches: Schema.
|
|
203
|
+
readonly numberOfMatches: Schema.Finite;
|
|
204
204
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
205
|
-
readonly startLine: Schema.
|
|
205
|
+
readonly startLine: Schema.Finite;
|
|
206
206
|
}>>>;
|
|
207
207
|
readonly proxyCode: Schema.optional<Schema.String>;
|
|
208
208
|
}>>>;
|
|
@@ -211,25 +211,25 @@ declare const GetContractCodeResponseSchema: Schema.Struct<{
|
|
|
211
211
|
}>;
|
|
212
212
|
type GetContractCodeResponse = typeof GetContractCodeResponseSchema.Type;
|
|
213
213
|
declare const DiffVersionInfoSchema: Schema.Struct<{
|
|
214
|
-
readonly blockNumber: Schema.
|
|
214
|
+
readonly blockNumber: Schema.Finite;
|
|
215
215
|
readonly contractName: Schema.String;
|
|
216
216
|
readonly implementationAddress: Schema.String;
|
|
217
|
-
readonly versionNumber: Schema.
|
|
217
|
+
readonly versionNumber: Schema.Finite;
|
|
218
218
|
}>;
|
|
219
219
|
type DiffVersionInfo = typeof DiffVersionInfoSchema.Type;
|
|
220
220
|
declare const DiffEntrySchema: Schema.Struct<{
|
|
221
221
|
readonly diff: Schema.String;
|
|
222
222
|
readonly version1Info: Schema.Struct<{
|
|
223
|
-
readonly blockNumber: Schema.
|
|
223
|
+
readonly blockNumber: Schema.Finite;
|
|
224
224
|
readonly contractName: Schema.String;
|
|
225
225
|
readonly implementationAddress: Schema.String;
|
|
226
|
-
readonly versionNumber: Schema.
|
|
226
|
+
readonly versionNumber: Schema.Finite;
|
|
227
227
|
}>;
|
|
228
228
|
readonly version2Info: Schema.Struct<{
|
|
229
|
-
readonly blockNumber: Schema.
|
|
229
|
+
readonly blockNumber: Schema.Finite;
|
|
230
230
|
readonly contractName: Schema.String;
|
|
231
231
|
readonly implementationAddress: Schema.String;
|
|
232
|
-
readonly versionNumber: Schema.
|
|
232
|
+
readonly versionNumber: Schema.Finite;
|
|
233
233
|
}>;
|
|
234
234
|
}>;
|
|
235
235
|
type DiffEntry = typeof DiffEntrySchema.Type;
|
|
@@ -239,16 +239,16 @@ declare const ContractDiffSchema: Schema.Struct<{
|
|
|
239
239
|
readonly diffs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
240
240
|
readonly diff: Schema.String;
|
|
241
241
|
readonly version1Info: Schema.Struct<{
|
|
242
|
-
readonly blockNumber: Schema.
|
|
242
|
+
readonly blockNumber: Schema.Finite;
|
|
243
243
|
readonly contractName: Schema.String;
|
|
244
244
|
readonly implementationAddress: Schema.String;
|
|
245
|
-
readonly versionNumber: Schema.
|
|
245
|
+
readonly versionNumber: Schema.Finite;
|
|
246
246
|
}>;
|
|
247
247
|
readonly version2Info: Schema.Struct<{
|
|
248
|
-
readonly blockNumber: Schema.
|
|
248
|
+
readonly blockNumber: Schema.Finite;
|
|
249
249
|
readonly contractName: Schema.String;
|
|
250
250
|
readonly implementationAddress: Schema.String;
|
|
251
|
-
readonly versionNumber: Schema.
|
|
251
|
+
readonly versionNumber: Schema.Finite;
|
|
252
252
|
}>;
|
|
253
253
|
}>>>;
|
|
254
254
|
readonly errorMessage: Schema.optional<Schema.String>;
|
|
@@ -18,24 +18,24 @@ const TokenImageSchema = Schema.Struct({
|
|
|
18
18
|
});
|
|
19
19
|
const TopHolderSchema = Schema.Struct({
|
|
20
20
|
address: Schema.String,
|
|
21
|
-
balance: Schema.
|
|
21
|
+
balance: Schema.Finite,
|
|
22
22
|
coingeckoLabel: Schema.optional(Schema.String),
|
|
23
23
|
entityLabel: Schema.optional(Schema.String),
|
|
24
24
|
name: Schema.optional(Schema.String),
|
|
25
|
-
rank: Schema.
|
|
26
|
-
sharePercentage: Schema.
|
|
25
|
+
rank: Schema.Finite,
|
|
26
|
+
sharePercentage: Schema.Finite,
|
|
27
27
|
type: Schema.Literals(["contract", "wallet"]),
|
|
28
|
-
valueUsd: Schema.
|
|
28
|
+
valueUsd: Schema.Finite
|
|
29
29
|
});
|
|
30
30
|
const TokenDetailsSchema = Schema.Struct({
|
|
31
|
-
athUsd: Schema.optional(Schema.
|
|
32
|
-
currentPriceUsd: Schema.optional(Schema.
|
|
33
|
-
decimals: Schema.optional(Schema.
|
|
31
|
+
athUsd: Schema.optional(Schema.Finite),
|
|
32
|
+
currentPriceUsd: Schema.optional(Schema.Finite),
|
|
33
|
+
decimals: Schema.optional(Schema.Finite),
|
|
34
34
|
description: Schema.optional(Schema.String),
|
|
35
|
-
fullyDilutedValuationUsd: Schema.optional(Schema.
|
|
35
|
+
fullyDilutedValuationUsd: Schema.optional(Schema.Finite),
|
|
36
36
|
image: Schema.optional(TokenImageSchema),
|
|
37
|
-
marketCapRank: Schema.optional(Schema.
|
|
38
|
-
marketCapUsd: Schema.optional(Schema.
|
|
37
|
+
marketCapRank: Schema.optional(Schema.Finite),
|
|
38
|
+
marketCapUsd: Schema.optional(Schema.Finite),
|
|
39
39
|
name: Schema.String,
|
|
40
40
|
symbol: Schema.String,
|
|
41
41
|
tokenType: Schema.Literals([
|
|
@@ -44,13 +44,13 @@ const TokenDetailsSchema = Schema.Struct({
|
|
|
44
44
|
"ERC1155"
|
|
45
45
|
]),
|
|
46
46
|
topHolders: Schema.optional(Schema.Array(TopHolderSchema)),
|
|
47
|
-
totalSupply: Schema.optional(Schema.
|
|
48
|
-
totalVolumeUsd: Schema.optional(Schema.
|
|
47
|
+
totalSupply: Schema.optional(Schema.Finite),
|
|
48
|
+
totalVolumeUsd: Schema.optional(Schema.Finite)
|
|
49
49
|
});
|
|
50
50
|
const AddressDetailsSchema = Schema.Struct({
|
|
51
51
|
address: Schema.String,
|
|
52
52
|
constructorArgs: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
53
|
-
deploymentBlockNumber: Schema.optional(Schema.
|
|
53
|
+
deploymentBlockNumber: Schema.optional(Schema.Finite),
|
|
54
54
|
deploymentTimestamp: Schema.optional(Schema.String),
|
|
55
55
|
deploymentTimestampUtc: Schema.optional(Schema.String),
|
|
56
56
|
deploymentTxHash: Schema.optional(Schema.String),
|
|
@@ -61,13 +61,13 @@ const AddressDetailsSchema = Schema.Struct({
|
|
|
61
61
|
});
|
|
62
62
|
const HistoricalImplementationSchema = Schema.Struct({
|
|
63
63
|
address: Schema.String,
|
|
64
|
-
deploymentBlockNumber: Schema.optional(Schema.
|
|
65
|
-
deploymentBlockTimestamp: Schema.optional(Schema.
|
|
64
|
+
deploymentBlockNumber: Schema.optional(Schema.Finite),
|
|
65
|
+
deploymentBlockTimestamp: Schema.optional(Schema.Finite),
|
|
66
66
|
deploymentBlockTimestampUtc: Schema.optional(Schema.String),
|
|
67
67
|
deploymentTxHash: Schema.optional(Schema.String),
|
|
68
68
|
newEvents: Schema.optional(Schema.Array(Schema.String)),
|
|
69
69
|
newFunctions: Schema.optional(Schema.Array(Schema.String)),
|
|
70
|
-
versionNumber: Schema.
|
|
70
|
+
versionNumber: Schema.Finite
|
|
71
71
|
});
|
|
72
72
|
const ContractMetadataSchema = Schema.Struct({
|
|
73
73
|
abi: Schema.optional(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))),
|
|
@@ -85,11 +85,11 @@ const ContractMetadataSchema = Schema.Struct({
|
|
|
85
85
|
});
|
|
86
86
|
const ContractCodeMatchBlockSchema = Schema.Struct({
|
|
87
87
|
code: Schema.String,
|
|
88
|
-
endLine: Schema.
|
|
88
|
+
endLine: Schema.Finite,
|
|
89
89
|
fileName: Schema.String,
|
|
90
|
-
numberOfMatches: Schema.
|
|
90
|
+
numberOfMatches: Schema.Finite,
|
|
91
91
|
patterns: Schema.Array(Schema.String),
|
|
92
|
-
startLine: Schema.
|
|
92
|
+
startLine: Schema.Finite
|
|
93
93
|
});
|
|
94
94
|
const ContractCodeSearchResultSchema = Schema.Struct({
|
|
95
95
|
blockchain: Schema.Literals(["ethereum", "base"]),
|
|
@@ -113,10 +113,10 @@ const GetContractCodeResponseSchema = Schema.Struct({
|
|
|
113
113
|
query: Schema.optional(Schema.String)
|
|
114
114
|
});
|
|
115
115
|
const DiffVersionInfoSchema = Schema.Struct({
|
|
116
|
-
blockNumber: Schema.
|
|
116
|
+
blockNumber: Schema.Finite,
|
|
117
117
|
contractName: Schema.String,
|
|
118
118
|
implementationAddress: Schema.String,
|
|
119
|
-
versionNumber: Schema.
|
|
119
|
+
versionNumber: Schema.Finite
|
|
120
120
|
});
|
|
121
121
|
const DiffEntrySchema = Schema.Struct({
|
|
122
122
|
diff: Schema.String,
|
|
@@ -3,11 +3,13 @@ import { Schema } from "effect";
|
|
|
3
3
|
//#region src/schemas/doubleclick.d.ts
|
|
4
4
|
declare const DoubleClickJsonResponseSchema: Schema.Unknown;
|
|
5
5
|
type DoubleClickJsonResponse = typeof DoubleClickJsonResponseSchema.Type;
|
|
6
|
-
declare const IntegrityCheckKeySchema: Schema.Literals<readonly ["schema-defects", "stale-queries", "fixed-slot-shape-defects", "dangling-underlying-keys", "version-pointer-defects", "entity-reference-defects", "duplicate-edges", "base-query-id-defects", "live-param-query-usage", "live-slots-bad-bases"]>;
|
|
6
|
+
declare const IntegrityCheckKeySchema: Schema.Literals<readonly ["schema-defects", "stale-queries", "fixed-slot-shape-defects", "dangling-underlying-keys", "version-pointer-defects", "entity-reference-defects", "duplicate-edges", "morpho-balance-ids", "base-query-id-defects", "live-param-query-usage", "live-slots-bad-bases"]>;
|
|
7
7
|
type IntegrityCheckKey = typeof IntegrityCheckKeySchema.Type;
|
|
8
8
|
declare const SlotTargetTypeSchema: Schema.Literals<readonly ["node", "edge"]>;
|
|
9
9
|
type SlotTargetType = typeof SlotTargetTypeSchema.Type;
|
|
10
|
-
declare const
|
|
10
|
+
declare const ParamQueryOutputTypeSchema: Schema.Literals<readonly ["holding", "backing", "metric", "conversionRate", "conversionShare", "positionState"]>;
|
|
11
|
+
type ParamQueryOutputType = typeof ParamQueryOutputTypeSchema.Type;
|
|
12
|
+
declare const TraverseDepthSchema: Schema.Union<readonly [Schema.Finite, Schema.Literal<"full">]>;
|
|
11
13
|
type TraverseDepth = typeof TraverseDepthSchema.Type;
|
|
12
14
|
declare const GraphVersionTargetSchema: Schema.Literals<readonly ["node", "edge"]>;
|
|
13
15
|
type GraphVersionTarget = typeof GraphVersionTargetSchema.Type;
|
|
@@ -37,6 +39,39 @@ type AddSlotParams = SlotTargetParams & {
|
|
|
37
39
|
readonly queryId: string;
|
|
38
40
|
readonly methodology: string;
|
|
39
41
|
};
|
|
42
|
+
type CreateParamQueryParams = {
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly baseQueryId: string;
|
|
45
|
+
readonly params: Readonly<Record<string, unknown>>;
|
|
46
|
+
readonly outputType: ParamQueryOutputType;
|
|
47
|
+
readonly description: string;
|
|
48
|
+
};
|
|
49
|
+
type QueryType = "hal" | "code_block";
|
|
50
|
+
type RepointParamQueryTarget = SlotPathParams & {
|
|
51
|
+
readonly methodology?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
type RepointParamQueryToLatestParams = {
|
|
54
|
+
readonly oldQueryId: string;
|
|
55
|
+
readonly newBase: {
|
|
56
|
+
readonly queryType: QueryType;
|
|
57
|
+
readonly definitionId: string;
|
|
58
|
+
readonly versionId: string;
|
|
59
|
+
readonly description?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
readonly targets: readonly RepointParamQueryTarget[];
|
|
62
|
+
readonly name?: string | undefined;
|
|
63
|
+
readonly description?: string | undefined;
|
|
64
|
+
readonly retireReason?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
type ExecuteParamQueryParams = SlotTargetParams & {
|
|
67
|
+
readonly slotName: string;
|
|
68
|
+
readonly queryId: string;
|
|
69
|
+
readonly existingRunId?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
type ExecuteManyParamQueriesParams = {
|
|
72
|
+
readonly paramQueries: readonly ExecuteParamQueryParams[];
|
|
73
|
+
readonly concurrency?: number | undefined;
|
|
74
|
+
};
|
|
40
75
|
type SlotPathParams = SlotTargetParams & {
|
|
41
76
|
readonly slotName: string;
|
|
42
77
|
};
|
|
@@ -154,16 +189,15 @@ type SetLogoParams = {
|
|
|
154
189
|
readonly nodeId: string;
|
|
155
190
|
readonly logoUrl: string | null;
|
|
156
191
|
};
|
|
157
|
-
type
|
|
192
|
+
type RefreshSingleTokenParams = {
|
|
158
193
|
readonly nodeId: string;
|
|
159
194
|
readonly side?: "assets" | "liabilities" | undefined;
|
|
160
195
|
readonly maxAgeMs?: number | undefined;
|
|
196
|
+
readonly adminLive?: boolean | undefined;
|
|
161
197
|
};
|
|
162
|
-
type
|
|
198
|
+
type RefreshAllTokensParams = {
|
|
163
199
|
readonly staleMs?: number | undefined;
|
|
164
200
|
readonly adminLive?: boolean | undefined;
|
|
165
|
-
readonly pollIntervalMs?: number | undefined;
|
|
166
|
-
readonly maxPollAttempts?: number | undefined;
|
|
167
201
|
readonly limit?: number | undefined;
|
|
168
202
|
};
|
|
169
203
|
type UpsertSideMetricsParams = {
|
|
@@ -182,5 +216,17 @@ type BulkVersionReviewParams = {
|
|
|
182
216
|
readonly versionIds: readonly string[];
|
|
183
217
|
readonly notes?: string | undefined;
|
|
184
218
|
};
|
|
219
|
+
type ForumItemParams = {
|
|
220
|
+
readonly itemId: string;
|
|
221
|
+
};
|
|
222
|
+
type CreateForumThreadParams = {
|
|
223
|
+
readonly body: string;
|
|
224
|
+
readonly agentName?: string | undefined;
|
|
225
|
+
readonly agentModel?: string | undefined;
|
|
226
|
+
};
|
|
227
|
+
type UpdateForumItemParams = {
|
|
228
|
+
readonly itemId: string;
|
|
229
|
+
readonly body: string;
|
|
230
|
+
};
|
|
185
231
|
//#endregion
|
|
186
|
-
export { AccountingCheckNodesParams, AccountingCheckParams, AddIssuerTokenParams, AddSlotParams, BulkVersionReviewParams, ChainAddressParams, ConvertSlotToFixedParams, CreateIssuerParams, DirectionalTraversalParams, DoubleClickJsonResponse, DoubleClickJsonResponseSchema, GetNodeByIdentityParams, GetNodeParams, GraphVersionTarget, GraphVersionTargetSchema, IncludeDraftsParams, IntegrityCheckKey, IntegrityCheckKeySchema, IntegrityCheckParams, IssuerTokensParams, ListCuratedTokensParams, ListResearchRunsParams, LogoBatchParams, MarkResearchRunFailedParams, NodeReadParams, OptionalSlotMethodologyParams,
|
|
232
|
+
export { AccountingCheckNodesParams, AccountingCheckParams, AddIssuerTokenParams, AddSlotParams, BulkVersionReviewParams, ChainAddressParams, ConvertSlotToFixedParams, CreateForumThreadParams, CreateIssuerParams, CreateParamQueryParams, DirectionalTraversalParams, DoubleClickJsonResponse, DoubleClickJsonResponseSchema, ExecuteManyParamQueriesParams, ExecuteParamQueryParams, ForumItemParams, GetNodeByIdentityParams, GetNodeParams, GraphVersionTarget, GraphVersionTargetSchema, IncludeDraftsParams, IntegrityCheckKey, IntegrityCheckKeySchema, IntegrityCheckParams, IssuerTokensParams, ListCuratedTokensParams, ListResearchRunsParams, LogoBatchParams, MarkResearchRunFailedParams, NodeReadParams, OptionalSlotMethodologyParams, ParamQueryOutputType, ParamQueryOutputTypeSchema, QueryType, RefreshAllTokensParams, RefreshSingleTokenParams, RefreshStaleSlotsForExpansionParams, RefreshStaleSlotsForNodeParams, RegisterTokenParams, RepointParamQueryTarget, RepointParamQueryToLatestParams, SetCuratedParams, SetLogoParams, SetPrimaryTokenParams, SlotMethodologyParams, SlotPathParams, SlotTargetParams, SlotTargetType, SlotTargetTypeSchema, StartResearchRunParams, SubmitResearchGraphParams, TraversalParams, TraverseDepth, TraverseDepthSchema, UpdateForumItemParams, UpdateIssuerParams, UpsertSideMetricsParams, VersionReviewParams };
|
|
@@ -10,13 +10,22 @@ const IntegrityCheckKeySchema = Schema.Literals([
|
|
|
10
10
|
"version-pointer-defects",
|
|
11
11
|
"entity-reference-defects",
|
|
12
12
|
"duplicate-edges",
|
|
13
|
+
"morpho-balance-ids",
|
|
13
14
|
"base-query-id-defects",
|
|
14
15
|
"live-param-query-usage",
|
|
15
16
|
"live-slots-bad-bases"
|
|
16
17
|
]);
|
|
17
18
|
const SlotTargetTypeSchema = Schema.Literals(["node", "edge"]);
|
|
18
|
-
const
|
|
19
|
+
const ParamQueryOutputTypeSchema = Schema.Literals([
|
|
20
|
+
"holding",
|
|
21
|
+
"backing",
|
|
22
|
+
"metric",
|
|
23
|
+
"conversionRate",
|
|
24
|
+
"conversionShare",
|
|
25
|
+
"positionState"
|
|
26
|
+
]);
|
|
27
|
+
const TraverseDepthSchema = Schema.Union([Schema.Finite, Schema.Literal("full")]);
|
|
19
28
|
const GraphVersionTargetSchema = Schema.Literals(["node", "edge"]);
|
|
20
29
|
|
|
21
30
|
//#endregion
|
|
22
|
-
export { DoubleClickJsonResponseSchema, GraphVersionTargetSchema, IntegrityCheckKeySchema, SlotTargetTypeSchema, TraverseDepthSchema };
|
|
31
|
+
export { DoubleClickJsonResponseSchema, GraphVersionTargetSchema, IntegrityCheckKeySchema, ParamQueryOutputTypeSchema, SlotTargetTypeSchema, TraverseDepthSchema };
|
|
@@ -5,9 +5,9 @@ declare const GroupSummarySchema: Schema.Struct<{
|
|
|
5
5
|
readonly createdAt: Schema.String;
|
|
6
6
|
readonly id: Schema.String;
|
|
7
7
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
8
|
-
readonly memberCount: Schema.
|
|
8
|
+
readonly memberCount: Schema.Finite;
|
|
9
9
|
readonly name: Schema.NullOr<Schema.String>;
|
|
10
|
-
readonly quorum: Schema.
|
|
10
|
+
readonly quorum: Schema.Finite;
|
|
11
11
|
}>;
|
|
12
12
|
type GroupSummary = typeof GroupSummarySchema.Type;
|
|
13
13
|
declare const GroupMemberSchema: Schema.Struct<{
|
|
@@ -31,7 +31,7 @@ declare const GroupDetailsSchema: Schema.Struct<{
|
|
|
31
31
|
readonly userId: Schema.String;
|
|
32
32
|
}>>;
|
|
33
33
|
readonly name: Schema.NullOr<Schema.String>;
|
|
34
|
-
readonly quorum: Schema.
|
|
34
|
+
readonly quorum: Schema.Finite;
|
|
35
35
|
readonly wallet: Schema.NullOr<Schema.Struct<{
|
|
36
36
|
readonly address: Schema.String;
|
|
37
37
|
readonly name: Schema.NullOr<Schema.String>;
|
|
@@ -42,7 +42,7 @@ declare const CreateGroupParamsSchema: Schema.Struct<{
|
|
|
42
42
|
readonly intent: Schema.optional<Schema.String>;
|
|
43
43
|
readonly members: Schema.$Array<Schema.String>;
|
|
44
44
|
readonly name: Schema.String;
|
|
45
|
-
readonly quorum: Schema.
|
|
45
|
+
readonly quorum: Schema.Finite;
|
|
46
46
|
}>;
|
|
47
47
|
type CreateGroupParams = typeof CreateGroupParamsSchema.Type;
|
|
48
48
|
declare const CreateGroupResponseSchema: Schema.Struct<{
|
|
@@ -55,9 +55,9 @@ declare const ListGroupsResponseSchema: Schema.Struct<{
|
|
|
55
55
|
readonly createdAt: Schema.String;
|
|
56
56
|
readonly id: Schema.String;
|
|
57
57
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
58
|
-
readonly memberCount: Schema.
|
|
58
|
+
readonly memberCount: Schema.Finite;
|
|
59
59
|
readonly name: Schema.NullOr<Schema.String>;
|
|
60
|
-
readonly quorum: Schema.
|
|
60
|
+
readonly quorum: Schema.Finite;
|
|
61
61
|
}>>;
|
|
62
62
|
}>;
|
|
63
63
|
type ListGroupsResponse = typeof ListGroupsResponseSchema.Type;
|
|
@@ -71,7 +71,7 @@ declare const ProposeMemberChangeParamsSchema: Schema.Struct<{
|
|
|
71
71
|
}>;
|
|
72
72
|
type ProposeMemberChangeParams = typeof ProposeMemberChangeParamsSchema.Type;
|
|
73
73
|
declare const ProposeQuorumChangeParamsSchema: Schema.Struct<{
|
|
74
|
-
readonly quorum: Schema.
|
|
74
|
+
readonly quorum: Schema.Finite;
|
|
75
75
|
}>;
|
|
76
76
|
type ProposeQuorumChangeParams = typeof ProposeQuorumChangeParamsSchema.Type;
|
|
77
77
|
declare const ProposalResponseSchema: Schema.Struct<{
|
|
@@ -5,9 +5,9 @@ const GroupSummarySchema = Schema.Struct({
|
|
|
5
5
|
createdAt: Schema.String,
|
|
6
6
|
id: Schema.String,
|
|
7
7
|
intent: Schema.NullOr(Schema.String),
|
|
8
|
-
memberCount: Schema.
|
|
8
|
+
memberCount: Schema.Finite,
|
|
9
9
|
name: Schema.NullOr(Schema.String),
|
|
10
|
-
quorum: Schema.
|
|
10
|
+
quorum: Schema.Finite
|
|
11
11
|
});
|
|
12
12
|
const GroupMemberSchema = Schema.Struct({
|
|
13
13
|
email: Schema.NullOr(Schema.String),
|
|
@@ -24,14 +24,14 @@ const GroupDetailsSchema = Schema.Struct({
|
|
|
24
24
|
intent: Schema.NullOr(Schema.String),
|
|
25
25
|
members: Schema.Array(GroupMemberSchema),
|
|
26
26
|
name: Schema.NullOr(Schema.String),
|
|
27
|
-
quorum: Schema.
|
|
27
|
+
quorum: Schema.Finite,
|
|
28
28
|
wallet: Schema.NullOr(GroupWalletSchema)
|
|
29
29
|
});
|
|
30
30
|
const CreateGroupParamsSchema = Schema.Struct({
|
|
31
31
|
intent: Schema.optional(Schema.String),
|
|
32
32
|
members: Schema.Array(Schema.String),
|
|
33
33
|
name: Schema.String,
|
|
34
|
-
quorum: Schema.
|
|
34
|
+
quorum: Schema.Finite
|
|
35
35
|
});
|
|
36
36
|
const CreateGroupResponseSchema = Schema.Struct({
|
|
37
37
|
groupId: Schema.String,
|
|
@@ -43,7 +43,7 @@ const ProposeMemberChangeParamsSchema = Schema.Struct({
|
|
|
43
43
|
email: Schema.String,
|
|
44
44
|
type: Schema.Literals(["add", "remove"])
|
|
45
45
|
});
|
|
46
|
-
const ProposeQuorumChangeParamsSchema = Schema.Struct({ quorum: Schema.
|
|
46
|
+
const ProposeQuorumChangeParamsSchema = Schema.Struct({ quorum: Schema.Finite });
|
|
47
47
|
const ProposalResponseSchema = Schema.Struct({
|
|
48
48
|
workflowId: Schema.String,
|
|
49
49
|
workflowRunId: Schema.String
|