stafi-bootstrap
types
When you use polkadotjs api to develop a StaFi Dapp, you should use the types.json to create api instance.
const api = await ApiPromise.create({
provider: wsProvider,
types: {
RefCount: 'u32',
ChainId: 'u8',
ResourceId: '[u8; 32]',
DepositNonce: 'u64',
BlockWeights:'u32'
}
});