forked from solana-labs/governance-ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(update lm flow): replace anchor with spl (#7) (solana-labs#1073)
- Loading branch information
1 parent
06e6fa3
commit 654dc55
Showing
4 changed files
with
25 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Connection, PublicKey, Transaction } from '@solana/web3.js' | ||
import { prepareInititalizeMining } from '@everlend/general-pool' | ||
|
||
const getInitMiningTx = async ( | ||
walletPubKey: PublicKey, | ||
connection: Connection, | ||
rewardPool: PublicKey | ||
): Promise<Transaction> => { | ||
const tx = new Transaction() | ||
if (!walletPubKey) return tx | ||
const { tx: initMiningTx } = await prepareInititalizeMining( | ||
{ payerPublicKey: walletPubKey, connection }, | ||
rewardPool | ||
) | ||
|
||
tx.add(initMiningTx) | ||
|
||
return tx | ||
} | ||
|
||
export { getInitMiningTx } |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters