Skip to content

Instantly share code, notes, and snippets.

View brickhu's full-sized avatar
🎯
Focusing

FEI brickhu

🎯
Focusing
View GitHub Profile
@brickhu
brickhu / ao.js
Created November 27, 2025 01:25
ao.js
import * as aoconnect from "https://unpkg.com/@permaweb/aoconnect@latest/dist/browser.js";
const { createSigner, connect, createDataItemSigner } = aoconnect;
export const DEFAULT_HYPERBEAM_NODE_URL = "http://forward.computer"
export const GQLUrls = {
goldsky: 'https://arweave-search.goldsky.com/graphql' ,
arweave: 'https://arweave.net/graphql',
}
@brickhu
brickhu / contracts...1_EnableToken.sol
Created October 19, 2021 10: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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract EnableToken {
// something to do ;
// shit
}
@brickhu
brickhu / contracts...1_EnableToken.sol
Created October 19, 2021 10: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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract EnableToken {
// something to do ;
}
@brickhu
brickhu / tests...4_Ballot_test.sol
Created October 7, 2021 14:15
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=builtin&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../contracts/3_Ballot.sol";
contract BallotTest {
bytes32[] proposalNames;
h1{
color:red;
}