Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Controller] exposing registered depositories counters #51

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uxd-protocol/uxd-client",
"version": "8.1.4-rc2",
"version": "8.1.4-rc3",
"description": "JavaScript Client for the UXD Solana Program",
"keywords": [
"solana",
Expand Down
8 changes: 7 additions & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ import { PublicKey } from '@solana/web3.js';
// As in the rust programs, see there for details and explanations

export class ControllerAccount {
bump!: number; // u8
redeemableMintBump!: number; // u8
version!: number; // u8
authority!: PublicKey;
redeemableMint!: PublicKey;
redeemableMintDecimals!: number; // u16
isFrozen!: boolean;
redeemableGlobalSupplyCap!: BN; // u128
redeemableCirculatingSupply!: BN; // u128
registeredMercurialVaultDepositories!: PublicKey[];
registeredMercurialVaultDepositoriesCount!: number; // u8
registeredCredixLpDepositories!: PublicKey[];
registeredCredixLpDepositoriesCount!: number; // u8
crypto-vincent marked this conversation as resolved.
Show resolved Hide resolved
profitsTotalCollected!: BN; // u128
isFrozen!: boolean;
identityDepositoryWeightBps!: number; // u16
mercurialVaultDepositoryWeightBps!: number; // u16
credixLpDepositoryWeightBps!: number; // u16
Expand Down