MCPcopy Create free account
hub / github.com/cutupdev/Solana-Token-Staking-Smart-Contract / configProject

Function configProject

cli/scripts.ts:83–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81};
82
83export const configProject = async () => {
84 // Create a dummy config object to pass as argument.
85 const newConfig = {
86 admin: payer.publicKey,
87 totalPoolCount: new BN(0),
88
89 };
90
91 const tx = await createConfigTx(
92 payer.publicKey,
93 newConfig,
94 solConnection,
95 program
96 );
97
98 await execTx(tx, solConnection, payer);
99};
100
101export const createPool = async () => {
102 const tx = await createPoolTx(

Callers 1

command.tsFile · 0.90

Calls 2

createConfigTxFunction · 0.90
execTxFunction · 0.90

Tested by

no test coverage detected