@perena/vault-sdk 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -11763,6 +11763,16 @@ type Bankineco = {
11763
11763
  ];
11764
11764
  type: "pubkey";
11765
11765
  },
11766
+ {
11767
+ name: "consensusSigners";
11768
+ docs: [
11769
+ "Initial consensus-oracle signer set. When provided, it must contain",
11770
+ "between two and four distinct, non-default addresses."
11771
+ ];
11772
+ type: {
11773
+ vec: "pubkey";
11774
+ };
11775
+ },
11766
11776
  {
11767
11777
  name: "forMigration";
11768
11778
  docs: [
@@ -13494,6 +13504,7 @@ interface CreateVaultParams {
13494
13504
  basePriceOracleType: number;
13495
13505
  basePrice: BN;
13496
13506
  basePriceOracleAccount: Address;
13507
+ consensusSigners: Address[];
13497
13508
  forMigration: boolean;
13498
13509
  }
13499
13510
  interface CreateVaultIxArgs {
@@ -13527,6 +13538,8 @@ interface CreateVaultTxArgs {
13527
13538
  basePrice?: bigint;
13528
13539
  /** Price-source account when basePriceOracleType is Pyth/PerenaVault. */
13529
13540
  basePriceOracleAccount?: Address;
13541
+ /** Initial consensus-oracle signer set. Must contain 2–4 distinct addresses when provided. */
13542
+ consensusSigners?: Address[];
13530
13543
  assetTokenProgram?: Address;
13531
13544
  /** Use legacy bank mint as share mint; defer mint-authority transfer. */
13532
13545
  forMigration?: boolean;
package/dist/index.js CHANGED
@@ -15199,6 +15199,16 @@ var IDL = {
15199
15199
  ],
15200
15200
  type: "pubkey"
15201
15201
  },
15202
+ {
15203
+ name: "consensus_signers",
15204
+ docs: [
15205
+ "Initial consensus-oracle signer set. When provided, it must contain",
15206
+ "between two and four distinct, non-default addresses."
15207
+ ],
15208
+ type: {
15209
+ vec: "pubkey"
15210
+ }
15211
+ },
15202
15212
  {
15203
15213
  name: "for_migration",
15204
15214
  docs: [
@@ -17463,7 +17473,8 @@ function toAnchorCreateVaultParams(params) {
17463
17473
  cbTrigger: (0, import_common10.toWeb3Pk)(params.cbTrigger),
17464
17474
  feeCollector: (0, import_common10.toWeb3Pk)(params.feeCollector),
17465
17475
  baseAssetMint: (0, import_common10.toWeb3Pk)(params.baseAssetMint),
17466
- basePriceOracleAccount: (0, import_common10.toWeb3Pk)(params.basePriceOracleAccount)
17476
+ basePriceOracleAccount: (0, import_common10.toWeb3Pk)(params.basePriceOracleAccount),
17477
+ consensusSigners: params.consensusSigners.map(import_common10.toWeb3Pk)
17467
17478
  };
17468
17479
  }
17469
17480
  function toAnchorSetVaultConfigArgs(args) {
@@ -17544,6 +17555,7 @@ var CreateVaultBuilder = class extends VaultBuilderBase {
17544
17555
  (txArgs.basePrice ?? 10n ** BigInt(accountingDecimals)).toString()
17545
17556
  ),
17546
17557
  basePriceOracleAccount: txArgs.basePriceOracleAccount ?? DEFAULT_PRICE_ORACLE_ACCOUNT,
17558
+ consensusSigners: txArgs.consensusSigners ?? [],
17547
17559
  forMigration: txArgs.forMigration ?? false
17548
17560
  }
17549
17561
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perena/vault-sdk",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "Vault program helpers for Bankineco integrations.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",