Skip to content

Instantly share code, notes, and snippets.

View zeroXBami's full-sized avatar

Quan zeroXBami

  • Hanoi, Vietnam
View GitHub Profile
@zeroXBami
zeroXBami / gist:c02a224d5b6895991a9a86c270ee3bb4
Created December 24, 2020 07:50
How to use wallet connect
- Import thư viện và tạo connector
import WalletConnect from "@walletconnect/client";
import QRCodeModal from "@walletconnect/qrcode-modal";
// Create a connector
const connector = new WalletConnect({
bridge: "https://bridge.walletconnect.org", // Required
qrcodeModal: QRCodeModal,
});
@zeroXBami
zeroXBami / Raw_call_example.vy
Last active July 2, 2021 08:10
Vyper raw_call example
@public
def _swapOneSplit(OneSplitEHT_ADDR: address
fromToken: address,
toToken: address,
amount: uint256,
minReturn: uint256,
trade_dist: uint256[4],
disableFlags: uint256):
funcSig: bytes[4] = method_id("swap(address,address,uint256,uint256,uint256[],uint256)", bytes[4])
data: bytes[352] = concat( convert(fromToken, bytes32),
@zeroXBami
zeroXBami / keybase.md
Created September 11, 2019 06:12
keybase.md

Keybase proof

I hereby claim:

  • I am trnhgquan on github.
  • I am trnhgquann (https://keybase.io/trnhgquann) on keybase.
  • I have a public key ASA1lwdhIupzslPET_gpI1yZN55t7FBVg4F1A69f6xJRcQo

To claim this, I am signing this object: