@ottochain/sdk 1.0.3 → 1.1.0
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/cjs/generated/index.js +11 -1
- package/dist/cjs/metakit/drop-nulls.js +50 -0
- package/dist/cjs/metakit/normalize.js +147 -0
- package/dist/cjs/ottochain/metagraph-client.js +147 -0
- package/dist/cjs/validation.js +1 -1
- package/dist/esm/generated/index.js +11 -1
- package/dist/esm/metakit/drop-nulls.js +46 -0
- package/dist/esm/metakit/normalize.js +140 -0
- package/dist/esm/ottochain/metagraph-client.js +147 -0
- package/dist/esm/validation.js +1 -1
- package/dist/types/generated/index.d.ts +11 -1
- package/dist/types/metakit/drop-nulls.d.ts +29 -0
- package/dist/types/metakit/normalize.d.ts +67 -0
- package/dist/types/ottochain/index.d.ts +1 -1
- package/dist/types/ottochain/metagraph-client.d.ts +90 -0
- package/package.json +12 -12
- package/dist/apps/contracts/index.d.ts +0 -21
- package/dist/apps/contracts/index.js +0 -39
- package/dist/apps/contracts/types.d.ts +0 -24
- package/dist/apps/contracts/types.js +0 -48
- package/dist/apps/identity/index.d.ts +0 -22
- package/dist/apps/identity/index.js +0 -40
- package/dist/apps/identity/types.d.ts +0 -30
- package/dist/apps/identity/types.js +0 -53
- package/dist/apps/index.d.ts +0 -29
- package/dist/apps/index.js +0 -60
- package/dist/apps/markets/index.d.ts +0 -26
- package/dist/apps/markets/index.js +0 -46
- package/dist/apps/markets/types.d.ts +0 -185
- package/dist/apps/markets/types.js +0 -252
- package/dist/apps/oracles/index.d.ts +0 -26
- package/dist/apps/oracles/index.js +0 -46
- package/dist/apps/oracles/types.d.ts +0 -211
- package/dist/apps/oracles/types.js +0 -306
- package/dist/cjs/apps/contracts/types.js +0 -48
- package/dist/cjs/apps/corporate/types.js +0 -44
- package/dist/cjs/apps/governance/types.js +0 -42
- package/dist/cjs/apps/identity/types.js +0 -53
- package/dist/cjs/apps/markets/types.js +0 -219
- package/dist/cjs/apps/oracles/types.js +0 -282
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -392
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance_pb.js +0 -235
- package/dist/cjs/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
- package/dist/cjs/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
- package/dist/cjs/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
- package/dist/cjs/generated/ottochain/v1/common_pb.js +0 -37
- package/dist/cjs/generated/ottochain/v1/fiber_pb.js +0 -86
- package/dist/cjs/generated/ottochain/v1/messages_pb.js +0 -44
- package/dist/cjs/generated/ottochain/v1/records_pb.js +0 -44
- package/dist/errors.d.ts +0 -221
- package/dist/errors.js +0 -293
- package/dist/esm/apps/contracts/types.js +0 -44
- package/dist/esm/apps/corporate/types.js +0 -38
- package/dist/esm/apps/governance/types.js +0 -35
- package/dist/esm/apps/identity/types.js +0 -50
- package/dist/esm/apps/markets/types.js +0 -206
- package/dist/esm/apps/oracles/types.js +0 -267
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -97
- package/dist/esm/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -389
- package/dist/esm/generated/ottochain/apps/governance/v1/governance_pb.js +0 -232
- package/dist/esm/generated/ottochain/apps/identity/v1/agent_pb.js +0 -113
- package/dist/esm/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -76
- package/dist/esm/generated/ottochain/apps/markets/v1/market_pb.js +0 -148
- package/dist/esm/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -106
- package/dist/esm/generated/ottochain/v1/common_pb.js +0 -34
- package/dist/esm/generated/ottochain/v1/fiber_pb.js +0 -83
- package/dist/esm/generated/ottochain/v1/messages_pb.js +0 -41
- package/dist/esm/generated/ottochain/v1/records_pb.js +0 -41
- package/dist/generated/index.d.ts +0 -15
- package/dist/generated/index.js +0 -34
- package/dist/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
- package/dist/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
- package/dist/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
- package/dist/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
- package/dist/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
- package/dist/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
- package/dist/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
- package/dist/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
- package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
- package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
- package/dist/generated/ottochain/v1/common_pb.d.ts +0 -86
- package/dist/generated/ottochain/v1/common_pb.js +0 -37
- package/dist/generated/ottochain/v1/fiber_pb.d.ts +0 -292
- package/dist/generated/ottochain/v1/fiber_pb.js +0 -86
- package/dist/generated/ottochain/v1/messages_pb.d.ts +0 -190
- package/dist/generated/ottochain/v1/messages_pb.js +0 -44
- package/dist/generated/ottochain/v1/records_pb.d.ts +0 -221
- package/dist/generated/ottochain/v1/records_pb.js +0 -44
- package/dist/index.d.ts +0 -21
- package/dist/index.js +0 -77
- package/dist/metakit/binary.d.ts +0 -38
- package/dist/metakit/binary.js +0 -58
- package/dist/metakit/canonicalize.d.ts +0 -26
- package/dist/metakit/canonicalize.js +0 -40
- package/dist/metakit/codec.d.ts +0 -16
- package/dist/metakit/codec.js +0 -45
- package/dist/metakit/currency-transaction.d.ts +0 -157
- package/dist/metakit/currency-transaction.js +0 -319
- package/dist/metakit/currency-types.d.ts +0 -55
- package/dist/metakit/currency-types.js +0 -13
- package/dist/metakit/hash.d.ts +0 -50
- package/dist/metakit/hash.js +0 -84
- package/dist/metakit/index.d.ts +0 -23
- package/dist/metakit/index.js +0 -74
- package/dist/metakit/network/client.d.ts +0 -23
- package/dist/metakit/network/client.js +0 -78
- package/dist/metakit/network/currency-l1-client.d.ts +0 -71
- package/dist/metakit/network/currency-l1-client.js +0 -101
- package/dist/metakit/network/data-l1-client.d.ts +0 -57
- package/dist/metakit/network/data-l1-client.js +0 -76
- package/dist/metakit/network/index.d.ts +0 -10
- package/dist/metakit/network/index.js +0 -16
- package/dist/metakit/network/types.d.ts +0 -74
- package/dist/metakit/network/types.js +0 -20
- package/dist/metakit/sign.d.ts +0 -65
- package/dist/metakit/sign.js +0 -120
- package/dist/metakit/signed-object.d.ts +0 -66
- package/dist/metakit/signed-object.js +0 -100
- package/dist/metakit/types.d.ts +0 -67
- package/dist/metakit/types.js +0 -14
- package/dist/metakit/verify.d.ts +0 -55
- package/dist/metakit/verify.js +0 -217
- package/dist/metakit/wallet.d.ts +0 -70
- package/dist/metakit/wallet.js +0 -127
- package/dist/ottochain/index.d.ts +0 -13
- package/dist/ottochain/index.js +0 -45
- package/dist/ottochain/metagraph-client.d.ts +0 -111
- package/dist/ottochain/metagraph-client.js +0 -157
- package/dist/ottochain/snapshot.d.ts +0 -86
- package/dist/ottochain/snapshot.js +0 -110
- package/dist/ottochain/types.d.ts +0 -278
- package/dist/ottochain/types.js +0 -11
- package/dist/types/apps/contracts/types.d.ts +0 -24
- package/dist/types/apps/corporate/types.d.ts +0 -9861
- package/dist/types/apps/governance/types.d.ts +0 -344
- package/dist/types/apps/identity/types.d.ts +0 -30
- package/dist/types/apps/markets/types.d.ts +0 -155
- package/dist/types/apps/oracles/types.d.ts +0 -193
- package/dist/types/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
- package/dist/types/generated/ottochain/apps/corporate/v1/corporate_pb.d.ts +0 -1172
- package/dist/types/generated/ottochain/apps/governance/v1/governance_pb.d.ts +0 -772
- package/dist/types/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
- package/dist/types/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
- package/dist/types/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
- package/dist/types/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
- package/dist/types/generated/ottochain/v1/common_pb.d.ts +0 -86
- package/dist/types/generated/ottochain/v1/fiber_pb.d.ts +0 -292
- package/dist/types/generated/ottochain/v1/messages_pb.d.ts +0 -190
- package/dist/types/generated/ottochain/v1/records_pb.d.ts +0 -221
- package/dist/validation.d.ts +0 -449
- package/dist/validation.js +0 -312
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { Address, FiberOrdinal, SnapshotOrdinal, StateId } from "./common_pb.js";
|
|
3
|
-
import type { Value } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
5
|
-
/**
|
|
6
|
-
* Describes the file ottochain/v1/fiber.proto.
|
|
7
|
-
*/
|
|
8
|
-
export declare const file_ottochain_v1_fiber: GenFile;
|
|
9
|
-
/**
|
|
10
|
-
* Access control policy for scripts
|
|
11
|
-
*
|
|
12
|
-
* @generated from message ottochain.v1.AccessControlPolicy
|
|
13
|
-
*/
|
|
14
|
-
export type AccessControlPolicy = Message<"ottochain.v1.AccessControlPolicy"> & {
|
|
15
|
-
/**
|
|
16
|
-
* @generated from oneof ottochain.v1.AccessControlPolicy.policy
|
|
17
|
-
*/
|
|
18
|
-
policy: {
|
|
19
|
-
/**
|
|
20
|
-
* @generated from field: ottochain.v1.PublicAccess public = 1;
|
|
21
|
-
*/
|
|
22
|
-
value: PublicAccess;
|
|
23
|
-
case: "public";
|
|
24
|
-
} | {
|
|
25
|
-
/**
|
|
26
|
-
* @generated from field: ottochain.v1.WhitelistAccess whitelist = 2;
|
|
27
|
-
*/
|
|
28
|
-
value: WhitelistAccess;
|
|
29
|
-
case: "whitelist";
|
|
30
|
-
} | {
|
|
31
|
-
/**
|
|
32
|
-
* @generated from field: ottochain.v1.FiberOwnedAccess fiber_owned = 3;
|
|
33
|
-
*/
|
|
34
|
-
value: FiberOwnedAccess;
|
|
35
|
-
case: "fiberOwned";
|
|
36
|
-
} | {
|
|
37
|
-
case: undefined;
|
|
38
|
-
value?: undefined;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Describes the message ottochain.v1.AccessControlPolicy.
|
|
43
|
-
* Use `create(AccessControlPolicySchema)` to create a new message.
|
|
44
|
-
*/
|
|
45
|
-
export declare const AccessControlPolicySchema: GenMessage<AccessControlPolicy>;
|
|
46
|
-
/**
|
|
47
|
-
* @generated from message ottochain.v1.PublicAccess
|
|
48
|
-
*/
|
|
49
|
-
export type PublicAccess = Message<"ottochain.v1.PublicAccess"> & {};
|
|
50
|
-
/**
|
|
51
|
-
* Describes the message ottochain.v1.PublicAccess.
|
|
52
|
-
* Use `create(PublicAccessSchema)` to create a new message.
|
|
53
|
-
*/
|
|
54
|
-
export declare const PublicAccessSchema: GenMessage<PublicAccess>;
|
|
55
|
-
/**
|
|
56
|
-
* @generated from message ottochain.v1.WhitelistAccess
|
|
57
|
-
*/
|
|
58
|
-
export type WhitelistAccess = Message<"ottochain.v1.WhitelistAccess"> & {
|
|
59
|
-
/**
|
|
60
|
-
* @generated from field: repeated ottochain.v1.Address addresses = 1;
|
|
61
|
-
*/
|
|
62
|
-
addresses: Address[];
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Describes the message ottochain.v1.WhitelistAccess.
|
|
66
|
-
* Use `create(WhitelistAccessSchema)` to create a new message.
|
|
67
|
-
*/
|
|
68
|
-
export declare const WhitelistAccessSchema: GenMessage<WhitelistAccess>;
|
|
69
|
-
/**
|
|
70
|
-
* @generated from message ottochain.v1.FiberOwnedAccess
|
|
71
|
-
*/
|
|
72
|
-
export type FiberOwnedAccess = Message<"ottochain.v1.FiberOwnedAccess"> & {
|
|
73
|
-
/**
|
|
74
|
-
* @generated from field: string fiber_id = 1;
|
|
75
|
-
*/
|
|
76
|
-
fiberId: string;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Describes the message ottochain.v1.FiberOwnedAccess.
|
|
80
|
-
* Use `create(FiberOwnedAccessSchema)` to create a new message.
|
|
81
|
-
*/
|
|
82
|
-
export declare const FiberOwnedAccessSchema: GenMessage<FiberOwnedAccess>;
|
|
83
|
-
/**
|
|
84
|
-
* State machine definition
|
|
85
|
-
*
|
|
86
|
-
* @generated from message ottochain.v1.StateMachineDefinition
|
|
87
|
-
*/
|
|
88
|
-
export type StateMachineDefinition = Message<"ottochain.v1.StateMachineDefinition"> & {
|
|
89
|
-
/**
|
|
90
|
-
* @generated from field: google.protobuf.Struct states = 1;
|
|
91
|
-
*/
|
|
92
|
-
states?: JsonObject;
|
|
93
|
-
/**
|
|
94
|
-
* @generated from field: ottochain.v1.StateId initial_state = 2;
|
|
95
|
-
*/
|
|
96
|
-
initialState?: StateId;
|
|
97
|
-
/**
|
|
98
|
-
* @generated from field: repeated google.protobuf.Struct transitions = 3;
|
|
99
|
-
*/
|
|
100
|
-
transitions: JsonObject[];
|
|
101
|
-
/**
|
|
102
|
-
* @generated from field: optional google.protobuf.Struct metadata = 4;
|
|
103
|
-
*/
|
|
104
|
-
metadata?: JsonObject;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* Describes the message ottochain.v1.StateMachineDefinition.
|
|
108
|
-
* Use `create(StateMachineDefinitionSchema)` to create a new message.
|
|
109
|
-
*/
|
|
110
|
-
export declare const StateMachineDefinitionSchema: GenMessage<StateMachineDefinition>;
|
|
111
|
-
/**
|
|
112
|
-
* Emitted event from state machine transition
|
|
113
|
-
*
|
|
114
|
-
* @generated from message ottochain.v1.EmittedEvent
|
|
115
|
-
*/
|
|
116
|
-
export type EmittedEvent = Message<"ottochain.v1.EmittedEvent"> & {
|
|
117
|
-
/**
|
|
118
|
-
* @generated from field: string name = 1;
|
|
119
|
-
*/
|
|
120
|
-
name: string;
|
|
121
|
-
/**
|
|
122
|
-
* @generated from field: google.protobuf.Value data = 2;
|
|
123
|
-
*/
|
|
124
|
-
data?: Value;
|
|
125
|
-
/**
|
|
126
|
-
* @generated from field: optional string destination = 3;
|
|
127
|
-
*/
|
|
128
|
-
destination?: string;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Describes the message ottochain.v1.EmittedEvent.
|
|
132
|
-
* Use `create(EmittedEventSchema)` to create a new message.
|
|
133
|
-
*/
|
|
134
|
-
export declare const EmittedEventSchema: GenMessage<EmittedEvent>;
|
|
135
|
-
/**
|
|
136
|
-
* Event receipt - log entry for state machine transition
|
|
137
|
-
*
|
|
138
|
-
* @generated from message ottochain.v1.EventReceipt
|
|
139
|
-
*/
|
|
140
|
-
export type EventReceipt = Message<"ottochain.v1.EventReceipt"> & {
|
|
141
|
-
/**
|
|
142
|
-
* @generated from field: string fiber_id = 1;
|
|
143
|
-
*/
|
|
144
|
-
fiberId: string;
|
|
145
|
-
/**
|
|
146
|
-
* @generated from field: ottochain.v1.FiberOrdinal sequence_number = 2;
|
|
147
|
-
*/
|
|
148
|
-
sequenceNumber?: FiberOrdinal;
|
|
149
|
-
/**
|
|
150
|
-
* @generated from field: string event_name = 3;
|
|
151
|
-
*/
|
|
152
|
-
eventName: string;
|
|
153
|
-
/**
|
|
154
|
-
* @generated from field: ottochain.v1.SnapshotOrdinal ordinal = 4;
|
|
155
|
-
*/
|
|
156
|
-
ordinal?: SnapshotOrdinal;
|
|
157
|
-
/**
|
|
158
|
-
* @generated from field: ottochain.v1.StateId from_state = 5;
|
|
159
|
-
*/
|
|
160
|
-
fromState?: StateId;
|
|
161
|
-
/**
|
|
162
|
-
* @generated from field: ottochain.v1.StateId to_state = 6;
|
|
163
|
-
*/
|
|
164
|
-
toState?: StateId;
|
|
165
|
-
/**
|
|
166
|
-
* @generated from field: bool success = 7;
|
|
167
|
-
*/
|
|
168
|
-
success: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* @generated from field: int64 gas_used = 8;
|
|
171
|
-
*/
|
|
172
|
-
gasUsed: bigint;
|
|
173
|
-
/**
|
|
174
|
-
* @generated from field: int32 triggers_fired = 9;
|
|
175
|
-
*/
|
|
176
|
-
triggersFired: number;
|
|
177
|
-
/**
|
|
178
|
-
* @generated from field: optional string error_message = 10;
|
|
179
|
-
*/
|
|
180
|
-
errorMessage?: string;
|
|
181
|
-
/**
|
|
182
|
-
* @generated from field: optional string source_fiber_id = 11;
|
|
183
|
-
*/
|
|
184
|
-
sourceFiberId?: string;
|
|
185
|
-
/**
|
|
186
|
-
* @generated from field: repeated ottochain.v1.EmittedEvent emitted_events = 12;
|
|
187
|
-
*/
|
|
188
|
-
emittedEvents: EmittedEvent[];
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* Describes the message ottochain.v1.EventReceipt.
|
|
192
|
-
* Use `create(EventReceiptSchema)` to create a new message.
|
|
193
|
-
*/
|
|
194
|
-
export declare const EventReceiptSchema: GenMessage<EventReceipt>;
|
|
195
|
-
/**
|
|
196
|
-
* Script invocation - log entry for script oracle call
|
|
197
|
-
*
|
|
198
|
-
* @generated from message ottochain.v1.ScriptInvocation
|
|
199
|
-
*/
|
|
200
|
-
export type ScriptInvocation = Message<"ottochain.v1.ScriptInvocation"> & {
|
|
201
|
-
/**
|
|
202
|
-
* @generated from field: string fiber_id = 1;
|
|
203
|
-
*/
|
|
204
|
-
fiberId: string;
|
|
205
|
-
/**
|
|
206
|
-
* @generated from field: string method = 2;
|
|
207
|
-
*/
|
|
208
|
-
method: string;
|
|
209
|
-
/**
|
|
210
|
-
* @generated from field: google.protobuf.Value args = 3;
|
|
211
|
-
*/
|
|
212
|
-
args?: Value;
|
|
213
|
-
/**
|
|
214
|
-
* @generated from field: google.protobuf.Value result = 4;
|
|
215
|
-
*/
|
|
216
|
-
result?: Value;
|
|
217
|
-
/**
|
|
218
|
-
* @generated from field: int64 gas_used = 5;
|
|
219
|
-
*/
|
|
220
|
-
gasUsed: bigint;
|
|
221
|
-
/**
|
|
222
|
-
* @generated from field: ottochain.v1.SnapshotOrdinal invoked_at = 6;
|
|
223
|
-
*/
|
|
224
|
-
invokedAt?: SnapshotOrdinal;
|
|
225
|
-
/**
|
|
226
|
-
* @generated from field: ottochain.v1.Address invoked_by = 7;
|
|
227
|
-
*/
|
|
228
|
-
invokedBy?: Address;
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Describes the message ottochain.v1.ScriptInvocation.
|
|
232
|
-
* Use `create(ScriptInvocationSchema)` to create a new message.
|
|
233
|
-
*/
|
|
234
|
-
export declare const ScriptInvocationSchema: GenMessage<ScriptInvocation>;
|
|
235
|
-
/**
|
|
236
|
-
* Fiber log entry - union of event receipt or script invocation
|
|
237
|
-
*
|
|
238
|
-
* @generated from message ottochain.v1.FiberLogEntry
|
|
239
|
-
*/
|
|
240
|
-
export type FiberLogEntry = Message<"ottochain.v1.FiberLogEntry"> & {
|
|
241
|
-
/**
|
|
242
|
-
* @generated from oneof ottochain.v1.FiberLogEntry.entry
|
|
243
|
-
*/
|
|
244
|
-
entry: {
|
|
245
|
-
/**
|
|
246
|
-
* @generated from field: ottochain.v1.EventReceipt event_receipt = 1;
|
|
247
|
-
*/
|
|
248
|
-
value: EventReceipt;
|
|
249
|
-
case: "eventReceipt";
|
|
250
|
-
} | {
|
|
251
|
-
/**
|
|
252
|
-
* @generated from field: ottochain.v1.ScriptInvocation script_invocation = 2;
|
|
253
|
-
*/
|
|
254
|
-
value: ScriptInvocation;
|
|
255
|
-
case: "scriptInvocation";
|
|
256
|
-
} | {
|
|
257
|
-
case: undefined;
|
|
258
|
-
value?: undefined;
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
/**
|
|
262
|
-
* Describes the message ottochain.v1.FiberLogEntry.
|
|
263
|
-
* Use `create(FiberLogEntrySchema)` to create a new message.
|
|
264
|
-
*/
|
|
265
|
-
export declare const FiberLogEntrySchema: GenMessage<FiberLogEntry>;
|
|
266
|
-
/**
|
|
267
|
-
* Fiber lifecycle status
|
|
268
|
-
*
|
|
269
|
-
* @generated from enum ottochain.v1.FiberStatus
|
|
270
|
-
*/
|
|
271
|
-
export declare enum FiberStatus {
|
|
272
|
-
/**
|
|
273
|
-
* @generated from enum value: FIBER_STATUS_UNSPECIFIED = 0;
|
|
274
|
-
*/
|
|
275
|
-
UNSPECIFIED = 0,
|
|
276
|
-
/**
|
|
277
|
-
* @generated from enum value: FIBER_STATUS_ACTIVE = 1;
|
|
278
|
-
*/
|
|
279
|
-
ACTIVE = 1,
|
|
280
|
-
/**
|
|
281
|
-
* @generated from enum value: FIBER_STATUS_ARCHIVED = 2;
|
|
282
|
-
*/
|
|
283
|
-
ARCHIVED = 2,
|
|
284
|
-
/**
|
|
285
|
-
* @generated from enum value: FIBER_STATUS_FAILED = 3;
|
|
286
|
-
*/
|
|
287
|
-
FAILED = 3
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Describes the enum ottochain.v1.FiberStatus.
|
|
291
|
-
*/
|
|
292
|
-
export declare const FiberStatusSchema: GenEnum<FiberStatus>;
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { FiberOrdinal } from "./common_pb.js";
|
|
3
|
-
import type { AccessControlPolicy, StateMachineDefinition } from "./fiber_pb.js";
|
|
4
|
-
import type { Value } from "@bufbuild/protobuf/wkt";
|
|
5
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
-
/**
|
|
7
|
-
* Describes the file ottochain/v1/messages.proto.
|
|
8
|
-
*/
|
|
9
|
-
export declare const file_ottochain_v1_messages: GenFile;
|
|
10
|
-
/**
|
|
11
|
-
* Create a new state machine fiber
|
|
12
|
-
*
|
|
13
|
-
* @generated from message ottochain.v1.CreateStateMachine
|
|
14
|
-
*/
|
|
15
|
-
export type CreateStateMachine = Message<"ottochain.v1.CreateStateMachine"> & {
|
|
16
|
-
/**
|
|
17
|
-
* @generated from field: string fiber_id = 1;
|
|
18
|
-
*/
|
|
19
|
-
fiberId: string;
|
|
20
|
-
/**
|
|
21
|
-
* @generated from field: ottochain.v1.StateMachineDefinition definition = 2;
|
|
22
|
-
*/
|
|
23
|
-
definition?: StateMachineDefinition;
|
|
24
|
-
/**
|
|
25
|
-
* @generated from field: google.protobuf.Value initial_data = 3;
|
|
26
|
-
*/
|
|
27
|
-
initialData?: Value;
|
|
28
|
-
/**
|
|
29
|
-
* @generated from field: optional string parent_fiber_id = 4;
|
|
30
|
-
*/
|
|
31
|
-
parentFiberId?: string;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Describes the message ottochain.v1.CreateStateMachine.
|
|
35
|
-
* Use `create(CreateStateMachineSchema)` to create a new message.
|
|
36
|
-
*/
|
|
37
|
-
export declare const CreateStateMachineSchema: GenMessage<CreateStateMachine>;
|
|
38
|
-
/**
|
|
39
|
-
* Trigger a state machine transition
|
|
40
|
-
*
|
|
41
|
-
* @generated from message ottochain.v1.TransitionStateMachine
|
|
42
|
-
*/
|
|
43
|
-
export type TransitionStateMachine = Message<"ottochain.v1.TransitionStateMachine"> & {
|
|
44
|
-
/**
|
|
45
|
-
* @generated from field: string fiber_id = 1;
|
|
46
|
-
*/
|
|
47
|
-
fiberId: string;
|
|
48
|
-
/**
|
|
49
|
-
* @generated from field: string event_name = 2;
|
|
50
|
-
*/
|
|
51
|
-
eventName: string;
|
|
52
|
-
/**
|
|
53
|
-
* @generated from field: google.protobuf.Value payload = 3;
|
|
54
|
-
*/
|
|
55
|
-
payload?: Value;
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: ottochain.v1.FiberOrdinal target_sequence_number = 4;
|
|
58
|
-
*/
|
|
59
|
-
targetSequenceNumber?: FiberOrdinal;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Describes the message ottochain.v1.TransitionStateMachine.
|
|
63
|
-
* Use `create(TransitionStateMachineSchema)` to create a new message.
|
|
64
|
-
*/
|
|
65
|
-
export declare const TransitionStateMachineSchema: GenMessage<TransitionStateMachine>;
|
|
66
|
-
/**
|
|
67
|
-
* Archive a state machine fiber
|
|
68
|
-
*
|
|
69
|
-
* @generated from message ottochain.v1.ArchiveStateMachine
|
|
70
|
-
*/
|
|
71
|
-
export type ArchiveStateMachine = Message<"ottochain.v1.ArchiveStateMachine"> & {
|
|
72
|
-
/**
|
|
73
|
-
* @generated from field: string fiber_id = 1;
|
|
74
|
-
*/
|
|
75
|
-
fiberId: string;
|
|
76
|
-
/**
|
|
77
|
-
* @generated from field: ottochain.v1.FiberOrdinal target_sequence_number = 2;
|
|
78
|
-
*/
|
|
79
|
-
targetSequenceNumber?: FiberOrdinal;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Describes the message ottochain.v1.ArchiveStateMachine.
|
|
83
|
-
* Use `create(ArchiveStateMachineSchema)` to create a new message.
|
|
84
|
-
*/
|
|
85
|
-
export declare const ArchiveStateMachineSchema: GenMessage<ArchiveStateMachine>;
|
|
86
|
-
/**
|
|
87
|
-
* Create a new script fiber
|
|
88
|
-
*
|
|
89
|
-
* @generated from message ottochain.v1.CreateScript
|
|
90
|
-
*/
|
|
91
|
-
export type CreateScript = Message<"ottochain.v1.CreateScript"> & {
|
|
92
|
-
/**
|
|
93
|
-
* @generated from field: string fiber_id = 1;
|
|
94
|
-
*/
|
|
95
|
-
fiberId: string;
|
|
96
|
-
/**
|
|
97
|
-
* @generated from field: google.protobuf.Value script_program = 2;
|
|
98
|
-
*/
|
|
99
|
-
scriptProgram?: Value;
|
|
100
|
-
/**
|
|
101
|
-
* @generated from field: optional google.protobuf.Value initial_state = 3;
|
|
102
|
-
*/
|
|
103
|
-
initialState?: Value;
|
|
104
|
-
/**
|
|
105
|
-
* @generated from field: ottochain.v1.AccessControlPolicy access_control = 4;
|
|
106
|
-
*/
|
|
107
|
-
accessControl?: AccessControlPolicy;
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* Describes the message ottochain.v1.CreateScript.
|
|
111
|
-
* Use `create(CreateScriptSchema)` to create a new message.
|
|
112
|
-
*/
|
|
113
|
-
export declare const CreateScriptSchema: GenMessage<CreateScript>;
|
|
114
|
-
/**
|
|
115
|
-
* Invoke a script
|
|
116
|
-
*
|
|
117
|
-
* @generated from message ottochain.v1.InvokeScript
|
|
118
|
-
*/
|
|
119
|
-
export type InvokeScript = Message<"ottochain.v1.InvokeScript"> & {
|
|
120
|
-
/**
|
|
121
|
-
* @generated from field: string fiber_id = 1;
|
|
122
|
-
*/
|
|
123
|
-
fiberId: string;
|
|
124
|
-
/**
|
|
125
|
-
* @generated from field: string method = 2;
|
|
126
|
-
*/
|
|
127
|
-
method: string;
|
|
128
|
-
/**
|
|
129
|
-
* @generated from field: google.protobuf.Value args = 3;
|
|
130
|
-
*/
|
|
131
|
-
args?: Value;
|
|
132
|
-
/**
|
|
133
|
-
* @generated from field: ottochain.v1.FiberOrdinal target_sequence_number = 4;
|
|
134
|
-
*/
|
|
135
|
-
targetSequenceNumber?: FiberOrdinal;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Describes the message ottochain.v1.InvokeScript.
|
|
139
|
-
* Use `create(InvokeScriptSchema)` to create a new message.
|
|
140
|
-
*/
|
|
141
|
-
export declare const InvokeScriptSchema: GenMessage<InvokeScript>;
|
|
142
|
-
/**
|
|
143
|
-
* Union message type for all OttoChain operations
|
|
144
|
-
*
|
|
145
|
-
* @generated from message ottochain.v1.OttochainMessage
|
|
146
|
-
*/
|
|
147
|
-
export type OttochainMessage = Message<"ottochain.v1.OttochainMessage"> & {
|
|
148
|
-
/**
|
|
149
|
-
* @generated from oneof ottochain.v1.OttochainMessage.message
|
|
150
|
-
*/
|
|
151
|
-
message: {
|
|
152
|
-
/**
|
|
153
|
-
* @generated from field: ottochain.v1.CreateStateMachine create_state_machine = 1;
|
|
154
|
-
*/
|
|
155
|
-
value: CreateStateMachine;
|
|
156
|
-
case: "createStateMachine";
|
|
157
|
-
} | {
|
|
158
|
-
/**
|
|
159
|
-
* @generated from field: ottochain.v1.TransitionStateMachine transition_state_machine = 2;
|
|
160
|
-
*/
|
|
161
|
-
value: TransitionStateMachine;
|
|
162
|
-
case: "transitionStateMachine";
|
|
163
|
-
} | {
|
|
164
|
-
/**
|
|
165
|
-
* @generated from field: ottochain.v1.ArchiveStateMachine archive_state_machine = 3;
|
|
166
|
-
*/
|
|
167
|
-
value: ArchiveStateMachine;
|
|
168
|
-
case: "archiveStateMachine";
|
|
169
|
-
} | {
|
|
170
|
-
/**
|
|
171
|
-
* @generated from field: ottochain.v1.CreateScript create_script = 4;
|
|
172
|
-
*/
|
|
173
|
-
value: CreateScript;
|
|
174
|
-
case: "createScript";
|
|
175
|
-
} | {
|
|
176
|
-
/**
|
|
177
|
-
* @generated from field: ottochain.v1.InvokeScript invoke_script = 5;
|
|
178
|
-
*/
|
|
179
|
-
value: InvokeScript;
|
|
180
|
-
case: "invokeScript";
|
|
181
|
-
} | {
|
|
182
|
-
case: undefined;
|
|
183
|
-
value?: undefined;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Describes the message ottochain.v1.OttochainMessage.
|
|
188
|
-
* Use `create(OttochainMessageSchema)` to create a new message.
|
|
189
|
-
*/
|
|
190
|
-
export declare const OttochainMessageSchema: GenMessage<OttochainMessage>;
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { Address, FiberOrdinal, HashValue, SnapshotOrdinal, StateId } from "./common_pb.js";
|
|
3
|
-
import type { AccessControlPolicy, EventReceipt, FiberLogEntry, FiberStatus, ScriptInvocation, StateMachineDefinition } from "./fiber_pb.js";
|
|
4
|
-
import type { Value } from "@bufbuild/protobuf/wkt";
|
|
5
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
-
/**
|
|
7
|
-
* Describes the file ottochain/v1/records.proto.
|
|
8
|
-
*/
|
|
9
|
-
export declare const file_ottochain_v1_records: GenFile;
|
|
10
|
-
/**
|
|
11
|
-
* State machine fiber record - on-chain representation
|
|
12
|
-
*
|
|
13
|
-
* @generated from message ottochain.v1.StateMachineFiberRecord
|
|
14
|
-
*/
|
|
15
|
-
export type StateMachineFiberRecord = Message<"ottochain.v1.StateMachineFiberRecord"> & {
|
|
16
|
-
/**
|
|
17
|
-
* @generated from field: string fiber_id = 1;
|
|
18
|
-
*/
|
|
19
|
-
fiberId: string;
|
|
20
|
-
/**
|
|
21
|
-
* @generated from field: ottochain.v1.SnapshotOrdinal creation_ordinal = 2;
|
|
22
|
-
*/
|
|
23
|
-
creationOrdinal?: SnapshotOrdinal;
|
|
24
|
-
/**
|
|
25
|
-
* @generated from field: ottochain.v1.SnapshotOrdinal previous_update_ordinal = 3;
|
|
26
|
-
*/
|
|
27
|
-
previousUpdateOrdinal?: SnapshotOrdinal;
|
|
28
|
-
/**
|
|
29
|
-
* @generated from field: ottochain.v1.SnapshotOrdinal latest_update_ordinal = 4;
|
|
30
|
-
*/
|
|
31
|
-
latestUpdateOrdinal?: SnapshotOrdinal;
|
|
32
|
-
/**
|
|
33
|
-
* @generated from field: ottochain.v1.StateMachineDefinition definition = 5;
|
|
34
|
-
*/
|
|
35
|
-
definition?: StateMachineDefinition;
|
|
36
|
-
/**
|
|
37
|
-
* @generated from field: ottochain.v1.StateId current_state = 6;
|
|
38
|
-
*/
|
|
39
|
-
currentState?: StateId;
|
|
40
|
-
/**
|
|
41
|
-
* @generated from field: google.protobuf.Value state_data = 7;
|
|
42
|
-
*/
|
|
43
|
-
stateData?: Value;
|
|
44
|
-
/**
|
|
45
|
-
* @generated from field: ottochain.v1.HashValue state_data_hash = 8;
|
|
46
|
-
*/
|
|
47
|
-
stateDataHash?: HashValue;
|
|
48
|
-
/**
|
|
49
|
-
* @generated from field: ottochain.v1.FiberOrdinal sequence_number = 9;
|
|
50
|
-
*/
|
|
51
|
-
sequenceNumber?: FiberOrdinal;
|
|
52
|
-
/**
|
|
53
|
-
* @generated from field: repeated ottochain.v1.Address owners = 10;
|
|
54
|
-
*/
|
|
55
|
-
owners: Address[];
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: ottochain.v1.FiberStatus status = 11;
|
|
58
|
-
*/
|
|
59
|
-
status: FiberStatus;
|
|
60
|
-
/**
|
|
61
|
-
* @generated from field: optional ottochain.v1.EventReceipt last_receipt = 12;
|
|
62
|
-
*/
|
|
63
|
-
lastReceipt?: EventReceipt;
|
|
64
|
-
/**
|
|
65
|
-
* @generated from field: optional string parent_fiber_id = 13;
|
|
66
|
-
*/
|
|
67
|
-
parentFiberId?: string;
|
|
68
|
-
/**
|
|
69
|
-
* @generated from field: repeated string child_fiber_ids = 14;
|
|
70
|
-
*/
|
|
71
|
-
childFiberIds: string[];
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Describes the message ottochain.v1.StateMachineFiberRecord.
|
|
75
|
-
* Use `create(StateMachineFiberRecordSchema)` to create a new message.
|
|
76
|
-
*/
|
|
77
|
-
export declare const StateMachineFiberRecordSchema: GenMessage<StateMachineFiberRecord>;
|
|
78
|
-
/**
|
|
79
|
-
* Script fiber record - on-chain representation
|
|
80
|
-
*
|
|
81
|
-
* @generated from message ottochain.v1.ScriptFiberRecord
|
|
82
|
-
*/
|
|
83
|
-
export type ScriptFiberRecord = Message<"ottochain.v1.ScriptFiberRecord"> & {
|
|
84
|
-
/**
|
|
85
|
-
* @generated from field: string fiber_id = 1;
|
|
86
|
-
*/
|
|
87
|
-
fiberId: string;
|
|
88
|
-
/**
|
|
89
|
-
* @generated from field: ottochain.v1.SnapshotOrdinal creation_ordinal = 2;
|
|
90
|
-
*/
|
|
91
|
-
creationOrdinal?: SnapshotOrdinal;
|
|
92
|
-
/**
|
|
93
|
-
* @generated from field: ottochain.v1.SnapshotOrdinal latest_update_ordinal = 3;
|
|
94
|
-
*/
|
|
95
|
-
latestUpdateOrdinal?: SnapshotOrdinal;
|
|
96
|
-
/**
|
|
97
|
-
* @generated from field: google.protobuf.Value script_program = 4;
|
|
98
|
-
*/
|
|
99
|
-
scriptProgram?: Value;
|
|
100
|
-
/**
|
|
101
|
-
* @generated from field: optional google.protobuf.Value state_data = 5;
|
|
102
|
-
*/
|
|
103
|
-
stateData?: Value;
|
|
104
|
-
/**
|
|
105
|
-
* @generated from field: optional ottochain.v1.HashValue state_data_hash = 6;
|
|
106
|
-
*/
|
|
107
|
-
stateDataHash?: HashValue;
|
|
108
|
-
/**
|
|
109
|
-
* @generated from field: ottochain.v1.AccessControlPolicy access_control = 7;
|
|
110
|
-
*/
|
|
111
|
-
accessControl?: AccessControlPolicy;
|
|
112
|
-
/**
|
|
113
|
-
* @generated from field: ottochain.v1.FiberOrdinal sequence_number = 8;
|
|
114
|
-
*/
|
|
115
|
-
sequenceNumber?: FiberOrdinal;
|
|
116
|
-
/**
|
|
117
|
-
* @generated from field: repeated ottochain.v1.Address owners = 9;
|
|
118
|
-
*/
|
|
119
|
-
owners: Address[];
|
|
120
|
-
/**
|
|
121
|
-
* @generated from field: ottochain.v1.FiberStatus status = 10;
|
|
122
|
-
*/
|
|
123
|
-
status: FiberStatus;
|
|
124
|
-
/**
|
|
125
|
-
* @generated from field: optional ottochain.v1.ScriptInvocation last_invocation = 11;
|
|
126
|
-
*/
|
|
127
|
-
lastInvocation?: ScriptInvocation;
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Describes the message ottochain.v1.ScriptFiberRecord.
|
|
131
|
-
* Use `create(ScriptFiberRecordSchema)` to create a new message.
|
|
132
|
-
*/
|
|
133
|
-
export declare const ScriptFiberRecordSchema: GenMessage<ScriptFiberRecord>;
|
|
134
|
-
/**
|
|
135
|
-
* Fiber commit - lightweight proof in on-chain state
|
|
136
|
-
*
|
|
137
|
-
* @generated from message ottochain.v1.FiberCommit
|
|
138
|
-
*/
|
|
139
|
-
export type FiberCommit = Message<"ottochain.v1.FiberCommit"> & {
|
|
140
|
-
/**
|
|
141
|
-
* @generated from field: ottochain.v1.HashValue record_hash = 1;
|
|
142
|
-
*/
|
|
143
|
-
recordHash?: HashValue;
|
|
144
|
-
/**
|
|
145
|
-
* @generated from field: optional ottochain.v1.HashValue state_data_hash = 2;
|
|
146
|
-
*/
|
|
147
|
-
stateDataHash?: HashValue;
|
|
148
|
-
/**
|
|
149
|
-
* @generated from field: ottochain.v1.FiberOrdinal sequence_number = 3;
|
|
150
|
-
*/
|
|
151
|
-
sequenceNumber?: FiberOrdinal;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Describes the message ottochain.v1.FiberCommit.
|
|
155
|
-
* Use `create(FiberCommitSchema)` to create a new message.
|
|
156
|
-
*/
|
|
157
|
-
export declare const FiberCommitSchema: GenMessage<FiberCommit>;
|
|
158
|
-
/**
|
|
159
|
-
* On-chain state
|
|
160
|
-
*
|
|
161
|
-
* @generated from message ottochain.v1.OnChainState
|
|
162
|
-
*/
|
|
163
|
-
export type OnChainState = Message<"ottochain.v1.OnChainState"> & {
|
|
164
|
-
/**
|
|
165
|
-
* @generated from field: map<string, ottochain.v1.FiberCommit> fiber_commits = 1;
|
|
166
|
-
*/
|
|
167
|
-
fiberCommits: {
|
|
168
|
-
[key: string]: FiberCommit;
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* @generated from field: map<string, ottochain.v1.FiberLogEntryList> latest_logs = 2;
|
|
172
|
-
*/
|
|
173
|
-
latestLogs: {
|
|
174
|
-
[key: string]: FiberLogEntryList;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* Describes the message ottochain.v1.OnChainState.
|
|
179
|
-
* Use `create(OnChainStateSchema)` to create a new message.
|
|
180
|
-
*/
|
|
181
|
-
export declare const OnChainStateSchema: GenMessage<OnChainState>;
|
|
182
|
-
/**
|
|
183
|
-
* Helper for map of log entries
|
|
184
|
-
*
|
|
185
|
-
* @generated from message ottochain.v1.FiberLogEntryList
|
|
186
|
-
*/
|
|
187
|
-
export type FiberLogEntryList = Message<"ottochain.v1.FiberLogEntryList"> & {
|
|
188
|
-
/**
|
|
189
|
-
* @generated from field: repeated ottochain.v1.FiberLogEntry entries = 1;
|
|
190
|
-
*/
|
|
191
|
-
entries: FiberLogEntry[];
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Describes the message ottochain.v1.FiberLogEntryList.
|
|
195
|
-
* Use `create(FiberLogEntryListSchema)` to create a new message.
|
|
196
|
-
*/
|
|
197
|
-
export declare const FiberLogEntryListSchema: GenMessage<FiberLogEntryList>;
|
|
198
|
-
/**
|
|
199
|
-
* Calculated state - queryable via ML0 endpoints
|
|
200
|
-
*
|
|
201
|
-
* @generated from message ottochain.v1.CalculatedState
|
|
202
|
-
*/
|
|
203
|
-
export type CalculatedState = Message<"ottochain.v1.CalculatedState"> & {
|
|
204
|
-
/**
|
|
205
|
-
* @generated from field: map<string, ottochain.v1.StateMachineFiberRecord> state_machines = 1;
|
|
206
|
-
*/
|
|
207
|
-
stateMachines: {
|
|
208
|
-
[key: string]: StateMachineFiberRecord;
|
|
209
|
-
};
|
|
210
|
-
/**
|
|
211
|
-
* @generated from field: map<string, ottochain.v1.ScriptFiberRecord> scripts = 2;
|
|
212
|
-
*/
|
|
213
|
-
scripts: {
|
|
214
|
-
[key: string]: ScriptFiberRecord;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* Describes the message ottochain.v1.CalculatedState.
|
|
219
|
-
* Use `create(CalculatedStateSchema)` to create a new message.
|
|
220
|
-
*/
|
|
221
|
-
export declare const CalculatedStateSchema: GenMessage<CalculatedState>;
|