"Types" that exist for metadata in transactions

I see that some transactions have a Type key in the Metadata data, and I was wondering if there is a list of what type of transaction correspond to each number.

I already figure out some:

  • 205: pDEX trade v2 request
  • 206: pDEX trade v2 response
1 Like

Hey @J053,

It’s available here: https://github.com/incognitochain/incognito-chain/blob/production/metadata/constants.go#L5

4 Likes

List used by Incscan (useful: true = type used in the network):

const metadataTypes = {
  24: { type: 'IssuingRequestMeta', text: 'Shielding request', useful: true },
  25: { type: 'IssuingResponseMeta', text: 'Shielding response', useful: true },
  26: { type: 'ContractingRequestMeta', text: 'Burn shielded coins v1', useful: true },
  27: { type: 'BurningRequestMeta', text: 'Burn shielded coins v0', useful: true },
  240: { type: 'BurningRequestMetaV2', text: 'Burn shielded coins v2', useful: true },
  72: { type: 'BurningConfirmMeta', text: 'Burn confirm shielded coins' },
  241: { type: 'BurningConfirmMetaV2', text: 'Burn confirm shielded coins v2' },
  41: { type: 'ReturnStakingMeta', text: 'Unstaked', useful: true },
  44: { type: 'WithDrawRewardRequestMeta', text: 'Withdraw reward request', useful: true },
  45: { type: 'WithDrawRewardResponseMeta', text: 'Withdraw reward response', useful: true },
  63: { type: 'ShardStakingMeta', text: 'Shard staking', useful: true },
  80: { type: 'IssuingETHRequestMeta', text: 'ETH based coin shielding request', useful: true },
  81: { type: 'IssuingETHResponseMeta', text: 'ETH based coin shielding response', useful: true },
  90: { type: 'PDEContributionMeta', text: 'pDEX liquidity request', useful: true },
  91: { type: 'PDETradeRequestMeta', text: 'pDEX trade request', useful: true },
  92: { type: 'PDETradeResponseMeta', text: 'pDEX trade response', useful: true },
  93: { type: 'PDEWithdrawalRequestMeta', text: 'pDEX withdrawal request', useful: true },
  94: { type: 'PDEWithdrawalResponseMeta', text: 'pDEX withdrawal response', useful: true },
  95: { type: 'PDEContributionResponseMeta', text: 'pDEX liquidity response', useful: true },
  96: { type: 'BurningForDepositToSCRequestMeta', text: 'Burning for deposit to SC', useful: true },
  97: { type: 'BurningConfirmForDepositToSCMeta', text: 'Burning confirm for deposit to SC' },
  242: { type: 'BurningForDepositToSCRequestMetaV2', text: 'Burning for deposit to SC v2', useful: true },
  243: { type: 'BurningConfirmForDepositToSCMetaV2', text: 'Burning confirm for deposit to SC v2' },
  100: { type: 'PortalCustodianDepositMeta', text: 'Portal custodian deposit', },
  101: { type: 'PortalUserRegisterMeta', text: 'Portal user register', },
  102: { type: 'PortalUserRequestPTokenMeta', text: 'Portal user ptoken request ', },
  103: { type: 'PortalCustodianDepositResponseMeta', text: 'Portal custodian deposit response', },
  104: { type: 'PortalUserRequestPTokenResponseMeta', text: 'Portal user ptoken response', },
  105: { type: 'PortalExchangeRatesMeta', text: 'Portal exchange rates', useful: true },
  106: { type: 'PortalRedeemRequestMeta', text: 'Portal redeem request', },
  107: { type: 'PortalRedeemRequestResponseMeta', text: 'Portal redeem request', },
  108: { type: 'PortalRequestUnlockCollateralMeta', text: 'Portal request unlock collateral', },
  110: { type: 'PortalCustodianWithdrawRequestMeta', text: 'Portal custodian withdraw request', },
  111: { type: 'PortalCustodianWithdrawResponseMeta', text: 'Portal custodian withdraw response', },
  112: { type: 'PortalLiquidateCustodianMeta', text: 'Portal liquidation custodian request', },
  113: { type: 'PortalLiquidateCustodianResponseMeta', text: 'Portal liquidation custodian response', },
  114: { type: 'PortalLiquidateTPExchangeRatesMeta', text: 'Portal liquidation tp exchange rates', },
  116: { type: 'PortalExpiredWaitingPortingReqMeta', text: 'Portal expired waiting porting request', },
  117: { type: 'PortalRewardMeta', text: 'Portal reward', },
  118: { type: 'PortalRequestWithdrawRewardMeta', text: 'Portal withdraw reward request', },
  119: { type: 'PortalRequestWithdrawRewardResponseMeta', text: 'Portal withdraw reward response', },
  120: { type: 'PortalRedeemLiquidateExchangeRatesMeta', text: 'Portal redeem liquidate request', },
  121: { type: 'PortalRedeemLiquidateExchangeRatesResponseMeta', text: 'Portal redeem liquidate response', },
  122: { type: 'PortalLiquidationCustodianDepositMeta', text: 'Portal liquidation custodian deposit request', },
  123: { type: 'PortalLiquidationCustodianDepositResponseMeta', text: 'Portal liquidation custodian deposit response', },
  124: { type: 'PortalTotalRewardCustodianMeta', text: 'Portal total reward custodian', },
  125: { type: 'PortalPortingResponseMeta', text: 'Portal porting response', },
  126: { type: 'PortalReqMatchingRedeemMeta', text: 'Portal matching redeem request', },
  127: { type: 'StopAutoStakingMeta', text: 'Unstaking requested', useful: true },
  128: { type: 'PortalPickMoreCustodianForRedeemMeta', text: 'Portal pick more custodian for redeem', },
  129: { type: 'PortalLiquidationCustodianDepositMetaV2', text: 'Portal liquidation custodian deposit request', },
  130: { type: 'PortalLiquidationCustodianDepositResponseMetaV2', text: 'Portal liquidation custodian deposit response', },
  200: { type: 'RelayingBNBHeaderMeta', text: 'Relaying BNB header' },
  201: { type: 'RelayingBTCHeaderMeta', text: 'Relaying BTC header', useful: true },
  202: { type: 'PortalTopUpWaitingPortingRequestMeta', text: 'Portal top up waiting porting request', },
  203: { type: 'PortalTopUpWaitingPortingResponseMeta', text: 'Portal top up waiting porting response', },
  205: { type: 'PDECrossPoolTradeRequestMeta', text: 'pDEX trade v2 request', useful: true },
  206: { type: 'PDECrossPoolTradeResponseMeta', text: 'pDEX trade v2 response', useful: true }
};
4 Likes