damm-sdk 1.1.30-alpha.6 → 1.1.30-alpha.8
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.cjs +400 -7
- package/dist/index.cjs.map +5 -3
- package/dist/index.js +2796 -3041
- package/dist/index.js.map +16 -22
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/merkl/index.d.ts +3 -0
- package/dist/integrations/merkl/index.d.ts.map +1 -0
- package/dist/integrations/merkl/merkl.d.ts +14 -0
- package/dist/integrations/merkl/merkl.d.ts.map +1 -0
- package/dist/integrations/merkl/merkl.distributor.abi.d.ts +620 -0
- package/dist/integrations/merkl/merkl.distributor.abi.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/integrations/index.ts +1 -0
- package/src/integrations/merkl/index.ts +2 -0
- package/src/integrations/merkl/merkl.distributor.abi.ts +367 -0
- package/src/integrations/merkl/merkl.ts +33 -0
- package/src/lib/contractsRegistry.json +12 -6
package/dist/index.cjs
CHANGED
|
@@ -44342,6 +44342,9 @@ __export(exports_src, {
|
|
|
44342
44342
|
repayToLendleTrx: () => repayToLendleTrx,
|
|
44343
44343
|
repayToAaveV3Trx: () => repayToAaveV3Trx,
|
|
44344
44344
|
repayMorphoBlueTrx: () => repayMorphoBlueTrx,
|
|
44345
|
+
merklClaimTrx: () => merklClaimTrx,
|
|
44346
|
+
merklClaimCalldata: () => merklClaimCalldata,
|
|
44347
|
+
merklAbi: () => merkl_distributor_abi_default,
|
|
44345
44348
|
maxApproveERC20Trx: () => maxApproveERC20Trx,
|
|
44346
44349
|
lagoonV1VaultAbi: () => vault_abi_default,
|
|
44347
44350
|
lagoonV1SiloAbi: () => silo_abi_default,
|
|
@@ -53255,6 +53258,8 @@ var contractsRegistry_default = {
|
|
|
53255
53258
|
dai: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
53256
53259
|
usdce: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
|
|
53257
53260
|
aUSDT: "0x6ab707Aca953eDAeFBc4fD23bA73294241490620",
|
|
53261
|
+
arb: "0x912CE59144191C1204E64559FE8253a0e49E6548",
|
|
53262
|
+
morpho: "0x40BD670A58238e6E230c430BBb5cE6ec0d40df48",
|
|
53258
53263
|
aUSDC: "0x724dc807b04555b71ed48a6896b6F41593b8C637",
|
|
53259
53264
|
aDAI: "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE",
|
|
53260
53265
|
aUSDCe: "0x625E7708f30cA75bfd92586e17077590C60eb4cD",
|
|
@@ -53263,9 +53268,7 @@ var contractsRegistry_default = {
|
|
|
53263
53268
|
link: "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4"
|
|
53264
53269
|
},
|
|
53265
53270
|
OFTAdapters: {
|
|
53266
|
-
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0x238A52455a1EF6C987CaC94b28B4081aFE50ba06"
|
|
53267
|
-
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE": "0xA45B5130f36CDcA45667738e2a258AB09f4A5f7F",
|
|
53268
|
-
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831": "0xe8CDF27AcD73a434D661C84887215F7598e7d0d3"
|
|
53271
|
+
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": "0x238A52455a1EF6C987CaC94b28B4081aFE50ba06"
|
|
53269
53272
|
},
|
|
53270
53273
|
stargate: {
|
|
53271
53274
|
feeLibV1ETH: "0xda82A31dF339BfDF0123661134b4DB63Cb1706f5",
|
|
@@ -53357,6 +53360,7 @@ var contractsRegistry_default = {
|
|
|
53357
53360
|
treasurer: "0xd47b03ee6d86Cf251ee7860FB2ACf9f91B9fD4d7",
|
|
53358
53361
|
feeLibV1USDC: "0x08ed1d79D509A6f1020685535028ae60C144441E"
|
|
53359
53362
|
},
|
|
53363
|
+
OFTAdapters: {},
|
|
53360
53364
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF"
|
|
53361
53365
|
},
|
|
53362
53366
|
polygon: {
|
|
@@ -53397,6 +53401,9 @@ var contractsRegistry_default = {
|
|
|
53397
53401
|
morpho: {
|
|
53398
53402
|
morphoBlue: "0x1bF0c2541F820E775182832f06c0B7Fc27A25f67"
|
|
53399
53403
|
},
|
|
53404
|
+
OFTAdapters: {
|
|
53405
|
+
"0xc2132D05D31c914a87C6611C10748AEb04B58e8F": "0x6ba10300f0dc58b7a1e4c0e41f5dabb7d7829e13"
|
|
53406
|
+
},
|
|
53400
53407
|
stargate: {
|
|
53401
53408
|
feeLibV1USDC: "0x3Fc69CC4A842838bCDC9499178740226062b14E4",
|
|
53402
53409
|
feeLibV1USDT: "0x4e422B0aCb2Bd7e3aC70B5c0E5eb806e86a94038",
|
|
@@ -53499,6 +53506,7 @@ var contractsRegistry_default = {
|
|
|
53499
53506
|
positionManager: "0x416b433906b1B72FA758e166e239c43d68dC6F29",
|
|
53500
53507
|
guageImpl: "0x7155b84A704F0657975827c65Ff6fe42e3A962bb"
|
|
53501
53508
|
},
|
|
53509
|
+
OFTAdapters: {},
|
|
53502
53510
|
stargate: {
|
|
53503
53511
|
feeLibV1ETH: "0x80F755e3091b2Ad99c08Da8D13E9c7635C1b8161",
|
|
53504
53512
|
feeLibV1USDC: "0x1F605162282570dFa6255D27895587f4117F52FA",
|
|
@@ -53556,9 +53564,7 @@ var contractsRegistry_default = {
|
|
|
53556
53564
|
wrappedNativeToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
53557
53565
|
poster: "0x000000000000cd17345801aa8147b8D3950260FF",
|
|
53558
53566
|
OFTAdapters: {
|
|
53559
|
-
"
|
|
53560
|
-
"0xdAC17F958D2ee523a2206206994597C13D831ec7": "0x933597a323Eb81cAe705C5bC29985172fd5A3973",
|
|
53561
|
-
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": "0xc026395860Db2d07ee33e05fE50ed7bD583189C7"
|
|
53567
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7": "0x6c96de32cea08842dcc4058c14d3aaad7fa41dee"
|
|
53562
53568
|
},
|
|
53563
53569
|
stargate: {
|
|
53564
53570
|
feeLibV1ETH: "0x3E368B6C95c6fEfB7A16dCc0D756389F3c658a06",
|
|
@@ -53624,6 +53630,9 @@ var contractsRegistry_default = {
|
|
|
53624
53630
|
morpho: {
|
|
53625
53631
|
morphoBlue: "0x8f5ae9CddB9f68de460C77730b018Ae7E04a140A"
|
|
53626
53632
|
},
|
|
53633
|
+
OFTAdapters: {
|
|
53634
|
+
"0x9151434b16b9763660705744891fA906F660EcC5": "0xc07be8994d035631c36fb4a89c918cefb2f03ec3"
|
|
53635
|
+
},
|
|
53627
53636
|
stargate: {
|
|
53628
53637
|
creditMessaging: "0xAf368c91793CB22739386DFCbBb2F1A9e4bCBeBf",
|
|
53629
53638
|
feeLibV1ETH: "0xE1AD845D93853fff44990aE0DcecD8575293681e",
|
|
@@ -82660,6 +82669,390 @@ var withdrawMorphoVaultTrx = ({
|
|
|
82660
82669
|
data: WithdrawMorphoVaultCalldata(args)
|
|
82661
82670
|
});
|
|
82662
82671
|
};
|
|
82672
|
+
// src/integrations/merkl/merkl.distributor.abi.ts
|
|
82673
|
+
var merkl_distributor_abi_default = [
|
|
82674
|
+
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
82675
|
+
{ inputs: [], name: "InvalidDispute", type: "error" },
|
|
82676
|
+
{ inputs: [], name: "InvalidLengths", type: "error" },
|
|
82677
|
+
{ inputs: [], name: "InvalidProof", type: "error" },
|
|
82678
|
+
{ inputs: [], name: "InvalidUninitializedRoot", type: "error" },
|
|
82679
|
+
{ inputs: [], name: "NoDispute", type: "error" },
|
|
82680
|
+
{ inputs: [], name: "NotGovernor", type: "error" },
|
|
82681
|
+
{ inputs: [], name: "NotTrusted", type: "error" },
|
|
82682
|
+
{ inputs: [], name: "NotWhitelisted", type: "error" },
|
|
82683
|
+
{ inputs: [], name: "UnresolvedDispute", type: "error" },
|
|
82684
|
+
{ inputs: [], name: "ZeroAddress", type: "error" },
|
|
82685
|
+
{
|
|
82686
|
+
anonymous: false,
|
|
82687
|
+
inputs: [
|
|
82688
|
+
{ indexed: false, internalType: "address", name: "previousAdmin", type: "address" },
|
|
82689
|
+
{ indexed: false, internalType: "address", name: "newAdmin", type: "address" }
|
|
82690
|
+
],
|
|
82691
|
+
name: "AdminChanged",
|
|
82692
|
+
type: "event"
|
|
82693
|
+
},
|
|
82694
|
+
{
|
|
82695
|
+
anonymous: false,
|
|
82696
|
+
inputs: [{ indexed: true, internalType: "address", name: "beacon", type: "address" }],
|
|
82697
|
+
name: "BeaconUpgraded",
|
|
82698
|
+
type: "event"
|
|
82699
|
+
},
|
|
82700
|
+
{
|
|
82701
|
+
anonymous: false,
|
|
82702
|
+
inputs: [
|
|
82703
|
+
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
82704
|
+
{ indexed: true, internalType: "address", name: "token", type: "address" },
|
|
82705
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
82706
|
+
],
|
|
82707
|
+
name: "Claimed",
|
|
82708
|
+
type: "event"
|
|
82709
|
+
},
|
|
82710
|
+
{
|
|
82711
|
+
anonymous: false,
|
|
82712
|
+
inputs: [{ indexed: false, internalType: "uint256", name: "_disputeAmount", type: "uint256" }],
|
|
82713
|
+
name: "DisputeAmountUpdated",
|
|
82714
|
+
type: "event"
|
|
82715
|
+
},
|
|
82716
|
+
{
|
|
82717
|
+
anonymous: false,
|
|
82718
|
+
inputs: [{ indexed: false, internalType: "uint48", name: "_disputePeriod", type: "uint48" }],
|
|
82719
|
+
name: "DisputePeriodUpdated",
|
|
82720
|
+
type: "event"
|
|
82721
|
+
},
|
|
82722
|
+
{
|
|
82723
|
+
anonymous: false,
|
|
82724
|
+
inputs: [{ indexed: false, internalType: "bool", name: "valid", type: "bool" }],
|
|
82725
|
+
name: "DisputeResolved",
|
|
82726
|
+
type: "event"
|
|
82727
|
+
},
|
|
82728
|
+
{
|
|
82729
|
+
anonymous: false,
|
|
82730
|
+
inputs: [{ indexed: true, internalType: "address", name: "_disputeToken", type: "address" }],
|
|
82731
|
+
name: "DisputeTokenUpdated",
|
|
82732
|
+
type: "event"
|
|
82733
|
+
},
|
|
82734
|
+
{
|
|
82735
|
+
anonymous: false,
|
|
82736
|
+
inputs: [{ indexed: false, internalType: "string", name: "reason", type: "string" }],
|
|
82737
|
+
name: "Disputed",
|
|
82738
|
+
type: "event"
|
|
82739
|
+
},
|
|
82740
|
+
{
|
|
82741
|
+
anonymous: false,
|
|
82742
|
+
inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }],
|
|
82743
|
+
name: "Initialized",
|
|
82744
|
+
type: "event"
|
|
82745
|
+
},
|
|
82746
|
+
{
|
|
82747
|
+
anonymous: false,
|
|
82748
|
+
inputs: [
|
|
82749
|
+
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
82750
|
+
{ indexed: false, internalType: "bool", name: "isEnabled", type: "bool" }
|
|
82751
|
+
],
|
|
82752
|
+
name: "OperatorClaimingToggled",
|
|
82753
|
+
type: "event"
|
|
82754
|
+
},
|
|
82755
|
+
{
|
|
82756
|
+
anonymous: false,
|
|
82757
|
+
inputs: [
|
|
82758
|
+
{ indexed: true, internalType: "address", name: "user", type: "address" },
|
|
82759
|
+
{ indexed: true, internalType: "address", name: "operator", type: "address" },
|
|
82760
|
+
{ indexed: false, internalType: "bool", name: "isWhitelisted", type: "bool" }
|
|
82761
|
+
],
|
|
82762
|
+
name: "OperatorToggled",
|
|
82763
|
+
type: "event"
|
|
82764
|
+
},
|
|
82765
|
+
{
|
|
82766
|
+
anonymous: false,
|
|
82767
|
+
inputs: [
|
|
82768
|
+
{ indexed: true, internalType: "address", name: "token", type: "address" },
|
|
82769
|
+
{ indexed: true, internalType: "address", name: "to", type: "address" },
|
|
82770
|
+
{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }
|
|
82771
|
+
],
|
|
82772
|
+
name: "Recovered",
|
|
82773
|
+
type: "event"
|
|
82774
|
+
},
|
|
82775
|
+
{ anonymous: false, inputs: [], name: "Revoked", type: "event" },
|
|
82776
|
+
{
|
|
82777
|
+
anonymous: false,
|
|
82778
|
+
inputs: [
|
|
82779
|
+
{ indexed: false, internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
82780
|
+
{ indexed: false, internalType: "bytes32", name: "ipfsHash", type: "bytes32" },
|
|
82781
|
+
{ indexed: false, internalType: "uint48", name: "endOfDisputePeriod", type: "uint48" }
|
|
82782
|
+
],
|
|
82783
|
+
name: "TreeUpdated",
|
|
82784
|
+
type: "event"
|
|
82785
|
+
},
|
|
82786
|
+
{
|
|
82787
|
+
anonymous: false,
|
|
82788
|
+
inputs: [
|
|
82789
|
+
{ indexed: true, internalType: "address", name: "eoa", type: "address" },
|
|
82790
|
+
{ indexed: false, internalType: "bool", name: "trust", type: "bool" }
|
|
82791
|
+
],
|
|
82792
|
+
name: "TrustedToggled",
|
|
82793
|
+
type: "event"
|
|
82794
|
+
},
|
|
82795
|
+
{
|
|
82796
|
+
anonymous: false,
|
|
82797
|
+
inputs: [{ indexed: true, internalType: "address", name: "implementation", type: "address" }],
|
|
82798
|
+
name: "Upgraded",
|
|
82799
|
+
type: "event"
|
|
82800
|
+
},
|
|
82801
|
+
{
|
|
82802
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
82803
|
+
name: "canUpdateMerkleRoot",
|
|
82804
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82805
|
+
stateMutability: "view",
|
|
82806
|
+
type: "function"
|
|
82807
|
+
},
|
|
82808
|
+
{
|
|
82809
|
+
inputs: [
|
|
82810
|
+
{ internalType: "address[]", name: "users", type: "address[]" },
|
|
82811
|
+
{ internalType: "address[]", name: "tokens", type: "address[]" },
|
|
82812
|
+
{ internalType: "uint256[]", name: "amounts", type: "uint256[]" },
|
|
82813
|
+
{ internalType: "bytes32[][]", name: "proofs", type: "bytes32[][]" }
|
|
82814
|
+
],
|
|
82815
|
+
name: "claim",
|
|
82816
|
+
outputs: [],
|
|
82817
|
+
stateMutability: "nonpayable",
|
|
82818
|
+
type: "function"
|
|
82819
|
+
},
|
|
82820
|
+
{
|
|
82821
|
+
inputs: [
|
|
82822
|
+
{ internalType: "address", name: "", type: "address" },
|
|
82823
|
+
{ internalType: "address", name: "", type: "address" }
|
|
82824
|
+
],
|
|
82825
|
+
name: "claimed",
|
|
82826
|
+
outputs: [
|
|
82827
|
+
{ internalType: "uint208", name: "amount", type: "uint208" },
|
|
82828
|
+
{ internalType: "uint48", name: "timestamp", type: "uint48" },
|
|
82829
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" }
|
|
82830
|
+
],
|
|
82831
|
+
stateMutability: "view",
|
|
82832
|
+
type: "function"
|
|
82833
|
+
},
|
|
82834
|
+
{
|
|
82835
|
+
inputs: [],
|
|
82836
|
+
name: "core",
|
|
82837
|
+
outputs: [{ internalType: "contract ICore", name: "", type: "address" }],
|
|
82838
|
+
stateMutability: "view",
|
|
82839
|
+
type: "function"
|
|
82840
|
+
},
|
|
82841
|
+
{
|
|
82842
|
+
inputs: [],
|
|
82843
|
+
name: "disputeAmount",
|
|
82844
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82845
|
+
stateMutability: "view",
|
|
82846
|
+
type: "function"
|
|
82847
|
+
},
|
|
82848
|
+
{
|
|
82849
|
+
inputs: [],
|
|
82850
|
+
name: "disputePeriod",
|
|
82851
|
+
outputs: [{ internalType: "uint48", name: "", type: "uint48" }],
|
|
82852
|
+
stateMutability: "view",
|
|
82853
|
+
type: "function"
|
|
82854
|
+
},
|
|
82855
|
+
{
|
|
82856
|
+
inputs: [],
|
|
82857
|
+
name: "disputeToken",
|
|
82858
|
+
outputs: [{ internalType: "contract IERC20", name: "", type: "address" }],
|
|
82859
|
+
stateMutability: "view",
|
|
82860
|
+
type: "function"
|
|
82861
|
+
},
|
|
82862
|
+
{
|
|
82863
|
+
inputs: [{ internalType: "string", name: "reason", type: "string" }],
|
|
82864
|
+
name: "disputeTree",
|
|
82865
|
+
outputs: [],
|
|
82866
|
+
stateMutability: "nonpayable",
|
|
82867
|
+
type: "function"
|
|
82868
|
+
},
|
|
82869
|
+
{
|
|
82870
|
+
inputs: [],
|
|
82871
|
+
name: "disputer",
|
|
82872
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
82873
|
+
stateMutability: "view",
|
|
82874
|
+
type: "function"
|
|
82875
|
+
},
|
|
82876
|
+
{
|
|
82877
|
+
inputs: [],
|
|
82878
|
+
name: "endOfDisputePeriod",
|
|
82879
|
+
outputs: [{ internalType: "uint48", name: "", type: "uint48" }],
|
|
82880
|
+
stateMutability: "view",
|
|
82881
|
+
type: "function"
|
|
82882
|
+
},
|
|
82883
|
+
{
|
|
82884
|
+
inputs: [],
|
|
82885
|
+
name: "getMerkleRoot",
|
|
82886
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
82887
|
+
stateMutability: "view",
|
|
82888
|
+
type: "function"
|
|
82889
|
+
},
|
|
82890
|
+
{
|
|
82891
|
+
inputs: [{ internalType: "contract ICore", name: "_core", type: "address" }],
|
|
82892
|
+
name: "initialize",
|
|
82893
|
+
outputs: [],
|
|
82894
|
+
stateMutability: "nonpayable",
|
|
82895
|
+
type: "function"
|
|
82896
|
+
},
|
|
82897
|
+
{
|
|
82898
|
+
inputs: [],
|
|
82899
|
+
name: "lastTree",
|
|
82900
|
+
outputs: [
|
|
82901
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
82902
|
+
{ internalType: "bytes32", name: "ipfsHash", type: "bytes32" }
|
|
82903
|
+
],
|
|
82904
|
+
stateMutability: "view",
|
|
82905
|
+
type: "function"
|
|
82906
|
+
},
|
|
82907
|
+
{
|
|
82908
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
82909
|
+
name: "onlyOperatorCanClaim",
|
|
82910
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82911
|
+
stateMutability: "view",
|
|
82912
|
+
type: "function"
|
|
82913
|
+
},
|
|
82914
|
+
{
|
|
82915
|
+
inputs: [
|
|
82916
|
+
{ internalType: "address", name: "", type: "address" },
|
|
82917
|
+
{ internalType: "address", name: "", type: "address" }
|
|
82918
|
+
],
|
|
82919
|
+
name: "operators",
|
|
82920
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
82921
|
+
stateMutability: "view",
|
|
82922
|
+
type: "function"
|
|
82923
|
+
},
|
|
82924
|
+
{
|
|
82925
|
+
inputs: [],
|
|
82926
|
+
name: "proxiableUUID",
|
|
82927
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
82928
|
+
stateMutability: "view",
|
|
82929
|
+
type: "function"
|
|
82930
|
+
},
|
|
82931
|
+
{
|
|
82932
|
+
inputs: [
|
|
82933
|
+
{ internalType: "address", name: "tokenAddress", type: "address" },
|
|
82934
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
82935
|
+
{ internalType: "uint256", name: "amountToRecover", type: "uint256" }
|
|
82936
|
+
],
|
|
82937
|
+
name: "recoverERC20",
|
|
82938
|
+
outputs: [],
|
|
82939
|
+
stateMutability: "nonpayable",
|
|
82940
|
+
type: "function"
|
|
82941
|
+
},
|
|
82942
|
+
{
|
|
82943
|
+
inputs: [{ internalType: "bool", name: "valid", type: "bool" }],
|
|
82944
|
+
name: "resolveDispute",
|
|
82945
|
+
outputs: [],
|
|
82946
|
+
stateMutability: "nonpayable",
|
|
82947
|
+
type: "function"
|
|
82948
|
+
},
|
|
82949
|
+
{ inputs: [], name: "revokeTree", outputs: [], stateMutability: "nonpayable", type: "function" },
|
|
82950
|
+
{
|
|
82951
|
+
inputs: [{ internalType: "uint256", name: "_disputeAmount", type: "uint256" }],
|
|
82952
|
+
name: "setDisputeAmount",
|
|
82953
|
+
outputs: [],
|
|
82954
|
+
stateMutability: "nonpayable",
|
|
82955
|
+
type: "function"
|
|
82956
|
+
},
|
|
82957
|
+
{
|
|
82958
|
+
inputs: [{ internalType: "uint48", name: "_disputePeriod", type: "uint48" }],
|
|
82959
|
+
name: "setDisputePeriod",
|
|
82960
|
+
outputs: [],
|
|
82961
|
+
stateMutability: "nonpayable",
|
|
82962
|
+
type: "function"
|
|
82963
|
+
},
|
|
82964
|
+
{
|
|
82965
|
+
inputs: [{ internalType: "contract IERC20", name: "_disputeToken", type: "address" }],
|
|
82966
|
+
name: "setDisputeToken",
|
|
82967
|
+
outputs: [],
|
|
82968
|
+
stateMutability: "nonpayable",
|
|
82969
|
+
type: "function"
|
|
82970
|
+
},
|
|
82971
|
+
{
|
|
82972
|
+
inputs: [{ internalType: "address", name: "user", type: "address" }],
|
|
82973
|
+
name: "toggleOnlyOperatorCanClaim",
|
|
82974
|
+
outputs: [],
|
|
82975
|
+
stateMutability: "nonpayable",
|
|
82976
|
+
type: "function"
|
|
82977
|
+
},
|
|
82978
|
+
{
|
|
82979
|
+
inputs: [
|
|
82980
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
82981
|
+
{ internalType: "address", name: "operator", type: "address" }
|
|
82982
|
+
],
|
|
82983
|
+
name: "toggleOperator",
|
|
82984
|
+
outputs: [],
|
|
82985
|
+
stateMutability: "nonpayable",
|
|
82986
|
+
type: "function"
|
|
82987
|
+
},
|
|
82988
|
+
{
|
|
82989
|
+
inputs: [{ internalType: "address", name: "eoa", type: "address" }],
|
|
82990
|
+
name: "toggleTrusted",
|
|
82991
|
+
outputs: [],
|
|
82992
|
+
stateMutability: "nonpayable",
|
|
82993
|
+
type: "function"
|
|
82994
|
+
},
|
|
82995
|
+
{
|
|
82996
|
+
inputs: [],
|
|
82997
|
+
name: "tree",
|
|
82998
|
+
outputs: [
|
|
82999
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
83000
|
+
{ internalType: "bytes32", name: "ipfsHash", type: "bytes32" }
|
|
83001
|
+
],
|
|
83002
|
+
stateMutability: "view",
|
|
83003
|
+
type: "function"
|
|
83004
|
+
},
|
|
83005
|
+
{
|
|
83006
|
+
inputs: [
|
|
83007
|
+
{
|
|
83008
|
+
components: [
|
|
83009
|
+
{ internalType: "bytes32", name: "merkleRoot", type: "bytes32" },
|
|
83010
|
+
{ internalType: "bytes32", name: "ipfsHash", type: "bytes32" }
|
|
83011
|
+
],
|
|
83012
|
+
internalType: "struct MerkleTree",
|
|
83013
|
+
name: "_tree",
|
|
83014
|
+
type: "tuple"
|
|
83015
|
+
}
|
|
83016
|
+
],
|
|
83017
|
+
name: "updateTree",
|
|
83018
|
+
outputs: [],
|
|
83019
|
+
stateMutability: "nonpayable",
|
|
83020
|
+
type: "function"
|
|
83021
|
+
},
|
|
83022
|
+
{
|
|
83023
|
+
inputs: [{ internalType: "address", name: "newImplementation", type: "address" }],
|
|
83024
|
+
name: "upgradeTo",
|
|
83025
|
+
outputs: [],
|
|
83026
|
+
stateMutability: "nonpayable",
|
|
83027
|
+
type: "function"
|
|
83028
|
+
},
|
|
83029
|
+
{
|
|
83030
|
+
inputs: [
|
|
83031
|
+
{ internalType: "address", name: "newImplementation", type: "address" },
|
|
83032
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
83033
|
+
],
|
|
83034
|
+
name: "upgradeToAndCall",
|
|
83035
|
+
outputs: [],
|
|
83036
|
+
stateMutability: "payable",
|
|
83037
|
+
type: "function"
|
|
83038
|
+
}
|
|
83039
|
+
];
|
|
83040
|
+
// src/integrations/merkl/merkl.ts
|
|
83041
|
+
var merklInterface = new exports_ethers.utils.Interface(merkl_distributor_abi_default);
|
|
83042
|
+
var merklClaimCalldata = ({ users, tokens, amounts, proofs }) => {
|
|
83043
|
+
return merklInterface.encodeFunctionData("claim", [users, tokens, amounts, proofs]);
|
|
83044
|
+
};
|
|
83045
|
+
var merklClaimTrx = ({
|
|
83046
|
+
args,
|
|
83047
|
+
distributorAddress
|
|
83048
|
+
}) => {
|
|
83049
|
+
return createCall({
|
|
83050
|
+
to: distributorAddress,
|
|
83051
|
+
data: merklClaimCalldata(args),
|
|
83052
|
+
operation: 0,
|
|
83053
|
+
value: 0n
|
|
83054
|
+
});
|
|
83055
|
+
};
|
|
82663
83056
|
// src/lib/utils.ts
|
|
82664
83057
|
var executeTrx = ({
|
|
82665
83058
|
client,
|
|
@@ -82754,4 +83147,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
82754
83147
|
};
|
|
82755
83148
|
};
|
|
82756
83149
|
|
|
82757
|
-
//# debugId=
|
|
83150
|
+
//# debugId=31322C94F611E94764756E2164756E21
|