@huma-finance/permissionless-sdk 1.0.21 → 1.0.22

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.
@@ -2,7 +2,7 @@
2
2
  "address": "A4z8JVxTyij3nJxkMVU8Qbgy6niB8JjoBm1ahbJFAKJ3",
3
3
  "metadata": {
4
4
  "name": "huma_vault",
5
- "version": "1.0.0",
5
+ "version": "1.1.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Created with Anchor"
8
8
  },
@@ -2,7 +2,7 @@
2
2
  "address": "A4z8JVxTyij3nJxkMVU8Qbgy6niB8JjoBm1ahbJFAKJ3",
3
3
  "metadata": {
4
4
  "name": "huma_vault",
5
- "version": "0.1.0",
5
+ "version": "1.1.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Created with Anchor"
8
8
  },
@@ -4053,6 +4053,69 @@
4053
4053
  ],
4054
4054
  "args": []
4055
4055
  },
4056
+ {
4057
+ "name": "update_asset_cap",
4058
+ "docs": [
4059
+ "Updates the vault asset cap.",
4060
+ "",
4061
+ "# Trigger Condition",
4062
+ "When the protocol is on and the vault is not closed.",
4063
+ "",
4064
+ "# Access Control",
4065
+ "Only the strategist can call this instruction."
4066
+ ],
4067
+ "discriminator": [181, 233, 48, 88, 240, 35, 247, 90],
4068
+ "accounts": [
4069
+ {
4070
+ "name": "signer",
4071
+ "signer": true
4072
+ },
4073
+ {
4074
+ "name": "huma_config",
4075
+ "relations": ["vault_config"]
4076
+ },
4077
+ {
4078
+ "name": "vault_config",
4079
+ "writable": true,
4080
+ "pda": {
4081
+ "seeds": [
4082
+ {
4083
+ "kind": "const",
4084
+ "value": [
4085
+ 118, 97, 117, 108, 116, 95, 99, 111, 110, 102, 105, 103
4086
+ ]
4087
+ },
4088
+ {
4089
+ "kind": "account",
4090
+ "path": "vault_config.id",
4091
+ "account": "VaultConfig"
4092
+ }
4093
+ ]
4094
+ }
4095
+ },
4096
+ {
4097
+ "name": "vault_state",
4098
+ "pda": {
4099
+ "seeds": [
4100
+ {
4101
+ "kind": "const",
4102
+ "value": [118, 97, 117, 108, 116, 95, 115, 116, 97, 116, 101]
4103
+ },
4104
+ {
4105
+ "kind": "account",
4106
+ "path": "vault_config"
4107
+ }
4108
+ ]
4109
+ }
4110
+ }
4111
+ ],
4112
+ "args": [
4113
+ {
4114
+ "name": "new_asset_cap",
4115
+ "type": "u64"
4116
+ }
4117
+ ]
4118
+ },
4056
4119
  {
4057
4120
  "name": "update_deposit_config",
4058
4121
  "docs": [
@@ -5196,6 +5259,10 @@
5196
5259
  }
5197
5260
  ],
5198
5261
  "events": [
5262
+ {
5263
+ "name": "AssetCapChangedByStrategistEvent",
5264
+ "discriminator": [153, 249, 161, 252, 56, 70, 36, 207]
5265
+ },
5199
5266
  {
5200
5267
  "name": "AssetDepositedEvent",
5201
5268
  "discriminator": [61, 6, 225, 103, 20, 222, 103, 39]
@@ -5416,10 +5483,14 @@
5416
5483
  },
5417
5484
  {
5418
5485
  "code": 6109,
5419
- "name": "LossAuthorityRequired"
5486
+ "name": "StrategistRequired"
5420
5487
  },
5421
5488
  {
5422
5489
  "code": 6110,
5490
+ "name": "LossAuthorityRequired"
5491
+ },
5492
+ {
5493
+ "code": 6111,
5423
5494
  "name": "DepositorRequired"
5424
5495
  },
5425
5496
  {
@@ -5476,14 +5547,10 @@
5476
5547
  },
5477
5548
  {
5478
5549
  "code": 6214,
5479
- "name": "InvalidStrategist"
5480
- },
5481
- {
5482
- "code": 6215,
5483
5550
  "name": "InvalidDepositRecord"
5484
5551
  },
5485
5552
  {
5486
- "code": 6216,
5553
+ "code": 6215,
5487
5554
  "name": "DuplicateDepositReceipt"
5488
5555
  },
5489
5556
  {
@@ -5660,6 +5727,39 @@
5660
5727
  }
5661
5728
  ],
5662
5729
  "types": [
5730
+ {
5731
+ "name": "AssetCapChangedByStrategistEvent",
5732
+ "docs": [
5733
+ "The asset cap has been updated by the strategist.",
5734
+ "",
5735
+ "# Fields",
5736
+ "* `vault_config` - The vault config key.",
5737
+ "* `strategist` - The strategist who updated the cap.",
5738
+ "* `old_asset_cap` - The previous asset cap.",
5739
+ "* `new_asset_cap` - The new asset cap."
5740
+ ],
5741
+ "type": {
5742
+ "kind": "struct",
5743
+ "fields": [
5744
+ {
5745
+ "name": "vault_config",
5746
+ "type": "pubkey"
5747
+ },
5748
+ {
5749
+ "name": "strategist",
5750
+ "type": "pubkey"
5751
+ },
5752
+ {
5753
+ "name": "old_asset_cap",
5754
+ "type": "u64"
5755
+ },
5756
+ {
5757
+ "name": "new_asset_cap",
5758
+ "type": "u64"
5759
+ }
5760
+ ]
5761
+ }
5762
+ },
5663
5763
  {
5664
5764
  "name": "AssetDepositedEvent",
5665
5765
  "docs": [
@@ -5900,9 +6000,8 @@
5900
6000
  "",
5901
6001
  "# Fields",
5902
6002
  "* `deposit_mint` - The mint of the deposit asset.",
5903
- "* `deposit_cap` - The maximum amount of assets that can be deposited.",
5904
- "* `min_deposit_amount` - The minimum amount per deposit.",
5905
- "* `max_deposit_amount` - The maximum amount per deposit."
6003
+ "* `asset_cap` - The maximum amount of assets that can be deposited.",
6004
+ "* `min_deposit_amount` - The minimum amount per deposit."
5906
6005
  ],
5907
6006
  "type": {
5908
6007
  "kind": "struct",
@@ -7306,6 +7405,10 @@
7306
7405
  "name": "amount_processed",
7307
7406
  "type": "u64"
7308
7407
  },
7408
+ {
7409
+ "name": "huma_fee_redeemed",
7410
+ "type": "u64"
7411
+ },
7309
7412
  {
7310
7413
  "name": "collection",
7311
7414
  "type": {
@@ -8,7 +8,7 @@ export type HumaVault = {
8
8
  address: string;
9
9
  metadata: {
10
10
  name: "humaVault";
11
- version: "1.0.0";
11
+ version: "1.1.0";
12
12
  spec: "0.1.0";
13
13
  description: "Created with Anchor";
14
14
  };