Open cinlk opened 2 years ago
sdk only config one chain apis at runtime by tsconfig path mapping. for example using pangolin chain apis and types
{ "compilerOptions": { "baseUrl": ".", "paths": { "@polkadot/api-augment": ["./node_modules/@darwinia/api-augment/pangolin/index.d.ts"], "@polkadot/types-augment": ["./node_modules/@darwinia/types/interfaces/augment-types.d.ts"], "@polkadot/rpc-augment": ["./node_modules/@darwinia/rpc-augment/pangolin/index.d.ts"], "@poladot/types/lookup": ["./node_modules/@darwinia/types-augment/lookup/pangolin/index.d.ts"] } } }
refer to https://github.com/polkadot-js/api/issues/4969
sdk only config one chain apis at runtime by tsconfig path mapping. for example using pangolin chain apis and types