{"version":3,"file":"epoch.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/epoch.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/epoch.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { ProtocolConfig } from './protocol_config.js';\nimport { Timestamp } from '../../../google/protobuf/timestamp.js';\nimport { SystemState } from './system_state.js';\nimport { ValidatorCommittee } from './signature.js';\n/**\n * @generated from protobuf message sui.rpc.v2.Epoch\n */\nexport interface Epoch {\n\t/**\n\t * @generated from protobuf field: optional uint64 epoch = 1;\n\t */\n\tepoch?: bigint;\n\t/**\n\t * The committee governing this epoch.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.ValidatorCommittee committee = 2;\n\t */\n\tcommittee?: ValidatorCommittee;\n\t/**\n\t * Snapshot of Sui's SystemState (`0x3::sui_system::SystemState`) at the\n\t * beginning of the epoch, for past epochs, or the current state for the\n\t * current epoch.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.SystemState system_state = 3;\n\t */\n\tsystemState?: SystemState;\n\t/**\n\t * @generated from protobuf field: optional uint64 first_checkpoint = 4;\n\t */\n\tfirstCheckpoint?: bigint;\n\t/**\n\t * @generated from protobuf field: optional uint64 last_checkpoint = 5;\n\t */\n\tlastCheckpoint?: bigint;\n\t/**\n\t * @generated from protobuf field: optional google.protobuf.Timestamp start = 6;\n\t */\n\tstart?: Timestamp;\n\t/**\n\t * @generated from protobuf field: optional google.protobuf.Timestamp end = 7;\n\t */\n\tend?: Timestamp;\n\t/**\n\t * Reference gas price denominated in MIST\n\t *\n\t * @generated from protobuf field: optional uint64 reference_gas_price = 8;\n\t */\n\treferenceGasPrice?: bigint;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.ProtocolConfig protocol_config = 9;\n\t */\n\tprotocolConfig?: ProtocolConfig;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Epoch$Type extends MessageType<Epoch> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.Epoch', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'epoch',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 2, name: 'committee', kind: 'message', T: () => ValidatorCommittee },\n\t\t\t{ no: 3, name: 'system_state', kind: 'message', T: () => SystemState },\n\t\t\t{\n\t\t\t\tno: 4,\n\t\t\t\tname: 'first_checkpoint',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 5,\n\t\t\t\tname: 'last_checkpoint',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 6, name: 'start', kind: 'message', T: () => Timestamp },\n\t\t\t{ no: 7, name: 'end', kind: 'message', T: () => Timestamp },\n\t\t\t{\n\t\t\t\tno: 8,\n\t\t\t\tname: 'reference_gas_price',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 9, name: 'protocol_config', kind: 'message', T: () => ProtocolConfig },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.Epoch\n */\nexport const Epoch = new Epoch$Type();\n"],"mappings":";;;;;;;AAkEA,IAAM,aAAN,cAAyB,YAAmB;CAC3C,cAAc;AACb,QAAM,oBAAoB;GACzB;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IAAE,IAAI;IAAG,MAAM;IAAa,MAAM;IAAW,SAAS;IAAoB;GAC1E;IAAE,IAAI;IAAG,MAAM;IAAgB,MAAM;IAAW,SAAS;IAAa;GACtE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IAAE,IAAI;IAAG,MAAM;IAAS,MAAM;IAAW,SAAS;IAAW;GAC7D;IAAE,IAAI;IAAG,MAAM;IAAO,MAAM;IAAW,SAAS;IAAW;GAC3D;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IAAE,IAAI;IAAG,MAAM;IAAmB,MAAM;IAAW,SAAS;IAAgB;GAC5E,CAAC;;;;;;AAMJ,MAAa,QAAQ,IAAI,YAAY"}