@dodoex/api 3.8.0-rise.1 → 3.9.0-alpha.2
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/types/gql/fragment-masking.d.ts +4 -0
- package/dist/types/gql/gql.d.ts +7 -3
- package/dist/types/gql/graphql.d.ts +2154 -120
- package/dist/types/services/system/SystemApi.d.ts +21 -0
- package/dist/types/services/system/graphqlQuery.d.ts +3 -0
- package/package.json +1 -1
- package/dist/MerkleDistributorABI-C8Qfs-nh.cjs +0 -1
- package/dist/MerkleDistributorABI-Ctn26fnA.js +0 -1
|
@@ -10,5 +10,26 @@ export declare class SystemApi {
|
|
|
10
10
|
fetchUserprofileReward: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchUserprofileRewardQuery, import("../../gql/graphql").Exact<{
|
|
11
11
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").UserprofileReward_Filter>;
|
|
12
12
|
}>>;
|
|
13
|
+
fetchLpFeeRewardUserReward: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLpFeeRewardUserRewardQuery, import("../../gql/graphql").Exact<{
|
|
14
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Lp_Fee_RewardLpFeeRewardUserInput>;
|
|
15
|
+
}>>;
|
|
16
|
+
};
|
|
17
|
+
static encode: {
|
|
18
|
+
/**
|
|
19
|
+
* Encode a Merkle distributor `claim(index, account, amount, merkleProof)`
|
|
20
|
+
* call for the LP fee reward. `claimContract`, `index`, `proof` and the raw
|
|
21
|
+
* `amount` (claimableRewardRaw) come from `lp_fee_reward_getUserReward`.
|
|
22
|
+
*/
|
|
23
|
+
claimLpFeeReward({ claimContract, index, account, amount, proof, }: {
|
|
24
|
+
claimContract: string;
|
|
25
|
+
index: number;
|
|
26
|
+
account: string;
|
|
27
|
+
amount: string;
|
|
28
|
+
proof: string[];
|
|
29
|
+
}): {
|
|
30
|
+
to: string;
|
|
31
|
+
data: string;
|
|
32
|
+
value: number;
|
|
33
|
+
};
|
|
13
34
|
};
|
|
14
35
|
}
|
|
@@ -8,4 +8,7 @@ export declare const systemGraphqlQuery: {
|
|
|
8
8
|
fetchUserprofileReward: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchUserprofileRewardQuery, import("../../gql/graphql").Exact<{
|
|
9
9
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").UserprofileReward_Filter>;
|
|
10
10
|
}>>;
|
|
11
|
+
fetchLpFeeRewardUserReward: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLpFeeRewardUserRewardQuery, import("../../gql/graphql").Exact<{
|
|
12
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Lp_Fee_RewardLpFeeRewardUserInput>;
|
|
13
|
+
}>>;
|
|
11
14
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.default=[{inputs:[{internalType:"address",name:"token_",type:"address"},{internalType:"bytes32",name:"merkleRoot_",type:"bytes32"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Claimed",type:"event"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32[]",name:"merkleProof",type:"bytes32[]"}],name:"claim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"isClaimed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"merkleRoot",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=[{inputs:[{internalType:"address",name:"token_",type:"address"},{internalType:"bytes32",name:"merkleRoot_",type:"bytes32"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Claimed",type:"event"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32[]",name:"merkleProof",type:"bytes32[]"}],name:"claim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"isClaimed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"merkleRoot",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}];export{e as default};
|