-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: enable strict mode * fix: matching ipfs metadata string * fix: improve handling of undefined get services * fix: enhanced in memory snapshotting * fix: currency initialization * chore: upgrade indexer version
- Loading branch information
Showing
40 changed files
with
997 additions
and
660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
export {} | ||
import { ApiPromise } from '@polkadot/api' | ||
import type { Provider } from '@ethersproject/providers' | ||
import { ApiDecoration } from '@polkadot/api/types' | ||
import '@subql/types-core/dist/global' | ||
import { ExtendedCall, ExtendedRpc } from '../helpers/types' | ||
export type ApiAt = ApiDecoration<'promise'> & { | ||
rpc: ApiPromise['rpc'] & ExtendedRpc | ||
call: ApiPromise['call'] & ExtendedCall | ||
} | ||
declare global { | ||
function getNodeEvmChainId(): Promise<string> | ||
const api: ApiAt & Provider | ||
const unsafeApi: ApiPromise | undefined | ||
function getNodeEvmChainId(): Promise<string | undefined> | ||
} | ||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export function assertPropInitialized<T>( | ||
obj: T, | ||
propertyName: keyof T, | ||
type: 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | ||
) { | ||
if (typeof obj[propertyName] !== type) throw new Error(`Property ${propertyName.toString()} not initialized!`) | ||
return obj[propertyName] | ||
} |
Oops, something went wrong.