View CrossTransfer.sol
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
// SPDX-License-Identifier: Unlicensed | |
pragma solidity ^0.8.9; | |
interface IERC20 { | |
function withdraw(uint256 amount) external payable; | |
function transfer(address to, uint256 value) external returns (bool); | |
function balanceOf(address who) external view returns (uint256); | |
} | |
interface IRootChainManager { |
View 1_Storage.sol
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.4.22 <0.7.0; | |
/** | |
* @title Storage | |
* @dev Store & retrieve value in a variable | |
*/ | |
contract Storage { | |
uint256 number; |
View DepositTest.sol
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.5.9; | |
contract DepositTest { | |
event Deposit( | |
address rootToken, | |
address user, | |
uint256 amountOrTokenId, | |
uint256 depositCount | |
); | |
View go-install.sh
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
#!/bin/bash | |
set -e | |
VERSION="1.15.5" | |
[ -z "$GOROOT" ] && GOROOT="$HOME/.go" | |
[ -z "$GOPATH" ] && GOPATH="$HOME/go" | |
OS="$(uname -s)" | |
ARCH="$(uname -m)" |
View docker-image
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: Docker Image CI | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
View docker-image
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: Docker Image CI | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
View cs1.go
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
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/maticnetwork/heimdall/bor" | |
"github.com/maticnetwork/heimdall/helper" | |
) |
View ChildERC20.sol
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.4.22 <0.6.0; | |
pragma solidity >=0.5.2 <0.6.0; | |
import { ERC20 } from "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; | |
import { ERC20Detailed } from "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; | |
import { LibTokenTransferOrder } from "./libs/TokenTransferOrder.sol"; | |
import { ECRecover } from "./libs/ECRecover.sol"; | |
contract ChildERC20 is ERC20, ERC20Detailed, LibTokenTransferOrder, ECRecover { |
View fire-model.js
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 { extendObservable } from "mobx" | |
import { firebaseActions } from "../plugins/mobfire" | |
export default class FireModel { | |
// constructor | |
constructor(data = {}) { | |
// treat data as properties | |
const v = {} | |
Object.keys(data).forEach(key => { | |
if (key !== ".value" && key !== ".key" && key !== "_id") { |
View ATestRLP.sol
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.4.24; | |
import "./RLP.sol"; | |
import "./ECVerify.sol"; | |
contract ATestRLP { | |
using RLP for bytes; | |
using RLP for RLP.RLPItem; | |
using RLP for RLP.Iterator; |
NewerOlder