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
{ | |
"name": "ZEX", | |
"website": "https://docs.zellular.xyz/zex", | |
"description": "Zellular Exchange", | |
"logo": "https://docs.zellular.xyz/zex.png", | |
"twitter": "https://x.com/zex_trade" | |
} |
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
{ | |
"name": "ZBTC", | |
"website": "https://zellular.xyz", | |
"description": "Zellular Bridge for Bitcoin", | |
"logo": "https://docs.zellular.xyz/zbtc.png", | |
"twitter": "https://x.com/zellular_xyz" | |
} |
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
import json | |
import time | |
import requests | |
import base64 | |
import ed25519 | |
URL = 'http://test.brightid.org/brightid/v6/operations' | |
PRIVATE = '' | |
op = { |
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
import numpy as np | |
import math | |
# prices = [1, 1.1, 0, 1.1, 1.0, 1.2, 100, 100, 100, 1.1, 1.3, 5, 1.2, 1.1, .9, .95, 1.1] | |
prices = [200, 200, 300, 3, 400, 400, 400, 200, 300, 300, 500, 600, 90] | |
threshold = 2 | |
# outlier detection using Z score and removing them | |
def removeOutlier(prices): |
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
const CryptoJS = require("crypto-js"); | |
const nacl = require("tweetnacl"); | |
const B64 = require("base64-js"); | |
const { create } = require("apisauce"); | |
const assert = require("assert"); | |
const qrcode = require("qrcode-terminal"); | |
const baseURL = "http://test.brightid.org/profile"; | |
const api = create({ | |
baseURL, |
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
import brightid | |
from eth_account import Account | |
import secrets | |
import time | |
import requests | |
context = 'RabbitHole' | |
node = brightid.Node('http://node.brightid.org/brightid/v5') | |
def newAddress(): |
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
import json | |
import time | |
import requests | |
import base64 | |
import ed25519 | |
URL = 'http://test.brightid.org/brightid/v5/operations' | |
PRIVATE = '' | |
op = { |
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
pragma solidity ^0.6.3; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol"; | |
import "https://github.com/BrightID/BrightID-SmartContract/blob/master/v4/IBrightID.sol"; | |
contract Sahm is ERC20, Ownable { | |
IBrightID public brightid; | |
mapping(address => bool) public claimed; |
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
pragma solidity ^0.6.3; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol"; | |
contract BrightID { | |
mapping(address => bool) public verifications; | |
mapping(address => address) public history; | |
} |
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
pragma solidity ^0.6.3; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; | |
contract BrightID is Ownable { | |
event Verified(address indexed addr); | |
event Revoked(address indexed addr); | |
mapping(address => bool) public verifications; | |
mapping(address => address) public history; |
NewerOlder