mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Merge branch 'main' into feature/new-exchanges
# Conflicts: # package.json
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.19.82",
|
||||
"version": "0.19.84",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.19.82",
|
||||
"version": "0.19.84",
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.19.81-rc8",
|
||||
"version": "0.19.81-rc9",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -69,8 +69,8 @@ class ReferralSystem {
|
||||
this.getMiniStats = this.getMiniStats.bind(this);
|
||||
this.getRewardsMapping = this.getRewardsMapping.bind(this);
|
||||
this.claimRewards = this.claimRewards.bind(this);
|
||||
this.getRating = this.getRating.bind(this);
|
||||
this.getRating = this.getRating.bind(this);
|
||||
this.getLeaderboard = this.getLeaderboard.bind(this);
|
||||
this.getLeaderboardSingleChain = this.getLeaderboardSingleChain.bind(this);
|
||||
this.getContractsAddresses = this.getContractsAddresses.bind(this);
|
||||
this.getClaimInfo = this.getClaimInfo.bind(this);
|
||||
this.getAggregatedHistory = this.getAggregatedHistory.bind(this);
|
||||
@@ -205,7 +205,20 @@ class ReferralSystem {
|
||||
errorSchema
|
||||
);
|
||||
|
||||
getRating = (refererAddress: string | undefined, chainId: SupportedChainId) =>
|
||||
getLeaderboard = (refererAddress: string | undefined) =>
|
||||
fetchWithValidation(
|
||||
`${this.apiUrl}/referer/ve/rating-table-leaderboard?tag=aggregated`,
|
||||
ratingSchema,
|
||||
{
|
||||
headers:
|
||||
refererAddress !== undefined
|
||||
? { 'referer-address': refererAddress }
|
||||
: {},
|
||||
},
|
||||
errorSchema
|
||||
);
|
||||
|
||||
getLeaderboardSingleChain = (refererAddress: string | undefined, chainId: SupportedChainId) =>
|
||||
fetchWithValidation(
|
||||
`${this.apiUrl}/referer/ve/rating-table-leaderboard?chain_id=${chainId}`,
|
||||
ratingSchema,
|
||||
|
||||
Reference in New Issue
Block a user