Skip to content

Commit

Permalink
support for LLAMA coin
Browse files Browse the repository at this point in the history
  • Loading branch information
lopezi committed Jul 18, 2024
1 parent 91caa3a commit f503d98
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/aoWebWallet/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ public static class Constants
public static string AoTokenId => "m3PaWzK4PTG9lAaqYQPaPdOcXdO8hYqi5Fe9NWqXd0w";
public static string AoProxyTokenId => "Pi-WmAQp2-mh-oWH9lWpz5EthlUDj_W0IusAv-RXhRk";
public static string CredTokenId => "Sa0iBLPNyJQrwpTTG-tWLQU-1QeUAJA73DdxGGiKoJc";
public static string LlamaTokenId => "pazXumQI-HPH7iFGfTC-4_7biSnqz_U67oFAGry5zUY";
}
}
12 changes: 11 additions & 1 deletion src/aoWebWallet/Services/StorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async ValueTask<List<MemeFrameProcess>> GetMemeFrames()
//AddSystemMemeFrames(result, "kqvDWqWWJIaEWqarff3-Ux15sRG8sToh7X3b4SYh5Sc", "c2fBkprpp46V-PVn5ZdoevuKGz-Pt28EsqEkWMfnfrM"); //Test Meme

return result;

}

private static void AddSystemMemeFrames(List<MemeFrameProcess> list, string processId, string mintTokenId)
Expand Down Expand Up @@ -80,6 +80,16 @@ public static void AddSystemTokens(List<Token> result)
Ticker = "testnet-AOCRED"
}); //CRED

AddSystemToken(result, Constants.LlamaTokenId,
new TokenData
{
TokenId = Constants.LlamaTokenId,
Denomination = 12,
Logo = "9FSEgmUsrug7kTdZJABDekwTGJy7YG7KaN5khcbwcX4",
Name = "Llama Coin",
Ticker = "LLAMA"
}); //LLAMA


AddSystemToken(result, "8p7ApPZxC_37M06QHVejCQrKsHbcJEerd3jWNkDUWPQ",
new TokenData
Expand Down
11 changes: 6 additions & 5 deletions src/aoWebWallet/ViewModels/WalletDetailViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public partial class WalletDetailViewModel : ObservableObject

[ObservableProperty]
public bool? hasArConnectExtension;

public WalletDetailsViewModel? SelectedWallet { get; set; }


Expand All @@ -58,8 +58,8 @@ public partial class WalletDetailViewModel : ObservableObject
public DataLoaderViewModel<List<TokenTransfer>> TokenTransferList { get; set; } = new();


public WalletDetailViewModel(MainViewModel mainViewModel,
GraphqlClient graphqlClient,
public WalletDetailViewModel(MainViewModel mainViewModel,
GraphqlClient graphqlClient,
TokenDataService dataService,
TokenClient tokenClient,
StorageService storageService,
Expand All @@ -83,6 +83,7 @@ public async Task Initialize(string address)
VisibleTokenList = new();
VisibleTokenList.Add(Constants.AoTokenId); //AO
VisibleTokenList.Add(Constants.CredTokenId); //TESTNET-CRED
VisibleTokenList.Add(Constants.LlamaTokenId); //Llama Coin

ResetTokenTransferlist();

Expand Down Expand Up @@ -368,7 +369,7 @@ public async Task SaveExplorerWallet()
}
}




public async Task SetClaims()
Expand Down Expand Up @@ -452,6 +453,6 @@ public async Task Claim3()
}
}


}
}

0 comments on commit f503d98

Please sign in to comment.