-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from EpicsDAO/feature
update firedancer config
- Loading branch information
Showing
566 changed files
with
27,308 additions
and
218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@epics-dao/solv': patch | ||
--- | ||
|
||
Update firedancer config |
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
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
56 changes: 34 additions & 22 deletions
56
packages/solv/src/cli/setup/template/firedancer/configToml.ts
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,22 @@ | ||
import { approve } from '@solana/spl-token' | ||
import { Connection, PublicKey, Signer } from '@solana/web3.js' | ||
|
||
const approveTransaction = async ( | ||
connection: Connection, | ||
payer: Signer, | ||
account: PublicKey, | ||
delegate: PublicKey, | ||
owner: PublicKey, | ||
amount: number, | ||
) => { | ||
const transactionSignature = await approve( | ||
connection, | ||
payer, | ||
account, | ||
delegate, | ||
owner, | ||
amount, | ||
) | ||
return transactionSignature | ||
} | ||
export default approveTransaction |
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,16 @@ | ||
import { PublicKey, Transaction } from '@solana/web3.js' | ||
import { createApproveInstruction } from '@solana/spl-token' | ||
|
||
async function buildApproveTransaction( | ||
account: PublicKey, | ||
delegate: PublicKey, | ||
owner: PublicKey, | ||
amount: number, | ||
): Promise<Transaction> { | ||
const transaction = new Transaction().add( | ||
createApproveInstruction(account, delegate, owner, amount), | ||
) | ||
|
||
return transaction | ||
} | ||
export default buildApproveTransaction |
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,13 @@ | ||
import { PublicKey, Transaction } from '@solana/web3.js' | ||
import { createRevokeInstruction } from '@solana/spl-token' | ||
|
||
async function buildRevokeTransaction( | ||
account: PublicKey, | ||
owner: PublicKey, | ||
): Promise<Transaction> { | ||
const transaction = new Transaction().add( | ||
createRevokeInstruction(account, owner), | ||
) | ||
return transaction | ||
} | ||
export default buildRevokeTransaction |
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,14 @@ | ||
import { revoke } from '@solana/spl-token' | ||
import { Connection, PublicKey, Signer } from '@solana/web3.js' | ||
|
||
const revokeTransaction = async ( | ||
connection: Connection, | ||
payer: Signer, | ||
account: PublicKey, | ||
owner: PublicKey, | ||
) => { | ||
const transactionSignature = await revoke(connection, payer, account, owner) | ||
return transactionSignature | ||
} | ||
|
||
export default revokeTransaction |
Oops, something went wrong.