-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a19151b
Showing
12 changed files
with
6,268 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.env | ||
node_modules | ||
index.js | ||
yarn-error.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Hyperbridge Demo | ||
|
||
Simple example that uses the ping module to dispatch a cross-chain request and hyperclient to report the real-time status of the request. | ||
|
||
## Usage | ||
|
||
Fill out a file `.env` in the root of the project with the following fields | ||
|
||
``` | ||
PRIVATE_KEY="Your hex-encoded private key" | ||
BSC_URL="Bsc testnet rpc url" | ||
OP_URL="Op sepolia testnet rpc url" | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ABI = [ | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "admin", type: "address" }, | ||
{ internalType: "string", name: "name", type: "string" }, | ||
{ internalType: "string", name: "symbol", type: "string" }, | ||
], | ||
stateMutability: "nonpayable", | ||
type: "constructor", | ||
}, | ||
{ inputs: [], name: "NotRoleAdmin", type: "error" }, | ||
{ inputs: [], name: "PermissionDenied", type: "error" }, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "owner", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "spender", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "value", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "Approval", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ indexed: true, internalType: "address", name: "from", type: "address" }, | ||
{ indexed: true, internalType: "address", name: "to", type: "address" }, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "value", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "Transfer", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "BURNER_ROLE", | ||
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "MINTER_ROLE", | ||
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "owner", type: "address" }, | ||
{ internalType: "address", name: "spender", type: "address" }, | ||
], | ||
name: "allowance", | ||
outputs: [{ internalType: "uint256", name: "", type: "uint256" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "spender", type: "address" }, | ||
{ internalType: "uint256", name: "amount", type: "uint256" }, | ||
], | ||
name: "approve", | ||
outputs: [{ internalType: "bool", name: "", type: "bool" }], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [{ internalType: "address", name: "account", type: "address" }], | ||
name: "balanceOf", | ||
outputs: [{ internalType: "uint256", name: "", type: "uint256" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "_from", type: "address" }, | ||
{ internalType: "uint256", name: "_amount", type: "uint256" }, | ||
{ internalType: "bytes", name: "", type: "bytes" }, | ||
], | ||
name: "burn", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "decimals", | ||
outputs: [{ internalType: "uint8", name: "", type: "uint8" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "spender", type: "address" }, | ||
{ internalType: "uint256", name: "subtractedValue", type: "uint256" }, | ||
], | ||
name: "decreaseAllowance", | ||
outputs: [{ internalType: "bool", name: "", type: "bool" }], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getBurnerRole", | ||
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], | ||
stateMutability: "pure", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getMinterRole", | ||
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], | ||
stateMutability: "pure", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "bytes32", name: "_role", type: "bytes32" }, | ||
{ internalType: "address", name: "_account", type: "address" }, | ||
], | ||
name: "grantRole", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "bytes32", name: "_role", type: "bytes32" }, | ||
{ internalType: "address", name: "_account", type: "address" }, | ||
], | ||
name: "hasRole", | ||
outputs: [{ internalType: "bool", name: "", type: "bool" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "spender", type: "address" }, | ||
{ internalType: "uint256", name: "addedValue", type: "uint256" }, | ||
], | ||
name: "increaseAllowance", | ||
outputs: [{ internalType: "bool", name: "", type: "bool" }], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "_to", type: "address" }, | ||
{ internalType: "uint256", name: "_amount", type: "uint256" }, | ||
{ internalType: "bytes", name: "", type: "bytes" }, | ||
], | ||
name: "mint", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "name", | ||
outputs: [{ internalType: "string", name: "", type: "string" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "bytes32", name: "_role", type: "bytes32" }, | ||
{ internalType: "address", name: "_account", type: "address" }, | ||
], | ||
name: "revokeRole", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [{ internalType: "bytes4", name: "_interfaceId", type: "bytes4" }], | ||
name: "supportsInterface", | ||
outputs: [{ internalType: "bool", name: "", type: "bool" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "symbol", | ||
outputs: [{ internalType: "string", name: "", type: "string" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "totalSupply", | ||
outputs: [{ internalType: "uint256", name: "", type: "uint256" }], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "to", type: "address" }, | ||
{ internalType: "uint256", name: "amount", type: "uint256" }, | ||
], | ||
name: "transfer", | ||
outputs: [{ internalType: "bool", name: "", type: "bool" }], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: "address", name: "from", type: "address" }, | ||
{ internalType: "address", name: "to", type: "address" }, | ||
{ internalType: "uint256", name: "amount", type: "uint256" }, | ||
], | ||
name: "transferFrom", | ||
outputs: [{ internalType: "bool", name: "", type: "bool" }], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
]; | ||
exports.default = { ABI }; |
Oops, something went wrong.