You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chain/indexer/tasktype/table_tasks.go
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ const (
24
24
ParsedMessage="parsed_message"
25
25
InternalMessage="internal_messages"
26
26
InternalParsedMessage="internal_parsed_messages"
27
+
VmMessage="vm_messages"
27
28
MultisigTransaction="multisig_transaction"
28
29
ChainPower="chain_power"
29
30
PowerActorClaim="power_actor_claim"
@@ -62,6 +63,7 @@ var AllTableTasks = []string{
62
63
ParsedMessage,
63
64
InternalMessage,
64
65
InternalParsedMessage,
66
+
VmMessage,
65
67
MultisigTransaction,
66
68
ChainPower,
67
69
PowerActorClaim,
@@ -100,6 +102,7 @@ var TableLookup = map[string]struct{}{
100
102
ParsedMessage: {},
101
103
InternalMessage: {},
102
104
InternalParsedMessage: {},
105
+
VmMessage: {},
103
106
MultisigTransaction: {},
104
107
ChainPower: {},
105
108
PowerActorClaim: {},
@@ -138,6 +141,7 @@ var TableComment = map[string]string{
138
141
ParsedMessage: ``,
139
142
InternalMessage: ``,
140
143
InternalParsedMessage: ``,
144
+
VmMessage: ``,
141
145
MultisigTransaction: ``,
142
146
ChainPower: ``,
143
147
PowerActorClaim: ``,
@@ -178,8 +182,9 @@ var TableFieldComments = map[string]map[string]string{
178
182
"DealID": "Identifier for the deal.",
179
183
"EndEpoch": "The epoch at which this deal with end.",
180
184
"Height": "Epoch at which this deal proposal was added or changed.",
185
+
"IsString": "When true Label contains a valid UTF-8 string encoded in base64. When false Label contains raw bytes encoded in base64. Related to FIP: https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0027.md",
181
186
"IsVerified": "Deal is with a verified provider.",
182
-
"Label": "An arbitrary client chosen label to apply to the deal.",
187
+
"Label": "An arbitrary client chosen label to apply to the deal. The value is base64 encoded before persisting.",
183
188
"PaddedPieceSize": "The piece size in bytes with padding.",
184
189
"PieceCID": "CID of a sector piece. A Piece is an object that represents a whole or part of a File.",
185
190
"ProviderCollateral": "The amount of FIL (in attoFIL) the provider has pledged as collateral. The Provider deal collateral is only slashed when a sector is terminated before the deal expires.",
@@ -197,6 +202,21 @@ var TableFieldComments = map[string]map[string]string{
197
202
ParsedMessage: {},
198
203
InternalMessage: {},
199
204
InternalParsedMessage: {},
205
+
VmMessage: {
206
+
"ActorCode": "ActorCode of To (receiver).",
207
+
"Cid": "Cid of the message.",
208
+
"ExitCode": "ExitCode of message execution.",
209
+
"From": "From sender of message.",
210
+
"GasUsed": "GasUsed by message.",
211
+
"Height": "Height message was executed at.",
212
+
"Method": "Method called on To (receiver).",
213
+
"Params": "Params contained in message.",
214
+
"Returns": "Return value of message.",
215
+
"Source": "On-chain message triggering the message.",
Copy file name to clipboardExpand all lines: model/actors/market/dealproposal.go
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,7 @@ type MarketDealProposal struct {
49
49
// An arbitrary client chosen label to apply to the deal. The value is base64 encoded before persisting.
50
50
Labelstring
51
51
52
-
// When true Label contains a valid UTF-8 string encoded in base64. When false Label contains raw bytes encoded in base64.
53
-
// Related to FIP: https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0027.md
52
+
// When true Label contains a valid UTF-8 string encoded in base64. When false Label contains raw bytes encoded in base64. Related to FIP: https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0027.md
ALTER TABLE ONLY {{ .SchemaName | default "public"}}.vm_messages ADD CONSTRAINT vm_messages_pkey PRIMARY KEY (height, state_root, cid, source);
23
+
CREATE INDEX vm_messages_height_idx ON {{ .SchemaName | default "public"}}.vm_messages USING BTREE (height);
24
+
CREATE INDEX vm_messages_from_idx ON {{ .SchemaName | default "public"}}.vm_messages USING HASH ("from");
25
+
CREATE INDEX vm_messages_to_idx ON {{ .SchemaName | default "public"}}.vm_messages USING HASH ("to");
26
+
CREATE INDEX vm_messages_actor_code_method_idx ON {{ .SchemaName | default "public"}}.vm_messages USING BTREE (actor_code, method);
27
+
28
+
29
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.height IS 'Height message was executed at.';
30
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.state_root IS 'CID of the parent state root at which this message was executed.';
31
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.cid IS 'CID of the message (note this CID does not appear on chain).';
32
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.source IS 'CID of the on-chain message that caused this message to be sent.';
33
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages."from" IS 'Address of the actor that sent the message.';
34
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages."to" IS 'Address of the actor that received the message.';
35
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.value IS 'Amount of FIL (in attoFIL) transferred by this message.';
36
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.method IS 'The method number invoked on the recipient actor. Only unique to the actor the method is being invoked on. A method number of 0 is a plain token transfer - no method execution';
37
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.actor_code IS 'The CID of the actor that received the message.';
38
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.exit_code IS 'The exit code that was returned as a result of executing the message.';
39
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.gas_used IS 'A measure of the amount of resources (or units of gas) consumed, in order to execute a message.';
40
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.params IS 'Message parameters parsed and serialized as a JSON object.';
41
+
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.vm_messages.returns IS 'Result returned from executing a message parsed and serialized as a JSON object.';
0 commit comments