@orca-so/token-sdk
Advanced tools
Comparing version 0.3.5 to 0.4.0-alpha.0
@@ -33,3 +33,7 @@ "use strict"; | ||
(0, tiny_invariant_1.default)(mintInfo, "Mint not found"); | ||
this._cache.set(mintString, { mint: mintString, decimals: mintInfo.decimals }); | ||
this._cache.set(mintString, { | ||
mint: mintString, | ||
decimals: mintInfo.decimals, | ||
tokenProgram: mintInfo.tokenProgram, | ||
}); | ||
for (const provider of this.providers) { | ||
@@ -64,2 +68,3 @@ try { | ||
decimals: mintInfos[index].decimals, | ||
tokenProgram: mintInfos[index].tokenProgram, | ||
}); | ||
@@ -109,4 +114,5 @@ }); | ||
decimals: token.decimals, | ||
tokenProgram: token.tokenProgram, | ||
...metadata_1.MetadataUtil.merge(token, metadata), | ||
}; | ||
} |
@@ -6,2 +6,3 @@ import { Address } from "@orca-so/common-sdk"; | ||
decimals: number; | ||
tokenProgram: Address; | ||
} & Metadata; | ||
@@ -8,0 +9,0 @@ export interface Mintlist { |
{ | ||
"name": "@orca-so/token-sdk", | ||
"version": "0.3.5", | ||
"version": "0.4.0-alpha.0", | ||
"description": "SPL Token Utilities", | ||
@@ -11,5 +11,5 @@ "repository": "https://github.com/orca-so/orca-sdks", | ||
"peerDependencies": { | ||
"@orca-so/common-sdk": "^0.4.0", | ||
"@solana/spl-token": "^0.3.8", | ||
"@solana/web3.js": "^1.75.0" | ||
"@orca-so/common-sdk": "^0.6.0-alpha.2", | ||
"@solana/spl-token": "^0.4.1", | ||
"@solana/web3.js": "^1.90.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
121204
34
1280