Skip to content

Commit

Permalink
Update deploy branch (#74)
Browse files Browse the repository at this point in the history
* 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

* 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

* Prepare to pull request to deploy branch

Co-authored-by: Stepan Lavrentev <lawrentievsv@gmail.com>
Co-authored-by: asmadek <alma2610@ya.ru>
Co-authored-by: Stepan Lavrentev <40560660+stepanLav@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Mar 29, 2022
1 parent f4d59ff commit 12cd4c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 1 addition & 2 deletions networks/moonbeam/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"@polkadot/api": "^6",
"@polkadot/api-augment": "6.12.2-27",
"@polkadot/api": "^7",
"@subql/cli": "^0.16.2",
"@subql/types": "^0.12.0",
"typescript": "^4.1.3",
Expand Down
10 changes: 10 additions & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ type AssetTransfer @jsonField {
success: Boolean!
}

type AssetTransfer @jsonField {
assetId: String!
amount: String!
to: String!
from: String!
fee: String!
eventIdx: Int!
success: Boolean!
}

type Reward @jsonField {
eventIdx: Int!
amount: String!
Expand Down
8 changes: 0 additions & 8 deletions src/mappings/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ export function isOrmlTransferAll(call: CallBase<AnyTuple>) : boolean {
return ormlSections.includes(call.section) && call.method === "transferAll"
}

export function isAssetTransfer(call: CallBase<AnyTuple>) : boolean {
return call.section == "assets" && transferCalls.includes(call.method)
}

export function isOrmlTransfer(call: CallBase<AnyTuple>) : boolean {
return ormlSections.includes(call.section) && transferCalls.includes(call.method)
}

export function callsFromBatch(batchCall: CallBase<AnyTuple>) : CallBase<AnyTuple>[] {
return batchCall.args[0] as Vec<CallBase<AnyTuple>>
}
Expand Down

0 comments on commit 12cd4c4

Please sign in to comment.