Skip to content

Commit

Permalink
feat: add new events and update ixo sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPretorius committed Nov 28, 2024
1 parent c5ed4a9 commit 13aa615
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"author": "Ixo Foundation",
"license": "Apache 2",
"dependencies": {
"@ixo/impactxclient-sdk": "2.1.0",
"@ixo/impactxclient-sdk": "2.2.0",
"@sentry/node": "7.36.0",
"@sentry/tracing": "7.36.0",
"body-parser": "1.20.1",
Expand Down
26 changes: 26 additions & 0 deletions src/types/Event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,26 @@ export enum EventTypes {
// entity
createEntity = "ixo.entity.v1beta1.EntityCreatedEvent",
updateEntity = "ixo.entity.v1beta1.EntityUpdatedEvent",
verifiedEntity = "ixo.entity.v1beta1.EntityVerifiedUpdatedEvent",
transferEntity = "ixo.entity.v1beta1.EntityTransferredEvent",
accountCreatedEntity = "ixo.entity.v1beta1.EntityAccountCreatedEvent",
// claims
createCollection = "ixo.claims.v1beta1.CollectionCreatedEvent",
updateCollection = "ixo.claims.v1beta1.CollectionUpdatedEvent",
submitClaim = "ixo.claims.v1beta1.ClaimSubmittedEvent",
updateClaim = "ixo.claims.v1beta1.ClaimUpdatedEvent",
evaluateClaim = "ixo.claims.v1beta1.ClaimEvaluatedEvent",
disputeClaim = "ixo.claims.v1beta1.ClaimDisputedEvent",
submitIntent = "ixo.claims.v1beta1.IntentSubmittedEvent",
updateIntent = "ixo.claims.v1beta1.IntentUpdatedEvent",
// token
createToken = "ixo.token.v1beta1.TokenCreatedEvent",
updateToken = "ixo.token.v1beta1.TokenUpdatedEvent",
mintToken = "ixo.token.v1beta1.TokenMintedEvent",
transferToken = "ixo.token.v1beta1.TokenTransferredEvent",
cancelToken = "ixo.token.v1beta1.TokenCancelledEvent",
retireToken = "ixo.token.v1beta1.TokenRetiredEvent",
transferCredit = "ixo.token.v1beta1.CreditsTransferredEvent",
// bonds
createBond = "ixo.bonds.v1beta1.BondCreatedEvent",
updateBond = "ixo.bonds.v1beta1.BondUpdatedEvent",
Expand All @@ -27,6 +37,22 @@ export enum EventTypes {
reserveWithdrawalBond = "ixo.bonds.v1beta1.BondWithdrawReserveEvent",
// Wasm
wasm = "wasm",
// epochs
startEpoch = "ixo.epochs.v1beta1.EpochStartEvent",
endEpoch = "ixo.epochs.v1beta1.EpochEndEvent",
// mint
epochProvisionsMinted = "ixo.mint.v1beta1.MintEpochProvisionsMintedEvent",
// smartaccount
authAdded = "ixo.smartaccount.v1beta1.AuthenticatorAddedEvent",
authRemoved = "ixo.smartaccount.v1beta1.AuthenticatorRemovedEvent",
authSetActive = "ixo.smartaccount.v1beta1.AuthenticatorSetActiveStateEvent",
// liquidstake
lsParamsUpdated = "ixo.liquidstake.v1beta1.LiquidStakeParamsUpdatedEvent",
lsStake = "ixo.liquidstake.v1beta1.LiquidStakeEvent",
lsUpstake = "ixo.liquidstake.v1beta1.LiquidUnstakeEvent",
lsAddLSValidator = "ixo.liquidstake.v1beta1.AddLiquidValidatorEvent",
lsRebalanced = "ixo.liquidstake.v1beta1.RebalancedLiquidStakeEvent",
lsAutoCompound = "ixo.liquidstake.v1beta1.AutocompoundStakingRewardsEvent",
}

const EventTypesArray = Object.values(EventTypes) as string[];
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@
resolved "https://registry.yarnpkg.com/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz#291c227e93fd407a96ecd59879a35809120e432b"
integrity sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==

"@ixo/impactxclient-sdk@2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@ixo/impactxclient-sdk/-/impactxclient-sdk-2.1.0.tgz#33136b06e6d92297059d4628a9399491e3f4b0b0"
integrity sha512-P1UHzRTuVrF6flDGryjq2dtmtGRydxVRaOMOibOpPHfXhWN/bYsk6kOwV/X0MUj2+fZYAP1RHGUZ7mPXpM6OcA==
"@ixo/impactxclient-sdk@2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@ixo/impactxclient-sdk/-/impactxclient-sdk-2.2.0.tgz#df3c8ab27ac3c5b498cdade42ba38bd1c2b7461f"
integrity sha512-mPf3fjKIlt8H97rGFYKJsi95SExy8zNo913T+tHPd6ay/PNbNAWIReBT78B84KczeKsz7kDCIAij41bCzja+bA==
dependencies:
"@babel/runtime" "7.19.4"
"@cosmjs/amino" "0.32.4"
Expand Down

0 comments on commit 13aa615

Please sign in to comment.