Skip to content

Instantly share code, notes, and snippets.

View yohanelly95's full-sized avatar
🏠
Working from home

Yohan Nelson yohanelly95

🏠
Working from home
  • Razor Network
View GitHub Profile
@yohanelly95
yohanelly95 / test.sol
Created November 2, 2023 06:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface ITransparentForwarder {
/**
* @dev using the hash of collection name, clients can query the result of that collection
* @param _name bytes32 hash of the collection name
* @return result of the collection and its power
*/
function getResult(bytes32 _name) external payable returns (uint256, int8);
curl 'http://localhost:3000/api/v1/documents/pending_pending_1029464_1626088534/attachment' \
-H 'Connection: keep-alive' \
-H 'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSXNJbVY0Y0NJNk1UWTFOell3Tnprek1pd2lhV0YwSWpveE5qSTJNRGN4T1RNeWZRLmV5SjFjMlZ5WDJsa0lqb3pNak15TVRVMExDSmxiV0ZwYkNJNklubHZhR0Z1TG01bGJITnZia0JuWlhSemFXZHVaV0Z6ZVM1amIyMGlmUS5RNTFWaC1ndmZsbXZORG5PRlNyWVBpUHZjaVpwSURwbnVqQnIxUVI0YXkwOiFKdW5rSnVua0p1bmsh' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Origin: http://localhost:9000' \
-H 'Sec-Fetch-Site: same-site' \