Skip to content

Commit

Permalink
v.1.26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xjcaa committed Apr 6, 2024
1 parent f8e8928 commit 7d5c3b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zetamarkets/sdk",
"repository": "https://github.com/zetamarkets/sdk/",
"version": "1.26.0",
"version": "1.26.1",
"description": "Zeta SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
18 changes: 18 additions & 0 deletions src/program-instructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,24 @@ export function updateAdminIx(
return Exchange.program.instruction.updateAdmin(accounts);
}

export function updatePricingAdminIx(
secondary: boolean,
admin: PublicKey,
newAdmin: PublicKey
): TransactionInstruction {
let accounts = {
accounts: {
state: Exchange.stateAddress,
admin,
newAdmin,
},
};
if (secondary) {
return Exchange.program.instruction.updatePricingAdmin(accounts);
}
return Exchange.program.instruction.updateAdmin(accounts);
}

export function initializeReferrerAccountsIx(
id: string,
user: PublicKey,
Expand Down

0 comments on commit 7d5c3b1

Please sign in to comment.