Comments (2)
It is certainly intended - the typegen is not a free for all - if networks have different types, it would certainly conflict.
The api itself generates types for Substrate, Kusama & Polkadot, see https://github.com/polkadot-js/api/tree/master/packages/api-augment/src. They are completely split (so it is possible to generate seperate types), but it is certainly not intended that you can include all three at any point in time. Types are static and cannot be magically injected into TS based on a per-network basis, like metadata.
Because of the static nature of types -
- You can generate types for all networks you desire
- You can only include one network per codebase to allow TS to type-check
If you try and add multiples to the same codebase, you will be in a world of hurt since they will overlap.
from api.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.
from api.
Related Issues (20)
- `CheckMetadataHash` SignedExtension Support HOT 1
- `api.derive.accounts.identity` broken ? | People Chain HOT 2
- Augmented types for system parachains
- somthing wrong in bitvec codec HOT 2
- Polkadot xcm type cannot be parsed (Bifrost chain) HOT 6
- Support `AuraUnincludedSegmentApi` API HOT 1
- An issue with transferring GLMRs on the JS wallet HOT 1
- Error balances.transferKeepAlive createType(ExtrinsicSignature):: Expected input with 65 bytes (520 bits), found 66 bytes Issue with transferring GLMRs on the JS wallet HOT 3
- Unable to do Moobeam token Tranfer from Polkadot Substrate Portal HOT 2
- Crash in absence of Babe/Aura/Timestamp pallet in the runtime HOT 2
- 1010:Invalid Transaction:Transaction has a bad signature HOT 10
- `TypeError: e.eq is not a function` while calling stakerRewardsMultiEras HOT 3
- Getting "wasm trap: wasm `unreachable` instruction executed" error when calling `paymentInfo` HOT 9
- Unable to broadcast a tx on Kusama HOT 2
- withClaimedRewardsEras, rate limit exceeded HOT 1
- `api.query.identity` Works for Polkadot Chain but Returns Nothing for Kusama HOT 2
- Error: createType(SignedBlock):: Struct: failed on block: {\"header\":\"Header\",\"extrinsics\":\"Vec<Extrinsic>\"}:: Struct: failed on extrinsics: Vec<Extrinsic>:: createType(ExtrinsicV4):: createType(Call):: findMetaCall: Unable to find Call with index [1, 7]/[1,7] HOT 5
- Error: createType(SignedBlock):: Struct: failed on block: {\"header\":\"Header\",\"extrinsics\":\"Vec<Extrinsic>\"}:: Struct: failed on extrinsics: Vec<Extrinsic>:: createType(ExtrinsicV4):: createType(Call):: HOT 2
- Cannot read properties of undefined (reading 'toHuman') HOT 5
- Offline signing without using keyring/ECDSA signatures. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.