@sentio/sdk
    Preparing search index...

    Variable Entity

    Entity: {
        create(
            base?: {
                data?: {
                    fields?: {
                        [key: string]:
                            | undefined
                            | {
                                bigdecimalValue?: { exp?: ...; value?: ... };
                                bigintValue?: { data?: ...; negative?: ... };
                                boolValue?: boolean;
                                bytesValue?: Uint8Array<(...)>;
                                floatValue?: number;
                                int64Value?: bigint;
                                intValue?: number;
                                listValue?: { values?: ... };
                                nullValue?: RichValue_NullValue;
                                stringValue?: string;
                                structValue?: { fields?: { [x: string]: { nullValue?: RichValue_NullValue | undefined; intValue?: number | undefined; int64Value?: bigint | undefined; floatValue?: number | undefined; ... 8 more ...; tokenValue?: { ...; } | undefined; } | undefined; } | undefined; } | undefined;
                                timestampValue?: Date;
                                tokenValue?: { amount?: ...; specifiedAt?: ...; token?: ... };
                            };
                    };
                };
                entity?: string;
                genBlockChain?: string;
                genBlockNumber?: bigint;
                genBlockTime?: Date;
            },
        ): Entity;
        decode(
            input: Uint8Array<ArrayBufferLike> | Reader,
            length?: number,
        ): Entity;
        encode(message: Entity, writer?: Writer): Writer;
        fromJSON(object: any): Entity;
        fromPartial(
            object: {
                data?: {
                    fields?: {
                        [key: string]:
                            | undefined
                            | {
                                bigdecimalValue?: { exp?: (...)
                                | (...); value?: (...) | (...) };
                                bigintValue?: {
                                    data?: (...) | (...);
                                    negative?: (...) | (...) | (...);
                                };
                                boolValue?: boolean;
                                bytesValue?: Uint8Array<ArrayBufferLike>;
                                floatValue?: number;
                                int64Value?: bigint;
                                intValue?: number;
                                listValue?: { values?: (...) | (...) };
                                nullValue?: RichValue_NullValue;
                                stringValue?: string;
                                structValue?: { fields?: { [x: string]: { nullValue?: RichValue_NullValue | undefined; intValue?: number | undefined; int64Value?: bigint | undefined; floatValue?: number | undefined; ... 8 more ...; tokenValue?: { ...; } | undefined; } | undefined; } | undefined; } | undefined;
                                timestampValue?: Date;
                                tokenValue?: {
                                    amount?: (...) | (...);
                                    specifiedAt?: (...) | (...);
                                    token?: (...) | (...);
                                };
                            };
                    };
                };
                entity?: string;
                genBlockChain?: string;
                genBlockNumber?: bigint;
                genBlockTime?: Date;
            },
        ): Entity;
        toJSON(message: Entity): unknown;
    }

    Type Declaration

    • create: function
      • Parameters

        • Optionalbase: {
              data?: {
                  fields?: {
                      [key: string]:
                          | undefined
                          | {
                              bigdecimalValue?: { exp?: ...; value?: ... };
                              bigintValue?: { data?: ...; negative?: ... };
                              boolValue?: boolean;
                              bytesValue?: Uint8Array<(...)>;
                              floatValue?: number;
                              int64Value?: bigint;
                              intValue?: number;
                              listValue?: { values?: ... };
                              nullValue?: RichValue_NullValue;
                              stringValue?: string;
                              structValue?: { fields?: { [x: string]: { nullValue?: RichValue_NullValue | undefined; intValue?: number | undefined; int64Value?: bigint | undefined; floatValue?: number | undefined; ... 8 more ...; tokenValue?: { ...; } | undefined; } | undefined; } | undefined; } | undefined;
                              timestampValue?: Date;
                              tokenValue?: { amount?: ...; specifiedAt?: ...; token?: ... };
                          };
                  };
              };
              entity?: string;
              genBlockChain?: string;
              genBlockNumber?: bigint;
              genBlockTime?: Date;
          }

        Returns Entity

    • decode: function
      • Parameters

        • input: Uint8Array<ArrayBufferLike> | Reader
        • Optionallength: number

        Returns Entity

    • encode: function
      • Parameters

        • message: Entity
        • Optionalwriter: Writer

        Returns Writer

    • fromJSON: function
      • Parameters

        • object: any

        Returns Entity

    • fromPartial: function
      • Parameters

        • object: {
              data?: {
                  fields?: {
                      [key: string]:
                          | undefined
                          | {
                              bigdecimalValue?: { exp?: (...)
                              | (...); value?: (...) | (...) };
                              bigintValue?: {
                                  data?: (...) | (...);
                                  negative?: (...) | (...) | (...);
                              };
                              boolValue?: boolean;
                              bytesValue?: Uint8Array<ArrayBufferLike>;
                              floatValue?: number;
                              int64Value?: bigint;
                              intValue?: number;
                              listValue?: { values?: (...) | (...) };
                              nullValue?: RichValue_NullValue;
                              stringValue?: string;
                              structValue?: { fields?: { [x: string]: { nullValue?: RichValue_NullValue | undefined; intValue?: number | undefined; int64Value?: bigint | undefined; floatValue?: number | undefined; ... 8 more ...; tokenValue?: { ...; } | undefined; } | undefined; } | undefined; } | undefined;
                              timestampValue?: Date;
                              tokenValue?: {
                                  amount?: (...) | (...);
                                  specifiedAt?: (...) | (...);
                                  token?: (...) | (...);
                              };
                          };
                  };
              };
              entity?: string;
              genBlockChain?: string;
              genBlockNumber?: bigint;
              genBlockTime?: Date;
          }

        Returns Entity

    • toJSON: function
      • Parameters

        Returns unknown