import { HexString } from '@polkadot/util/types'; import { rpcService } from '@/shared/services/rpcService'; import { RpcMethods } from '@/shared/config'; import { IMeta } from '@/entities/metadata'; const addMetadata = (hash: HexString, hex: HexString) => rpcService.callRPC(RpcMethods.AddMetadata, { hash, hex }); const fetchMetadata = (hash: HexString) => rpcService.callRPC(RpcMethods.GetMetadata, { hash }); export { addMetadata, fetchMetadata };