-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to IPFS #170
Migrate to IPFS #170
Conversation
aleph-zero.yaml
Outdated
module: balances | ||
method: Transfer | ||
- handler: handleTransferKeepAlive | ||
kind: substrate/EventHandler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Looks like a redundant handler. First of all it should be a call handler because there is no "transfer_keep_alive" event in the runtime. Second, I couldn't find the handler implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I've deleted it
src/mappings/Cache.ts
Outdated
@@ -31,22 +31,26 @@ export async function cachedRewardDestination(accountAddress: string, event: Sub | |||
// looks like accountAddress not related to events so just try to query payee directly | |||
if (allAccountsInBlock.length === 0) { | |||
rewardDestinationByAddress[blockId] = {} | |||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we move this lines to ignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated types to remove all // @ts-ignore
- Replaced RewardDestination type to PalletStakingRewardDestination to resolve:
It has a typescript problem - Type 'PalletStakingRewardDestination' is missing the following properties from type 'RewardDestination': #private, toPrimitivets(2739)
- Updated to polkadot/api v8 to resolve:
TS2345: Argument of type 'import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types/types/calls").CallBase<import
› ("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types-codec/types/helpers").AnyTuple,
› import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types/interfaces/metadata/types").FunctionMeta...' is not
› assignable to parameter of type 'import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types/types/calls").CallBase<impor
› t("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types/node_modules/@polkadot/types-codec/types/helpers").AnyTuple,
› import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types/interfaces/...'.
› Type 'import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types-codec/types/helpers").AnyTuple' is not assignable to
› type 'import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types/node_modules/@polkadot/types-codec/types/helpers").AnyT
› uple'.
› Property 'toPrimitive' is missing in type
› 'import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types-codec/types/codec").Codec' but required in type
› 'import("/Users/stepanlavrentev/subquery-nova/node_modules/@polkadot/types/node_modules/@polkadot/types-codec/types/codec").Codec'.
- add
as unknown as Balance
to resolve:
https://stackoverflow.com/a/69399373/19548081
Conversion of type 'Codec' to type 'Balance' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Stop indexing on error Fix error when validator is not presented in Reward list events Set https endpoint for Kusama staging Update Kusama staging api url Set batch size 30 Switch to https Set batchSize 15 Set batchSize 10 Improve rewards handling Set default batch size Fix undefined slashDeferDuration for older specVersions Create LICENSE Fix polkadot sync error (#37) Adding Docker waiting and changing naming Update project.yaml to 0.2.0 (#38) * update project.yaml to 0.2.0 * delete yarn.lock * add yarn.lock to gitignore NOVA_3665: switch <action>.multi to multiQuery (#40) ISSUE-39: Fee calculation with withdraw (#42) Set extrinsicHash as optional ISSUE-39: Fee calculation with withdraw (#42) Update polkadot api Check erasStakersClipped exists Update readme and package name Set extrinsic hash for stacke change as optional Fix failed reward destribution handling Adding GitHub Actions for deploy to staging (#63) * add statemine Signed-off-by: Stepan Lavrentev <lawrentievsv@gmail.com> * fix constraint * ISSUE-51: Assets transfer history * NOVA_3665: switch <action>.multi to multiQuery (#40) * ISSUE-39: Fee calculation with withdraw (#42) * Update polkadot api * Check erasStakersClipped exists * Update readme and package name * Set extrinsic hash as optional * Custom asset transfer * first iteration * fix scripts * fix * fix deploy branch * fix * Transform assetTransfer to jsonfield * upgrade polkadot/api to 7 * fix schema * rename * update workflows * Fix for assettransfer checking * add more networks in list * add tests for promote to prod * add new networks * Fix transfer problem * fix bifrost and karura * Add failed transfer all handlers * add promotion to prod with checks * add more networks * add networks and fix * Don't create receiver history element for transferAll * temporal --force * remove --force * add fix for moonbeam * fix version for moonriver * fix shiden * change acala url * add new networks * Merge pull request #77 from nova-wallet/add-evm-hash-support Add evm hash support * update moonbeam types * kusama rewards fix * Merge pull request #80 from nova-wallet/fix/change-kintsugi-account-type Fix: change kintsugi account type * change some parameters for GHA * Delete robonomics * Improving Usability of Development * Add manual deploy workflow Co-authored-by: asmadek <alma2610@ya.ru> ISSUE-85: fix extrinsic creation for evm transactions Add configs for networks Revert "Add configs for networks" This reverts commit 7cb93e2. Fuxing problems after first iteration (#87) * update trigger for workflow * add script to update projects description * Fix readme * subsocial types version * turn off auto deployment Reolve conflicts problem in GH actions (#91) fix fix fix fix fix fix fix fix fix update try fix fix fix Adding merge master adding crab-solochain (#94) Remove hardcode parameters from GH workflow (#95) * add more workflow parameters * fixing typos Fix for nodle-solochain and subsocial-solochain (#93) * fix nodle solochain * fix for subsocial-solochain * fixing type format Adding new chains. Phala/Equilibrium/Turing (#99) * adding phala network * fix for nodle solochain * Adding equilibrium * Adding turing network CU-2d8auyg_MoonriverMoonbeam-problems (#101) * set version of docker image * Use polkadot util for etherium address encode Co-authored-by: asmadek <alma2610@ya.ru> fix: fee calculation for evm transactions Adding restrictions for ipfs-unixfs (#104) Adding Aleph Zero network (#107) Change endpoint to OnFinality (#110) * Change endpoint on OnFinality * Change all available projects to onfinality node Adding composable network (#111) Add parachain stacking support fix era index with payment delay Changing start block for moonbeam/moonriver (#117) Adding polkadex project (#121) Fixed moonbeam for custom assets (#123) * Fixed problem with moonbeam custom_assets * Adding handlers to all networks Adding condition about fee calculation (#125) GitHub Actions. Improve process. (#115) * change manual deploy logic * adding project status workflow * add network status generation * set schedule cron * add manual run Integritee and nodle solochains deleting (#128) Adding parachain staking to Turing (#130) Update description for all projects (#119) * draft initialisation * add some logic * update logic and testing * fix description * add westmint * update description * fix for assets projects * one of the variant of descriptins * Rework implementation * improve highlighting * fix descriptions * update some formats * add some format fix Adding OriginTrail, Litentry, UNIQUE, Dora (#132) * Adding Dora * Adding Unique network * Adding litentry * Adding bifrost-polkadot * Adding origin-trail Adding Pichiu (#135) * Add Mangata X * Add Pichiu * add types for pichiu * Revert "Add Mangata X" This reverts commit 42031b9. Co-authored-by: Stepan Lavrentev <lawrentievsv@gmail.com> Remove currencies handler Acala/Karura (#136) Co-authored-by: Stepan Lavrentev <lawrentievsv@gmail.com> Adding parachain staking to Zeitgest (#141) * Adding parachain staking to Zeitgest * remove useless handlers Adding features column for the project list (#138) * adding features colomn * make feature shorter * make orml name shorter * fix name * fix comments * improve orml\assets handling * change 'None' case handling * fix some comments Adding Bajun, Imbue, Kabocha, Tanganika projects (#140) * Adding kabocha * Adding tanganika * Adding Bajun * Adding Imbue * remove relaychain's handlers Deleting solochain projects (#147) * delete crab-solochain * Deleting Equilibrium Fixing indexer's problems (Bajun, Crust Shadow) (#148) * Fix bajun problem * fixing crust shadow Adding legend and fix size (#151) * Adding agenda and fix length * fix line breaker * fix some comments Deleting Westmint (#153) Fix for generate project statues script (#155) * Fix statuses script * add fix for stage too Adding Bifrost parachain staking (#157) Adding parachainStaking for Bifrost (#159) Update Turing node Adding GM network (#162) * Increase image versions * Adding GM network * fix naming Adding tinkernet and change name for GM (#164) Fixing some errors (#165) * Change default node for Bajun * Adding tinkernet and change name for GM * fix endpoint for basilisk * Update encointer endpoint * Update calamari endpoint * Update efinity endpoint * Delete subsocial solochain Fix chains version first iteration Acala in separate directory Adding possibility to run locally Adding acala from root folder Temporary fix for types problem Adding aleph-zero project Adding altair fix handlers for aleph-zero fix acala handlers Change enpoints for acala, altair adding astar adding bajun Adding basilisk Adding bifrost Adding bifrost-polkadot Adding bit-country rename project files adding calamari Adding centrifuge Adding clover Adding composable Adding dora Adding efinity Adding encointer Adding gm adding hydra Adding imbue Adding integritee Adding Interlay Adding kabocha Adding karura Adding khala Adding kico Adding kilt Adding kintsugi Adding kusama fix kusama Adding litentry Adding litmus Adding moonbeam Adding moonriver Adding nodle, origin-trail, parallel Adding parallel-heiko Adding some networks Adding action for deploy to IPFS Adding permission for shell Fix GH action fix array fix picasso project.file fix typo change to matrix deployment Change GH action logic Adding yarn cache fix github actions Adding brach creation in setup step Fix push command fix push action fix GH action fix push step Update CIDs for IFPS Fix chains version (#168) Migrate to IPFS (#170) * Fix chains version * first iteration * Acala in separate directory * Adding possibility to run locally * Adding acala from root folder * Temporary fix for types problem * Adding aleph-zero project * Adding altair * fix handlers for aleph-zero * fix acala handlers * Change enpoints for acala, altair * adding astar * adding bajun * Adding basilisk * Adding bifrost * Adding bifrost-polkadot * Adding bit-country * rename project files * adding calamari * Adding centrifuge * Adding clover * Adding composable * Adding dora * Adding efinity * Adding encointer * Adding gm * adding hydra * Adding imbue * Adding integritee * Adding Interlay * Adding kabocha * Adding karura * Adding khala * Adding kico * Adding kilt * Adding kintsugi * Adding kusama * fix kusama * Adding litentry * Adding litmus * Adding moonbeam * Adding moonriver * Adding nodle, origin-trail, parallel * Adding parallel-heiko * Adding some networks * Adding action for deploy to IPFS * Adding permission for shell * Fix GH action * fix array * fix picasso project.file * fix typo * change to matrix deployment * Change GH action logic * Adding yarn cache * fix github actions * Adding brach creation in setup step * Fix push command * fix push action * fix GH action * fix push step * Adding ternoa * Delete transfer_keep_alive * Delete test runner * Adding typess for Ternoa * Upgrade to polkadot/api v8 * Remove useless lines remove ignore
That PR created to migrate our project to another type of deployment uses IPFS
In order to achieve this goal, the following was done:
Additional steps which was done:
Update:
// @ts-ignore