File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
const { sumTokens2, getResources } = require ( '../helper/chain/aptos' )
2
+ const { getTokenSupplies } = require ( '../helper/solana' ) ;
2
3
3
4
const CONFIG = {
4
5
ethereum : [
@@ -27,4 +28,14 @@ module.exports.aptos = {
27
28
const supply = res . find ( i => i . type === '0x4de5876d8a8e2be7af6af9f3ca94d9e4fafb24b5f4a5848078d8eb08f08e808a::ds_token::TokenData' ) . data . total_issued
28
29
api . add ( 'ethereum:0x7712c34205737192402172409a8f7ccef8aa2aec' , supply , { skipChain : true } )
29
30
}
31
+ }
32
+
33
+
34
+ module . exports . solana = {
35
+ tvl : async ( api ) => {
36
+ const mints = [ 'GyWgeqpy5GueU2YbkE8xqUeVEokCMMCEeUrfbtMw6phr' ]
37
+ const res = await getTokenSupplies ( mints , api . chain ) // align with aptos style of passing api.chain
38
+ const supply = res [ mints [ 0 ] ]
39
+ api . add ( mints [ 0 ] , supply )
40
+ }
30
41
}
You can’t perform that action at this time.
0 commit comments