Skip to content

Commit

Permalink
chore: bump canary@604 (#606)
Browse files Browse the repository at this point in the history
* fix stuff

* add v604
  • Loading branch information
justraman authored Sep 11, 2023
1 parent 5cddb92 commit cdde6e9
Show file tree
Hide file tree
Showing 12 changed files with 11,716 additions and 63 deletions.
4 changes: 2 additions & 2 deletions src/mappings/claims/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { ClaimsTotalUnclaimedAmountStorage } from '../../types/generated/storage
export function getTotalUnclaimedAmount(ctx: CommonContext, block: SubstrateBlock) {
const data = new ClaimsTotalUnclaimedAmountStorage(ctx, block)

if (data.isMatrixV603) {
return data.asMatrixV603.get()
if (data.isMatrixEnjinV603) {
return data.asMatrixEnjinV603.get()
}

throw new UnknownVersionError(data.constructor.name)
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/claims/events/claimRequested.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import { getTotalUnclaimedAmount } from '../common'
function getEventData(ctx: CommonContext, event: Event) {
const data = new ClaimsClaimRequestedEvent(ctx, event)

if (data.isMatrixV603) {
return data.asMatrixV603
if (data.isMatrixEnjinV603) {
return data.asMatrixEnjinV603
}

throw new UnknownVersionError(data.constructor.name)
Expand Down
8 changes: 4 additions & 4 deletions src/mappings/claims/events/claimed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import { getTotalUnclaimedAmount } from '../common'
function getEventData(ctx: CommonContext, event: Event) {
const data = new ClaimsClaimedEvent(ctx, event)

if (data.isMatrixV603) {
return data.asMatrixV603
if (data.isMatrixEnjinV603) {
return data.asMatrixEnjinV603
}

throw new UnknownVersionError(data.constructor.name)
Expand All @@ -31,8 +31,8 @@ function getEventData(ctx: CommonContext, event: Event) {
function getDelayPeriod(ctx: CommonContext, block: SubstrateBlock) {
const data = new ClaimsDelayClaimsPeriodStorage(ctx, block)

if (data.isMatrixV603) {
return data.asMatrixV603.get()
if (data.isMatrixEnjinV603) {
return data.asMatrixEnjinV603.get()
}

throw new UnknownVersionError(data.constructor.name)
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/claims/events/delayTimeForClaimSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { getTotalUnclaimedAmount } from '../common'
function getEventData(ctx: CommonContext, event: Event) {
const data = new ClaimsDelayTimeForClaimSetEvent(ctx, event)

if (data.isMatrixV603) {
return data.asMatrixV603
if (data.isMatrixEnjinV603) {
return data.asMatrixEnjinV603
}

throw new UnknownVersionError(data.constructor.name)
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/claims/events/exchangeRateSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { getTotalUnclaimedAmount } from '../common'
function getEventData(ctx: CommonContext, event: Event) {
const data = new ClaimsExchangeRateSetEvent(ctx, event)

if (data.isMatrixV603) {
return data.asMatrixV603
if (data.isMatrixEnjinV603) {
return data.asMatrixEnjinV603
}

throw new UnknownVersionError(data.constructor.name)
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/xcm/events/attempted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import config from '../../../config'
async function getCallData(ctx: CommonContext, call: Call) {
const data = new PolkadotXcmLimitedTeleportAssetsCall(ctx, call)

if (data.asMatrixV603) {
return data.asMatrixV603
if (data.isMatrixEnjinV603) {
return data.asMatrixEnjinV603
}

throw new UnknownVersionError(data.constructor.name)
Expand Down
Loading

0 comments on commit cdde6e9

Please sign in to comment.