diff --git a/build/openrpc/full.json.gz b/build/openrpc/full.json.gz index 6d0ef2c6dce..9f3cec62820 100644 Binary files a/build/openrpc/full.json.gz and b/build/openrpc/full.json.gz differ diff --git a/chain/types/cbor_gen.go b/chain/types/cbor_gen.go index 8d812bf335a..c22cf3e2024 100644 --- a/chain/types/cbor_gen.go +++ b/chain/types/cbor_gen.go @@ -2337,9 +2337,9 @@ func (t *MessageTrace) MarshalCBOR(w io.Writer) error { return err } - // t.Codec (uint64) (uint64) + // t.ParamsCodec (uint64) (uint64) - if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.Codec)); err != nil { + if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.ParamsCodec)); err != nil { return err } @@ -2431,7 +2431,7 @@ func (t *MessageTrace) UnmarshalCBOR(r io.Reader) (err error) { if _, err := io.ReadFull(cr, t.Params[:]); err != nil { return err } - // t.Codec (uint64) (uint64) + // t.ParamsCodec (uint64) (uint64) { @@ -2442,7 +2442,7 @@ func (t *MessageTrace) UnmarshalCBOR(r io.Reader) (err error) { if maj != cbg.MajUnsignedInt { return fmt.Errorf("wrong type for uint64 field") } - t.Codec = uint64(extra) + t.ParamsCodec = uint64(extra) } return nil @@ -2486,9 +2486,9 @@ func (t *ReturnTrace) MarshalCBOR(w io.Writer) error { return err } - // t.Codec (uint64) (uint64) + // t.ReturnCodec (uint64) (uint64) - if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.Codec)); err != nil { + if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.ReturnCodec)); err != nil { return err } @@ -2564,7 +2564,7 @@ func (t *ReturnTrace) UnmarshalCBOR(r io.Reader) (err error) { if _, err := io.ReadFull(cr, t.Return[:]); err != nil { return err } - // t.Codec (uint64) (uint64) + // t.ReturnCodec (uint64) (uint64) { @@ -2575,7 +2575,7 @@ func (t *ReturnTrace) UnmarshalCBOR(r io.Reader) (err error) { if maj != cbg.MajUnsignedInt { return fmt.Errorf("wrong type for uint64 field") } - t.Codec = uint64(extra) + t.ReturnCodec = uint64(extra) } return nil diff --git a/chain/types/execresult.go b/chain/types/execresult.go index b9cb54f1d71..2a25d22e28a 100644 --- a/chain/types/execresult.go +++ b/chain/types/execresult.go @@ -18,18 +18,18 @@ type GasTrace struct { } type MessageTrace struct { - From address.Address - To address.Address - Value abi.TokenAmount - Method abi.MethodNum - Params []byte - Codec uint64 + From address.Address + To address.Address + Value abi.TokenAmount + Method abi.MethodNum + Params []byte + ParamsCodec uint64 } type ReturnTrace struct { - ExitCode exitcode.ExitCode - Return []byte - Codec uint64 + ExitCode exitcode.ExitCode + Return []byte + ReturnCodec uint64 } type ExecutionTrace struct { diff --git a/chain/vm/vm.go b/chain/vm/vm.go index 4322168ce3c..c8e3f251907 100644 --- a/chain/vm/vm.go +++ b/chain/vm/vm.go @@ -146,12 +146,12 @@ func (vm *LegacyVM) makeRuntime(ctx context.Context, msg *types.Message, parent allowInternal: true, callerValidated: false, executionTrace: types.ExecutionTrace{Msg: types.MessageTrace{ - From: msg.From, - To: msg.To, - Value: msg.Value, - Method: msg.Method, - Params: msg.Params, - Codec: paramsCodec, + From: msg.From, + To: msg.To, + Value: msg.Value, + Method: msg.Method, + Params: msg.Params, + ParamsCodec: paramsCodec, }}, } @@ -386,9 +386,9 @@ func (vm *LegacyVM) send(ctx context.Context, msg *types.Message, parent *Runtim retCodec = CborCodec } rt.executionTrace.MsgRct = types.ReturnTrace{ - ExitCode: aerrors.RetCode(err), - Return: ret, - Codec: retCodec, + ExitCode: aerrors.RetCode(err), + Return: ret, + ReturnCodec: retCodec, } return ret, err, rt diff --git a/documentation/en/api-v0-methods.md b/documentation/en/api-v0-methods.md index fd02691d9cc..d254c14e7f6 100644 --- a/documentation/en/api-v0-methods.md +++ b/documentation/en/api-v0-methods.md @@ -4871,12 +4871,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -4895,12 +4895,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -5101,12 +5101,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -5125,12 +5125,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -6487,12 +6487,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -6511,12 +6511,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { diff --git a/documentation/en/api-v1-unstable-methods.md b/documentation/en/api-v1-unstable-methods.md index 5f544495d38..93f78f573f8 100644 --- a/documentation/en/api-v1-unstable-methods.md +++ b/documentation/en/api-v1-unstable-methods.md @@ -6186,12 +6186,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -6210,12 +6210,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -6416,12 +6416,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -6440,12 +6440,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -7885,12 +7885,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ { @@ -7909,12 +7909,12 @@ Response: "Value": "0", "Method": 1, "Params": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ParamsCodec": 42 }, "MsgRct": { "ExitCode": 0, "Return": "Ynl0ZSBhcnJheQ==", - "Codec": 42 + "ReturnCodec": 42 }, "GasCharges": [ {