Skip to content

Referral api changes - #4941

Merged
n10ty merged 6 commits into
masterfrom
referral-api-changes
Apr 5, 2022
Merged

Referral api changes#4941
n10ty merged 6 commits into
masterfrom
referral-api-changes

Conversation

@n10ty

@n10ty n10ty commented Mar 28, 2022

Copy link
Copy Markdown
Contributor
  • Remove Referral API from cli and TequilaAPI: GetTokenReward, GetReferralToken, ReferralTokenAvailable
  • Add Affiliator to Node
  • Do TokenRewardAmount request directly to Affiliator, not Transactor

AndreyM added 4 commits March 28, 2022 12:30
…ralToken, ReferralTokenAvailable

Signed-off-by: AndreyM <andrey@mysterium.network>
Do TokenRewardAmount request directly to Affiliator, not Transactor

Signed-off-by: AndreyM <andrey@mysterium.network>
# Conflicts:
#	tequilapi/endpoints/assets/docs.go
Signed-off-by: AndreyM <andrey@mysterium.network>
@n10ty
n10ty marked this pull request as ready for review March 28, 2022 14:53
@n10ty
n10ty requested a review from Guillembonet March 28, 2022 14:56

@Guillembonet Guillembonet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just 2 comments. Also some parts of the code I'm not very familiar with so whoever reviews next do it carefully pls

Comment thread metadata/network.go
AccessPolicyOracleAddress: "https://trust.mysterium.network/api/v1/access-policies/",
BrokerAddresses: []string{"nats://broker.mysterium.network"},
TransactorAddress: "https://transactor.mysterium.network/api/v1",
AffiliatorAddress: "https://affiliator.mysterium.network/api/v1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about it but I think it would be nice to use just "https://affiliator.mysterium.network" in order to be able to call both v1 and v2 endpoints in case we have some in the future, maybe thats a bad choice for some reason

Comment thread tequilapi/endpoints/transactor.go
@n10ty
n10ty merged commit da90212 into master Apr 5, 2022
@n10ty
n10ty deleted the referral-api-changes branch April 5, 2022 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants