MCPcopy Index your code
hub / github.com/subquery/subql / create

Method create

packages/node-core/src/indexer/StoreOperations.test.ts:41–46  ·  view source on GitHub ↗
(record: EraProps)

Source from the content-addressed store, hash-verified

39 delegators?: DelegationFrom[];
40
41 static create(record: EraProps): EraEntity {
42 assert(typeof record.id === 'string', 'id must be provided');
43 const entity = new this(record.id, record.startTime);
44 Object.assign(entity, record);
45 return entity;
46 }
47}
48
49const models: GraphQLModelsType[] = [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected