Skip to content
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

Release fix #296

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
password: ${{ secrets.ASSOCIATION_DOCKER_TOKEN }}

- name: Set package version
run: ./scripts/set-package-version.sh
run: yarn set-version

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polymesh-subquery",
"version": "0.0.0",
"version": "19.0.0",
"author": "Polymesh Association",
"license": "Apache-2.0",
"description": "A Polymesh Chain Indexer, providing a GraphQL interface",
Expand All @@ -19,7 +19,8 @@
"generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package polymesh-subql/api-interfaces --input ./src/api-interfaces",
"generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package polymesh-subql/api-interfaces --endpoint ./metadata.json --output ./src/api-interfaces --strict",
"format": "cross-env prettier-eslint $PWD\"/src/**/*.{ts,tsx,js,jsx,json,css,md}\" --write",
"semantic-release": "semantic-release"
"semantic-release": "semantic-release",
"set-version": "sh scripts/set-package-version.sh"
},
"homepage": "https://polymesh.network/",
"repository": "github:PolymeshAssociation/polymesh-subquery",
Expand Down
11 changes: 4 additions & 7 deletions src/mappings/entities/assets/mapAsset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Option, u64, U8aFixed } from '@polkadot/types-codec';
import { Codec } from '@polkadot/types/types';
import { SubstrateEvent, SubstrateExtrinsic } from '@subql/types';
import {
Expand Down Expand Up @@ -559,14 +558,12 @@ export const handleAssetBalanceUpdated = async (event: SubstrateEvent): Promise<
promises.push(asset.save());
} else if (updateReason === 'transferred') {
const details = value as unknown as {
readonly instructionId: Option<u64>;
readonly instructionMemo: Option<U8aFixed>;
instructionId: number | null;
instructionMemo: `0x${string}` | null;
};

instructionId = details.instructionId?.isSome
? processInstructionId(details.instructionId.unwrap())
: null;
instructionMemo = bytesToString(details.instructionMemo);
instructionId = details.instructionId ? details.instructionId.toString() : null;
instructionMemo = details.instructionMemo ? coerceHexToString(details.instructionMemo) : null;

eventId = EventIdEnum.Transfer;
if (!instructionId) {
Expand Down