-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:Add BOP platform support and corresponding tests
Introduced support for the BOP platform by adding `BOPClient` library and updating `PlatformUser` contract. Mocked the HTTP request for BOP and added tests to validate BOP user recognition.
- Loading branch information
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.8; | ||
import "../libraries/Http.sol"; | ||
import "../libraries/Utils.sol"; | ||
import "../libraries/Identities.sol"; | ||
|
||
library BOPClient { | ||
function talentAsset(string memory account) internal returns (bool, bool) { | ||
string memory url = "https://bop.burve.workers.dev/?address="; | ||
|
||
url = string(abi.encodePacked(url, account)); | ||
|
||
HttpHeader[] memory headers = new HttpHeader[](0); | ||
return Http.GetBool(url, "/data", headers); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters