hermes-wrap
Version:
hermes protocol javascript sdk for client side
2,084 lines (1,973 loc) • 15 MB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("hermes", [], factory);
else if(typeof exports === 'object')
exports["hermes"] = factory();
else
root["hermes"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.js");
/******/ })
/************************************************************************/
/******/ ({
/***/ "./abi/erc20ABI.js":
/*!*************************!*\
!*** ./abi/erc20ABI.js ***!
\*************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ([{
"inputs": [{
"internalType": "uint256",
"name": "chainId_",
"type": "uint256"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "guy",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "Approval",
"type": "event"
}, {
"anonymous": true,
"inputs": [{
"indexed": true,
"internalType": "bytes4",
"name": "sig",
"type": "bytes4"
}, {
"indexed": true,
"internalType": "address",
"name": "usr",
"type": "address"
}, {
"indexed": true,
"internalType": "bytes32",
"name": "arg1",
"type": "bytes32"
}, {
"indexed": true,
"internalType": "bytes32",
"name": "arg2",
"type": "bytes32"
}, {
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}],
"name": "LogNote",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "dst",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "Transfer",
"type": "event"
}, {
"constant": true,
"inputs": [],
"name": "DOMAIN_SEPARATOR",
"outputs": [{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "PERMIT_TYPEHASH",
"outputs": [{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "",
"type": "address"
}, {
"internalType": "address",
"name": "",
"type": "address"
}],
"name": "allowance",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "usr",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "approve",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"name": "balanceOf",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "usr",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "burn",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [{
"internalType": "uint8",
"name": "",
"type": "uint8"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "guy",
"type": "address"
}],
"name": "deny",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "usr",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "mint",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "src",
"type": "address"
}, {
"internalType": "address",
"name": "dst",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "move",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "name",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"name": "nonces",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "holder",
"type": "address"
}, {
"internalType": "address",
"name": "spender",
"type": "address"
}, {
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "expiry",
"type": "uint256"
}, {
"internalType": "bool",
"name": "allowed",
"type": "bool"
}, {
"internalType": "uint8",
"name": "v",
"type": "uint8"
}, {
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
}, {
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}],
"name": "permit",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "usr",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "pull",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "usr",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "push",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "guy",
"type": "address"
}],
"name": "rely",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "dst",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "transfer",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "src",
"type": "address"
}, {
"internalType": "address",
"name": "dst",
"type": "address"
}, {
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}],
"name": "transferFrom",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "version",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"name": "wards",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}]);
/***/ }),
/***/ "./abi/etherCustodianABI.js":
/*!**********************************!*\
!*** ./abi/etherCustodianABI.js ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ([{
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}, {
"indexed": true,
"internalType": "bytes32",
"name": "name",
"type": "bytes32"
}],
"name": "AddedAsset",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}, {
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}, {
"indexed": false,
"internalType": "bytes32",
"name": "memo",
"type": "bytes32"
}],
"name": "Locked",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}],
"name": "OwnershipTransferred",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}],
"name": "RemovedAsset",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}, {
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}],
"name": "UnLocked",
"type": "event"
}, {
"constant": true,
"inputs": [],
"name": "_storage",
"outputs": [{
"internalType": "contract Data",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "newOwner",
"type": "address"
}],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}, {
"internalType": "address",
"name": "_from",
"type": "address"
}, {
"internalType": "uint256",
"name": "_value",
"type": "uint256"
}, {
"internalType": "bytes32",
"name": "_memo",
"type": "bytes32"
}],
"name": "lock",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}, {
"internalType": "address",
"name": "_to",
"type": "address"
}, {
"internalType": "uint256",
"name": "_value",
"type": "uint256"
}],
"name": "unlock",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}, {
"internalType": "bytes32",
"name": "_name",
"type": "bytes32"
}, {
"internalType": "address",
"name": "_tokenAddress",
"type": "address"
}, {
"internalType": "string",
"name": "_partnerIssuer",
"type": "string"
}],
"name": "add",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}],
"name": "remove",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}],
"name": "getSender",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}, {
"internalType": "address",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}],
"name": "getAsset",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}, {
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}, {
"internalType": "address",
"name": "",
"type": "address"
}, {
"internalType": "string",
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "getAssetIds",
"outputs": [{
"internalType": "uint256[]",
"name": "assetIds",
"type": "uint256[]"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "getLockedFunds",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}]);
/***/ }),
/***/ "./abi/evrynetCustodianABI.js":
/*!************************************!*\
!*** ./abi/evrynetCustodianABI.js ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ([{
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}, {
"indexed": true,
"internalType": "bytes32",
"name": "name",
"type": "bytes32"
}],
"name": "AddedAsset",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}, {
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}, {
"indexed": false,
"internalType": "bytes32",
"name": "memo",
"type": "bytes32"
}],
"name": "Locked",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}],
"name": "OwnershipTransferred",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}],
"name": "RemovedAsset",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "typeid",
"type": "uint256"
}, {
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}],
"name": "UnLocked",
"type": "event"
}, {
"constant": true,
"inputs": [],
"name": "_storage",
"outputs": [{
"internalType": "contract Data",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "newOwner",
"type": "address"
}],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}, {
"internalType": "address",
"name": "_from",
"type": "address"
}, {
"internalType": "uint256",
"name": "_value",
"type": "uint256"
}, {
"internalType": "bytes32",
"name": "_memo",
"type": "bytes32"
}],
"name": "lock",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}, {
"internalType": "address",
"name": "_to",
"type": "address"
}, {
"internalType": "uint256",
"name": "_value",
"type": "uint256"
}],
"name": "unlock",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}, {
"internalType": "bytes32",
"name": "_name",
"type": "bytes32"
}, {
"internalType": "address",
"name": "_tokenAddress",
"type": "address"
}, {
"internalType": "string",
"name": "_partnerIssuer",
"type": "string"
}],
"name": "add",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}],
"name": "remove",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}],
"name": "getSender",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}, {
"internalType": "address",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "uint256",
"name": "_typeid",
"type": "uint256"
}],
"name": "getAsset",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}, {
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}, {
"internalType": "address",
"name": "",
"type": "address"
}, {
"internalType": "string",
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "getAssetIds",
"outputs": [{
"internalType": "uint256[]",
"name": "assetIds",
"type": "uint256[]"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "getLockedFunds",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}]);
/***/ }),
/***/ "./abi/evrynetCustodianABI20.js":
/*!**************************************!*\
!*** ./abi/evrynetCustodianABI20.js ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ([{
"inputs": [{
"internalType": "string",
"name": "_name",
"type": "string"
}, {
"internalType": "string",
"name": "_code",
"type": "string"
}, {
"internalType": "uint8",
"name": "_decimals",
"type": "uint8"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}, {
"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"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
}],
"name": "WhitelistAdminAdded",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
}],
"name": "WhitelistAdminRemoved",
"type": "event"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "account",
"type": "address"
}],
"name": "addWhitelistAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"internalType": "address",
"name": "spender",
"type": "address"
}],
"name": "allowance",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "account",
"type": "address"
}],
"name": "balanceOf",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "callOrigin",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [{
"internalType": "uint8",
"name": "",
"type": "uint8"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "spender",
"type": "address"
}, {
"internalType": "uint256",
"name": "subtractedValue",
"type": "uint256"
}],
"name": "decreaseAllowance",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "spender",
"type": "address"
}, {
"internalType": "uint256",
"name": "addedValue",
"type": "uint256"
}],
"name": "increaseAllowance",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "account",
"type": "address"
}],
"name": "isWhitelistAdmin",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "name",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [],
"name": "renounceWhitelistAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "recipient",
"type": "address"
}, {
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}],
"name": "transfer",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"internalType": "address",
"name": "recipient",
"type": "address"
}, {
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}],
"name": "transferFrom",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "recipient",
"type": "address"
}, {
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}],
"name": "mint",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "tokenOwner",
"type": "address"
}, {
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}],
"name": "burn",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "spender",
"type": "address"
}, {
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}],
"name": "approve",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "getCallAddress",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}]);
/***/ }),
/***/ "./abi/index.js":
/*!**********************!*\
!*** ./abi/index.js ***!
\**********************/
/*! exports provided: evrynetCustodianABI, evrynetCustodianABI20, stellarCustodianABI, etherCustodianABI, erc20ABI */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _evrynetCustodianABI_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./evrynetCustodianABI.js */ "./abi/evrynetCustodianABI.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "evrynetCustodianABI", function() { return _evrynetCustodianABI_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
/* harmony import */ var _evrynetCustodianABI20_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./evrynetCustodianABI20.js */ "./abi/evrynetCustodianABI20.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "evrynetCustodianABI20", function() { return _evrynetCustodianABI20_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/* harmony import */ var _stellarCustodianABI_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stellarCustodianABI.js */ "./abi/stellarCustodianABI.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stellarCustodianABI", function() { return _stellarCustodianABI_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
/* harmony import */ var _etherCustodianABI_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./etherCustodianABI.js */ "./abi/etherCustodianABI.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "etherCustodianABI", function() { return _etherCustodianABI_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
/* harmony import */ var _erc20ABI_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./erc20ABI.js */ "./abi/erc20ABI.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "erc20ABI", function() { return _erc20ABI_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
/***/ }),
/***/ "./abi/stellarCustodianABI.js":
/*!************************************!*\
!*** ./abi/stellarCustodianABI.js ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ([{
"constant": false,
"inputs": [{
"name": "_typeID",
"type": "uint256"
}],
"name": "add",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_typeID",
"type": "uint256"
}, {
"name": "_value",
"type": "uint256"
}],
"name": "lock",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_typeID",
"type": "uint256"
}, {
"name": "_value",
"type": "uint256"
}],
"name": "unlock",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_typeID",
"type": "uint256"
}, {
"name": "_prevTypeID",
"type": "uint256"
}],
"name": "remove",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "",
"type": "uint256"
}],
"name": "linklist",
"outputs": [{
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [{
"name": "_to",
"type": "address"
}],
"name": "migrationVote",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [{
"name": "",
"type": "uint256"
}],
"name": "assets",
"outputs": [{
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"name": "_credit",
"type": "address"
}, {
"name": "_threshold",
"type": "uint16"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "operator",
"type": "address"
}, {
"indexed": true,
"name": "from",
"type": "address"
}, {
"indexed": true,
"name": "typeID",
"type": "uint256"
}, {
"indexed": false,
"name": "value",
"type": "uint256"
}],
"name": "Lock",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "to",
"type": "address"
}, {
"indexed": true,
"name": "typeID",
"type": "uint256"
}, {
"indexed": false,
"name": "value",
"type": "uint256"
}],
"name": "Unlock",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "to",
"type": "address"
}],
"name": "Migrate",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "typeID",
"type": "uint256"
}],
"name": "AddedAsset",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"name": "typeID",
"type": "uint256"
}],
"name": "RemovedAsset",
"type": "event"
}]);
/***/ }),
/***/ "./node_modules/@babel/polyfill/lib/index.js":
/*!***************************************************!*\
!*** ./node_modules/@babel/polyfill/lib/index.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! ./noConflict */ "./node_modules/@babel/polyfill/lib/noConflict.js");
var _global = _interopRequireDefault(__webpack_require__(/*! core-js/library/fn/global */ "./node_modules/core-js/library/fn/global.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
if (_global["default"]._babelPolyfill && typeof console !== "undefined" && console.warn) {
console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended " + "and may have consequences if different versions of the polyfills are applied sequentially. " + "If you do need to load the polyfill more than once, use @babel/polyfill/noConflict " + "instead to bypass the warning.");
}
_global["default"]._babelPolyfill = true;
/***/ }),
/***/ "./node_modules/@babel/polyfill/lib/noConflict.js":
/*!********************************************************!*\
!*** ./node_modules/@babel/polyfill/lib/noConflict.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(/*! core-js/es6 */ "./node_modules/core-js/es6/index.js");
__webpack_require__(/*! core-js/fn/array/includes */ "./node_modules/core-js/fn/array/includes.js");
__webpack_require__(/*! core-js/fn/array/flat-map */ "./node_modules/core-js/fn/array/flat-map.js");
__webpack_require__(/*! core-js/fn/string/pad-start */ "./node_modules/core-js/fn/string/pad-start.js");
__webpack_require__(/*! core-js/fn/string/pad-end */ "./node_modules/core-js/fn/string/pad-end.js");
__webpack_require__(/*! core-js/fn/string/trim-start */ "./node_modules/core-js/fn/string/trim-start.js");
__webpack_require__(/*! core-js/fn/string/trim-end */ "./node_modules/core-js/fn/string/trim-end.js");
__webpack_require__(/*! core-js/fn/symbol/async-iterator */ "./node_modules/core-js/fn/symbol/async-iterator.js");
__webpack_require__(/*! core-js/fn/object/get-own-property-descriptors */ "./node_modules/core-js/fn/object/get-own-property-descriptors.js");
__webpack_require__(/*! core-js/fn/object/values */ "./node_modules/core-js/fn/object/values.js");
__webpack_require__(/*! core-js/fn/object/entries */ "./node_modules/core-js/fn/object/entries.js");
__webpack_require__(/*! core-js/fn/promise/finally */ "./node_modules/core-js/fn/promise/finally.js");
__webpack_require__(/*! core-js/web */ "./node_modules/core-js/web/index.js");
__webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js");
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js":
/*!**********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
module.exports = _assertThisInitialized;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js":
/*!*****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
module.exports = _asyncToGenerator;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js":
/*!***************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
module.exports = _classCallCheck;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/construct.js":
/*!**********************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/construct.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js");
var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
function _construct(Parent, args, Class) {
if (isNativeReflectConstruct()) {
module.exports = _construct = Reflect.construct;
module.exports["default"] = module.exports, module.exports.__esModule = true;
} else {
module.exports = _construct = function _construct(Parent, args, Class) {
var a = [null];
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class) setPrototypeOf(instance, Class.prototype);
return instance;
};
module.exports["default"] = module.exports, module.exports.__esModule = true;
}
return _construct.apply(null, arguments);
}
module.exports = _construct;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/createClass.js":
/*!************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
module.exports = _createClass;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/defineProperty.js":
/*!***************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
module.exports = _defineProperty;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js":
/*!***************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _getPrototypeOf(o) {
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
module.exports["default"] = module.exports, module.exports.__esModule = true;
return _getPrototypeOf(o);
}
module.exports = _getPrototypeOf;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/inherits.js":
/*!*********************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js");
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
if (superClass) setPrototypeOf(subClass, superClass);
}
module.exports = _inherits;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/isNativeFunction.js":
/*!*****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _isNativeFunction(fn) {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
module.exports = _isNativeFunction;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
/*!*************************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
return true;
} catch (e) {
return false;
}
}
module.exports = _isNativeReflectConstruct;
module.exports["default"] = module.exports, module.exports.__esModule = true;
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
/*!**************************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
\***************************