@gearbox-protocol/deploy-tools 5.71.5 → 5.71.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +278 -245
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -339808,6 +339808,244 @@ function toAddress2(value) {
339808
339808
  return value.address;
339809
339809
  }
339810
339810
 
339811
+ // ../../node_modules/@gearbox-protocol/sdk/dist/esm/abi/310/iSecuritizeDegenNFT.js
339812
+ var iSecuritizeDegenNFTAbi = [
339813
+ {
339814
+ type: "function",
339815
+ name: "addRegistrar",
339816
+ inputs: [{ name: "registrar", type: "address", internalType: "address" }],
339817
+ outputs: [],
339818
+ stateMutability: "nonpayable"
339819
+ },
339820
+ {
339821
+ type: "function",
339822
+ name: "burn",
339823
+ inputs: [
339824
+ { name: "wallet", type: "address", internalType: "address" },
339825
+ { name: "", type: "uint256", internalType: "uint256" }
339826
+ ],
339827
+ outputs: [],
339828
+ stateMutability: "nonpayable"
339829
+ },
339830
+ {
339831
+ type: "function",
339832
+ name: "contractType",
339833
+ inputs: [],
339834
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
339835
+ stateMutability: "view"
339836
+ },
339837
+ {
339838
+ type: "function",
339839
+ name: "getDSTokens",
339840
+ inputs: [],
339841
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
339842
+ stateMutability: "view"
339843
+ },
339844
+ {
339845
+ type: "function",
339846
+ name: "getFactory",
339847
+ inputs: [],
339848
+ outputs: [{ name: "", type: "address", internalType: "address" }],
339849
+ stateMutability: "view"
339850
+ },
339851
+ {
339852
+ type: "function",
339853
+ name: "getOperators",
339854
+ inputs: [{ name: "token", type: "address", internalType: "address" }],
339855
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
339856
+ stateMutability: "view"
339857
+ },
339858
+ {
339859
+ type: "function",
339860
+ name: "getRegisteredTokens",
339861
+ inputs: [
339862
+ { name: "creditAccount", type: "address", internalType: "address" }
339863
+ ],
339864
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
339865
+ stateMutability: "view"
339866
+ },
339867
+ {
339868
+ type: "function",
339869
+ name: "getRegistrar",
339870
+ inputs: [{ name: "token", type: "address", internalType: "address" }],
339871
+ outputs: [{ name: "", type: "address", internalType: "address" }],
339872
+ stateMutability: "view"
339873
+ },
339874
+ {
339875
+ type: "function",
339876
+ name: "isDSToken",
339877
+ inputs: [{ name: "token", type: "address", internalType: "address" }],
339878
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
339879
+ stateMutability: "view"
339880
+ },
339881
+ {
339882
+ type: "function",
339883
+ name: "isOperator",
339884
+ inputs: [
339885
+ { name: "token", type: "address", internalType: "address" },
339886
+ { name: "operator", type: "address", internalType: "address" }
339887
+ ],
339888
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
339889
+ stateMutability: "view"
339890
+ },
339891
+ {
339892
+ type: "function",
339893
+ name: "mint",
339894
+ inputs: [{ name: "wallet", type: "address", internalType: "address" }],
339895
+ outputs: [],
339896
+ stateMutability: "nonpayable"
339897
+ },
339898
+ {
339899
+ type: "function",
339900
+ name: "registerCreditAccount",
339901
+ inputs: [
339902
+ { name: "creditAccount", type: "address", internalType: "address" },
339903
+ { name: "tokens", type: "address[]", internalType: "address[]" }
339904
+ ],
339905
+ outputs: [],
339906
+ stateMutability: "nonpayable"
339907
+ },
339908
+ {
339909
+ type: "function",
339910
+ name: "registerHelperAccount",
339911
+ inputs: [
339912
+ { name: "creditAccount", type: "address", internalType: "address" },
339913
+ { name: "helperAccount", type: "address", internalType: "address" },
339914
+ { name: "token", type: "address", internalType: "address" }
339915
+ ],
339916
+ outputs: [],
339917
+ stateMutability: "nonpayable"
339918
+ },
339919
+ {
339920
+ type: "function",
339921
+ name: "serialize",
339922
+ inputs: [],
339923
+ outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
339924
+ stateMutability: "view"
339925
+ },
339926
+ {
339927
+ type: "function",
339928
+ name: "setOperatorStatus",
339929
+ inputs: [
339930
+ { name: "token", type: "address", internalType: "address" },
339931
+ { name: "operator", type: "address", internalType: "address" },
339932
+ { name: "approved", type: "bool", internalType: "bool" }
339933
+ ],
339934
+ outputs: [],
339935
+ stateMutability: "nonpayable"
339936
+ },
339937
+ {
339938
+ type: "function",
339939
+ name: "version",
339940
+ inputs: [],
339941
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
339942
+ stateMutability: "view"
339943
+ },
339944
+ {
339945
+ type: "event",
339946
+ name: "Burn",
339947
+ inputs: [
339948
+ {
339949
+ name: "wallet",
339950
+ type: "address",
339951
+ indexed: true,
339952
+ internalType: "address"
339953
+ }
339954
+ ],
339955
+ anonymous: false
339956
+ },
339957
+ {
339958
+ type: "event",
339959
+ name: "Mint",
339960
+ inputs: [
339961
+ {
339962
+ name: "wallet",
339963
+ type: "address",
339964
+ indexed: true,
339965
+ internalType: "address"
339966
+ }
339967
+ ],
339968
+ anonymous: false
339969
+ },
339970
+ {
339971
+ type: "event",
339972
+ name: "SetOperatorStatus",
339973
+ inputs: [
339974
+ {
339975
+ name: "token",
339976
+ type: "address",
339977
+ indexed: true,
339978
+ internalType: "address"
339979
+ },
339980
+ {
339981
+ name: "operator",
339982
+ type: "address",
339983
+ indexed: true,
339984
+ internalType: "address"
339985
+ },
339986
+ { name: "approved", type: "bool", indexed: false, internalType: "bool" }
339987
+ ],
339988
+ anonymous: false
339989
+ },
339990
+ {
339991
+ type: "event",
339992
+ name: "SetRegistrar",
339993
+ inputs: [
339994
+ {
339995
+ name: "token",
339996
+ type: "address",
339997
+ indexed: true,
339998
+ internalType: "address"
339999
+ },
340000
+ {
340001
+ name: "registrar",
340002
+ type: "address",
340003
+ indexed: true,
340004
+ internalType: "address"
340005
+ }
340006
+ ],
340007
+ anonymous: false
340008
+ },
340009
+ {
340010
+ type: "error",
340011
+ name: "CallerIsNotCreditFacadeException",
340012
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
340013
+ },
340014
+ {
340015
+ type: "error",
340016
+ name: "CallerIsNotFactoryException",
340017
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
340018
+ },
340019
+ {
340020
+ type: "error",
340021
+ name: "CallerIsNotInstanceOwnerException",
340022
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
340023
+ },
340024
+ {
340025
+ type: "error",
340026
+ name: "CallerIsNotOperatorException",
340027
+ inputs: [
340028
+ { name: "token", type: "address", internalType: "address" },
340029
+ { name: "caller", type: "address", internalType: "address" }
340030
+ ]
340031
+ },
340032
+ {
340033
+ type: "error",
340034
+ name: "RegistrarNotSetForTokenException",
340035
+ inputs: [{ name: "token", type: "address", internalType: "address" }]
340036
+ },
340037
+ {
340038
+ type: "error",
340039
+ name: "UnknownTokenException",
340040
+ inputs: [{ name: "token", type: "address", internalType: "address" }]
340041
+ },
340042
+ {
340043
+ type: "error",
340044
+ name: "UnknownWalletException",
340045
+ inputs: [{ name: "wallet", type: "address", internalType: "address" }]
340046
+ }
340047
+ ];
340048
+
339811
340049
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/abi/310/iSecuritizeKYCFactory.js
339812
340050
  var iSecuritizeKYCFactoryAbi = [
339813
340051
  {
@@ -340332,12 +340570,25 @@ var TokensMeta = class extends AddressMap {
340332
340570
  }
340333
340571
  }
340334
340572
  async #loadDSTokens(kycFactories) {
340573
+ const degenNFTs = await this.#client.multicall({
340574
+ contracts: kycFactories.map((address) => {
340575
+ return {
340576
+ address,
340577
+ abi: iSecuritizeKYCFactoryAbi,
340578
+ functionName: "getDegenNFT"
340579
+ };
340580
+ }),
340581
+ allowFailure: false,
340582
+ batchSize: 0
340583
+ });
340335
340584
  const resp = await this.#client.multicall({
340336
- contracts: kycFactories.map((address) => ({
340337
- address,
340338
- abi: iSecuritizeKYCFactoryAbi,
340339
- functionName: "getDSTokens"
340340
- })),
340585
+ contracts: degenNFTs.map((address) => {
340586
+ return {
340587
+ address,
340588
+ abi: iSecuritizeDegenNFTAbi,
340589
+ functionName: "getDSTokens"
340590
+ };
340591
+ }),
340341
340592
  allowFailure: false,
340342
340593
  batchSize: 0
340343
340594
  });
@@ -352647,6 +352898,9 @@ var ConstantPriceFeedContract = class extends AbstractPriceFeedContract {
352647
352898
 
352648
352899
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pricefeeds/PythPriceFeed.js
352649
352900
  var abi18 = pythPriceFeedAbi;
352901
+ var iPythAbi = parseAbi([
352902
+ "function getUpdateFee(bytes[] calldata updateData) external view returns (uint256 feeAmount)"
352903
+ ]);
352650
352904
  var PythPriceFeed = class extends AbstractPriceFeedContract {
352651
352905
  token;
352652
352906
  priceFeedId;
@@ -352693,6 +352947,23 @@ var PythPriceFeed = class extends AbstractPriceFeedContract {
352693
352947
  description: `updating pyth price for ${this.priceFeedId} [${this.labelAddress(this.address)}]`
352694
352948
  });
352695
352949
  }
352950
+ /**
352951
+ * Returns contract function parameters for the getUpdateFee function on original Pyth contract
352952
+ * @param calldata
352953
+ * @returns
352954
+ */
352955
+ getUpdateFeeParams(calldata) {
352956
+ const [, updateData] = decodeAbiParameters(
352957
+ [{ type: "uint256" }, { type: "bytes[]" }],
352958
+ calldata
352959
+ );
352960
+ return {
352961
+ address: this.pyth,
352962
+ abi: iPythAbi,
352963
+ functionName: "getUpdateFee",
352964
+ args: [updateData]
352965
+ };
352966
+ }
352696
352967
  };
352697
352968
 
352698
352969
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pricefeeds/RedstonePriceFeed.js
@@ -354724,244 +354995,6 @@ var PoolV300Contract = class extends BaseContract {
354724
354995
  }
354725
354996
  };
354726
354997
 
354727
- // ../../node_modules/@gearbox-protocol/sdk/dist/esm/abi/310/iSecuritizeDegenNFT.js
354728
- var iSecuritizeDegenNFTAbi = [
354729
- {
354730
- type: "function",
354731
- name: "addRegistrar",
354732
- inputs: [{ name: "registrar", type: "address", internalType: "address" }],
354733
- outputs: [],
354734
- stateMutability: "nonpayable"
354735
- },
354736
- {
354737
- type: "function",
354738
- name: "burn",
354739
- inputs: [
354740
- { name: "wallet", type: "address", internalType: "address" },
354741
- { name: "", type: "uint256", internalType: "uint256" }
354742
- ],
354743
- outputs: [],
354744
- stateMutability: "nonpayable"
354745
- },
354746
- {
354747
- type: "function",
354748
- name: "contractType",
354749
- inputs: [],
354750
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
354751
- stateMutability: "view"
354752
- },
354753
- {
354754
- type: "function",
354755
- name: "getDSTokens",
354756
- inputs: [],
354757
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
354758
- stateMutability: "view"
354759
- },
354760
- {
354761
- type: "function",
354762
- name: "getFactory",
354763
- inputs: [],
354764
- outputs: [{ name: "", type: "address", internalType: "address" }],
354765
- stateMutability: "view"
354766
- },
354767
- {
354768
- type: "function",
354769
- name: "getOperators",
354770
- inputs: [{ name: "token", type: "address", internalType: "address" }],
354771
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
354772
- stateMutability: "view"
354773
- },
354774
- {
354775
- type: "function",
354776
- name: "getRegisteredTokens",
354777
- inputs: [
354778
- { name: "creditAccount", type: "address", internalType: "address" }
354779
- ],
354780
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
354781
- stateMutability: "view"
354782
- },
354783
- {
354784
- type: "function",
354785
- name: "getRegistrar",
354786
- inputs: [{ name: "token", type: "address", internalType: "address" }],
354787
- outputs: [{ name: "", type: "address", internalType: "address" }],
354788
- stateMutability: "view"
354789
- },
354790
- {
354791
- type: "function",
354792
- name: "isDSToken",
354793
- inputs: [{ name: "token", type: "address", internalType: "address" }],
354794
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
354795
- stateMutability: "view"
354796
- },
354797
- {
354798
- type: "function",
354799
- name: "isOperator",
354800
- inputs: [
354801
- { name: "token", type: "address", internalType: "address" },
354802
- { name: "operator", type: "address", internalType: "address" }
354803
- ],
354804
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
354805
- stateMutability: "view"
354806
- },
354807
- {
354808
- type: "function",
354809
- name: "mint",
354810
- inputs: [{ name: "wallet", type: "address", internalType: "address" }],
354811
- outputs: [],
354812
- stateMutability: "nonpayable"
354813
- },
354814
- {
354815
- type: "function",
354816
- name: "registerCreditAccount",
354817
- inputs: [
354818
- { name: "creditAccount", type: "address", internalType: "address" },
354819
- { name: "tokens", type: "address[]", internalType: "address[]" }
354820
- ],
354821
- outputs: [],
354822
- stateMutability: "nonpayable"
354823
- },
354824
- {
354825
- type: "function",
354826
- name: "registerHelperAccount",
354827
- inputs: [
354828
- { name: "creditAccount", type: "address", internalType: "address" },
354829
- { name: "helperAccount", type: "address", internalType: "address" },
354830
- { name: "token", type: "address", internalType: "address" }
354831
- ],
354832
- outputs: [],
354833
- stateMutability: "nonpayable"
354834
- },
354835
- {
354836
- type: "function",
354837
- name: "serialize",
354838
- inputs: [],
354839
- outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
354840
- stateMutability: "view"
354841
- },
354842
- {
354843
- type: "function",
354844
- name: "setOperatorStatus",
354845
- inputs: [
354846
- { name: "token", type: "address", internalType: "address" },
354847
- { name: "operator", type: "address", internalType: "address" },
354848
- { name: "approved", type: "bool", internalType: "bool" }
354849
- ],
354850
- outputs: [],
354851
- stateMutability: "nonpayable"
354852
- },
354853
- {
354854
- type: "function",
354855
- name: "version",
354856
- inputs: [],
354857
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
354858
- stateMutability: "view"
354859
- },
354860
- {
354861
- type: "event",
354862
- name: "Burn",
354863
- inputs: [
354864
- {
354865
- name: "wallet",
354866
- type: "address",
354867
- indexed: true,
354868
- internalType: "address"
354869
- }
354870
- ],
354871
- anonymous: false
354872
- },
354873
- {
354874
- type: "event",
354875
- name: "Mint",
354876
- inputs: [
354877
- {
354878
- name: "wallet",
354879
- type: "address",
354880
- indexed: true,
354881
- internalType: "address"
354882
- }
354883
- ],
354884
- anonymous: false
354885
- },
354886
- {
354887
- type: "event",
354888
- name: "SetOperatorStatus",
354889
- inputs: [
354890
- {
354891
- name: "token",
354892
- type: "address",
354893
- indexed: true,
354894
- internalType: "address"
354895
- },
354896
- {
354897
- name: "operator",
354898
- type: "address",
354899
- indexed: true,
354900
- internalType: "address"
354901
- },
354902
- { name: "approved", type: "bool", indexed: false, internalType: "bool" }
354903
- ],
354904
- anonymous: false
354905
- },
354906
- {
354907
- type: "event",
354908
- name: "SetRegistrar",
354909
- inputs: [
354910
- {
354911
- name: "token",
354912
- type: "address",
354913
- indexed: true,
354914
- internalType: "address"
354915
- },
354916
- {
354917
- name: "registrar",
354918
- type: "address",
354919
- indexed: true,
354920
- internalType: "address"
354921
- }
354922
- ],
354923
- anonymous: false
354924
- },
354925
- {
354926
- type: "error",
354927
- name: "CallerIsNotCreditFacadeException",
354928
- inputs: [{ name: "caller", type: "address", internalType: "address" }]
354929
- },
354930
- {
354931
- type: "error",
354932
- name: "CallerIsNotFactoryException",
354933
- inputs: [{ name: "caller", type: "address", internalType: "address" }]
354934
- },
354935
- {
354936
- type: "error",
354937
- name: "CallerIsNotInstanceOwnerException",
354938
- inputs: [{ name: "caller", type: "address", internalType: "address" }]
354939
- },
354940
- {
354941
- type: "error",
354942
- name: "CallerIsNotOperatorException",
354943
- inputs: [
354944
- { name: "token", type: "address", internalType: "address" },
354945
- { name: "caller", type: "address", internalType: "address" }
354946
- ]
354947
- },
354948
- {
354949
- type: "error",
354950
- name: "RegistrarNotSetForTokenException",
354951
- inputs: [{ name: "token", type: "address", internalType: "address" }]
354952
- },
354953
- {
354954
- type: "error",
354955
- name: "UnknownTokenException",
354956
- inputs: [{ name: "token", type: "address", internalType: "address" }]
354957
- },
354958
- {
354959
- type: "error",
354960
- name: "UnknownWalletException",
354961
- inputs: [{ name: "wallet", type: "address", internalType: "address" }]
354962
- }
354963
- ];
354964
-
354965
354998
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/market/pool/SecuritizeKYCFactory.js
354966
354999
  var abi24 = iSecuritizeKYCFactoryAbi;
354967
355000
  var SecuritizeKYCFactory = class extends BaseContract {
@@ -398439,7 +398472,7 @@ function getRenderer(opts) {
398439
398472
  var package_default = {
398440
398473
  name: "@gearbox-protocol/deploy-tools",
398441
398474
  description: "Gearbox deploy tools",
398442
- version: "5.71.5",
398475
+ version: "5.71.7",
398443
398476
  homepage: "https://gearbox.fi",
398444
398477
  keywords: [
398445
398478
  "gearbox"
@@ -398479,7 +398512,7 @@ var package_default = {
398479
398512
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
398480
398513
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
398481
398514
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
398482
- "@gearbox-protocol/sdk": "13.0.0-next.30",
398515
+ "@gearbox-protocol/sdk": "13.0.0-next.32",
398483
398516
  "@gearbox-protocol/sdk-gov": "2.34.0-next.114",
398484
398517
  "@types/lodash-es": "^4.17.12",
398485
398518
  "@types/node": "^25.5.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "5.71.5",
4
+ "version": "5.71.7",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -41,7 +41,7 @@
41
41
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
42
42
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
43
43
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
44
- "@gearbox-protocol/sdk": "13.0.0-next.30",
44
+ "@gearbox-protocol/sdk": "13.0.0-next.32",
45
45
  "@gearbox-protocol/sdk-gov": "2.34.0-next.114",
46
46
  "@types/lodash-es": "^4.17.12",
47
47
  "@types/node": "^25.5.0",