@@ -363,6 +363,7 @@ impl ExecuteWithProviderResult {
363363pub enum MintMethods {
364364 Burn ,
365365 Transfer ,
366+ TransferPurse ,
366367}
367368
368369/// Available options for interacting with the system auction.
@@ -390,30 +391,20 @@ impl TryFrom<u32> for SystemMenu {
390391 type Error = ( ) ;
391392
392393 fn try_from ( value : u32 ) -> Result < Self , Self :: Error > {
393- if value == 0 {
394- Ok ( SystemMenu :: Mint ( MintMethods :: Transfer ) )
395- } else if value == 1 {
396- Ok ( SystemMenu :: Mint ( MintMethods :: Burn ) )
397- } else if value == 100 {
398- Ok ( SystemMenu :: Auction ( AuctionMethods :: Activate ) )
399- } else if value == 101 {
400- Ok ( SystemMenu :: Auction ( AuctionMethods :: Bid ) )
401- } else if value == 102 {
402- Ok ( SystemMenu :: Auction ( AuctionMethods :: Withdraw ) )
403- } else if value == 103 {
404- Ok ( SystemMenu :: Auction ( AuctionMethods :: Delegate ) )
405- } else if value == 104 {
406- Ok ( SystemMenu :: Auction ( AuctionMethods :: Undelegate ) )
407- } else if value == 105 {
408- Ok ( SystemMenu :: Auction ( AuctionMethods :: Redelegate ) )
409- } else if value == 106 {
410- Ok ( SystemMenu :: Auction ( AuctionMethods :: AddReservation ) )
411- } else if value == 107 {
412- Ok ( SystemMenu :: Auction ( AuctionMethods :: CancelReservation ) )
413- } else if value == 108 {
414- Ok ( SystemMenu :: Auction ( AuctionMethods :: ChangePublicKey ) )
415- } else {
416- Err ( ( ) )
394+ match value {
395+ 0 => Ok ( SystemMenu :: Mint ( MintMethods :: Transfer ) ) ,
396+ 1 => Ok ( SystemMenu :: Mint ( MintMethods :: TransferPurse ) ) ,
397+ 2 => Ok ( SystemMenu :: Mint ( MintMethods :: Burn ) ) ,
398+ 100 => Ok ( SystemMenu :: Auction ( AuctionMethods :: Activate ) ) ,
399+ 101 => Ok ( SystemMenu :: Auction ( AuctionMethods :: Bid ) ) ,
400+ 102 => Ok ( SystemMenu :: Auction ( AuctionMethods :: Withdraw ) ) ,
401+ 103 => Ok ( SystemMenu :: Auction ( AuctionMethods :: Delegate ) ) ,
402+ 104 => Ok ( SystemMenu :: Auction ( AuctionMethods :: Undelegate ) ) ,
403+ 105 => Ok ( SystemMenu :: Auction ( AuctionMethods :: Redelegate ) ) ,
404+ 106 => Ok ( SystemMenu :: Auction ( AuctionMethods :: AddReservation ) ) ,
405+ 107 => Ok ( SystemMenu :: Auction ( AuctionMethods :: CancelReservation ) ) ,
406+ 108 => Ok ( SystemMenu :: Auction ( AuctionMethods :: ChangePublicKey ) ) ,
407+ _ => Err ( ( ) ) ,
417408 }
418409 }
419410}
@@ -423,7 +414,8 @@ impl From<SystemMenu> for u32 {
423414 match value {
424415 SystemMenu :: Mint ( mint) => match mint {
425416 MintMethods :: Transfer => 0 ,
426- MintMethods :: Burn => 1 ,
417+ MintMethods :: TransferPurse => 1 ,
418+ MintMethods :: Burn => 2 ,
427419 } ,
428420 SystemMenu :: Auction ( auction) => match auction {
429421 AuctionMethods :: Activate => 100 ,
0 commit comments