mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 04:27:56 +00:00
fix: TypeScript errors, shadow deprecations, and build configuration
- Fix shadow style deprecation warnings across components (boxShadow) - Add type declaration files (codec.d.ts, modules.d.ts) - Update metro.config.cjs for proper asset extensions - Update tsconfig.json with module resolution settings - Fix TypeScript errors in shared/lib files - Update app icons (optimized PNG files)
This commit is contained in:
@@ -261,7 +261,7 @@ export async function isStakingScoreTracking(
|
||||
return false;
|
||||
}
|
||||
|
||||
const startBlock = await api.query.stakingScore.stakingStartBlock(address);
|
||||
const startBlock = await api.query.stakingScore.stakingStartBlock(address) as any;
|
||||
return !startBlock.isNone;
|
||||
} catch (error) {
|
||||
console.error('Error checking staking score tracking:', error);
|
||||
@@ -281,7 +281,7 @@ export async function isStaking(
|
||||
return false;
|
||||
}
|
||||
|
||||
const ledger = await api.query.staking.ledger(address);
|
||||
const ledger = await api.query.staking.ledger(address) as any;
|
||||
return !ledger.isNone;
|
||||
} catch (error) {
|
||||
console.error('Error checking staking status:', error);
|
||||
@@ -370,7 +370,7 @@ export async function getCitizenDataCid(
|
||||
// Try to get from identity storage
|
||||
// This assumes the pallet stores IPFS CID somewhere
|
||||
// Adjust based on actual pallet storage structure
|
||||
const identity = await api.query.identityKyc.identities(address);
|
||||
const identity = await api.query.identityKyc.identities(address) as any;
|
||||
|
||||
if (identity.isNone) {
|
||||
return null;
|
||||
|
||||
@@ -289,7 +289,7 @@ export async function checkStakingScoreTracking(
|
||||
return false;
|
||||
}
|
||||
|
||||
const startBlock = await api.query.stakingScore.stakingStartBlock(address);
|
||||
const startBlock = await api.query.stakingScore.stakingStartBlock(address) as any;
|
||||
return !startBlock.isNone;
|
||||
} catch (error) {
|
||||
console.error('Error checking staking score tracking:', error);
|
||||
|
||||
@@ -50,7 +50,7 @@ export async function getMultisigMembers(
|
||||
if (memberConfig.isUnique) {
|
||||
// Query from chain for unique roles
|
||||
try {
|
||||
const holder = await api.query.tiki.tikiHolder(memberConfig.tiki);
|
||||
const holder = await api.query.tiki.tikiHolder(memberConfig.tiki) as any;
|
||||
if (holder.isSome) {
|
||||
const address = holder.unwrap().toString();
|
||||
members.push(address);
|
||||
@@ -137,7 +137,7 @@ export async function getMultisigMemberInfo(
|
||||
|
||||
if (memberConfig.isUnique) {
|
||||
try {
|
||||
const holder = await api.query.tiki.tikiHolder(memberConfig.tiki);
|
||||
const holder = await api.query.tiki.tikiHolder(memberConfig.tiki) as any;
|
||||
if (holder.isSome) {
|
||||
address = holder.unwrap().toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user