darwinia-network / darwinia.js-1.0-deprecated

Javascript API and Types
Apache License 2.0
5 stars 4 forks source link

Can not find PalletStakingExposure export #92

Closed JayJay1024 closed 2 years ago

JayJay1024 commented 2 years ago

if config

"paths": {
  "@polkadot/api-augment": ["./node_modules/@darwinia/api-augment/index.d.ts"]
}

or

"paths": {
  "@polkadot/types-augment": ["./node_modules/@darwinia/types/interfaces/augment-types.d.ts"]
}

can not find PalletStakingExposure from @polkadot/types/lookup

import type { PalletStakingExposure } from '@polkadot/types/lookup';
JayJay1024 commented 2 years ago

version:

"@darwinia/api-augment": "^2.8.9",
"@darwinia/rpc-augment": "^2.8.9",
"@darwinia/types": "^2.8.9",
"@darwinia/types-augment": "^2.8.9",
"@darwinia/types-known": "^2.8.9",
cinlk commented 2 years ago

Darwinia chain has already replaced 'PalletStakingExposure' with 'DarwiniaStakingStructsExposure'.

JayJay1024 commented 2 years ago

In my environment, after this setting "@poladot/types/lookup": ["./node_modules/@darwinia/types-augment/lookup/darwinia/types-lookup.d.ts"] , DarwiniaStakingStructsExposure can be accessed.