UNPKG

@atomiqlabs/chain-starknet

Version:

Starknet specific base implementation

20 lines (16 loc) 622 B
import {Provider} from "starknet"; import {StarknetChainInterface, StarknetRetryPolicy} from "./StarknetChainInterface"; import {getLogger} from "../../utils/Utils"; export class StarknetModule { protected readonly provider: Provider; protected readonly retryPolicy: StarknetRetryPolicy; protected readonly root: StarknetChainInterface; protected readonly logger = getLogger(this.constructor.name+": "); constructor( root: StarknetChainInterface ) { this.provider = root.provider; this.retryPolicy = root.retryPolicy; this.root = root; } }