Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P-865 Adding solana token holding amount #2905

Merged
merged 20 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,4 @@ library Utils {

return (success, value);
}
function isStringsEqual(
string memory a,
string memory b
) internal pure returns (bool) {
return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ pragma solidity ^0.8.8;
library Constants {
uint256 constant decimals_factor = 1000;
}
struct TokenInfo {
uint32 network;
string tokenAddress;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import "../libraries/Utils.sol";

library GeniidataClient {
function getTokenBalance(
string[] memory secrets,
string memory secret,
string memory identityString,
string memory tokenName,
uint8 tokenDecimals
Expand All @@ -40,7 +40,7 @@ library GeniidataClient {
)
);
HttpHeader[] memory headers = new HttpHeader[](1);
headers[0] = HttpHeader("api-key", secrets[1]);
headers[0] = HttpHeader("api-key", secret);

// https://geniidata.readme.io/reference/get-brc20-tick-list-copy
(bool success, string memory value) = Http.GetString(
Expand Down
Loading