UNPKG

@eco-foundation/routes-ts

Version:

The Eco Routes Protocol is a decentralized intent based system that allows users to submit their intent to the network and have it fulfilled by a solver on the destination rollup of their choise.

117 lines (116 loc) 7.81 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExecutorDeployedBytecode = exports.ExecutorBytecode = exports.ExecutorAbi = void 0; /** * ABI for the Executor contract */ exports.ExecutorAbi = [ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "internalType": "struct Call", "name": "call", "type": "tuple" }, { "internalType": "bytes", "name": "reason", "type": "bytes" } ], "name": "CallFailed", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "target", "type": "address" } ], "name": "CallToEOA", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "caller", "type": "address" } ], "name": "NonPortalCaller", "type": "error" }, { "inputs": [ { "components": [ { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "internalType": "struct Call[]", "name": "calls", "type": "tuple[]" } ], "name": "execute", "outputs": [ { "internalType": "bytes[]", "name": "", "type": "bytes[]" } ], "stateMutability": "payable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ]; /** * Bytecode for the Executor contract */ exports.ExecutorBytecode = "0x60a0806040523460215733608052610491908161002782396080518160790152f35b600080fdfe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c63760f2a0b0361000e5760203660031901126103505760043567ffffffffffffffff8111610350573660238201121561035057806004013567ffffffffffffffff8111610350573660248260051b84010111610350577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316330361033b576100b86100b3826103d2565b610396565b81815291601f196100c8836103d2565b0160005b81811061032a575050368190036082190160005b838110156102c257600060248260051b85010135838112156102be578401906024820161010c81610414565b3b15806102a7575b6102835761012181610414565b92606481013590838060448301968461013a8988610428565b9190826040519384928337810185815203925af1943d1561027b573d9567ffffffffffffffff871161026757610179601f8801601f1916602001610396565b9687523d86602089013e5b156101ae5750505050509060019161019c82886103ea565b526101a781876103ea565b50016100e0565b6040805163094c409b60e11b81526004810191909152949593356001600160a01b038116908190036102635760448601523590604219368290030182121561025f570160248101359060440167ffffffffffffffff821161025f57813603811361025f579181859660c49361025b9695606060648a01528160a48a0152858901378682018401526084860191909152601f01601f1916840184810382016003190160248601520190610355565b0390fd5b8580fd5b8680fd5b634e487b7160e01b86526041600452602486fd5b606095610184565b9061028f602492610414565b632db5928960e01b82526001600160a01b0316600452fd5b506102b56044840182610428565b90501515610114565b5080fd5b846040518091602082016020835281518091526040830190602060408260051b8601019301916000905b8282106102fb57505050500390f35b9193600191939550602061031a8192603f198a82030186528851610355565b96019201920185949391926102ec565b8060606020809388010152016100cc565b631593d29b60e21b6000523360045260246000fd5b600080fd5b919082519283825260005b848110610381575050826000602080949584010152601f8019910116010190565b80602080928401015182828601015201610360565b6040519190601f01601f1916820167ffffffffffffffff8111838210176103bc57604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff81116103bc5760051b60200190565b80518210156103fe5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b356001600160a01b03811681036103505790565b903590601e1981360301821215610350570180359067ffffffffffffffff8211610350576020019181360383136103505756fea26469706673582212202f0e77b57e5218eadf7e4aa61c0fea42a938eff117ce7b40dd776b162f9b737564736f6c634300081b0033"; /** * Deployed bytecode for the Executor contract */ exports.ExecutorDeployedBytecode = "0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c63760f2a0b0361000e5760203660031901126103505760043567ffffffffffffffff8111610350573660238201121561035057806004013567ffffffffffffffff8111610350573660248260051b84010111610350577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316330361033b576100b86100b3826103d2565b610396565b81815291601f196100c8836103d2565b0160005b81811061032a575050368190036082190160005b838110156102c257600060248260051b85010135838112156102be578401906024820161010c81610414565b3b15806102a7575b6102835761012181610414565b92606481013590838060448301968461013a8988610428565b9190826040519384928337810185815203925af1943d1561027b573d9567ffffffffffffffff871161026757610179601f8801601f1916602001610396565b9687523d86602089013e5b156101ae5750505050509060019161019c82886103ea565b526101a781876103ea565b50016100e0565b6040805163094c409b60e11b81526004810191909152949593356001600160a01b038116908190036102635760448601523590604219368290030182121561025f570160248101359060440167ffffffffffffffff821161025f57813603811361025f579181859660c49361025b9695606060648a01528160a48a0152858901378682018401526084860191909152601f01601f1916840184810382016003190160248601520190610355565b0390fd5b8580fd5b8680fd5b634e487b7160e01b86526041600452602486fd5b606095610184565b9061028f602492610414565b632db5928960e01b82526001600160a01b0316600452fd5b506102b56044840182610428565b90501515610114565b5080fd5b846040518091602082016020835281518091526040830190602060408260051b8601019301916000905b8282106102fb57505050500390f35b9193600191939550602061031a8192603f198a82030186528851610355565b96019201920185949391926102ec565b8060606020809388010152016100cc565b631593d29b60e21b6000523360045260246000fd5b600080fd5b919082519283825260005b848110610381575050826000602080949584010152601f8019910116010190565b80602080928401015182828601015201610360565b6040519190601f01601f1916820167ffffffffffffffff8111838210176103bc57604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff81116103bc5760051b60200190565b80518210156103fe5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b356001600160a01b03811681036103505790565b903590601e1981360301821215610350570180359067ffffffffffffffff8211610350576020019181360383136103505756fea26469706673582212202f0e77b57e5218eadf7e4aa61c0fea42a938eff117ce7b40dd776b162f9b737564736f6c634300081b0033";