17: Implement CustodyDecoder
This commit is contained in:
+3
-2
@@ -1,7 +1,8 @@
|
|||||||
package com.r35157.libs.jupiter.perps.impl.anchoridl;
|
package com.r35157.libs.jupiter.perps.impl.anchoridl;
|
||||||
|
|
||||||
|
import com.r35157.libs.codec.Base58Codec;
|
||||||
|
import com.r35157.libs.codec.impl.ref.Base58CodecImpl;
|
||||||
import com.r35157.libs.solana.SolanaAccountInfo;
|
import com.r35157.libs.solana.SolanaAccountInfo;
|
||||||
import org.apache.commons.codec.binary.Base58;
|
|
||||||
|
|
||||||
import java.util.Base64;
|
import java.util.Base64;
|
||||||
|
|
||||||
@@ -45,5 +46,5 @@ class AnchorIdlJupiterPerpsCustodyDecoder {
|
|||||||
ANCHOR_DISCRIMINATOR_LENGTH
|
ANCHOR_DISCRIMINATOR_LENGTH
|
||||||
+ PUBLIC_KEY_LENGTH; // pool
|
+ PUBLIC_KEY_LENGTH; // pool
|
||||||
|
|
||||||
private static final Base58 base58 = Base58.getInstance();
|
private static final Base58Codec base58 = new Base58CodecImpl();
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user