├── .gitignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── contract ├── abi │ ├── Bridge.sol │ │ ├── Bridge.dbg.json │ │ └── Bridge.json │ ├── FarmingRewards.sol │ │ ├── FarmingRewards.dbg.json │ │ └── FarmingRewards.json │ ├── Govern.sol │ │ ├── Govern.dbg.json │ │ └── Govern.json │ ├── Pool.sol │ │ ├── Pool.dbg.json │ │ └── Pool.json │ ├── SGN.sol │ │ ├── SGN.dbg.json │ │ └── SGN.json │ ├── Signers.sol │ │ ├── Signers.dbg.json │ │ └── Signers.json │ ├── Staking.sol │ │ ├── Staking.dbg.json │ │ └── Staking.json │ ├── StakingReward.sol │ │ ├── StakingReward.dbg.json │ │ └── StakingReward.json │ ├── Viewer.sol │ │ ├── Viewer.dbg.json │ │ └── Viewer.json │ ├── interfaces │ │ ├── IPeggedToken.sol │ │ │ ├── IPeggedToken.dbg.json │ │ │ └── IPeggedToken.json │ │ ├── ISigsVerifier.sol │ │ │ ├── ISigsVerifier.dbg.json │ │ │ └── ISigsVerifier.json │ │ └── IWETH.sol │ │ │ ├── IWETH.dbg.json │ │ │ └── IWETH.json │ ├── libraries │ │ ├── DataTypes.sol │ │ │ ├── DataTypes.dbg.json │ │ │ └── DataTypes.json │ │ ├── Pb.sol │ │ │ ├── Pb.dbg.json │ │ │ └── Pb.json │ │ ├── PbBridge.sol │ │ │ ├── PbBridge.dbg.json │ │ │ └── PbBridge.json │ │ ├── PbFarming.sol │ │ │ ├── PbFarming.dbg.json │ │ │ └── PbFarming.json │ │ ├── PbPegged.sol │ │ │ ├── PbPegged.dbg.json │ │ │ └── PbPegged.json │ │ ├── PbPool.sol │ │ │ ├── PbPool.dbg.json │ │ │ └── PbPool.json │ │ ├── PbSgn.sol │ │ │ ├── PbSgn.dbg.json │ │ │ └── PbSgn.json │ │ └── PbStaking.sol │ │ │ ├── PbStaking.dbg.json │ │ │ └── PbStaking.json │ ├── message │ │ ├── apps │ │ │ ├── BatchTransfer.sol │ │ │ │ ├── BatchTransfer.dbg.json │ │ │ │ └── BatchTransfer.json │ │ │ └── CrossChainSwap.sol │ │ │ │ ├── CrossChainSwap.dbg.json │ │ │ │ ├── CrossChainSwap.json │ │ │ │ ├── ISwapToken.dbg.json │ │ │ │ └── ISwapToken.json │ │ ├── framework │ │ │ ├── IBridge.sol │ │ │ │ ├── IBridge.dbg.json │ │ │ │ └── IBridge.json │ │ │ ├── MsgBusAddr.sol │ │ │ │ ├── MsgBusAddr.dbg.json │ │ │ │ └── MsgBusAddr.json │ │ │ ├── MsgReceiverApp.sol │ │ │ │ ├── MsgReceiverApp.dbg.json │ │ │ │ └── MsgReceiverApp.json │ │ │ └── MsgSenderApp.sol │ │ │ │ ├── MsgSenderApp.dbg.json │ │ │ │ └── MsgSenderApp.json │ │ └── messagebus │ │ │ ├── MessageBus.sol │ │ │ ├── MessageBus.dbg.json │ │ │ └── MessageBus.json │ │ │ ├── MessageReceiver.sol │ │ │ ├── MessageReceiver.dbg.json │ │ │ └── MessageReceiver.json │ │ │ └── MessageSender.sol │ │ │ ├── MessageSender.dbg.json │ │ │ └── MessageSender.json │ ├── miscs │ │ ├── Faucet.sol │ │ │ ├── Faucet.dbg.json │ │ │ └── Faucet.json │ │ └── MintableERC20.sol │ │ │ ├── MintableERC20.dbg.json │ │ │ └── MintableERC20.json │ ├── pegged │ │ ├── OriginalTokenVault.sol │ │ │ ├── OriginalTokenVault.dbg.json │ │ │ └── OriginalTokenVault.json │ │ ├── PeggedTokenBridge.sol │ │ │ ├── PeggedTokenBridge.dbg.json │ │ │ └── PeggedTokenBridge.json │ │ └── tokens │ │ │ ├── ERC20Permit │ │ │ ├── MintSwapCanonicalTokenPermit.sol │ │ │ │ ├── MintSwapCanonicalTokenPermit.dbg.json │ │ │ │ └── MintSwapCanonicalTokenPermit.json │ │ │ ├── MultiBridgeTokenPermit.sol │ │ │ │ ├── MultiBridgeTokenPermit.dbg.json │ │ │ │ └── MultiBridgeTokenPermit.json │ │ │ └── SingleBridgeTokenPermit.sol │ │ │ │ ├── SingleBridgeTokenPermit.dbg.json │ │ │ │ └── SingleBridgeTokenPermit.json │ │ │ ├── MintSwapCanonicalToken.sol │ │ │ ├── MintSwapCanonicalToken.dbg.json │ │ │ └── MintSwapCanonicalToken.json │ │ │ ├── MultiBridgeToken.sol │ │ │ ├── MultiBridgeToken.dbg.json │ │ │ └── MultiBridgeToken.json │ │ │ ├── SingleBridgeToken.sol │ │ │ ├── SingleBridgeToken.dbg.json │ │ │ └── SingleBridgeToken.json │ │ │ ├── SwapBridgeToken.sol │ │ │ ├── ISwapCanoToken.dbg.json │ │ │ ├── ISwapCanoToken.json │ │ │ ├── SwapBridgeToken.dbg.json │ │ │ └── SwapBridgeToken.json │ │ │ └── customized │ │ │ ├── FraxBridgeToken.sol │ │ │ ├── FraxBridgeToken.dbg.json │ │ │ ├── FraxBridgeToken.json │ │ │ ├── IFraxCanoToken.dbg.json │ │ │ └── IFraxCanoToken.json │ │ │ └── MaiBridgeToken.sol │ │ │ ├── IMaiBridgeHub.dbg.json │ │ │ ├── IMaiBridgeHub.json │ │ │ ├── MaiBridgeToken.dbg.json │ │ │ └── MaiBridgeToken.json │ ├── safeguard │ │ ├── DelayedTransfer.sol │ │ │ ├── DelayedTransfer.dbg.json │ │ │ └── DelayedTransfer.json │ │ ├── Governor.sol │ │ │ ├── Governor.dbg.json │ │ │ └── Governor.json │ │ ├── Pauser.sol │ │ │ ├── Pauser.dbg.json │ │ │ └── Pauser.json │ │ ├── VolumeControl.sol │ │ │ ├── VolumeControl.dbg.json │ │ │ └── VolumeControl.json │ │ └── Whitelist.sol │ │ │ ├── Whitelist.dbg.json │ │ │ └── Whitelist.json │ └── test-helpers │ │ └── TestERC20.sol │ │ ├── TestERC20.dbg.json │ │ └── TestERC20.json └── typechain │ ├── BatchTransfer.d.ts │ ├── Bridge.d.ts │ ├── CrossChainSwap.d.ts │ ├── DelayedTransfer.d.ts │ ├── DummySwap.d.ts │ ├── ERC20.d.ts │ ├── ERC20Burnable.d.ts │ ├── ERC20Permit.d.ts │ ├── FarmingRewards.d.ts │ ├── Faucet.d.ts │ ├── FraxBridgeToken.d.ts │ ├── Govern.d.ts │ ├── Governor.d.ts │ ├── IBridge.d.ts │ ├── IERC20.d.ts │ ├── IERC20Metadata.d.ts │ ├── IERC20Permit.d.ts │ ├── IFraxCanoToken.d.ts │ ├── IMaiBridgeHub.d.ts │ ├── IPeggedToken.d.ts │ ├── ISigsVerifier.d.ts │ ├── ISwapCanoToken.d.ts │ ├── ISwapToken.d.ts │ ├── IUniswapV2.d.ts │ ├── IWETH.d.ts │ ├── MaiBridgeToken.d.ts │ ├── MessageBus.d.ts │ ├── MessageReceiver.d.ts │ ├── MessageSender.d.ts │ ├── MintSwapCanonicalToken.d.ts │ ├── MintSwapCanonicalTokenPermit.d.ts │ ├── MintableERC20.d.ts │ ├── MsgBusAddr.d.ts │ ├── MsgReceiverApp.d.ts │ ├── MsgSenderApp.d.ts │ ├── MultiBridgeToken.d.ts │ ├── MultiBridgeTokenPermit.d.ts │ ├── OriginalTokenVault.d.ts │ ├── Ownable.d.ts │ ├── Pausable.d.ts │ ├── Pauser.d.ts │ ├── PeggedToken.d.ts │ ├── PeggedTokenBridge.d.ts │ ├── Pool.d.ts │ ├── SGN.d.ts │ ├── Signers.d.ts │ ├── SingleBridgeToken.d.ts │ ├── SingleBridgeTokenPermit.d.ts │ ├── Staking.d.ts │ ├── StakingReward.d.ts │ ├── SwapBridgeToken.d.ts │ ├── TestERC20.d.ts │ ├── TransferSwap.d.ts │ ├── Viewer.d.ts │ ├── VolumeControl.d.ts │ ├── Whitelist.d.ts │ ├── commons.ts │ ├── factories │ ├── BatchTransfer__factory.ts │ ├── Bridge__factory.ts │ ├── CrossChainSwap__factory.ts │ ├── DelayedTransfer__factory.ts │ ├── DummySwap__factory.ts │ ├── ERC20Burnable__factory.ts │ ├── ERC20Permit__factory.ts │ ├── ERC20__factory.ts │ ├── FarmingRewards__factory.ts │ ├── Faucet__factory.ts │ ├── FraxBridgeToken__factory.ts │ ├── Govern__factory.ts │ ├── Governor__factory.ts │ ├── IBridge__factory.ts │ ├── IERC20Metadata__factory.ts │ ├── IERC20Permit__factory.ts │ ├── IERC20__factory.ts │ ├── IFraxCanoToken__factory.ts │ ├── IMaiBridgeHub__factory.ts │ ├── IPeggedToken__factory.ts │ ├── ISigsVerifier__factory.ts │ ├── ISwapCanoToken__factory.ts │ ├── ISwapToken__factory.ts │ ├── IUniswapV2__factory.ts │ ├── IWETH__factory.ts │ ├── MaiBridgeToken__factory.ts │ ├── MessageBus__factory.ts │ ├── MessageReceiver__factory.ts │ ├── MessageSender__factory.ts │ ├── MintSwapCanonicalTokenPermit__factory.ts │ ├── MintSwapCanonicalToken__factory.ts │ ├── MintableERC20__factory.ts │ ├── MsgBusAddr__factory.ts │ ├── MsgReceiverApp__factory.ts │ ├── MsgSenderApp__factory.ts │ ├── MultiBridgeTokenPermit__factory.ts │ ├── MultiBridgeToken__factory.ts │ ├── OriginalTokenVault__factory.ts │ ├── Ownable__factory.ts │ ├── Pausable__factory.ts │ ├── Pauser__factory.ts │ ├── PeggedTokenBridge__factory.ts │ ├── PeggedToken__factory.ts │ ├── Pool__factory.ts │ ├── SGN__factory.ts │ ├── Signers__factory.ts │ ├── SingleBridgeTokenPermit__factory.ts │ ├── SingleBridgeToken__factory.ts │ ├── StakingReward__factory.ts │ ├── Staking__factory.ts │ ├── SwapBridgeToken__factory.ts │ ├── TestERC20__factory.ts │ ├── TransferSwap__factory.ts │ ├── Viewer__factory.ts │ ├── VolumeControl__factory.ts │ └── Whitelist__factory.ts │ ├── hardhat.d.ts │ └── index.ts ├── examples ├── refund.js └── refund.ts ├── package-lock.json ├── package.json ├── proto └── sgn │ ├── cbridge │ └── v1 │ │ ├── cbridge.proto │ │ └── query.proto │ └── gateway │ └── v1 │ └── gateway.proto ├── ts-proto ├── cosmos │ └── base │ │ └── v1beta1 │ │ ├── coin_pb.d.ts │ │ └── coin_pb.js ├── cosmos_proto │ ├── cosmos_pb.d.ts │ └── cosmos_pb.js ├── eth │ ├── farming_pb.d.ts │ ├── farming_pb.js │ ├── staking_pb.d.ts │ └── staking_pb.js ├── gateway │ ├── GatewayServiceClientPb.ts │ ├── gateway_pb.d.ts │ └── gateway_pb.js ├── gogoproto │ ├── gogo_pb.d.ts │ └── gogo_pb.js ├── google │ └── api │ │ ├── annotations_pb.d.ts │ │ ├── annotations_pb.js │ │ ├── http_pb.d.ts │ │ └── http_pb.js └── sgn │ ├── cbridge │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── TxServiceClientPb.ts │ │ ├── cbridge_pb.d.ts │ │ ├── cbridge_pb.js │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── query_pb.d.ts │ │ ├── query_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ ├── common │ └── v1 │ │ ├── common_pb.d.ts │ │ └── common_pb.js │ ├── distribution │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── TxServiceClientPb.ts │ │ ├── distribution_pb.d.ts │ │ ├── distribution_pb.js │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── query_pb.d.ts │ │ ├── query_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ ├── farming │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── TxServiceClientPb.ts │ │ ├── farming_pb.d.ts │ │ ├── farming_pb.js │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── query_pb.d.ts │ │ ├── query_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ ├── gov │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── TxServiceClientPb.ts │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── gov_pb.d.ts │ │ ├── gov_pb.js │ │ ├── query_pb.d.ts │ │ ├── query_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ ├── health │ └── v1 │ │ ├── health_pb.d.ts │ │ └── health_pb.js │ ├── message │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── TxServiceClientPb.ts │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── message_pb.d.ts │ │ ├── message_pb.js │ │ ├── query_pb.d.ts │ │ ├── query_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ ├── mint │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── mint_pb.d.ts │ │ ├── mint_pb.js │ │ ├── query_pb.d.ts │ │ └── query_pb.js │ ├── pegbridge │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── TxServiceClientPb.ts │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── pegbridge_pb.d.ts │ │ ├── pegbridge_pb.js │ │ ├── query_pb.d.ts │ │ ├── query_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ ├── slashing │ └── v1 │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── slashing_pb.d.ts │ │ ├── slashing_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ ├── staking │ └── v1 │ │ ├── QueryServiceClientPb.ts │ │ ├── genesis_pb.d.ts │ │ ├── genesis_pb.js │ │ ├── query_pb.d.ts │ │ ├── query_pb.js │ │ ├── staking_pb.d.ts │ │ ├── staking_pb.js │ │ ├── tx_pb.d.ts │ │ └── tx_pb.js │ └── sync │ └── v1 │ ├── genesis_pb.d.ts │ ├── genesis_pb.js │ ├── sync_pb.d.ts │ ├── sync_pb.js │ ├── tx_pb.d.ts │ └── tx_pb.js └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | /node_modules 3 | 4 | # testing 5 | coverage 6 | 7 | # production 8 | /build* 9 | 10 | # misc 11 | .DS_Store 12 | .env 13 | .env.bak 14 | 15 | # debug 16 | npm-debug.log* 17 | yarn-debug.log* 18 | yarn-error.log* 19 | 20 | .idea 21 | 22 | .vscode/ 23 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "none", 3 | "tabWidth": 2, 4 | "semi": true, 5 | "singleQuote": true, 6 | "overrides": [ 7 | { 8 | "files": ["*.js", "*.ts", "*.md"], 9 | "options": { 10 | "printWidth": 120 11 | } 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cBridge-typescript-client 2 | 3 | cBridge provides a simple liquidity provider experience and high liquidity efficiency for users when they manage their funds in different 4 | chains with lower costs. Learn more about flow and terminology from this doc: 5 | [cBridge requirements](https://docs.google.com/document/d/15gVJfiAjzfR9dyz_ad7jQOx5PSPI6p_RanLA6XRLCYU/edit?usp=sharing) 6 | 7 | ## Folder Structure 8 | 9 | - [examples](./examples): Ready-to-run code examples to call the cBridge gateway via the REST API. 10 | - [contract](./contract): Generated cBridge contract ABIs and bindings. 11 | - [proto](./proto): gRPC-Web Protobuf definitions. 12 | - [ts-proto](./ts-proto): Generated .d.ts gRPC-Web bindings. 13 | 14 | ## Quick Start 15 | 16 | ### Refund via REST API 17 | 18 | Set `CBRIDGE_GATEWAY_URL` to one of the following in `.env`: 19 | 20 | - Testnet: https://cbridge-v2-test.celer.network 21 | - Mainnet: https://cbridge-prod2.celer.network 22 | 23 | Run via: 24 | 25 | ```sh 26 | ts-node examples/refund.ts 27 | ``` 28 | 29 | or 30 | 31 | ```sh 32 | node examples/refund.js 33 | ``` 34 | 35 | ### Refund via gRPC-Web API 36 | 37 | 1. Install [grpc-web](https://github.com/grpc/grpc-web) 38 | 39 | ```sh 40 | npm install grpc-web 41 | ``` 42 | 43 | 2. Imports 44 | 45 | ```javascript 46 | // Import request, response and relative messages 47 | import { WithdrawReq, WithdrawLq, WithdrawType } from '../../proto/sgn/cbridge/v1/tx_pb'; 48 | 49 | // Import gRPC-web WebClient 50 | import { WebClient } from '../proto/sgn/gateway/v1/GatewayServiceClientPb'; 51 | ``` 52 | 53 | 3. Call gateway with gRPC-Web client 54 | 55 | ```javascript 56 | // construct request 57 | const bytes = ethers.utils.arrayify(sig); 58 | const req = new WithdrawLiquidityRequest(); 59 | req.setWithdrawReq(withdrawReqProto.serializeBinary()); 60 | req.setSig(bytes); 61 | req.setEstimatedReceivedAmt(estimatedAmount); 62 | req.setMethodType(WithdrawMethodType.WD_METHOD_TYPE_ONE_RM); 63 | 64 | // Withdraw liquidity via gRPC-Web client 65 | 66 | const client = new WebClient(`${process.env.CBRIDGE_GATEWAY_URL}`, null, null); 67 | client.withdrawLiquidity(req, null); 68 | ``` 69 | -------------------------------------------------------------------------------- /contract/abi/Bridge.sol/Bridge.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/FarmingRewards.sol/FarmingRewards.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/Govern.sol/Govern.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/Pool.sol/Pool.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/SGN.sol/SGN.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/Signers.sol/Signers.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/Staking.sol/Staking.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/StakingReward.sol/StakingReward.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/Viewer.sol/Viewer.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/interfaces/IPeggedToken.sol/IPeggedToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/interfaces/IPeggedToken.sol/IPeggedToken.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "IPeggedToken", 4 | "sourceName": "contracts/interfaces/IPeggedToken.sol", 5 | "abi": [ 6 | { 7 | "inputs": [ 8 | { 9 | "internalType": "address", 10 | "name": "_from", 11 | "type": "address" 12 | }, 13 | { 14 | "internalType": "uint256", 15 | "name": "_amount", 16 | "type": "uint256" 17 | } 18 | ], 19 | "name": "burn", 20 | "outputs": [], 21 | "stateMutability": "nonpayable", 22 | "type": "function" 23 | }, 24 | { 25 | "inputs": [ 26 | { 27 | "internalType": "address", 28 | "name": "_to", 29 | "type": "address" 30 | }, 31 | { 32 | "internalType": "uint256", 33 | "name": "_amount", 34 | "type": "uint256" 35 | } 36 | ], 37 | "name": "mint", 38 | "outputs": [], 39 | "stateMutability": "nonpayable", 40 | "type": "function" 41 | } 42 | ], 43 | "bytecode": "0x", 44 | "deployedBytecode": "0x", 45 | "linkReferences": {}, 46 | "deployedLinkReferences": {} 47 | } 48 | -------------------------------------------------------------------------------- /contract/abi/interfaces/ISigsVerifier.sol/ISigsVerifier.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/interfaces/ISigsVerifier.sol/ISigsVerifier.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "ISigsVerifier", 4 | "sourceName": "contracts/interfaces/ISigsVerifier.sol", 5 | "abi": [ 6 | { 7 | "inputs": [ 8 | { 9 | "internalType": "bytes", 10 | "name": "_msg", 11 | "type": "bytes" 12 | }, 13 | { 14 | "internalType": "bytes[]", 15 | "name": "_sigs", 16 | "type": "bytes[]" 17 | }, 18 | { 19 | "internalType": "address[]", 20 | "name": "_signers", 21 | "type": "address[]" 22 | }, 23 | { 24 | "internalType": "uint256[]", 25 | "name": "_powers", 26 | "type": "uint256[]" 27 | } 28 | ], 29 | "name": "verifySigs", 30 | "outputs": [], 31 | "stateMutability": "view", 32 | "type": "function" 33 | } 34 | ], 35 | "bytecode": "0x", 36 | "deployedBytecode": "0x", 37 | "linkReferences": {}, 38 | "deployedLinkReferences": {} 39 | } 40 | -------------------------------------------------------------------------------- /contract/abi/interfaces/IWETH.sol/IWETH.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/interfaces/IWETH.sol/IWETH.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "IWETH", 4 | "sourceName": "contracts/interfaces/IWETH.sol", 5 | "abi": [ 6 | { 7 | "inputs": [], 8 | "name": "deposit", 9 | "outputs": [], 10 | "stateMutability": "payable", 11 | "type": "function" 12 | }, 13 | { 14 | "inputs": [ 15 | { 16 | "internalType": "uint256", 17 | "name": "", 18 | "type": "uint256" 19 | } 20 | ], 21 | "name": "withdraw", 22 | "outputs": [], 23 | "stateMutability": "nonpayable", 24 | "type": "function" 25 | } 26 | ], 27 | "bytecode": "0x", 28 | "deployedBytecode": "0x", 29 | "linkReferences": {}, 30 | "deployedLinkReferences": {} 31 | } 32 | -------------------------------------------------------------------------------- /contract/abi/libraries/DataTypes.sol/DataTypes.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/DataTypes.sol/DataTypes.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "DataTypes", 4 | "sourceName": "contracts/libraries/DataTypes.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220164d610d20b979d62e369a78b69d8aa8c635b42c04802915927aa66b926f509264736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220164d610d20b979d62e369a78b69d8aa8c635b42c04802915927aa66b926f509264736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/libraries/Pb.sol/Pb.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/Pb.sol/Pb.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "Pb", 4 | "sourceName": "contracts/libraries/Pb.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203ab6c09a7075ba7879ce79d9c4e569bc626faf897ecf9d34e41524a8121547f764736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203ab6c09a7075ba7879ce79d9c4e569bc626faf897ecf9d34e41524a8121547f764736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbBridge.sol/PbBridge.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbBridge.sol/PbBridge.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "PbBridge", 4 | "sourceName": "contracts/libraries/PbBridge.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122057cdea2fd10bbf77e13d7339830544ff57b7540358f0ff4927faa4ac0cba3b2064736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122057cdea2fd10bbf77e13d7339830544ff57b7540358f0ff4927faa4ac0cba3b2064736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbFarming.sol/PbFarming.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbFarming.sol/PbFarming.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "PbFarming", 4 | "sourceName": "contracts/libraries/PbFarming.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e95901d7bcc23e275c327d9938c1e7ed7ee0ab8955a1244cef2e9f5d2eff736f64736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e95901d7bcc23e275c327d9938c1e7ed7ee0ab8955a1244cef2e9f5d2eff736f64736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbPegged.sol/PbPegged.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbPegged.sol/PbPegged.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "PbPegged", 4 | "sourceName": "contracts/libraries/PbPegged.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220886e154040bd9ce732ff153ce5bf354a2a5d5d6cdd65fbd3c4be2036adffab9c64736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220886e154040bd9ce732ff153ce5bf354a2a5d5d6cdd65fbd3c4be2036adffab9c64736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbPool.sol/PbPool.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbPool.sol/PbPool.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "PbPool", 4 | "sourceName": "contracts/libraries/PbPool.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202ef42d6a6a2a04941ac4d4a573c61b1a875e5c5cf2bd2c98318c91217935f31f64736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202ef42d6a6a2a04941ac4d4a573c61b1a875e5c5cf2bd2c98318c91217935f31f64736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbSgn.sol/PbSgn.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbSgn.sol/PbSgn.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "PbSgn", 4 | "sourceName": "contracts/libraries/PbSgn.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b476b6657ff8a80cadfdb714d9e1414f09ba9a19b070d4e96cde94cd54bb956164736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b476b6657ff8a80cadfdb714d9e1414f09ba9a19b070d4e96cde94cd54bb956164736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbStaking.sol/PbStaking.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/libraries/PbStaking.sol/PbStaking.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "PbStaking", 4 | "sourceName": "contracts/libraries/PbStaking.sol", 5 | "abi": [], 6 | "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220da46849b51fa83c8e115a00095c366c450caf30c2065e7206acf4b1d9f81f1b564736f6c63430008090033", 7 | "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220da46849b51fa83c8e115a00095c366c450caf30c2065e7206acf4b1d9f81f1b564736f6c63430008090033", 8 | "linkReferences": {}, 9 | "deployedLinkReferences": {} 10 | } 11 | -------------------------------------------------------------------------------- /contract/abi/message/apps/BatchTransfer.sol/BatchTransfer.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/apps/CrossChainSwap.sol/CrossChainSwap.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/apps/CrossChainSwap.sol/ISwapToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/apps/CrossChainSwap.sol/ISwapToken.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "ISwapToken", 4 | "sourceName": "contracts/message/apps/CrossChainSwap.sol", 5 | "abi": [ 6 | { 7 | "inputs": [ 8 | { 9 | "internalType": "uint256", 10 | "name": "", 11 | "type": "uint256" 12 | }, 13 | { 14 | "internalType": "uint256", 15 | "name": "", 16 | "type": "uint256" 17 | }, 18 | { 19 | "internalType": "address[]", 20 | "name": "", 21 | "type": "address[]" 22 | }, 23 | { 24 | "internalType": "address", 25 | "name": "", 26 | "type": "address" 27 | }, 28 | { 29 | "internalType": "uint256", 30 | "name": "", 31 | "type": "uint256" 32 | } 33 | ], 34 | "name": "swapExactTokensForTokens", 35 | "outputs": [ 36 | { 37 | "internalType": "uint256[]", 38 | "name": "", 39 | "type": "uint256[]" 40 | } 41 | ], 42 | "stateMutability": "nonpayable", 43 | "type": "function" 44 | } 45 | ], 46 | "bytecode": "0x", 47 | "deployedBytecode": "0x", 48 | "linkReferences": {}, 49 | "deployedLinkReferences": {} 50 | } 51 | -------------------------------------------------------------------------------- /contract/abi/message/framework/IBridge.sol/IBridge.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/framework/MsgBusAddr.sol/MsgBusAddr.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/framework/MsgBusAddr.sol/MsgBusAddr.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "MsgBusAddr", 4 | "sourceName": "contracts/message/framework/MsgBusAddr.sol", 5 | "abi": [ 6 | { 7 | "anonymous": false, 8 | "inputs": [ 9 | { 10 | "indexed": true, 11 | "internalType": "address", 12 | "name": "previousOwner", 13 | "type": "address" 14 | }, 15 | { 16 | "indexed": true, 17 | "internalType": "address", 18 | "name": "newOwner", 19 | "type": "address" 20 | } 21 | ], 22 | "name": "OwnershipTransferred", 23 | "type": "event" 24 | }, 25 | { 26 | "inputs": [], 27 | "name": "msgBus", 28 | "outputs": [ 29 | { 30 | "internalType": "address", 31 | "name": "", 32 | "type": "address" 33 | } 34 | ], 35 | "stateMutability": "view", 36 | "type": "function" 37 | }, 38 | { 39 | "inputs": [], 40 | "name": "owner", 41 | "outputs": [ 42 | { 43 | "internalType": "address", 44 | "name": "", 45 | "type": "address" 46 | } 47 | ], 48 | "stateMutability": "view", 49 | "type": "function" 50 | }, 51 | { 52 | "inputs": [], 53 | "name": "renounceOwnership", 54 | "outputs": [], 55 | "stateMutability": "nonpayable", 56 | "type": "function" 57 | }, 58 | { 59 | "inputs": [ 60 | { 61 | "internalType": "address", 62 | "name": "_addr", 63 | "type": "address" 64 | } 65 | ], 66 | "name": "setMsgBus", 67 | "outputs": [], 68 | "stateMutability": "nonpayable", 69 | "type": "function" 70 | }, 71 | { 72 | "inputs": [ 73 | { 74 | "internalType": "address", 75 | "name": "newOwner", 76 | "type": "address" 77 | } 78 | ], 79 | "name": "transferOwnership", 80 | "outputs": [], 81 | "stateMutability": "nonpayable", 82 | "type": "function" 83 | } 84 | ], 85 | "bytecode": "0x", 86 | "deployedBytecode": "0x", 87 | "linkReferences": {}, 88 | "deployedLinkReferences": {} 89 | } 90 | -------------------------------------------------------------------------------- /contract/abi/message/framework/MsgReceiverApp.sol/MsgReceiverApp.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/framework/MsgReceiverApp.sol/MsgReceiverApp.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "MsgReceiverApp", 4 | "sourceName": "contracts/message/framework/MsgReceiverApp.sol", 5 | "abi": [ 6 | { 7 | "anonymous": false, 8 | "inputs": [ 9 | { 10 | "indexed": true, 11 | "internalType": "address", 12 | "name": "previousOwner", 13 | "type": "address" 14 | }, 15 | { 16 | "indexed": true, 17 | "internalType": "address", 18 | "name": "newOwner", 19 | "type": "address" 20 | } 21 | ], 22 | "name": "OwnershipTransferred", 23 | "type": "event" 24 | }, 25 | { 26 | "inputs": [ 27 | { 28 | "internalType": "address", 29 | "name": "_sender", 30 | "type": "address" 31 | }, 32 | { 33 | "internalType": "uint64", 34 | "name": "_srcChainId", 35 | "type": "uint64" 36 | }, 37 | { 38 | "internalType": "bytes", 39 | "name": "_message", 40 | "type": "bytes" 41 | } 42 | ], 43 | "name": "executeMessage", 44 | "outputs": [], 45 | "stateMutability": "nonpayable", 46 | "type": "function" 47 | }, 48 | { 49 | "inputs": [ 50 | { 51 | "internalType": "address", 52 | "name": "_sender", 53 | "type": "address" 54 | }, 55 | { 56 | "internalType": "address", 57 | "name": "_token", 58 | "type": "address" 59 | }, 60 | { 61 | "internalType": "uint256", 62 | "name": "_amount", 63 | "type": "uint256" 64 | }, 65 | { 66 | "internalType": "uint64", 67 | "name": "_srcChainId", 68 | "type": "uint64" 69 | }, 70 | { 71 | "internalType": "bytes", 72 | "name": "_message", 73 | "type": "bytes" 74 | } 75 | ], 76 | "name": "executeMessageWithTransfer", 77 | "outputs": [], 78 | "stateMutability": "nonpayable", 79 | "type": "function" 80 | }, 81 | { 82 | "inputs": [ 83 | { 84 | "internalType": "address", 85 | "name": "_sender", 86 | "type": "address" 87 | }, 88 | { 89 | "internalType": "address", 90 | "name": "_token", 91 | "type": "address" 92 | }, 93 | { 94 | "internalType": "uint256", 95 | "name": "_amount", 96 | "type": "uint256" 97 | }, 98 | { 99 | "internalType": "uint64", 100 | "name": "_srcChainId", 101 | "type": "uint64" 102 | }, 103 | { 104 | "internalType": "bytes", 105 | "name": "_message", 106 | "type": "bytes" 107 | } 108 | ], 109 | "name": "executeMessageWithTransferFallback", 110 | "outputs": [], 111 | "stateMutability": "nonpayable", 112 | "type": "function" 113 | }, 114 | { 115 | "inputs": [], 116 | "name": "msgBus", 117 | "outputs": [ 118 | { 119 | "internalType": "address", 120 | "name": "", 121 | "type": "address" 122 | } 123 | ], 124 | "stateMutability": "view", 125 | "type": "function" 126 | }, 127 | { 128 | "inputs": [], 129 | "name": "owner", 130 | "outputs": [ 131 | { 132 | "internalType": "address", 133 | "name": "", 134 | "type": "address" 135 | } 136 | ], 137 | "stateMutability": "view", 138 | "type": "function" 139 | }, 140 | { 141 | "inputs": [], 142 | "name": "renounceOwnership", 143 | "outputs": [], 144 | "stateMutability": "nonpayable", 145 | "type": "function" 146 | }, 147 | { 148 | "inputs": [ 149 | { 150 | "internalType": "address", 151 | "name": "_addr", 152 | "type": "address" 153 | } 154 | ], 155 | "name": "setMsgBus", 156 | "outputs": [], 157 | "stateMutability": "nonpayable", 158 | "type": "function" 159 | }, 160 | { 161 | "inputs": [ 162 | { 163 | "internalType": "address", 164 | "name": "newOwner", 165 | "type": "address" 166 | } 167 | ], 168 | "name": "transferOwnership", 169 | "outputs": [], 170 | "stateMutability": "nonpayable", 171 | "type": "function" 172 | } 173 | ], 174 | "bytecode": "0x", 175 | "deployedBytecode": "0x", 176 | "linkReferences": {}, 177 | "deployedLinkReferences": {} 178 | } 179 | -------------------------------------------------------------------------------- /contract/abi/message/framework/MsgSenderApp.sol/MsgSenderApp.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/framework/MsgSenderApp.sol/MsgSenderApp.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "MsgSenderApp", 4 | "sourceName": "contracts/message/framework/MsgSenderApp.sol", 5 | "abi": [ 6 | { 7 | "anonymous": false, 8 | "inputs": [ 9 | { 10 | "indexed": true, 11 | "internalType": "address", 12 | "name": "previousOwner", 13 | "type": "address" 14 | }, 15 | { 16 | "indexed": true, 17 | "internalType": "address", 18 | "name": "newOwner", 19 | "type": "address" 20 | } 21 | ], 22 | "name": "OwnershipTransferred", 23 | "type": "event" 24 | }, 25 | { 26 | "inputs": [], 27 | "name": "liquidityBridge", 28 | "outputs": [ 29 | { 30 | "internalType": "address", 31 | "name": "", 32 | "type": "address" 33 | } 34 | ], 35 | "stateMutability": "view", 36 | "type": "function" 37 | }, 38 | { 39 | "inputs": [], 40 | "name": "msgBus", 41 | "outputs": [ 42 | { 43 | "internalType": "address", 44 | "name": "", 45 | "type": "address" 46 | } 47 | ], 48 | "stateMutability": "view", 49 | "type": "function" 50 | }, 51 | { 52 | "inputs": [], 53 | "name": "owner", 54 | "outputs": [ 55 | { 56 | "internalType": "address", 57 | "name": "", 58 | "type": "address" 59 | } 60 | ], 61 | "stateMutability": "view", 62 | "type": "function" 63 | }, 64 | { 65 | "inputs": [], 66 | "name": "pegBridge", 67 | "outputs": [ 68 | { 69 | "internalType": "address", 70 | "name": "", 71 | "type": "address" 72 | } 73 | ], 74 | "stateMutability": "view", 75 | "type": "function" 76 | }, 77 | { 78 | "inputs": [], 79 | "name": "pegVault", 80 | "outputs": [ 81 | { 82 | "internalType": "address", 83 | "name": "", 84 | "type": "address" 85 | } 86 | ], 87 | "stateMutability": "view", 88 | "type": "function" 89 | }, 90 | { 91 | "inputs": [], 92 | "name": "renounceOwnership", 93 | "outputs": [], 94 | "stateMutability": "nonpayable", 95 | "type": "function" 96 | }, 97 | { 98 | "inputs": [ 99 | { 100 | "internalType": "address", 101 | "name": "_addr", 102 | "type": "address" 103 | } 104 | ], 105 | "name": "setLiquidityBridge", 106 | "outputs": [], 107 | "stateMutability": "nonpayable", 108 | "type": "function" 109 | }, 110 | { 111 | "inputs": [ 112 | { 113 | "internalType": "address", 114 | "name": "_addr", 115 | "type": "address" 116 | } 117 | ], 118 | "name": "setMsgBus", 119 | "outputs": [], 120 | "stateMutability": "nonpayable", 121 | "type": "function" 122 | }, 123 | { 124 | "inputs": [ 125 | { 126 | "internalType": "address", 127 | "name": "_addr", 128 | "type": "address" 129 | } 130 | ], 131 | "name": "setPegBridge", 132 | "outputs": [], 133 | "stateMutability": "nonpayable", 134 | "type": "function" 135 | }, 136 | { 137 | "inputs": [ 138 | { 139 | "internalType": "address", 140 | "name": "_addr", 141 | "type": "address" 142 | } 143 | ], 144 | "name": "setPegVault", 145 | "outputs": [], 146 | "stateMutability": "nonpayable", 147 | "type": "function" 148 | }, 149 | { 150 | "inputs": [ 151 | { 152 | "internalType": "address", 153 | "name": "_token", 154 | "type": "address" 155 | }, 156 | { 157 | "internalType": "enum MsgSenderApp.BridgeType", 158 | "name": "bt", 159 | "type": "uint8" 160 | } 161 | ], 162 | "name": "setTokenBridgeType", 163 | "outputs": [], 164 | "stateMutability": "nonpayable", 165 | "type": "function" 166 | }, 167 | { 168 | "inputs": [ 169 | { 170 | "internalType": "address", 171 | "name": "", 172 | "type": "address" 173 | } 174 | ], 175 | "name": "tokenBridgeTypes", 176 | "outputs": [ 177 | { 178 | "internalType": "enum MsgSenderApp.BridgeType", 179 | "name": "", 180 | "type": "uint8" 181 | } 182 | ], 183 | "stateMutability": "view", 184 | "type": "function" 185 | }, 186 | { 187 | "inputs": [ 188 | { 189 | "internalType": "address", 190 | "name": "newOwner", 191 | "type": "address" 192 | } 193 | ], 194 | "name": "transferOwnership", 195 | "outputs": [], 196 | "stateMutability": "nonpayable", 197 | "type": "function" 198 | } 199 | ], 200 | "bytecode": "0x", 201 | "deployedBytecode": "0x", 202 | "linkReferences": {}, 203 | "deployedLinkReferences": {} 204 | } 205 | -------------------------------------------------------------------------------- /contract/abi/message/messagebus/MessageBus.sol/MessageBus.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/messagebus/MessageReceiver.sol/MessageReceiver.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/message/messagebus/MessageSender.sol/MessageSender.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/miscs/Faucet.sol/Faucet.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/miscs/MintableERC20.sol/MintableERC20.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/OriginalTokenVault.sol/OriginalTokenVault.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/PeggedTokenBridge.sol/PeggedTokenBridge.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/ERC20Permit/MintSwapCanonicalTokenPermit.sol/MintSwapCanonicalTokenPermit.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/ERC20Permit/MultiBridgeTokenPermit.sol/MultiBridgeTokenPermit.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/ERC20Permit/SingleBridgeTokenPermit.sol/SingleBridgeTokenPermit.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/MintSwapCanonicalToken.sol/MintSwapCanonicalToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/MultiBridgeToken.sol/MultiBridgeToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/SingleBridgeToken.sol/SingleBridgeToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/SwapBridgeToken.sol/ISwapCanoToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/SwapBridgeToken.sol/ISwapCanoToken.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "ISwapCanoToken", 4 | "sourceName": "contracts/pegged/tokens/SwapBridgeToken.sol", 5 | "abi": [ 6 | { 7 | "inputs": [ 8 | { 9 | "internalType": "address", 10 | "name": "", 11 | "type": "address" 12 | }, 13 | { 14 | "internalType": "uint256", 15 | "name": "", 16 | "type": "uint256" 17 | } 18 | ], 19 | "name": "swapBridgeForCanonical", 20 | "outputs": [ 21 | { 22 | "internalType": "uint256", 23 | "name": "", 24 | "type": "uint256" 25 | } 26 | ], 27 | "stateMutability": "nonpayable", 28 | "type": "function" 29 | }, 30 | { 31 | "inputs": [ 32 | { 33 | "internalType": "address", 34 | "name": "", 35 | "type": "address" 36 | }, 37 | { 38 | "internalType": "uint256", 39 | "name": "", 40 | "type": "uint256" 41 | } 42 | ], 43 | "name": "swapCanonicalForBridge", 44 | "outputs": [ 45 | { 46 | "internalType": "uint256", 47 | "name": "", 48 | "type": "uint256" 49 | } 50 | ], 51 | "stateMutability": "nonpayable", 52 | "type": "function" 53 | } 54 | ], 55 | "bytecode": "0x", 56 | "deployedBytecode": "0x", 57 | "linkReferences": {}, 58 | "deployedLinkReferences": {} 59 | } 60 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/SwapBridgeToken.sol/SwapBridgeToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/customized/FraxBridgeToken.sol/FraxBridgeToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/customized/FraxBridgeToken.sol/IFraxCanoToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/customized/FraxBridgeToken.sol/IFraxCanoToken.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "IFraxCanoToken", 4 | "sourceName": "contracts/pegged/tokens/customized/FraxBridgeToken.sol", 5 | "abi": [ 6 | { 7 | "inputs": [ 8 | { 9 | "internalType": "address", 10 | "name": "", 11 | "type": "address" 12 | }, 13 | { 14 | "internalType": "uint256", 15 | "name": "", 16 | "type": "uint256" 17 | } 18 | ], 19 | "name": "exchangeCanonicalForOld", 20 | "outputs": [ 21 | { 22 | "internalType": "uint256", 23 | "name": "", 24 | "type": "uint256" 25 | } 26 | ], 27 | "stateMutability": "nonpayable", 28 | "type": "function" 29 | }, 30 | { 31 | "inputs": [ 32 | { 33 | "internalType": "address", 34 | "name": "", 35 | "type": "address" 36 | }, 37 | { 38 | "internalType": "uint256", 39 | "name": "", 40 | "type": "uint256" 41 | } 42 | ], 43 | "name": "exchangeOldForCanonical", 44 | "outputs": [ 45 | { 46 | "internalType": "uint256", 47 | "name": "", 48 | "type": "uint256" 49 | } 50 | ], 51 | "stateMutability": "nonpayable", 52 | "type": "function" 53 | } 54 | ], 55 | "bytecode": "0x", 56 | "deployedBytecode": "0x", 57 | "linkReferences": {}, 58 | "deployedLinkReferences": {} 59 | } 60 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/customized/MaiBridgeToken.sol/IMaiBridgeHub.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/customized/MaiBridgeToken.sol/IMaiBridgeHub.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "IMaiBridgeHub", 4 | "sourceName": "contracts/pegged/tokens/customized/MaiBridgeToken.sol", 5 | "abi": [ 6 | { 7 | "inputs": [], 8 | "name": "asset", 9 | "outputs": [ 10 | { 11 | "internalType": "address", 12 | "name": "", 13 | "type": "address" 14 | } 15 | ], 16 | "stateMutability": "view", 17 | "type": "function" 18 | }, 19 | { 20 | "inputs": [ 21 | { 22 | "internalType": "address", 23 | "name": "", 24 | "type": "address" 25 | }, 26 | { 27 | "internalType": "uint256", 28 | "name": "", 29 | "type": "uint256" 30 | } 31 | ], 32 | "name": "swapIn", 33 | "outputs": [], 34 | "stateMutability": "nonpayable", 35 | "type": "function" 36 | }, 37 | { 38 | "inputs": [ 39 | { 40 | "internalType": "address", 41 | "name": "", 42 | "type": "address" 43 | }, 44 | { 45 | "internalType": "uint256", 46 | "name": "", 47 | "type": "uint256" 48 | } 49 | ], 50 | "name": "swapOut", 51 | "outputs": [], 52 | "stateMutability": "nonpayable", 53 | "type": "function" 54 | } 55 | ], 56 | "bytecode": "0x", 57 | "deployedBytecode": "0x", 58 | "linkReferences": {}, 59 | "deployedLinkReferences": {} 60 | } 61 | -------------------------------------------------------------------------------- /contract/abi/pegged/tokens/customized/MaiBridgeToken.sol/MaiBridgeToken.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/safeguard/DelayedTransfer.sol/DelayedTransfer.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/safeguard/Governor.sol/Governor.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/safeguard/Governor.sol/Governor.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "Governor", 4 | "sourceName": "contracts/safeguard/Governor.sol", 5 | "abi": [ 6 | { 7 | "anonymous": false, 8 | "inputs": [ 9 | { 10 | "indexed": false, 11 | "internalType": "address", 12 | "name": "account", 13 | "type": "address" 14 | } 15 | ], 16 | "name": "GovernorAdded", 17 | "type": "event" 18 | }, 19 | { 20 | "anonymous": false, 21 | "inputs": [ 22 | { 23 | "indexed": false, 24 | "internalType": "address", 25 | "name": "account", 26 | "type": "address" 27 | } 28 | ], 29 | "name": "GovernorRemoved", 30 | "type": "event" 31 | }, 32 | { 33 | "anonymous": false, 34 | "inputs": [ 35 | { 36 | "indexed": true, 37 | "internalType": "address", 38 | "name": "previousOwner", 39 | "type": "address" 40 | }, 41 | { 42 | "indexed": true, 43 | "internalType": "address", 44 | "name": "newOwner", 45 | "type": "address" 46 | } 47 | ], 48 | "name": "OwnershipTransferred", 49 | "type": "event" 50 | }, 51 | { 52 | "inputs": [ 53 | { 54 | "internalType": "address", 55 | "name": "_account", 56 | "type": "address" 57 | } 58 | ], 59 | "name": "addGovernor", 60 | "outputs": [], 61 | "stateMutability": "nonpayable", 62 | "type": "function" 63 | }, 64 | { 65 | "inputs": [ 66 | { 67 | "internalType": "address", 68 | "name": "", 69 | "type": "address" 70 | } 71 | ], 72 | "name": "governors", 73 | "outputs": [ 74 | { 75 | "internalType": "bool", 76 | "name": "", 77 | "type": "bool" 78 | } 79 | ], 80 | "stateMutability": "view", 81 | "type": "function" 82 | }, 83 | { 84 | "inputs": [ 85 | { 86 | "internalType": "address", 87 | "name": "_account", 88 | "type": "address" 89 | } 90 | ], 91 | "name": "isGovernor", 92 | "outputs": [ 93 | { 94 | "internalType": "bool", 95 | "name": "", 96 | "type": "bool" 97 | } 98 | ], 99 | "stateMutability": "view", 100 | "type": "function" 101 | }, 102 | { 103 | "inputs": [], 104 | "name": "owner", 105 | "outputs": [ 106 | { 107 | "internalType": "address", 108 | "name": "", 109 | "type": "address" 110 | } 111 | ], 112 | "stateMutability": "view", 113 | "type": "function" 114 | }, 115 | { 116 | "inputs": [ 117 | { 118 | "internalType": "address", 119 | "name": "_account", 120 | "type": "address" 121 | } 122 | ], 123 | "name": "removeGovernor", 124 | "outputs": [], 125 | "stateMutability": "nonpayable", 126 | "type": "function" 127 | }, 128 | { 129 | "inputs": [], 130 | "name": "renounceGovernor", 131 | "outputs": [], 132 | "stateMutability": "nonpayable", 133 | "type": "function" 134 | }, 135 | { 136 | "inputs": [], 137 | "name": "renounceOwnership", 138 | "outputs": [], 139 | "stateMutability": "nonpayable", 140 | "type": "function" 141 | }, 142 | { 143 | "inputs": [ 144 | { 145 | "internalType": "address", 146 | "name": "newOwner", 147 | "type": "address" 148 | } 149 | ], 150 | "name": "transferOwnership", 151 | "outputs": [], 152 | "stateMutability": "nonpayable", 153 | "type": "function" 154 | } 155 | ], 156 | "bytecode": "0x", 157 | "deployedBytecode": "0x", 158 | "linkReferences": {}, 159 | "deployedLinkReferences": {} 160 | } 161 | -------------------------------------------------------------------------------- /contract/abi/safeguard/Pauser.sol/Pauser.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/safeguard/Pauser.sol/Pauser.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "Pauser", 4 | "sourceName": "contracts/safeguard/Pauser.sol", 5 | "abi": [ 6 | { 7 | "anonymous": false, 8 | "inputs": [ 9 | { 10 | "indexed": true, 11 | "internalType": "address", 12 | "name": "previousOwner", 13 | "type": "address" 14 | }, 15 | { 16 | "indexed": true, 17 | "internalType": "address", 18 | "name": "newOwner", 19 | "type": "address" 20 | } 21 | ], 22 | "name": "OwnershipTransferred", 23 | "type": "event" 24 | }, 25 | { 26 | "anonymous": false, 27 | "inputs": [ 28 | { 29 | "indexed": false, 30 | "internalType": "address", 31 | "name": "account", 32 | "type": "address" 33 | } 34 | ], 35 | "name": "Paused", 36 | "type": "event" 37 | }, 38 | { 39 | "anonymous": false, 40 | "inputs": [ 41 | { 42 | "indexed": false, 43 | "internalType": "address", 44 | "name": "account", 45 | "type": "address" 46 | } 47 | ], 48 | "name": "PauserAdded", 49 | "type": "event" 50 | }, 51 | { 52 | "anonymous": false, 53 | "inputs": [ 54 | { 55 | "indexed": false, 56 | "internalType": "address", 57 | "name": "account", 58 | "type": "address" 59 | } 60 | ], 61 | "name": "PauserRemoved", 62 | "type": "event" 63 | }, 64 | { 65 | "anonymous": false, 66 | "inputs": [ 67 | { 68 | "indexed": false, 69 | "internalType": "address", 70 | "name": "account", 71 | "type": "address" 72 | } 73 | ], 74 | "name": "Unpaused", 75 | "type": "event" 76 | }, 77 | { 78 | "inputs": [ 79 | { 80 | "internalType": "address", 81 | "name": "account", 82 | "type": "address" 83 | } 84 | ], 85 | "name": "addPauser", 86 | "outputs": [], 87 | "stateMutability": "nonpayable", 88 | "type": "function" 89 | }, 90 | { 91 | "inputs": [ 92 | { 93 | "internalType": "address", 94 | "name": "account", 95 | "type": "address" 96 | } 97 | ], 98 | "name": "isPauser", 99 | "outputs": [ 100 | { 101 | "internalType": "bool", 102 | "name": "", 103 | "type": "bool" 104 | } 105 | ], 106 | "stateMutability": "view", 107 | "type": "function" 108 | }, 109 | { 110 | "inputs": [], 111 | "name": "owner", 112 | "outputs": [ 113 | { 114 | "internalType": "address", 115 | "name": "", 116 | "type": "address" 117 | } 118 | ], 119 | "stateMutability": "view", 120 | "type": "function" 121 | }, 122 | { 123 | "inputs": [], 124 | "name": "pause", 125 | "outputs": [], 126 | "stateMutability": "nonpayable", 127 | "type": "function" 128 | }, 129 | { 130 | "inputs": [], 131 | "name": "paused", 132 | "outputs": [ 133 | { 134 | "internalType": "bool", 135 | "name": "", 136 | "type": "bool" 137 | } 138 | ], 139 | "stateMutability": "view", 140 | "type": "function" 141 | }, 142 | { 143 | "inputs": [ 144 | { 145 | "internalType": "address", 146 | "name": "", 147 | "type": "address" 148 | } 149 | ], 150 | "name": "pausers", 151 | "outputs": [ 152 | { 153 | "internalType": "bool", 154 | "name": "", 155 | "type": "bool" 156 | } 157 | ], 158 | "stateMutability": "view", 159 | "type": "function" 160 | }, 161 | { 162 | "inputs": [ 163 | { 164 | "internalType": "address", 165 | "name": "account", 166 | "type": "address" 167 | } 168 | ], 169 | "name": "removePauser", 170 | "outputs": [], 171 | "stateMutability": "nonpayable", 172 | "type": "function" 173 | }, 174 | { 175 | "inputs": [], 176 | "name": "renounceOwnership", 177 | "outputs": [], 178 | "stateMutability": "nonpayable", 179 | "type": "function" 180 | }, 181 | { 182 | "inputs": [], 183 | "name": "renouncePauser", 184 | "outputs": [], 185 | "stateMutability": "nonpayable", 186 | "type": "function" 187 | }, 188 | { 189 | "inputs": [ 190 | { 191 | "internalType": "address", 192 | "name": "newOwner", 193 | "type": "address" 194 | } 195 | ], 196 | "name": "transferOwnership", 197 | "outputs": [], 198 | "stateMutability": "nonpayable", 199 | "type": "function" 200 | }, 201 | { 202 | "inputs": [], 203 | "name": "unpause", 204 | "outputs": [], 205 | "stateMutability": "nonpayable", 206 | "type": "function" 207 | } 208 | ], 209 | "bytecode": "0x", 210 | "deployedBytecode": "0x", 211 | "linkReferences": {}, 212 | "deployedLinkReferences": {} 213 | } 214 | -------------------------------------------------------------------------------- /contract/abi/safeguard/VolumeControl.sol/VolumeControl.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/safeguard/Whitelist.sol/Whitelist.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/abi/safeguard/Whitelist.sol/Whitelist.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-artifact-1", 3 | "contractName": "Whitelist", 4 | "sourceName": "contracts/safeguard/Whitelist.sol", 5 | "abi": [ 6 | { 7 | "anonymous": false, 8 | "inputs": [ 9 | { 10 | "indexed": true, 11 | "internalType": "address", 12 | "name": "previousOwner", 13 | "type": "address" 14 | }, 15 | { 16 | "indexed": true, 17 | "internalType": "address", 18 | "name": "newOwner", 19 | "type": "address" 20 | } 21 | ], 22 | "name": "OwnershipTransferred", 23 | "type": "event" 24 | }, 25 | { 26 | "anonymous": false, 27 | "inputs": [ 28 | { 29 | "indexed": false, 30 | "internalType": "address", 31 | "name": "account", 32 | "type": "address" 33 | } 34 | ], 35 | "name": "WhitelistedAdded", 36 | "type": "event" 37 | }, 38 | { 39 | "anonymous": false, 40 | "inputs": [ 41 | { 42 | "indexed": false, 43 | "internalType": "address", 44 | "name": "account", 45 | "type": "address" 46 | } 47 | ], 48 | "name": "WhitelistedRemoved", 49 | "type": "event" 50 | }, 51 | { 52 | "inputs": [ 53 | { 54 | "internalType": "address", 55 | "name": "account", 56 | "type": "address" 57 | } 58 | ], 59 | "name": "addWhitelisted", 60 | "outputs": [], 61 | "stateMutability": "nonpayable", 62 | "type": "function" 63 | }, 64 | { 65 | "inputs": [ 66 | { 67 | "internalType": "address", 68 | "name": "account", 69 | "type": "address" 70 | } 71 | ], 72 | "name": "isWhitelisted", 73 | "outputs": [ 74 | { 75 | "internalType": "bool", 76 | "name": "", 77 | "type": "bool" 78 | } 79 | ], 80 | "stateMutability": "view", 81 | "type": "function" 82 | }, 83 | { 84 | "inputs": [], 85 | "name": "owner", 86 | "outputs": [ 87 | { 88 | "internalType": "address", 89 | "name": "", 90 | "type": "address" 91 | } 92 | ], 93 | "stateMutability": "view", 94 | "type": "function" 95 | }, 96 | { 97 | "inputs": [ 98 | { 99 | "internalType": "address", 100 | "name": "account", 101 | "type": "address" 102 | } 103 | ], 104 | "name": "removeWhitelisted", 105 | "outputs": [], 106 | "stateMutability": "nonpayable", 107 | "type": "function" 108 | }, 109 | { 110 | "inputs": [], 111 | "name": "renounceOwnership", 112 | "outputs": [], 113 | "stateMutability": "nonpayable", 114 | "type": "function" 115 | }, 116 | { 117 | "inputs": [ 118 | { 119 | "internalType": "bool", 120 | "name": "_whitelistEnabled", 121 | "type": "bool" 122 | } 123 | ], 124 | "name": "setWhitelistEnabled", 125 | "outputs": [], 126 | "stateMutability": "nonpayable", 127 | "type": "function" 128 | }, 129 | { 130 | "inputs": [ 131 | { 132 | "internalType": "address", 133 | "name": "newOwner", 134 | "type": "address" 135 | } 136 | ], 137 | "name": "transferOwnership", 138 | "outputs": [], 139 | "stateMutability": "nonpayable", 140 | "type": "function" 141 | }, 142 | { 143 | "inputs": [ 144 | { 145 | "internalType": "address", 146 | "name": "", 147 | "type": "address" 148 | } 149 | ], 150 | "name": "whitelist", 151 | "outputs": [ 152 | { 153 | "internalType": "bool", 154 | "name": "", 155 | "type": "bool" 156 | } 157 | ], 158 | "stateMutability": "view", 159 | "type": "function" 160 | }, 161 | { 162 | "inputs": [], 163 | "name": "whitelistEnabled", 164 | "outputs": [ 165 | { 166 | "internalType": "bool", 167 | "name": "", 168 | "type": "bool" 169 | } 170 | ], 171 | "stateMutability": "view", 172 | "type": "function" 173 | } 174 | ], 175 | "bytecode": "0x", 176 | "deployedBytecode": "0x", 177 | "linkReferences": {}, 178 | "deployedLinkReferences": {} 179 | } 180 | -------------------------------------------------------------------------------- /contract/abi/test-helpers/TestERC20.sol/TestERC20.dbg.json: -------------------------------------------------------------------------------- 1 | { 2 | "_format": "hh-sol-dbg-1", 3 | "buildInfo": "../../../build-info/25e1428831ac3df25b0cead98c664e01.json" 4 | } 5 | -------------------------------------------------------------------------------- /contract/typechain/IPeggedToken.d.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { 6 | ethers, 7 | EventFilter, 8 | Signer, 9 | BigNumber, 10 | BigNumberish, 11 | PopulatedTransaction, 12 | BaseContract, 13 | ContractTransaction, 14 | Overrides, 15 | CallOverrides, 16 | } from "ethers"; 17 | import { BytesLike } from "@ethersproject/bytes"; 18 | import { Listener, Provider } from "@ethersproject/providers"; 19 | import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; 20 | import { TypedEventFilter, TypedEvent, TypedListener } from "./commons"; 21 | 22 | interface IPeggedTokenInterface extends ethers.utils.Interface { 23 | functions: { 24 | "burn(address,uint256)": FunctionFragment; 25 | "mint(address,uint256)": FunctionFragment; 26 | }; 27 | 28 | encodeFunctionData( 29 | functionFragment: "burn", 30 | values: [string, BigNumberish] 31 | ): string; 32 | encodeFunctionData( 33 | functionFragment: "mint", 34 | values: [string, BigNumberish] 35 | ): string; 36 | 37 | decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result; 38 | decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; 39 | 40 | events: {}; 41 | } 42 | 43 | export class IPeggedToken extends BaseContract { 44 | connect(signerOrProvider: Signer | Provider | string): this; 45 | attach(addressOrName: string): this; 46 | deployed(): Promise; 47 | 48 | listeners, EventArgsObject>( 49 | eventFilter?: TypedEventFilter 50 | ): Array>; 51 | off, EventArgsObject>( 52 | eventFilter: TypedEventFilter, 53 | listener: TypedListener 54 | ): this; 55 | on, EventArgsObject>( 56 | eventFilter: TypedEventFilter, 57 | listener: TypedListener 58 | ): this; 59 | once, EventArgsObject>( 60 | eventFilter: TypedEventFilter, 61 | listener: TypedListener 62 | ): this; 63 | removeListener, EventArgsObject>( 64 | eventFilter: TypedEventFilter, 65 | listener: TypedListener 66 | ): this; 67 | removeAllListeners, EventArgsObject>( 68 | eventFilter: TypedEventFilter 69 | ): this; 70 | 71 | listeners(eventName?: string): Array; 72 | off(eventName: string, listener: Listener): this; 73 | on(eventName: string, listener: Listener): this; 74 | once(eventName: string, listener: Listener): this; 75 | removeListener(eventName: string, listener: Listener): this; 76 | removeAllListeners(eventName?: string): this; 77 | 78 | queryFilter, EventArgsObject>( 79 | event: TypedEventFilter, 80 | fromBlockOrBlockhash?: string | number | undefined, 81 | toBlock?: string | number | undefined 82 | ): Promise>>; 83 | 84 | interface: IPeggedTokenInterface; 85 | 86 | functions: { 87 | burn( 88 | _from: string, 89 | _amount: BigNumberish, 90 | overrides?: Overrides & { from?: string | Promise } 91 | ): Promise; 92 | 93 | mint( 94 | _to: string, 95 | _amount: BigNumberish, 96 | overrides?: Overrides & { from?: string | Promise } 97 | ): Promise; 98 | }; 99 | 100 | burn( 101 | _from: string, 102 | _amount: BigNumberish, 103 | overrides?: Overrides & { from?: string | Promise } 104 | ): Promise; 105 | 106 | mint( 107 | _to: string, 108 | _amount: BigNumberish, 109 | overrides?: Overrides & { from?: string | Promise } 110 | ): Promise; 111 | 112 | callStatic: { 113 | burn( 114 | _from: string, 115 | _amount: BigNumberish, 116 | overrides?: CallOverrides 117 | ): Promise; 118 | 119 | mint( 120 | _to: string, 121 | _amount: BigNumberish, 122 | overrides?: CallOverrides 123 | ): Promise; 124 | }; 125 | 126 | filters: {}; 127 | 128 | estimateGas: { 129 | burn( 130 | _from: string, 131 | _amount: BigNumberish, 132 | overrides?: Overrides & { from?: string | Promise } 133 | ): Promise; 134 | 135 | mint( 136 | _to: string, 137 | _amount: BigNumberish, 138 | overrides?: Overrides & { from?: string | Promise } 139 | ): Promise; 140 | }; 141 | 142 | populateTransaction: { 143 | burn( 144 | _from: string, 145 | _amount: BigNumberish, 146 | overrides?: Overrides & { from?: string | Promise } 147 | ): Promise; 148 | 149 | mint( 150 | _to: string, 151 | _amount: BigNumberish, 152 | overrides?: Overrides & { from?: string | Promise } 153 | ): Promise; 154 | }; 155 | } 156 | -------------------------------------------------------------------------------- /contract/typechain/ISigsVerifier.d.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { 6 | ethers, 7 | EventFilter, 8 | Signer, 9 | BigNumber, 10 | BigNumberish, 11 | PopulatedTransaction, 12 | BaseContract, 13 | ContractTransaction, 14 | CallOverrides, 15 | } from "ethers"; 16 | import { BytesLike } from "@ethersproject/bytes"; 17 | import { Listener, Provider } from "@ethersproject/providers"; 18 | import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; 19 | import { TypedEventFilter, TypedEvent, TypedListener } from "./commons"; 20 | 21 | interface ISigsVerifierInterface extends ethers.utils.Interface { 22 | functions: { 23 | "verifySigs(bytes,bytes[],address[],uint256[])": FunctionFragment; 24 | }; 25 | 26 | encodeFunctionData( 27 | functionFragment: "verifySigs", 28 | values: [BytesLike, BytesLike[], string[], BigNumberish[]] 29 | ): string; 30 | 31 | decodeFunctionResult(functionFragment: "verifySigs", data: BytesLike): Result; 32 | 33 | events: {}; 34 | } 35 | 36 | export class ISigsVerifier extends BaseContract { 37 | connect(signerOrProvider: Signer | Provider | string): this; 38 | attach(addressOrName: string): this; 39 | deployed(): Promise; 40 | 41 | listeners, EventArgsObject>( 42 | eventFilter?: TypedEventFilter 43 | ): Array>; 44 | off, EventArgsObject>( 45 | eventFilter: TypedEventFilter, 46 | listener: TypedListener 47 | ): this; 48 | on, EventArgsObject>( 49 | eventFilter: TypedEventFilter, 50 | listener: TypedListener 51 | ): this; 52 | once, EventArgsObject>( 53 | eventFilter: TypedEventFilter, 54 | listener: TypedListener 55 | ): this; 56 | removeListener, EventArgsObject>( 57 | eventFilter: TypedEventFilter, 58 | listener: TypedListener 59 | ): this; 60 | removeAllListeners, EventArgsObject>( 61 | eventFilter: TypedEventFilter 62 | ): this; 63 | 64 | listeners(eventName?: string): Array; 65 | off(eventName: string, listener: Listener): this; 66 | on(eventName: string, listener: Listener): this; 67 | once(eventName: string, listener: Listener): this; 68 | removeListener(eventName: string, listener: Listener): this; 69 | removeAllListeners(eventName?: string): this; 70 | 71 | queryFilter, EventArgsObject>( 72 | event: TypedEventFilter, 73 | fromBlockOrBlockhash?: string | number | undefined, 74 | toBlock?: string | number | undefined 75 | ): Promise>>; 76 | 77 | interface: ISigsVerifierInterface; 78 | 79 | functions: { 80 | verifySigs( 81 | _msg: BytesLike, 82 | _sigs: BytesLike[], 83 | _signers: string[], 84 | _powers: BigNumberish[], 85 | overrides?: CallOverrides 86 | ): Promise<[void]>; 87 | }; 88 | 89 | verifySigs( 90 | _msg: BytesLike, 91 | _sigs: BytesLike[], 92 | _signers: string[], 93 | _powers: BigNumberish[], 94 | overrides?: CallOverrides 95 | ): Promise; 96 | 97 | callStatic: { 98 | verifySigs( 99 | _msg: BytesLike, 100 | _sigs: BytesLike[], 101 | _signers: string[], 102 | _powers: BigNumberish[], 103 | overrides?: CallOverrides 104 | ): Promise; 105 | }; 106 | 107 | filters: {}; 108 | 109 | estimateGas: { 110 | verifySigs( 111 | _msg: BytesLike, 112 | _sigs: BytesLike[], 113 | _signers: string[], 114 | _powers: BigNumberish[], 115 | overrides?: CallOverrides 116 | ): Promise; 117 | }; 118 | 119 | populateTransaction: { 120 | verifySigs( 121 | _msg: BytesLike, 122 | _sigs: BytesLike[], 123 | _signers: string[], 124 | _powers: BigNumberish[], 125 | overrides?: CallOverrides 126 | ): Promise; 127 | }; 128 | } 129 | -------------------------------------------------------------------------------- /contract/typechain/ISwapToken.d.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { 6 | ethers, 7 | EventFilter, 8 | Signer, 9 | BigNumber, 10 | BigNumberish, 11 | PopulatedTransaction, 12 | BaseContract, 13 | ContractTransaction, 14 | Overrides, 15 | CallOverrides, 16 | } from "ethers"; 17 | import { BytesLike } from "@ethersproject/bytes"; 18 | import { Listener, Provider } from "@ethersproject/providers"; 19 | import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; 20 | import { TypedEventFilter, TypedEvent, TypedListener } from "./commons"; 21 | 22 | interface ISwapTokenInterface extends ethers.utils.Interface { 23 | functions: { 24 | "swapExactTokensForTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; 25 | }; 26 | 27 | encodeFunctionData( 28 | functionFragment: "swapExactTokensForTokens", 29 | values: [BigNumberish, BigNumberish, string[], string, BigNumberish] 30 | ): string; 31 | 32 | decodeFunctionResult( 33 | functionFragment: "swapExactTokensForTokens", 34 | data: BytesLike 35 | ): Result; 36 | 37 | events: {}; 38 | } 39 | 40 | export class ISwapToken extends BaseContract { 41 | connect(signerOrProvider: Signer | Provider | string): this; 42 | attach(addressOrName: string): this; 43 | deployed(): Promise; 44 | 45 | listeners, EventArgsObject>( 46 | eventFilter?: TypedEventFilter 47 | ): Array>; 48 | off, EventArgsObject>( 49 | eventFilter: TypedEventFilter, 50 | listener: TypedListener 51 | ): this; 52 | on, EventArgsObject>( 53 | eventFilter: TypedEventFilter, 54 | listener: TypedListener 55 | ): this; 56 | once, EventArgsObject>( 57 | eventFilter: TypedEventFilter, 58 | listener: TypedListener 59 | ): this; 60 | removeListener, EventArgsObject>( 61 | eventFilter: TypedEventFilter, 62 | listener: TypedListener 63 | ): this; 64 | removeAllListeners, EventArgsObject>( 65 | eventFilter: TypedEventFilter 66 | ): this; 67 | 68 | listeners(eventName?: string): Array; 69 | off(eventName: string, listener: Listener): this; 70 | on(eventName: string, listener: Listener): this; 71 | once(eventName: string, listener: Listener): this; 72 | removeListener(eventName: string, listener: Listener): this; 73 | removeAllListeners(eventName?: string): this; 74 | 75 | queryFilter, EventArgsObject>( 76 | event: TypedEventFilter, 77 | fromBlockOrBlockhash?: string | number | undefined, 78 | toBlock?: string | number | undefined 79 | ): Promise>>; 80 | 81 | interface: ISwapTokenInterface; 82 | 83 | functions: { 84 | swapExactTokensForTokens( 85 | arg0: BigNumberish, 86 | arg1: BigNumberish, 87 | arg2: string[], 88 | arg3: string, 89 | arg4: BigNumberish, 90 | overrides?: Overrides & { from?: string | Promise } 91 | ): Promise; 92 | }; 93 | 94 | swapExactTokensForTokens( 95 | arg0: BigNumberish, 96 | arg1: BigNumberish, 97 | arg2: string[], 98 | arg3: string, 99 | arg4: BigNumberish, 100 | overrides?: Overrides & { from?: string | Promise } 101 | ): Promise; 102 | 103 | callStatic: { 104 | swapExactTokensForTokens( 105 | arg0: BigNumberish, 106 | arg1: BigNumberish, 107 | arg2: string[], 108 | arg3: string, 109 | arg4: BigNumberish, 110 | overrides?: CallOverrides 111 | ): Promise; 112 | }; 113 | 114 | filters: {}; 115 | 116 | estimateGas: { 117 | swapExactTokensForTokens( 118 | arg0: BigNumberish, 119 | arg1: BigNumberish, 120 | arg2: string[], 121 | arg3: string, 122 | arg4: BigNumberish, 123 | overrides?: Overrides & { from?: string | Promise } 124 | ): Promise; 125 | }; 126 | 127 | populateTransaction: { 128 | swapExactTokensForTokens( 129 | arg0: BigNumberish, 130 | arg1: BigNumberish, 131 | arg2: string[], 132 | arg3: string, 133 | arg4: BigNumberish, 134 | overrides?: Overrides & { from?: string | Promise } 135 | ): Promise; 136 | }; 137 | } 138 | -------------------------------------------------------------------------------- /contract/typechain/IWETH.d.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { 6 | ethers, 7 | EventFilter, 8 | Signer, 9 | BigNumber, 10 | BigNumberish, 11 | PopulatedTransaction, 12 | BaseContract, 13 | ContractTransaction, 14 | Overrides, 15 | PayableOverrides, 16 | CallOverrides, 17 | } from "ethers"; 18 | import { BytesLike } from "@ethersproject/bytes"; 19 | import { Listener, Provider } from "@ethersproject/providers"; 20 | import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; 21 | import { TypedEventFilter, TypedEvent, TypedListener } from "./commons"; 22 | 23 | interface IWETHInterface extends ethers.utils.Interface { 24 | functions: { 25 | "deposit()": FunctionFragment; 26 | "withdraw(uint256)": FunctionFragment; 27 | }; 28 | 29 | encodeFunctionData(functionFragment: "deposit", values?: undefined): string; 30 | encodeFunctionData( 31 | functionFragment: "withdraw", 32 | values: [BigNumberish] 33 | ): string; 34 | 35 | decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; 36 | decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; 37 | 38 | events: {}; 39 | } 40 | 41 | export class IWETH extends BaseContract { 42 | connect(signerOrProvider: Signer | Provider | string): this; 43 | attach(addressOrName: string): this; 44 | deployed(): Promise; 45 | 46 | listeners, EventArgsObject>( 47 | eventFilter?: TypedEventFilter 48 | ): Array>; 49 | off, EventArgsObject>( 50 | eventFilter: TypedEventFilter, 51 | listener: TypedListener 52 | ): this; 53 | on, EventArgsObject>( 54 | eventFilter: TypedEventFilter, 55 | listener: TypedListener 56 | ): this; 57 | once, EventArgsObject>( 58 | eventFilter: TypedEventFilter, 59 | listener: TypedListener 60 | ): this; 61 | removeListener, EventArgsObject>( 62 | eventFilter: TypedEventFilter, 63 | listener: TypedListener 64 | ): this; 65 | removeAllListeners, EventArgsObject>( 66 | eventFilter: TypedEventFilter 67 | ): this; 68 | 69 | listeners(eventName?: string): Array; 70 | off(eventName: string, listener: Listener): this; 71 | on(eventName: string, listener: Listener): this; 72 | once(eventName: string, listener: Listener): this; 73 | removeListener(eventName: string, listener: Listener): this; 74 | removeAllListeners(eventName?: string): this; 75 | 76 | queryFilter, EventArgsObject>( 77 | event: TypedEventFilter, 78 | fromBlockOrBlockhash?: string | number | undefined, 79 | toBlock?: string | number | undefined 80 | ): Promise>>; 81 | 82 | interface: IWETHInterface; 83 | 84 | functions: { 85 | deposit( 86 | overrides?: PayableOverrides & { from?: string | Promise } 87 | ): Promise; 88 | 89 | withdraw( 90 | arg0: BigNumberish, 91 | overrides?: Overrides & { from?: string | Promise } 92 | ): Promise; 93 | }; 94 | 95 | deposit( 96 | overrides?: PayableOverrides & { from?: string | Promise } 97 | ): Promise; 98 | 99 | withdraw( 100 | arg0: BigNumberish, 101 | overrides?: Overrides & { from?: string | Promise } 102 | ): Promise; 103 | 104 | callStatic: { 105 | deposit(overrides?: CallOverrides): Promise; 106 | 107 | withdraw(arg0: BigNumberish, overrides?: CallOverrides): Promise; 108 | }; 109 | 110 | filters: {}; 111 | 112 | estimateGas: { 113 | deposit( 114 | overrides?: PayableOverrides & { from?: string | Promise } 115 | ): Promise; 116 | 117 | withdraw( 118 | arg0: BigNumberish, 119 | overrides?: Overrides & { from?: string | Promise } 120 | ): Promise; 121 | }; 122 | 123 | populateTransaction: { 124 | deposit( 125 | overrides?: PayableOverrides & { from?: string | Promise } 126 | ): Promise; 127 | 128 | withdraw( 129 | arg0: BigNumberish, 130 | overrides?: Overrides & { from?: string | Promise } 131 | ): Promise; 132 | }; 133 | } 134 | -------------------------------------------------------------------------------- /contract/typechain/Pausable.d.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { 6 | ethers, 7 | EventFilter, 8 | Signer, 9 | BigNumber, 10 | BigNumberish, 11 | PopulatedTransaction, 12 | BaseContract, 13 | ContractTransaction, 14 | CallOverrides, 15 | } from "ethers"; 16 | import { BytesLike } from "@ethersproject/bytes"; 17 | import { Listener, Provider } from "@ethersproject/providers"; 18 | import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; 19 | import { TypedEventFilter, TypedEvent, TypedListener } from "./commons"; 20 | 21 | interface PausableInterface extends ethers.utils.Interface { 22 | functions: { 23 | "paused()": FunctionFragment; 24 | }; 25 | 26 | encodeFunctionData(functionFragment: "paused", values?: undefined): string; 27 | 28 | decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; 29 | 30 | events: { 31 | "Paused(address)": EventFragment; 32 | "Unpaused(address)": EventFragment; 33 | }; 34 | 35 | getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; 36 | getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; 37 | } 38 | 39 | export class Pausable extends BaseContract { 40 | connect(signerOrProvider: Signer | Provider | string): this; 41 | attach(addressOrName: string): this; 42 | deployed(): Promise; 43 | 44 | listeners, EventArgsObject>( 45 | eventFilter?: TypedEventFilter 46 | ): Array>; 47 | off, EventArgsObject>( 48 | eventFilter: TypedEventFilter, 49 | listener: TypedListener 50 | ): this; 51 | on, EventArgsObject>( 52 | eventFilter: TypedEventFilter, 53 | listener: TypedListener 54 | ): this; 55 | once, EventArgsObject>( 56 | eventFilter: TypedEventFilter, 57 | listener: TypedListener 58 | ): this; 59 | removeListener, EventArgsObject>( 60 | eventFilter: TypedEventFilter, 61 | listener: TypedListener 62 | ): this; 63 | removeAllListeners, EventArgsObject>( 64 | eventFilter: TypedEventFilter 65 | ): this; 66 | 67 | listeners(eventName?: string): Array; 68 | off(eventName: string, listener: Listener): this; 69 | on(eventName: string, listener: Listener): this; 70 | once(eventName: string, listener: Listener): this; 71 | removeListener(eventName: string, listener: Listener): this; 72 | removeAllListeners(eventName?: string): this; 73 | 74 | queryFilter, EventArgsObject>( 75 | event: TypedEventFilter, 76 | fromBlockOrBlockhash?: string | number | undefined, 77 | toBlock?: string | number | undefined 78 | ): Promise>>; 79 | 80 | interface: PausableInterface; 81 | 82 | functions: { 83 | paused(overrides?: CallOverrides): Promise<[boolean]>; 84 | }; 85 | 86 | paused(overrides?: CallOverrides): Promise; 87 | 88 | callStatic: { 89 | paused(overrides?: CallOverrides): Promise; 90 | }; 91 | 92 | filters: { 93 | Paused(account?: null): TypedEventFilter<[string], { account: string }>; 94 | 95 | Unpaused(account?: null): TypedEventFilter<[string], { account: string }>; 96 | }; 97 | 98 | estimateGas: { 99 | paused(overrides?: CallOverrides): Promise; 100 | }; 101 | 102 | populateTransaction: { 103 | paused(overrides?: CallOverrides): Promise; 104 | }; 105 | } 106 | -------------------------------------------------------------------------------- /contract/typechain/commons.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { EventFilter, Event } from "ethers"; 6 | import { Result } from "@ethersproject/abi"; 7 | 8 | export interface TypedEventFilter<_EventArgsArray, _EventArgsObject> 9 | extends EventFilter {} 10 | 11 | export interface TypedEvent extends Event { 12 | args: EventArgs; 13 | } 14 | 15 | export type TypedListener< 16 | EventArgsArray extends Array, 17 | EventArgsObject 18 | > = ( 19 | ...listenerArg: [ 20 | ...EventArgsArray, 21 | TypedEvent 22 | ] 23 | ) => void; 24 | 25 | export type MinEthersFactory = { 26 | deploy(...a: ARGS[]): Promise; 27 | }; 28 | export type GetContractTypeFromFactory = F extends MinEthersFactory< 29 | infer C, 30 | any 31 | > 32 | ? C 33 | : never; 34 | export type GetARGsTypeFromFactory = F extends MinEthersFactory 35 | ? Parameters 36 | : never; 37 | -------------------------------------------------------------------------------- /contract/typechain/factories/Governor__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { Governor, GovernorInterface } from "../Governor"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: false, 15 | internalType: "address", 16 | name: "account", 17 | type: "address", 18 | }, 19 | ], 20 | name: "GovernorAdded", 21 | type: "event", 22 | }, 23 | { 24 | anonymous: false, 25 | inputs: [ 26 | { 27 | indexed: false, 28 | internalType: "address", 29 | name: "account", 30 | type: "address", 31 | }, 32 | ], 33 | name: "GovernorRemoved", 34 | type: "event", 35 | }, 36 | { 37 | anonymous: false, 38 | inputs: [ 39 | { 40 | indexed: true, 41 | internalType: "address", 42 | name: "previousOwner", 43 | type: "address", 44 | }, 45 | { 46 | indexed: true, 47 | internalType: "address", 48 | name: "newOwner", 49 | type: "address", 50 | }, 51 | ], 52 | name: "OwnershipTransferred", 53 | type: "event", 54 | }, 55 | { 56 | inputs: [ 57 | { 58 | internalType: "address", 59 | name: "_account", 60 | type: "address", 61 | }, 62 | ], 63 | name: "addGovernor", 64 | outputs: [], 65 | stateMutability: "nonpayable", 66 | type: "function", 67 | }, 68 | { 69 | inputs: [ 70 | { 71 | internalType: "address", 72 | name: "", 73 | type: "address", 74 | }, 75 | ], 76 | name: "governors", 77 | outputs: [ 78 | { 79 | internalType: "bool", 80 | name: "", 81 | type: "bool", 82 | }, 83 | ], 84 | stateMutability: "view", 85 | type: "function", 86 | }, 87 | { 88 | inputs: [ 89 | { 90 | internalType: "address", 91 | name: "_account", 92 | type: "address", 93 | }, 94 | ], 95 | name: "isGovernor", 96 | outputs: [ 97 | { 98 | internalType: "bool", 99 | name: "", 100 | type: "bool", 101 | }, 102 | ], 103 | stateMutability: "view", 104 | type: "function", 105 | }, 106 | { 107 | inputs: [], 108 | name: "owner", 109 | outputs: [ 110 | { 111 | internalType: "address", 112 | name: "", 113 | type: "address", 114 | }, 115 | ], 116 | stateMutability: "view", 117 | type: "function", 118 | }, 119 | { 120 | inputs: [ 121 | { 122 | internalType: "address", 123 | name: "_account", 124 | type: "address", 125 | }, 126 | ], 127 | name: "removeGovernor", 128 | outputs: [], 129 | stateMutability: "nonpayable", 130 | type: "function", 131 | }, 132 | { 133 | inputs: [], 134 | name: "renounceGovernor", 135 | outputs: [], 136 | stateMutability: "nonpayable", 137 | type: "function", 138 | }, 139 | { 140 | inputs: [], 141 | name: "renounceOwnership", 142 | outputs: [], 143 | stateMutability: "nonpayable", 144 | type: "function", 145 | }, 146 | { 147 | inputs: [ 148 | { 149 | internalType: "address", 150 | name: "newOwner", 151 | type: "address", 152 | }, 153 | ], 154 | name: "transferOwnership", 155 | outputs: [], 156 | stateMutability: "nonpayable", 157 | type: "function", 158 | }, 159 | ]; 160 | 161 | export class Governor__factory { 162 | static readonly abi = _abi; 163 | static createInterface(): GovernorInterface { 164 | return new utils.Interface(_abi) as GovernorInterface; 165 | } 166 | static connect( 167 | address: string, 168 | signerOrProvider: Signer | Provider 169 | ): Governor { 170 | return new Contract(address, _abi, signerOrProvider) as Governor; 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /contract/typechain/factories/IBridge__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { IBridge, IBridgeInterface } from "../IBridge"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [ 12 | { 13 | internalType: "address", 14 | name: "_token", 15 | type: "address", 16 | }, 17 | { 18 | internalType: "uint256", 19 | name: "_amount", 20 | type: "uint256", 21 | }, 22 | { 23 | internalType: "address", 24 | name: "_withdrawAccount", 25 | type: "address", 26 | }, 27 | { 28 | internalType: "uint64", 29 | name: "_nonce", 30 | type: "uint64", 31 | }, 32 | ], 33 | name: "burn", 34 | outputs: [], 35 | stateMutability: "nonpayable", 36 | type: "function", 37 | }, 38 | { 39 | inputs: [ 40 | { 41 | internalType: "address", 42 | name: "_token", 43 | type: "address", 44 | }, 45 | { 46 | internalType: "uint256", 47 | name: "_amount", 48 | type: "uint256", 49 | }, 50 | { 51 | internalType: "uint64", 52 | name: "_mintChainId", 53 | type: "uint64", 54 | }, 55 | { 56 | internalType: "address", 57 | name: "_mintAccount", 58 | type: "address", 59 | }, 60 | { 61 | internalType: "uint64", 62 | name: "_nonce", 63 | type: "uint64", 64 | }, 65 | ], 66 | name: "deposit", 67 | outputs: [], 68 | stateMutability: "nonpayable", 69 | type: "function", 70 | }, 71 | { 72 | inputs: [ 73 | { 74 | internalType: "bytes32", 75 | name: "recordId", 76 | type: "bytes32", 77 | }, 78 | ], 79 | name: "records", 80 | outputs: [ 81 | { 82 | internalType: "bool", 83 | name: "", 84 | type: "bool", 85 | }, 86 | ], 87 | stateMutability: "view", 88 | type: "function", 89 | }, 90 | { 91 | inputs: [ 92 | { 93 | internalType: "bytes", 94 | name: "_relayRequest", 95 | type: "bytes", 96 | }, 97 | { 98 | internalType: "bytes[]", 99 | name: "_sigs", 100 | type: "bytes[]", 101 | }, 102 | { 103 | internalType: "address[]", 104 | name: "_signers", 105 | type: "address[]", 106 | }, 107 | { 108 | internalType: "uint256[]", 109 | name: "_powers", 110 | type: "uint256[]", 111 | }, 112 | ], 113 | name: "relay", 114 | outputs: [], 115 | stateMutability: "nonpayable", 116 | type: "function", 117 | }, 118 | { 119 | inputs: [ 120 | { 121 | internalType: "address", 122 | name: "_receiver", 123 | type: "address", 124 | }, 125 | { 126 | internalType: "address", 127 | name: "_token", 128 | type: "address", 129 | }, 130 | { 131 | internalType: "uint256", 132 | name: "_amount", 133 | type: "uint256", 134 | }, 135 | { 136 | internalType: "uint64", 137 | name: "_dstChainId", 138 | type: "uint64", 139 | }, 140 | { 141 | internalType: "uint64", 142 | name: "_nonce", 143 | type: "uint64", 144 | }, 145 | { 146 | internalType: "uint32", 147 | name: "_maxSlippage", 148 | type: "uint32", 149 | }, 150 | ], 151 | name: "send", 152 | outputs: [], 153 | stateMutability: "nonpayable", 154 | type: "function", 155 | }, 156 | { 157 | inputs: [ 158 | { 159 | internalType: "bytes32", 160 | name: "transferId", 161 | type: "bytes32", 162 | }, 163 | ], 164 | name: "transfers", 165 | outputs: [ 166 | { 167 | internalType: "bool", 168 | name: "", 169 | type: "bool", 170 | }, 171 | ], 172 | stateMutability: "view", 173 | type: "function", 174 | }, 175 | { 176 | inputs: [ 177 | { 178 | internalType: "bytes", 179 | name: "_msg", 180 | type: "bytes", 181 | }, 182 | { 183 | internalType: "bytes[]", 184 | name: "_sigs", 185 | type: "bytes[]", 186 | }, 187 | { 188 | internalType: "address[]", 189 | name: "_signers", 190 | type: "address[]", 191 | }, 192 | { 193 | internalType: "uint256[]", 194 | name: "_powers", 195 | type: "uint256[]", 196 | }, 197 | ], 198 | name: "verifySigs", 199 | outputs: [], 200 | stateMutability: "view", 201 | type: "function", 202 | }, 203 | { 204 | inputs: [ 205 | { 206 | internalType: "bytes32", 207 | name: "withdrawId", 208 | type: "bytes32", 209 | }, 210 | ], 211 | name: "withdraws", 212 | outputs: [ 213 | { 214 | internalType: "bool", 215 | name: "", 216 | type: "bool", 217 | }, 218 | ], 219 | stateMutability: "view", 220 | type: "function", 221 | }, 222 | ]; 223 | 224 | export class IBridge__factory { 225 | static readonly abi = _abi; 226 | static createInterface(): IBridgeInterface { 227 | return new utils.Interface(_abi) as IBridgeInterface; 228 | } 229 | static connect( 230 | address: string, 231 | signerOrProvider: Signer | Provider 232 | ): IBridge { 233 | return new Contract(address, _abi, signerOrProvider) as IBridge; 234 | } 235 | } 236 | -------------------------------------------------------------------------------- /contract/typechain/factories/IERC20Permit__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { IERC20Permit, IERC20PermitInterface } from "../IERC20Permit"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [], 12 | name: "DOMAIN_SEPARATOR", 13 | outputs: [ 14 | { 15 | internalType: "bytes32", 16 | name: "", 17 | type: "bytes32", 18 | }, 19 | ], 20 | stateMutability: "view", 21 | type: "function", 22 | }, 23 | { 24 | inputs: [ 25 | { 26 | internalType: "address", 27 | name: "owner", 28 | type: "address", 29 | }, 30 | ], 31 | name: "nonces", 32 | outputs: [ 33 | { 34 | internalType: "uint256", 35 | name: "", 36 | type: "uint256", 37 | }, 38 | ], 39 | stateMutability: "view", 40 | type: "function", 41 | }, 42 | { 43 | inputs: [ 44 | { 45 | internalType: "address", 46 | name: "owner", 47 | type: "address", 48 | }, 49 | { 50 | internalType: "address", 51 | name: "spender", 52 | type: "address", 53 | }, 54 | { 55 | internalType: "uint256", 56 | name: "value", 57 | type: "uint256", 58 | }, 59 | { 60 | internalType: "uint256", 61 | name: "deadline", 62 | type: "uint256", 63 | }, 64 | { 65 | internalType: "uint8", 66 | name: "v", 67 | type: "uint8", 68 | }, 69 | { 70 | internalType: "bytes32", 71 | name: "r", 72 | type: "bytes32", 73 | }, 74 | { 75 | internalType: "bytes32", 76 | name: "s", 77 | type: "bytes32", 78 | }, 79 | ], 80 | name: "permit", 81 | outputs: [], 82 | stateMutability: "nonpayable", 83 | type: "function", 84 | }, 85 | ]; 86 | 87 | export class IERC20Permit__factory { 88 | static readonly abi = _abi; 89 | static createInterface(): IERC20PermitInterface { 90 | return new utils.Interface(_abi) as IERC20PermitInterface; 91 | } 92 | static connect( 93 | address: string, 94 | signerOrProvider: Signer | Provider 95 | ): IERC20Permit { 96 | return new Contract(address, _abi, signerOrProvider) as IERC20Permit; 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /contract/typechain/factories/IERC20__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { IERC20, IERC20Interface } from "../IERC20"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: true, 15 | internalType: "address", 16 | name: "owner", 17 | type: "address", 18 | }, 19 | { 20 | indexed: true, 21 | internalType: "address", 22 | name: "spender", 23 | type: "address", 24 | }, 25 | { 26 | indexed: false, 27 | internalType: "uint256", 28 | name: "value", 29 | type: "uint256", 30 | }, 31 | ], 32 | name: "Approval", 33 | type: "event", 34 | }, 35 | { 36 | anonymous: false, 37 | inputs: [ 38 | { 39 | indexed: true, 40 | internalType: "address", 41 | name: "from", 42 | type: "address", 43 | }, 44 | { 45 | indexed: true, 46 | internalType: "address", 47 | name: "to", 48 | type: "address", 49 | }, 50 | { 51 | indexed: false, 52 | internalType: "uint256", 53 | name: "value", 54 | type: "uint256", 55 | }, 56 | ], 57 | name: "Transfer", 58 | type: "event", 59 | }, 60 | { 61 | inputs: [ 62 | { 63 | internalType: "address", 64 | name: "owner", 65 | type: "address", 66 | }, 67 | { 68 | internalType: "address", 69 | name: "spender", 70 | type: "address", 71 | }, 72 | ], 73 | name: "allowance", 74 | outputs: [ 75 | { 76 | internalType: "uint256", 77 | name: "", 78 | type: "uint256", 79 | }, 80 | ], 81 | stateMutability: "view", 82 | type: "function", 83 | }, 84 | { 85 | inputs: [ 86 | { 87 | internalType: "address", 88 | name: "spender", 89 | type: "address", 90 | }, 91 | { 92 | internalType: "uint256", 93 | name: "amount", 94 | type: "uint256", 95 | }, 96 | ], 97 | name: "approve", 98 | outputs: [ 99 | { 100 | internalType: "bool", 101 | name: "", 102 | type: "bool", 103 | }, 104 | ], 105 | stateMutability: "nonpayable", 106 | type: "function", 107 | }, 108 | { 109 | inputs: [ 110 | { 111 | internalType: "address", 112 | name: "account", 113 | type: "address", 114 | }, 115 | ], 116 | name: "balanceOf", 117 | outputs: [ 118 | { 119 | internalType: "uint256", 120 | name: "", 121 | type: "uint256", 122 | }, 123 | ], 124 | stateMutability: "view", 125 | type: "function", 126 | }, 127 | { 128 | inputs: [], 129 | name: "totalSupply", 130 | outputs: [ 131 | { 132 | internalType: "uint256", 133 | name: "", 134 | type: "uint256", 135 | }, 136 | ], 137 | stateMutability: "view", 138 | type: "function", 139 | }, 140 | { 141 | inputs: [ 142 | { 143 | internalType: "address", 144 | name: "recipient", 145 | type: "address", 146 | }, 147 | { 148 | internalType: "uint256", 149 | name: "amount", 150 | type: "uint256", 151 | }, 152 | ], 153 | name: "transfer", 154 | outputs: [ 155 | { 156 | internalType: "bool", 157 | name: "", 158 | type: "bool", 159 | }, 160 | ], 161 | stateMutability: "nonpayable", 162 | type: "function", 163 | }, 164 | { 165 | inputs: [ 166 | { 167 | internalType: "address", 168 | name: "sender", 169 | type: "address", 170 | }, 171 | { 172 | internalType: "address", 173 | name: "recipient", 174 | type: "address", 175 | }, 176 | { 177 | internalType: "uint256", 178 | name: "amount", 179 | type: "uint256", 180 | }, 181 | ], 182 | name: "transferFrom", 183 | outputs: [ 184 | { 185 | internalType: "bool", 186 | name: "", 187 | type: "bool", 188 | }, 189 | ], 190 | stateMutability: "nonpayable", 191 | type: "function", 192 | }, 193 | ]; 194 | 195 | export class IERC20__factory { 196 | static readonly abi = _abi; 197 | static createInterface(): IERC20Interface { 198 | return new utils.Interface(_abi) as IERC20Interface; 199 | } 200 | static connect(address: string, signerOrProvider: Signer | Provider): IERC20 { 201 | return new Contract(address, _abi, signerOrProvider) as IERC20; 202 | } 203 | } 204 | -------------------------------------------------------------------------------- /contract/typechain/factories/IFraxCanoToken__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { 8 | IFraxCanoToken, 9 | IFraxCanoTokenInterface, 10 | } from "../IFraxCanoToken"; 11 | 12 | const _abi = [ 13 | { 14 | inputs: [ 15 | { 16 | internalType: "address", 17 | name: "", 18 | type: "address", 19 | }, 20 | { 21 | internalType: "uint256", 22 | name: "", 23 | type: "uint256", 24 | }, 25 | ], 26 | name: "exchangeCanonicalForOld", 27 | outputs: [ 28 | { 29 | internalType: "uint256", 30 | name: "", 31 | type: "uint256", 32 | }, 33 | ], 34 | stateMutability: "nonpayable", 35 | type: "function", 36 | }, 37 | { 38 | inputs: [ 39 | { 40 | internalType: "address", 41 | name: "", 42 | type: "address", 43 | }, 44 | { 45 | internalType: "uint256", 46 | name: "", 47 | type: "uint256", 48 | }, 49 | ], 50 | name: "exchangeOldForCanonical", 51 | outputs: [ 52 | { 53 | internalType: "uint256", 54 | name: "", 55 | type: "uint256", 56 | }, 57 | ], 58 | stateMutability: "nonpayable", 59 | type: "function", 60 | }, 61 | ]; 62 | 63 | export class IFraxCanoToken__factory { 64 | static readonly abi = _abi; 65 | static createInterface(): IFraxCanoTokenInterface { 66 | return new utils.Interface(_abi) as IFraxCanoTokenInterface; 67 | } 68 | static connect( 69 | address: string, 70 | signerOrProvider: Signer | Provider 71 | ): IFraxCanoToken { 72 | return new Contract(address, _abi, signerOrProvider) as IFraxCanoToken; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /contract/typechain/factories/IMaiBridgeHub__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { IMaiBridgeHub, IMaiBridgeHubInterface } from "../IMaiBridgeHub"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [], 12 | name: "asset", 13 | outputs: [ 14 | { 15 | internalType: "address", 16 | name: "", 17 | type: "address", 18 | }, 19 | ], 20 | stateMutability: "view", 21 | type: "function", 22 | }, 23 | { 24 | inputs: [ 25 | { 26 | internalType: "address", 27 | name: "", 28 | type: "address", 29 | }, 30 | { 31 | internalType: "uint256", 32 | name: "", 33 | type: "uint256", 34 | }, 35 | ], 36 | name: "swapIn", 37 | outputs: [], 38 | stateMutability: "nonpayable", 39 | type: "function", 40 | }, 41 | { 42 | inputs: [ 43 | { 44 | internalType: "address", 45 | name: "", 46 | type: "address", 47 | }, 48 | { 49 | internalType: "uint256", 50 | name: "", 51 | type: "uint256", 52 | }, 53 | ], 54 | name: "swapOut", 55 | outputs: [], 56 | stateMutability: "nonpayable", 57 | type: "function", 58 | }, 59 | ]; 60 | 61 | export class IMaiBridgeHub__factory { 62 | static readonly abi = _abi; 63 | static createInterface(): IMaiBridgeHubInterface { 64 | return new utils.Interface(_abi) as IMaiBridgeHubInterface; 65 | } 66 | static connect( 67 | address: string, 68 | signerOrProvider: Signer | Provider 69 | ): IMaiBridgeHub { 70 | return new Contract(address, _abi, signerOrProvider) as IMaiBridgeHub; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /contract/typechain/factories/IPeggedToken__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { IPeggedToken, IPeggedTokenInterface } from "../IPeggedToken"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [ 12 | { 13 | internalType: "address", 14 | name: "_from", 15 | type: "address", 16 | }, 17 | { 18 | internalType: "uint256", 19 | name: "_amount", 20 | type: "uint256", 21 | }, 22 | ], 23 | name: "burn", 24 | outputs: [], 25 | stateMutability: "nonpayable", 26 | type: "function", 27 | }, 28 | { 29 | inputs: [ 30 | { 31 | internalType: "address", 32 | name: "_to", 33 | type: "address", 34 | }, 35 | { 36 | internalType: "uint256", 37 | name: "_amount", 38 | type: "uint256", 39 | }, 40 | ], 41 | name: "mint", 42 | outputs: [], 43 | stateMutability: "nonpayable", 44 | type: "function", 45 | }, 46 | ]; 47 | 48 | export class IPeggedToken__factory { 49 | static readonly abi = _abi; 50 | static createInterface(): IPeggedTokenInterface { 51 | return new utils.Interface(_abi) as IPeggedTokenInterface; 52 | } 53 | static connect( 54 | address: string, 55 | signerOrProvider: Signer | Provider 56 | ): IPeggedToken { 57 | return new Contract(address, _abi, signerOrProvider) as IPeggedToken; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /contract/typechain/factories/ISigsVerifier__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { ISigsVerifier, ISigsVerifierInterface } from "../ISigsVerifier"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [ 12 | { 13 | internalType: "bytes", 14 | name: "_msg", 15 | type: "bytes", 16 | }, 17 | { 18 | internalType: "bytes[]", 19 | name: "_sigs", 20 | type: "bytes[]", 21 | }, 22 | { 23 | internalType: "address[]", 24 | name: "_signers", 25 | type: "address[]", 26 | }, 27 | { 28 | internalType: "uint256[]", 29 | name: "_powers", 30 | type: "uint256[]", 31 | }, 32 | ], 33 | name: "verifySigs", 34 | outputs: [], 35 | stateMutability: "view", 36 | type: "function", 37 | }, 38 | ]; 39 | 40 | export class ISigsVerifier__factory { 41 | static readonly abi = _abi; 42 | static createInterface(): ISigsVerifierInterface { 43 | return new utils.Interface(_abi) as ISigsVerifierInterface; 44 | } 45 | static connect( 46 | address: string, 47 | signerOrProvider: Signer | Provider 48 | ): ISigsVerifier { 49 | return new Contract(address, _abi, signerOrProvider) as ISigsVerifier; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /contract/typechain/factories/ISwapCanoToken__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { 8 | ISwapCanoToken, 9 | ISwapCanoTokenInterface, 10 | } from "../ISwapCanoToken"; 11 | 12 | const _abi = [ 13 | { 14 | inputs: [ 15 | { 16 | internalType: "address", 17 | name: "", 18 | type: "address", 19 | }, 20 | { 21 | internalType: "uint256", 22 | name: "", 23 | type: "uint256", 24 | }, 25 | ], 26 | name: "swapBridgeForCanonical", 27 | outputs: [ 28 | { 29 | internalType: "uint256", 30 | name: "", 31 | type: "uint256", 32 | }, 33 | ], 34 | stateMutability: "nonpayable", 35 | type: "function", 36 | }, 37 | { 38 | inputs: [ 39 | { 40 | internalType: "address", 41 | name: "", 42 | type: "address", 43 | }, 44 | { 45 | internalType: "uint256", 46 | name: "", 47 | type: "uint256", 48 | }, 49 | ], 50 | name: "swapCanonicalForBridge", 51 | outputs: [ 52 | { 53 | internalType: "uint256", 54 | name: "", 55 | type: "uint256", 56 | }, 57 | ], 58 | stateMutability: "nonpayable", 59 | type: "function", 60 | }, 61 | ]; 62 | 63 | export class ISwapCanoToken__factory { 64 | static readonly abi = _abi; 65 | static createInterface(): ISwapCanoTokenInterface { 66 | return new utils.Interface(_abi) as ISwapCanoTokenInterface; 67 | } 68 | static connect( 69 | address: string, 70 | signerOrProvider: Signer | Provider 71 | ): ISwapCanoToken { 72 | return new Contract(address, _abi, signerOrProvider) as ISwapCanoToken; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /contract/typechain/factories/ISwapToken__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { ISwapToken, ISwapTokenInterface } from "../ISwapToken"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [ 12 | { 13 | internalType: "uint256", 14 | name: "", 15 | type: "uint256", 16 | }, 17 | { 18 | internalType: "uint256", 19 | name: "", 20 | type: "uint256", 21 | }, 22 | { 23 | internalType: "address[]", 24 | name: "", 25 | type: "address[]", 26 | }, 27 | { 28 | internalType: "address", 29 | name: "", 30 | type: "address", 31 | }, 32 | { 33 | internalType: "uint256", 34 | name: "", 35 | type: "uint256", 36 | }, 37 | ], 38 | name: "swapExactTokensForTokens", 39 | outputs: [ 40 | { 41 | internalType: "uint256[]", 42 | name: "", 43 | type: "uint256[]", 44 | }, 45 | ], 46 | stateMutability: "nonpayable", 47 | type: "function", 48 | }, 49 | ]; 50 | 51 | export class ISwapToken__factory { 52 | static readonly abi = _abi; 53 | static createInterface(): ISwapTokenInterface { 54 | return new utils.Interface(_abi) as ISwapTokenInterface; 55 | } 56 | static connect( 57 | address: string, 58 | signerOrProvider: Signer | Provider 59 | ): ISwapToken { 60 | return new Contract(address, _abi, signerOrProvider) as ISwapToken; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /contract/typechain/factories/IUniswapV2__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { IUniswapV2, IUniswapV2Interface } from "../IUniswapV2"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [ 12 | { 13 | internalType: "uint256", 14 | name: "amountIn", 15 | type: "uint256", 16 | }, 17 | { 18 | internalType: "uint256", 19 | name: "amountOutMin", 20 | type: "uint256", 21 | }, 22 | { 23 | internalType: "address[]", 24 | name: "path", 25 | type: "address[]", 26 | }, 27 | { 28 | internalType: "address", 29 | name: "to", 30 | type: "address", 31 | }, 32 | { 33 | internalType: "uint256", 34 | name: "deadline", 35 | type: "uint256", 36 | }, 37 | ], 38 | name: "swapExactTokensForTokens", 39 | outputs: [ 40 | { 41 | internalType: "uint256[]", 42 | name: "amounts", 43 | type: "uint256[]", 44 | }, 45 | ], 46 | stateMutability: "nonpayable", 47 | type: "function", 48 | }, 49 | { 50 | inputs: [ 51 | { 52 | internalType: "uint256", 53 | name: "amountOut", 54 | type: "uint256", 55 | }, 56 | { 57 | internalType: "uint256", 58 | name: "amountInMax", 59 | type: "uint256", 60 | }, 61 | { 62 | internalType: "address[]", 63 | name: "path", 64 | type: "address[]", 65 | }, 66 | { 67 | internalType: "address", 68 | name: "to", 69 | type: "address", 70 | }, 71 | { 72 | internalType: "uint256", 73 | name: "deadline", 74 | type: "uint256", 75 | }, 76 | ], 77 | name: "swapTokensForExactTokens", 78 | outputs: [ 79 | { 80 | internalType: "uint256[]", 81 | name: "amounts", 82 | type: "uint256[]", 83 | }, 84 | ], 85 | stateMutability: "nonpayable", 86 | type: "function", 87 | }, 88 | ]; 89 | 90 | export class IUniswapV2__factory { 91 | static readonly abi = _abi; 92 | static createInterface(): IUniswapV2Interface { 93 | return new utils.Interface(_abi) as IUniswapV2Interface; 94 | } 95 | static connect( 96 | address: string, 97 | signerOrProvider: Signer | Provider 98 | ): IUniswapV2 { 99 | return new Contract(address, _abi, signerOrProvider) as IUniswapV2; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /contract/typechain/factories/IWETH__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { IWETH, IWETHInterface } from "../IWETH"; 8 | 9 | const _abi = [ 10 | { 11 | inputs: [], 12 | name: "deposit", 13 | outputs: [], 14 | stateMutability: "payable", 15 | type: "function", 16 | }, 17 | { 18 | inputs: [ 19 | { 20 | internalType: "uint256", 21 | name: "", 22 | type: "uint256", 23 | }, 24 | ], 25 | name: "withdraw", 26 | outputs: [], 27 | stateMutability: "nonpayable", 28 | type: "function", 29 | }, 30 | ]; 31 | 32 | export class IWETH__factory { 33 | static readonly abi = _abi; 34 | static createInterface(): IWETHInterface { 35 | return new utils.Interface(_abi) as IWETHInterface; 36 | } 37 | static connect(address: string, signerOrProvider: Signer | Provider): IWETH { 38 | return new Contract(address, _abi, signerOrProvider) as IWETH; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /contract/typechain/factories/MsgBusAddr__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { MsgBusAddr, MsgBusAddrInterface } from "../MsgBusAddr"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: true, 15 | internalType: "address", 16 | name: "previousOwner", 17 | type: "address", 18 | }, 19 | { 20 | indexed: true, 21 | internalType: "address", 22 | name: "newOwner", 23 | type: "address", 24 | }, 25 | ], 26 | name: "OwnershipTransferred", 27 | type: "event", 28 | }, 29 | { 30 | inputs: [], 31 | name: "msgBus", 32 | outputs: [ 33 | { 34 | internalType: "address", 35 | name: "", 36 | type: "address", 37 | }, 38 | ], 39 | stateMutability: "view", 40 | type: "function", 41 | }, 42 | { 43 | inputs: [], 44 | name: "owner", 45 | outputs: [ 46 | { 47 | internalType: "address", 48 | name: "", 49 | type: "address", 50 | }, 51 | ], 52 | stateMutability: "view", 53 | type: "function", 54 | }, 55 | { 56 | inputs: [], 57 | name: "renounceOwnership", 58 | outputs: [], 59 | stateMutability: "nonpayable", 60 | type: "function", 61 | }, 62 | { 63 | inputs: [ 64 | { 65 | internalType: "address", 66 | name: "_addr", 67 | type: "address", 68 | }, 69 | ], 70 | name: "setMsgBus", 71 | outputs: [], 72 | stateMutability: "nonpayable", 73 | type: "function", 74 | }, 75 | { 76 | inputs: [ 77 | { 78 | internalType: "address", 79 | name: "newOwner", 80 | type: "address", 81 | }, 82 | ], 83 | name: "transferOwnership", 84 | outputs: [], 85 | stateMutability: "nonpayable", 86 | type: "function", 87 | }, 88 | ]; 89 | 90 | export class MsgBusAddr__factory { 91 | static readonly abi = _abi; 92 | static createInterface(): MsgBusAddrInterface { 93 | return new utils.Interface(_abi) as MsgBusAddrInterface; 94 | } 95 | static connect( 96 | address: string, 97 | signerOrProvider: Signer | Provider 98 | ): MsgBusAddr { 99 | return new Contract(address, _abi, signerOrProvider) as MsgBusAddr; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /contract/typechain/factories/MsgReceiverApp__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { 8 | MsgReceiverApp, 9 | MsgReceiverAppInterface, 10 | } from "../MsgReceiverApp"; 11 | 12 | const _abi = [ 13 | { 14 | anonymous: false, 15 | inputs: [ 16 | { 17 | indexed: true, 18 | internalType: "address", 19 | name: "previousOwner", 20 | type: "address", 21 | }, 22 | { 23 | indexed: true, 24 | internalType: "address", 25 | name: "newOwner", 26 | type: "address", 27 | }, 28 | ], 29 | name: "OwnershipTransferred", 30 | type: "event", 31 | }, 32 | { 33 | inputs: [ 34 | { 35 | internalType: "address", 36 | name: "_sender", 37 | type: "address", 38 | }, 39 | { 40 | internalType: "uint64", 41 | name: "_srcChainId", 42 | type: "uint64", 43 | }, 44 | { 45 | internalType: "bytes", 46 | name: "_message", 47 | type: "bytes", 48 | }, 49 | ], 50 | name: "executeMessage", 51 | outputs: [], 52 | stateMutability: "nonpayable", 53 | type: "function", 54 | }, 55 | { 56 | inputs: [ 57 | { 58 | internalType: "address", 59 | name: "_sender", 60 | type: "address", 61 | }, 62 | { 63 | internalType: "address", 64 | name: "_token", 65 | type: "address", 66 | }, 67 | { 68 | internalType: "uint256", 69 | name: "_amount", 70 | type: "uint256", 71 | }, 72 | { 73 | internalType: "uint64", 74 | name: "_srcChainId", 75 | type: "uint64", 76 | }, 77 | { 78 | internalType: "bytes", 79 | name: "_message", 80 | type: "bytes", 81 | }, 82 | ], 83 | name: "executeMessageWithTransfer", 84 | outputs: [], 85 | stateMutability: "nonpayable", 86 | type: "function", 87 | }, 88 | { 89 | inputs: [ 90 | { 91 | internalType: "address", 92 | name: "_sender", 93 | type: "address", 94 | }, 95 | { 96 | internalType: "address", 97 | name: "_token", 98 | type: "address", 99 | }, 100 | { 101 | internalType: "uint256", 102 | name: "_amount", 103 | type: "uint256", 104 | }, 105 | { 106 | internalType: "uint64", 107 | name: "_srcChainId", 108 | type: "uint64", 109 | }, 110 | { 111 | internalType: "bytes", 112 | name: "_message", 113 | type: "bytes", 114 | }, 115 | ], 116 | name: "executeMessageWithTransferFallback", 117 | outputs: [], 118 | stateMutability: "nonpayable", 119 | type: "function", 120 | }, 121 | { 122 | inputs: [], 123 | name: "msgBus", 124 | outputs: [ 125 | { 126 | internalType: "address", 127 | name: "", 128 | type: "address", 129 | }, 130 | ], 131 | stateMutability: "view", 132 | type: "function", 133 | }, 134 | { 135 | inputs: [], 136 | name: "owner", 137 | outputs: [ 138 | { 139 | internalType: "address", 140 | name: "", 141 | type: "address", 142 | }, 143 | ], 144 | stateMutability: "view", 145 | type: "function", 146 | }, 147 | { 148 | inputs: [], 149 | name: "renounceOwnership", 150 | outputs: [], 151 | stateMutability: "nonpayable", 152 | type: "function", 153 | }, 154 | { 155 | inputs: [ 156 | { 157 | internalType: "address", 158 | name: "_addr", 159 | type: "address", 160 | }, 161 | ], 162 | name: "setMsgBus", 163 | outputs: [], 164 | stateMutability: "nonpayable", 165 | type: "function", 166 | }, 167 | { 168 | inputs: [ 169 | { 170 | internalType: "address", 171 | name: "newOwner", 172 | type: "address", 173 | }, 174 | ], 175 | name: "transferOwnership", 176 | outputs: [], 177 | stateMutability: "nonpayable", 178 | type: "function", 179 | }, 180 | ]; 181 | 182 | export class MsgReceiverApp__factory { 183 | static readonly abi = _abi; 184 | static createInterface(): MsgReceiverAppInterface { 185 | return new utils.Interface(_abi) as MsgReceiverAppInterface; 186 | } 187 | static connect( 188 | address: string, 189 | signerOrProvider: Signer | Provider 190 | ): MsgReceiverApp { 191 | return new Contract(address, _abi, signerOrProvider) as MsgReceiverApp; 192 | } 193 | } 194 | -------------------------------------------------------------------------------- /contract/typechain/factories/MsgSenderApp__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { MsgSenderApp, MsgSenderAppInterface } from "../MsgSenderApp"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: true, 15 | internalType: "address", 16 | name: "previousOwner", 17 | type: "address", 18 | }, 19 | { 20 | indexed: true, 21 | internalType: "address", 22 | name: "newOwner", 23 | type: "address", 24 | }, 25 | ], 26 | name: "OwnershipTransferred", 27 | type: "event", 28 | }, 29 | { 30 | inputs: [], 31 | name: "liquidityBridge", 32 | outputs: [ 33 | { 34 | internalType: "address", 35 | name: "", 36 | type: "address", 37 | }, 38 | ], 39 | stateMutability: "view", 40 | type: "function", 41 | }, 42 | { 43 | inputs: [], 44 | name: "msgBus", 45 | outputs: [ 46 | { 47 | internalType: "address", 48 | name: "", 49 | type: "address", 50 | }, 51 | ], 52 | stateMutability: "view", 53 | type: "function", 54 | }, 55 | { 56 | inputs: [], 57 | name: "owner", 58 | outputs: [ 59 | { 60 | internalType: "address", 61 | name: "", 62 | type: "address", 63 | }, 64 | ], 65 | stateMutability: "view", 66 | type: "function", 67 | }, 68 | { 69 | inputs: [], 70 | name: "pegBridge", 71 | outputs: [ 72 | { 73 | internalType: "address", 74 | name: "", 75 | type: "address", 76 | }, 77 | ], 78 | stateMutability: "view", 79 | type: "function", 80 | }, 81 | { 82 | inputs: [], 83 | name: "pegVault", 84 | outputs: [ 85 | { 86 | internalType: "address", 87 | name: "", 88 | type: "address", 89 | }, 90 | ], 91 | stateMutability: "view", 92 | type: "function", 93 | }, 94 | { 95 | inputs: [], 96 | name: "renounceOwnership", 97 | outputs: [], 98 | stateMutability: "nonpayable", 99 | type: "function", 100 | }, 101 | { 102 | inputs: [ 103 | { 104 | internalType: "address", 105 | name: "_addr", 106 | type: "address", 107 | }, 108 | ], 109 | name: "setLiquidityBridge", 110 | outputs: [], 111 | stateMutability: "nonpayable", 112 | type: "function", 113 | }, 114 | { 115 | inputs: [ 116 | { 117 | internalType: "address", 118 | name: "_addr", 119 | type: "address", 120 | }, 121 | ], 122 | name: "setMsgBus", 123 | outputs: [], 124 | stateMutability: "nonpayable", 125 | type: "function", 126 | }, 127 | { 128 | inputs: [ 129 | { 130 | internalType: "address", 131 | name: "_addr", 132 | type: "address", 133 | }, 134 | ], 135 | name: "setPegBridge", 136 | outputs: [], 137 | stateMutability: "nonpayable", 138 | type: "function", 139 | }, 140 | { 141 | inputs: [ 142 | { 143 | internalType: "address", 144 | name: "_addr", 145 | type: "address", 146 | }, 147 | ], 148 | name: "setPegVault", 149 | outputs: [], 150 | stateMutability: "nonpayable", 151 | type: "function", 152 | }, 153 | { 154 | inputs: [ 155 | { 156 | internalType: "address", 157 | name: "_token", 158 | type: "address", 159 | }, 160 | { 161 | internalType: "enum MsgSenderApp.BridgeType", 162 | name: "bt", 163 | type: "uint8", 164 | }, 165 | ], 166 | name: "setTokenBridgeType", 167 | outputs: [], 168 | stateMutability: "nonpayable", 169 | type: "function", 170 | }, 171 | { 172 | inputs: [ 173 | { 174 | internalType: "address", 175 | name: "", 176 | type: "address", 177 | }, 178 | ], 179 | name: "tokenBridgeTypes", 180 | outputs: [ 181 | { 182 | internalType: "enum MsgSenderApp.BridgeType", 183 | name: "", 184 | type: "uint8", 185 | }, 186 | ], 187 | stateMutability: "view", 188 | type: "function", 189 | }, 190 | { 191 | inputs: [ 192 | { 193 | internalType: "address", 194 | name: "newOwner", 195 | type: "address", 196 | }, 197 | ], 198 | name: "transferOwnership", 199 | outputs: [], 200 | stateMutability: "nonpayable", 201 | type: "function", 202 | }, 203 | ]; 204 | 205 | export class MsgSenderApp__factory { 206 | static readonly abi = _abi; 207 | static createInterface(): MsgSenderAppInterface { 208 | return new utils.Interface(_abi) as MsgSenderAppInterface; 209 | } 210 | static connect( 211 | address: string, 212 | signerOrProvider: Signer | Provider 213 | ): MsgSenderApp { 214 | return new Contract(address, _abi, signerOrProvider) as MsgSenderApp; 215 | } 216 | } 217 | -------------------------------------------------------------------------------- /contract/typechain/factories/Ownable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { Ownable, OwnableInterface } from "../Ownable"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: true, 15 | internalType: "address", 16 | name: "previousOwner", 17 | type: "address", 18 | }, 19 | { 20 | indexed: true, 21 | internalType: "address", 22 | name: "newOwner", 23 | type: "address", 24 | }, 25 | ], 26 | name: "OwnershipTransferred", 27 | type: "event", 28 | }, 29 | { 30 | inputs: [], 31 | name: "owner", 32 | outputs: [ 33 | { 34 | internalType: "address", 35 | name: "", 36 | type: "address", 37 | }, 38 | ], 39 | stateMutability: "view", 40 | type: "function", 41 | }, 42 | { 43 | inputs: [], 44 | name: "renounceOwnership", 45 | outputs: [], 46 | stateMutability: "nonpayable", 47 | type: "function", 48 | }, 49 | { 50 | inputs: [ 51 | { 52 | internalType: "address", 53 | name: "newOwner", 54 | type: "address", 55 | }, 56 | ], 57 | name: "transferOwnership", 58 | outputs: [], 59 | stateMutability: "nonpayable", 60 | type: "function", 61 | }, 62 | ]; 63 | 64 | export class Ownable__factory { 65 | static readonly abi = _abi; 66 | static createInterface(): OwnableInterface { 67 | return new utils.Interface(_abi) as OwnableInterface; 68 | } 69 | static connect( 70 | address: string, 71 | signerOrProvider: Signer | Provider 72 | ): Ownable { 73 | return new Contract(address, _abi, signerOrProvider) as Ownable; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /contract/typechain/factories/Pausable__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { Pausable, PausableInterface } from "../Pausable"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: false, 15 | internalType: "address", 16 | name: "account", 17 | type: "address", 18 | }, 19 | ], 20 | name: "Paused", 21 | type: "event", 22 | }, 23 | { 24 | anonymous: false, 25 | inputs: [ 26 | { 27 | indexed: false, 28 | internalType: "address", 29 | name: "account", 30 | type: "address", 31 | }, 32 | ], 33 | name: "Unpaused", 34 | type: "event", 35 | }, 36 | { 37 | inputs: [], 38 | name: "paused", 39 | outputs: [ 40 | { 41 | internalType: "bool", 42 | name: "", 43 | type: "bool", 44 | }, 45 | ], 46 | stateMutability: "view", 47 | type: "function", 48 | }, 49 | ]; 50 | 51 | export class Pausable__factory { 52 | static readonly abi = _abi; 53 | static createInterface(): PausableInterface { 54 | return new utils.Interface(_abi) as PausableInterface; 55 | } 56 | static connect( 57 | address: string, 58 | signerOrProvider: Signer | Provider 59 | ): Pausable { 60 | return new Contract(address, _abi, signerOrProvider) as Pausable; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /contract/typechain/factories/Pauser__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { Pauser, PauserInterface } from "../Pauser"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: true, 15 | internalType: "address", 16 | name: "previousOwner", 17 | type: "address", 18 | }, 19 | { 20 | indexed: true, 21 | internalType: "address", 22 | name: "newOwner", 23 | type: "address", 24 | }, 25 | ], 26 | name: "OwnershipTransferred", 27 | type: "event", 28 | }, 29 | { 30 | anonymous: false, 31 | inputs: [ 32 | { 33 | indexed: false, 34 | internalType: "address", 35 | name: "account", 36 | type: "address", 37 | }, 38 | ], 39 | name: "Paused", 40 | type: "event", 41 | }, 42 | { 43 | anonymous: false, 44 | inputs: [ 45 | { 46 | indexed: false, 47 | internalType: "address", 48 | name: "account", 49 | type: "address", 50 | }, 51 | ], 52 | name: "PauserAdded", 53 | type: "event", 54 | }, 55 | { 56 | anonymous: false, 57 | inputs: [ 58 | { 59 | indexed: false, 60 | internalType: "address", 61 | name: "account", 62 | type: "address", 63 | }, 64 | ], 65 | name: "PauserRemoved", 66 | type: "event", 67 | }, 68 | { 69 | anonymous: false, 70 | inputs: [ 71 | { 72 | indexed: false, 73 | internalType: "address", 74 | name: "account", 75 | type: "address", 76 | }, 77 | ], 78 | name: "Unpaused", 79 | type: "event", 80 | }, 81 | { 82 | inputs: [ 83 | { 84 | internalType: "address", 85 | name: "account", 86 | type: "address", 87 | }, 88 | ], 89 | name: "addPauser", 90 | outputs: [], 91 | stateMutability: "nonpayable", 92 | type: "function", 93 | }, 94 | { 95 | inputs: [ 96 | { 97 | internalType: "address", 98 | name: "account", 99 | type: "address", 100 | }, 101 | ], 102 | name: "isPauser", 103 | outputs: [ 104 | { 105 | internalType: "bool", 106 | name: "", 107 | type: "bool", 108 | }, 109 | ], 110 | stateMutability: "view", 111 | type: "function", 112 | }, 113 | { 114 | inputs: [], 115 | name: "owner", 116 | outputs: [ 117 | { 118 | internalType: "address", 119 | name: "", 120 | type: "address", 121 | }, 122 | ], 123 | stateMutability: "view", 124 | type: "function", 125 | }, 126 | { 127 | inputs: [], 128 | name: "pause", 129 | outputs: [], 130 | stateMutability: "nonpayable", 131 | type: "function", 132 | }, 133 | { 134 | inputs: [], 135 | name: "paused", 136 | outputs: [ 137 | { 138 | internalType: "bool", 139 | name: "", 140 | type: "bool", 141 | }, 142 | ], 143 | stateMutability: "view", 144 | type: "function", 145 | }, 146 | { 147 | inputs: [ 148 | { 149 | internalType: "address", 150 | name: "", 151 | type: "address", 152 | }, 153 | ], 154 | name: "pausers", 155 | outputs: [ 156 | { 157 | internalType: "bool", 158 | name: "", 159 | type: "bool", 160 | }, 161 | ], 162 | stateMutability: "view", 163 | type: "function", 164 | }, 165 | { 166 | inputs: [ 167 | { 168 | internalType: "address", 169 | name: "account", 170 | type: "address", 171 | }, 172 | ], 173 | name: "removePauser", 174 | outputs: [], 175 | stateMutability: "nonpayable", 176 | type: "function", 177 | }, 178 | { 179 | inputs: [], 180 | name: "renounceOwnership", 181 | outputs: [], 182 | stateMutability: "nonpayable", 183 | type: "function", 184 | }, 185 | { 186 | inputs: [], 187 | name: "renouncePauser", 188 | outputs: [], 189 | stateMutability: "nonpayable", 190 | type: "function", 191 | }, 192 | { 193 | inputs: [ 194 | { 195 | internalType: "address", 196 | name: "newOwner", 197 | type: "address", 198 | }, 199 | ], 200 | name: "transferOwnership", 201 | outputs: [], 202 | stateMutability: "nonpayable", 203 | type: "function", 204 | }, 205 | { 206 | inputs: [], 207 | name: "unpause", 208 | outputs: [], 209 | stateMutability: "nonpayable", 210 | type: "function", 211 | }, 212 | ]; 213 | 214 | export class Pauser__factory { 215 | static readonly abi = _abi; 216 | static createInterface(): PauserInterface { 217 | return new utils.Interface(_abi) as PauserInterface; 218 | } 219 | static connect(address: string, signerOrProvider: Signer | Provider): Pauser { 220 | return new Contract(address, _abi, signerOrProvider) as Pauser; 221 | } 222 | } 223 | -------------------------------------------------------------------------------- /contract/typechain/factories/Whitelist__factory.ts: -------------------------------------------------------------------------------- 1 | /* Autogenerated file. Do not edit manually. */ 2 | /* tslint:disable */ 3 | /* eslint-disable */ 4 | 5 | import { Contract, Signer, utils } from "ethers"; 6 | import { Provider } from "@ethersproject/providers"; 7 | import type { Whitelist, WhitelistInterface } from "../Whitelist"; 8 | 9 | const _abi = [ 10 | { 11 | anonymous: false, 12 | inputs: [ 13 | { 14 | indexed: true, 15 | internalType: "address", 16 | name: "previousOwner", 17 | type: "address", 18 | }, 19 | { 20 | indexed: true, 21 | internalType: "address", 22 | name: "newOwner", 23 | type: "address", 24 | }, 25 | ], 26 | name: "OwnershipTransferred", 27 | type: "event", 28 | }, 29 | { 30 | anonymous: false, 31 | inputs: [ 32 | { 33 | indexed: false, 34 | internalType: "address", 35 | name: "account", 36 | type: "address", 37 | }, 38 | ], 39 | name: "WhitelistedAdded", 40 | type: "event", 41 | }, 42 | { 43 | anonymous: false, 44 | inputs: [ 45 | { 46 | indexed: false, 47 | internalType: "address", 48 | name: "account", 49 | type: "address", 50 | }, 51 | ], 52 | name: "WhitelistedRemoved", 53 | type: "event", 54 | }, 55 | { 56 | inputs: [ 57 | { 58 | internalType: "address", 59 | name: "account", 60 | type: "address", 61 | }, 62 | ], 63 | name: "addWhitelisted", 64 | outputs: [], 65 | stateMutability: "nonpayable", 66 | type: "function", 67 | }, 68 | { 69 | inputs: [ 70 | { 71 | internalType: "address", 72 | name: "account", 73 | type: "address", 74 | }, 75 | ], 76 | name: "isWhitelisted", 77 | outputs: [ 78 | { 79 | internalType: "bool", 80 | name: "", 81 | type: "bool", 82 | }, 83 | ], 84 | stateMutability: "view", 85 | type: "function", 86 | }, 87 | { 88 | inputs: [], 89 | name: "owner", 90 | outputs: [ 91 | { 92 | internalType: "address", 93 | name: "", 94 | type: "address", 95 | }, 96 | ], 97 | stateMutability: "view", 98 | type: "function", 99 | }, 100 | { 101 | inputs: [ 102 | { 103 | internalType: "address", 104 | name: "account", 105 | type: "address", 106 | }, 107 | ], 108 | name: "removeWhitelisted", 109 | outputs: [], 110 | stateMutability: "nonpayable", 111 | type: "function", 112 | }, 113 | { 114 | inputs: [], 115 | name: "renounceOwnership", 116 | outputs: [], 117 | stateMutability: "nonpayable", 118 | type: "function", 119 | }, 120 | { 121 | inputs: [ 122 | { 123 | internalType: "bool", 124 | name: "_whitelistEnabled", 125 | type: "bool", 126 | }, 127 | ], 128 | name: "setWhitelistEnabled", 129 | outputs: [], 130 | stateMutability: "nonpayable", 131 | type: "function", 132 | }, 133 | { 134 | inputs: [ 135 | { 136 | internalType: "address", 137 | name: "newOwner", 138 | type: "address", 139 | }, 140 | ], 141 | name: "transferOwnership", 142 | outputs: [], 143 | stateMutability: "nonpayable", 144 | type: "function", 145 | }, 146 | { 147 | inputs: [ 148 | { 149 | internalType: "address", 150 | name: "", 151 | type: "address", 152 | }, 153 | ], 154 | name: "whitelist", 155 | outputs: [ 156 | { 157 | internalType: "bool", 158 | name: "", 159 | type: "bool", 160 | }, 161 | ], 162 | stateMutability: "view", 163 | type: "function", 164 | }, 165 | { 166 | inputs: [], 167 | name: "whitelistEnabled", 168 | outputs: [ 169 | { 170 | internalType: "bool", 171 | name: "", 172 | type: "bool", 173 | }, 174 | ], 175 | stateMutability: "view", 176 | type: "function", 177 | }, 178 | ]; 179 | 180 | export class Whitelist__factory { 181 | static readonly abi = _abi; 182 | static createInterface(): WhitelistInterface { 183 | return new utils.Interface(_abi) as WhitelistInterface; 184 | } 185 | static connect( 186 | address: string, 187 | signerOrProvider: Signer | Provider 188 | ): Whitelist { 189 | return new Contract(address, _abi, signerOrProvider) as Whitelist; 190 | } 191 | } 192 | -------------------------------------------------------------------------------- /examples/refund.js: -------------------------------------------------------------------------------- 1 | // Use any RPC framework of your choice 2 | const axios = require('axios'); 3 | const dotenv = require('dotenv'); 4 | const { base64 } = require('ethers/lib/utils.js'); 5 | 6 | const gatewayPb = require('../ts-proto/gateway/gateway_pb.js'); 7 | const cbridgeTxPb = require('../ts-proto/sgn/cbridge/v1/tx_pb.js'); 8 | 9 | dotenv.config(); 10 | 11 | /** 12 | * Requests refund via the cBridge REST API. 13 | * 14 | * @param transferId https://cbridge-docs.celer.network/developer/api-reference/contract-send#transferid-generation 15 | * @param estimatedReceivedAmt estimated amount of refund 16 | */ 17 | const requestRefund = async (transferId, estimatedReceivedAmt) => { 18 | const timestamp = Math.floor(Date.now() / 1000); 19 | const withdrawReqProto = new cbridgeTxPb.WithdrawReq(); 20 | withdrawReqProto.setXferId(transferId); 21 | withdrawReqProto.setReqId(timestamp); 22 | withdrawReqProto.setWithdrawType(cbridgeTxPb.WithdrawType.WITHDRAW_TYPE_REFUND_TRANSFER); 23 | 24 | const req = { 25 | withdraw_req: base64.encode(withdrawReqProto.serializeBinary() || ''), 26 | estimated_received_amt: estimatedReceivedAmt, 27 | method_type: gatewayPb.WithdrawMethodType.WD_METHOD_TYPE_ALL_IN_ONE 28 | }; 29 | 30 | return ( 31 | axios 32 | // Replace CBRIDGE_GATEWAY_URL 33 | .post(`${process.env.CBRIDGE_GATEWAY_URL}/v1/withdrawLiquidity`, { 34 | ...req 35 | }) 36 | .then((res) => { 37 | return res.data; 38 | }) 39 | .catch((e) => { 40 | console.log('Error:', e); 41 | }) 42 | ); 43 | }; 44 | 45 | // Replace with your input and uncomment 46 | // requestRefund('TRANSFER_ID', ESTIMATED_RECEIVED_AMT); 47 | -------------------------------------------------------------------------------- /examples/refund.ts: -------------------------------------------------------------------------------- 1 | // Use any RPC framework of your choice 2 | import axios from 'axios'; 3 | import dotenv from 'dotenv'; 4 | import { BigNumberish } from 'ethers'; 5 | import { base64 } from 'ethers/lib/utils'; 6 | 7 | import { WithdrawMethodType } from '../ts-proto/gateway/gateway_pb'; 8 | import { WithdrawReq, WithdrawType } from '../ts-proto/sgn/cbridge/v1/tx_pb'; 9 | 10 | dotenv.config(); 11 | 12 | /** 13 | * Requests refund via the cBridge REST API. 14 | * 15 | * @param transferId https://cbridge-docs.celer.network/developer/api-reference/contract-send#transferid-generation 16 | * @param estimatedReceivedAmt estimated amount of refund 17 | */ 18 | export const requestRefund = async (transferId: string, estimatedReceivedAmt: BigNumberish): Promise => { 19 | const timestamp = Math.floor(Date.now() / 1000); 20 | const withdrawReqProto = new WithdrawReq(); 21 | withdrawReqProto.setXferId(transferId); 22 | withdrawReqProto.setReqId(timestamp); 23 | withdrawReqProto.setWithdrawType(WithdrawType.WITHDRAW_TYPE_REFUND_TRANSFER); 24 | 25 | const req = { 26 | withdraw_req: base64.encode(withdrawReqProto.serializeBinary() || ''), 27 | estimated_received_amt: estimatedReceivedAmt, 28 | method_type: WithdrawMethodType.WD_METHOD_TYPE_ALL_IN_ONE 29 | }; 30 | 31 | return ( 32 | axios 33 | // Replace CBRIDGE_GATEWAY_URL 34 | .post(`${process.env.CBRIDGE_GATEWAY_URL}/v1/withdrawLiquidity`, { 35 | ...req 36 | }) 37 | .then((res) => { 38 | return res.data; 39 | }) 40 | .catch((e) => { 41 | console.log('Error:', e); 42 | }) 43 | ); 44 | }; 45 | 46 | // Replace with your input and uncomment 47 | // requestRefund('TRANSFER_ID', ESTIMATED_RECEIVED_AMT); 48 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cbridge-typescript-client", 3 | "version": "0.0.1", 4 | "description": "TypeScript and JavaScript client and examples for cBridge", 5 | "repository": { 6 | "type": "git", 7 | "url": "git+https://github.com/celer-network/cBridge-typescript-client.git" 8 | }, 9 | "license": "GPL-3.0", 10 | "bugs": { 11 | "url": "https://github.com/celer-network/cBridge-typescript-client/issues" 12 | }, 13 | "homepage": "https://github.com/celer-network/cBridge-typescript-client#readme", 14 | "dependencies": { 15 | "axios": "^0.26.1", 16 | "dotenv": "^16.0.0", 17 | "ethers": "^5.6.1", 18 | "google-protobuf": "^3.20.0-rc.2" 19 | }, 20 | "devDependencies": { 21 | "@types/node": "^17.0.23", 22 | "ts-node": "^10.7.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /proto/sgn/cbridge/v1/cbridge.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package sgn.cbridge.v1; 3 | 4 | option go_package = "github.com/celer-network/sgn-v2/x/cbridge/types"; 5 | 6 | // ========== x/cbridge kv value types 7 | // for src transfer id 8 | // normal status flow: after sgn applied user's Send event, status is OK_TO_RELAY. then after apply Relay event 9 | // status is SUCCESS 10 | // can't relay flow: after apply send, status will be BAD_xxx, and there'll be no relay. so user need to InitWithdraw, status becomes 11 | // refund_requested when sgn apply withdrawDone event, status becomes REFUND_DONE 12 | enum XferStatus { 13 | UNKNOWN = 0; // use as default for unknown xfer 14 | // normal flow only has ok then success 15 | OK_TO_RELAY = 1; // x/cbridge emit relay, waiting for sgn nodes to send sig, then sgn will submit relay tx onchain 16 | SUCCESS = 2; // applied onchain relay event 17 | 18 | // can't relay flow status 19 | BAD_LIQUIDITY = 3; // can't complete xfer due to low dst chain liquidity or equal value dest amount is 0 20 | BAD_SLIPPAGE = 4; // slippage larger than user specified max 21 | BAD_TOKEN = 5; // src or dest token are not supported 22 | 23 | // refund, using withdraw flow 24 | REFUND_REQUESTED = 6; // user/gateway called InitWithdraw, XferRefundKey has withdraw seq num 25 | REFUND_DONE = 7; // applied onchain WithdrawDown event 26 | BAD_XFER_DISABLED = 8; // asset is in config, but it is xfer_disabled, so this asset should not be used for transfer. If any transfer 27 | // come, we should go to refund flow. 28 | BAD_DEST_CHAIN = 9; // dest chain is same to src chain, relayer will ignore it. 29 | 30 | EXCEED_MAX_OUT_AMOUNT = 10; // amount larger than max out allowance 31 | XFER_DELAYED = 11; // relayer has successfully called onchain relay() but the onchain contract decides that the amt is greater than its 32 | // delayThreshold 33 | BAD_ADDRESS = 12; 34 | } 35 | -------------------------------------------------------------------------------- /proto/sgn/cbridge/v1/query.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package sgn.cbridge.v1; 3 | 4 | option go_package = "github.com/celer-network/sgn-v2/x/cbridge/types"; 5 | 6 | message Token { 7 | string symbol = 1; // upper case symbol 8 | string address = 2; 9 | int32 decimal = 3; 10 | bool xfer_disabled = 4; // if set to true, won't relay if this asset is src or dest 11 | } 12 | 13 | enum TransferHistoryStatus { 14 | TRANSFER_UNKNOWN = 0; 15 | TRANSFER_SUBMITTING = 1; // user: after calling mark transfer api 16 | TRANSFER_FAILED = 2; // user: check if tx reverted when shown status is TRANSFER_SUBMITTING 17 | TRANSFER_WAITING_FOR_SGN_CONFIRMATION = 3; // relayer: on send tx success event 18 | TRANSFER_WAITING_FOR_FUND_RELEASE = 4; // relayer: mark send tx 19 | TRANSFER_COMPLETED = 5; // relayer: on relay tx success event 20 | TRANSFER_TO_BE_REFUNDED = 6; // x: transfer rejected by sgn and waiting for withdraw api called 21 | TRANSFER_REQUESTING_REFUND = 7; // user: withdraw api has been called and withdraw is processing by sgn 22 | TRANSFER_REFUND_TO_BE_CONFIRMED = 8; // x: withdraw is approved by sgn 23 | TRANSFER_CONFIRMING_YOUR_REFUND = 9; // user: mark refund has been submitted on chain 24 | TRANSFER_REFUNDED = 10; // relayer: on refund(withdraw liquidity actually) tx event 25 | TRANSFER_DELAYED = 11; // relayer has successfully called onchain relay() but the onchain contract decides that the amt is greater than 26 | // its delayThreshold 27 | } 28 | -------------------------------------------------------------------------------- /ts-proto/cosmos/base/v1beta1/coin_pb.d.ts: -------------------------------------------------------------------------------- 1 | // package: cosmos.base.v1beta1 2 | // file: cosmos/base/v1beta1/coin.proto 3 | 4 | import * as jspb from "google-protobuf"; 5 | import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; 6 | 7 | export class Coin extends jspb.Message { 8 | getDenom(): string; 9 | setDenom(value: string): void; 10 | 11 | getAmount(): string; 12 | setAmount(value: string): void; 13 | 14 | serializeBinary(): Uint8Array; 15 | toObject(includeInstance?: boolean): Coin.AsObject; 16 | static toObject(includeInstance: boolean, msg: Coin): Coin.AsObject; 17 | static extensions: {[key: number]: jspb.ExtensionFieldInfo}; 18 | static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; 19 | static serializeBinaryToWriter(message: Coin, writer: jspb.BinaryWriter): void; 20 | static deserializeBinary(bytes: Uint8Array): Coin; 21 | static deserializeBinaryFromReader(message: Coin, reader: jspb.BinaryReader): Coin; 22 | } 23 | 24 | export namespace Coin { 25 | export type AsObject = { 26 | denom: string, 27 | amount: string, 28 | } 29 | } 30 | 31 | export class DecCoin extends jspb.Message { 32 | getDenom(): string; 33 | setDenom(value: string): void; 34 | 35 | getAmount(): string; 36 | setAmount(value: string): void; 37 | 38 | serializeBinary(): Uint8Array; 39 | toObject(includeInstance?: boolean): DecCoin.AsObject; 40 | static toObject(includeInstance: boolean, msg: DecCoin): DecCoin.AsObject; 41 | static extensions: {[key: number]: jspb.ExtensionFieldInfo}; 42 | static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; 43 | static serializeBinaryToWriter(message: DecCoin, writer: jspb.BinaryWriter): void; 44 | static deserializeBinary(bytes: Uint8Array): DecCoin; 45 | static deserializeBinaryFromReader(message: DecCoin, reader: jspb.BinaryReader): DecCoin; 46 | } 47 | 48 | export namespace DecCoin { 49 | export type AsObject = { 50 | denom: string, 51 | amount: string, 52 | } 53 | } 54 | 55 | export class IntProto extends jspb.Message { 56 | getInt(): string; 57 | setInt(value: string): void; 58 | 59 | serializeBinary(): Uint8Array; 60 | toObject(includeInstance?: boolean): IntProto.AsObject; 61 | static toObject(includeInstance: boolean, msg: IntProto): IntProto.AsObject; 62 | static extensions: {[key: number]: jspb.ExtensionFieldInfo}; 63 | static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; 64 | static serializeBinaryToWriter(message: IntProto, writer: jspb.BinaryWriter): void; 65 | static deserializeBinary(bytes: Uint8Array): IntProto; 66 | static deserializeBinaryFromReader(message: IntProto, reader: jspb.BinaryReader): IntProto; 67 | } 68 | 69 | export namespace IntProto { 70 | export type AsObject = { 71 | pb_int: string, 72 | } 73 | } 74 | 75 | export class DecProto extends jspb.Message { 76 | getDec(): string; 77 | setDec(value: string): void; 78 | 79 | serializeBinary(): Uint8Array; 80 | toObject(includeInstance?: boolean): DecProto.AsObject; 81 | static toObject(includeInstance: boolean, msg: DecProto): DecProto.AsObject; 82 | static extensions: {[key: number]: jspb.ExtensionFieldInfo}; 83 | static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; 84 | static serializeBinaryToWriter(message: DecProto, writer: jspb.BinaryWriter): void; 85 | static deserializeBinary(bytes: Uint8Array): DecProto; 86 | static deserializeBinaryFromReader(message: DecProto, reader: jspb.BinaryReader): DecProto; 87 | } 88 | 89 | export namespace DecProto { 90 | export type AsObject = { 91 | dec: string, 92 | } 93 | } 94 | 95 | -------------------------------------------------------------------------------- /ts-proto/cosmos_proto/cosmos_pb.d.ts: -------------------------------------------------------------------------------- 1 | // package: cosmos_proto 2 | // file: cosmos_proto/cosmos.proto 3 | 4 | import * as jspb from "google-protobuf"; 5 | import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; 6 | 7 | export const interfaceType: jspb.ExtensionFieldInfo; 8 | 9 | export const implementsInterface: jspb.ExtensionFieldInfo; 10 | 11 | export const acceptsInterface: jspb.ExtensionFieldInfo; 12 | 13 | -------------------------------------------------------------------------------- /ts-proto/cosmos_proto/cosmos_pb.js: -------------------------------------------------------------------------------- 1 | // source: cosmos_proto/cosmos.proto 2 | /** 3 | * @fileoverview 4 | * @enhanceable 5 | * @suppress {messageConventions} JS Compiler reports an error if a variable or 6 | * field starts with 'MSG_' and isn't a translatable message. 7 | * @public 8 | */ 9 | // GENERATED CODE -- DO NOT EDIT! 10 | 11 | var jspb = require('google-protobuf'); 12 | var goog = jspb; 13 | var global = Function('return this')(); 14 | 15 | var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); 16 | goog.object.extend(proto, google_protobuf_descriptor_pb); 17 | goog.exportSymbol('proto.cosmos_proto.acceptsInterface', null, global); 18 | goog.exportSymbol('proto.cosmos_proto.implementsInterface', null, global); 19 | goog.exportSymbol('proto.cosmos_proto.interfaceType', null, global); 20 | 21 | /** 22 | * A tuple of {field number, class constructor} for the extension 23 | * field named `interfaceType`. 24 | * @type {!jspb.ExtensionFieldInfo} 25 | */ 26 | proto.cosmos_proto.interfaceType = new jspb.ExtensionFieldInfo( 27 | 93001, 28 | {interfaceType: 0}, 29 | null, 30 | /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( 31 | null), 32 | 0); 33 | 34 | google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo( 35 | proto.cosmos_proto.interfaceType, 36 | jspb.BinaryReader.prototype.readString, 37 | jspb.BinaryWriter.prototype.writeString, 38 | undefined, 39 | undefined, 40 | false); 41 | // This registers the extension field with the extended class, so that 42 | // toObject() will function correctly. 43 | google_protobuf_descriptor_pb.MessageOptions.extensions[93001] = proto.cosmos_proto.interfaceType; 44 | 45 | 46 | /** 47 | * A tuple of {field number, class constructor} for the extension 48 | * field named `implementsInterface`. 49 | * @type {!jspb.ExtensionFieldInfo} 50 | */ 51 | proto.cosmos_proto.implementsInterface = new jspb.ExtensionFieldInfo( 52 | 93002, 53 | {implementsInterface: 0}, 54 | null, 55 | /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( 56 | null), 57 | 0); 58 | 59 | google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[93002] = new jspb.ExtensionFieldBinaryInfo( 60 | proto.cosmos_proto.implementsInterface, 61 | jspb.BinaryReader.prototype.readString, 62 | jspb.BinaryWriter.prototype.writeString, 63 | undefined, 64 | undefined, 65 | false); 66 | // This registers the extension field with the extended class, so that 67 | // toObject() will function correctly. 68 | google_protobuf_descriptor_pb.MessageOptions.extensions[93002] = proto.cosmos_proto.implementsInterface; 69 | 70 | 71 | /** 72 | * A tuple of {field number, class constructor} for the extension 73 | * field named `acceptsInterface`. 74 | * @type {!jspb.ExtensionFieldInfo} 75 | */ 76 | proto.cosmos_proto.acceptsInterface = new jspb.ExtensionFieldInfo( 77 | 93001, 78 | {acceptsInterface: 0}, 79 | null, 80 | /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( 81 | null), 82 | 0); 83 | 84 | google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo( 85 | proto.cosmos_proto.acceptsInterface, 86 | jspb.BinaryReader.prototype.readString, 87 | jspb.BinaryWriter.prototype.writeString, 88 | undefined, 89 | undefined, 90 | false); 91 | // This registers the extension field with the extended class, so that 92 | // toObject() will function correctly. 93 | google_protobuf_descriptor_pb.FieldOptions.extensions[93001] = proto.cosmos_proto.acceptsInterface; 94 | 95 | goog.object.extend(exports, proto.cosmos_proto); 96 | -------------------------------------------------------------------------------- /ts-proto/eth/farming_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | 4 | 5 | export class FarmingRewards extends jspb.Message { 6 | getRecipient(): Uint8Array | string; 7 | getRecipient_asU8(): Uint8Array; 8 | getRecipient_asB64(): string; 9 | setRecipient(value: Uint8Array | string): FarmingRewards; 10 | 11 | getChainId(): Uint8Array | string; 12 | getChainId_asU8(): Uint8Array; 13 | getChainId_asB64(): string; 14 | setChainId(value: Uint8Array | string): FarmingRewards; 15 | 16 | getTokenAddressesList(): Array; 17 | setTokenAddressesList(value: Array): FarmingRewards; 18 | clearTokenAddressesList(): FarmingRewards; 19 | addTokenAddresses(value: Uint8Array | string, index?: number): FarmingRewards; 20 | 21 | getCumulativeRewardAmountsList(): Array; 22 | setCumulativeRewardAmountsList(value: Array): FarmingRewards; 23 | clearCumulativeRewardAmountsList(): FarmingRewards; 24 | addCumulativeRewardAmounts(value: Uint8Array | string, index?: number): FarmingRewards; 25 | 26 | serializeBinary(): Uint8Array; 27 | toObject(includeInstance?: boolean): FarmingRewards.AsObject; 28 | static toObject(includeInstance: boolean, msg: FarmingRewards): FarmingRewards.AsObject; 29 | static serializeBinaryToWriter(message: FarmingRewards, writer: jspb.BinaryWriter): void; 30 | static deserializeBinary(bytes: Uint8Array): FarmingRewards; 31 | static deserializeBinaryFromReader(message: FarmingRewards, reader: jspb.BinaryReader): FarmingRewards; 32 | } 33 | 34 | export namespace FarmingRewards { 35 | export type AsObject = { 36 | recipient: Uint8Array | string, 37 | chainId: Uint8Array | string, 38 | tokenAddressesList: Array, 39 | cumulativeRewardAmountsList: Array, 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /ts-proto/eth/staking_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | 4 | 5 | export class StakingReward extends jspb.Message { 6 | getRecipient(): Uint8Array | string; 7 | getRecipient_asU8(): Uint8Array; 8 | getRecipient_asB64(): string; 9 | setRecipient(value: Uint8Array | string): StakingReward; 10 | 11 | getCumulativeRewardAmount(): Uint8Array | string; 12 | getCumulativeRewardAmount_asU8(): Uint8Array; 13 | getCumulativeRewardAmount_asB64(): string; 14 | setCumulativeRewardAmount(value: Uint8Array | string): StakingReward; 15 | 16 | serializeBinary(): Uint8Array; 17 | toObject(includeInstance?: boolean): StakingReward.AsObject; 18 | static toObject(includeInstance: boolean, msg: StakingReward): StakingReward.AsObject; 19 | static serializeBinaryToWriter(message: StakingReward, writer: jspb.BinaryWriter): void; 20 | static deserializeBinary(bytes: Uint8Array): StakingReward; 21 | static deserializeBinaryFromReader(message: StakingReward, reader: jspb.BinaryReader): StakingReward; 22 | } 23 | 24 | export namespace StakingReward { 25 | export type AsObject = { 26 | recipient: Uint8Array | string, 27 | cumulativeRewardAmount: Uint8Array | string, 28 | } 29 | } 30 | 31 | export class Slash extends jspb.Message { 32 | getValidator(): Uint8Array | string; 33 | getValidator_asU8(): Uint8Array; 34 | getValidator_asB64(): string; 35 | setValidator(value: Uint8Array | string): Slash; 36 | 37 | getNonce(): number; 38 | setNonce(value: number): Slash; 39 | 40 | getSlashFactor(): number; 41 | setSlashFactor(value: number): Slash; 42 | 43 | getExpireTime(): number; 44 | setExpireTime(value: number): Slash; 45 | 46 | getJailPeriod(): number; 47 | setJailPeriod(value: number): Slash; 48 | 49 | getCollectorsList(): Array; 50 | setCollectorsList(value: Array): Slash; 51 | clearCollectorsList(): Slash; 52 | addCollectors(value?: AcctAmtPair, index?: number): AcctAmtPair; 53 | 54 | serializeBinary(): Uint8Array; 55 | toObject(includeInstance?: boolean): Slash.AsObject; 56 | static toObject(includeInstance: boolean, msg: Slash): Slash.AsObject; 57 | static serializeBinaryToWriter(message: Slash, writer: jspb.BinaryWriter): void; 58 | static deserializeBinary(bytes: Uint8Array): Slash; 59 | static deserializeBinaryFromReader(message: Slash, reader: jspb.BinaryReader): Slash; 60 | } 61 | 62 | export namespace Slash { 63 | export type AsObject = { 64 | validator: Uint8Array | string, 65 | nonce: number, 66 | slashFactor: number, 67 | expireTime: number, 68 | jailPeriod: number, 69 | collectorsList: Array, 70 | } 71 | } 72 | 73 | export class AcctAmtPair extends jspb.Message { 74 | getAccount(): Uint8Array | string; 75 | getAccount_asU8(): Uint8Array; 76 | getAccount_asB64(): string; 77 | setAccount(value: Uint8Array | string): AcctAmtPair; 78 | 79 | getAmount(): Uint8Array | string; 80 | getAmount_asU8(): Uint8Array; 81 | getAmount_asB64(): string; 82 | setAmount(value: Uint8Array | string): AcctAmtPair; 83 | 84 | serializeBinary(): Uint8Array; 85 | toObject(includeInstance?: boolean): AcctAmtPair.AsObject; 86 | static toObject(includeInstance: boolean, msg: AcctAmtPair): AcctAmtPair.AsObject; 87 | static serializeBinaryToWriter(message: AcctAmtPair, writer: jspb.BinaryWriter): void; 88 | static deserializeBinary(bytes: Uint8Array): AcctAmtPair; 89 | static deserializeBinaryFromReader(message: AcctAmtPair, reader: jspb.BinaryReader): AcctAmtPair; 90 | } 91 | 92 | export namespace AcctAmtPair { 93 | export type AsObject = { 94 | account: Uint8Array | string, 95 | amount: Uint8Array | string, 96 | } 97 | } 98 | 99 | -------------------------------------------------------------------------------- /ts-proto/google/api/annotations_pb.d.ts: -------------------------------------------------------------------------------- 1 | // package: google.api 2 | // file: google/api/annotations.proto 3 | 4 | import * as jspb from "google-protobuf"; 5 | import * as google_api_http_pb from "../../google/api/http_pb"; 6 | import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; 7 | 8 | export const http: jspb.ExtensionFieldInfo; 9 | 10 | -------------------------------------------------------------------------------- /ts-proto/google/api/annotations_pb.js: -------------------------------------------------------------------------------- 1 | // source: google/api/annotations.proto 2 | /** 3 | * @fileoverview 4 | * @enhanceable 5 | * @suppress {messageConventions} JS Compiler reports an error if a variable or 6 | * field starts with 'MSG_' and isn't a translatable message. 7 | * @public 8 | */ 9 | // GENERATED CODE -- DO NOT EDIT! 10 | 11 | var jspb = require('google-protobuf'); 12 | var goog = jspb; 13 | var global = Function('return this')(); 14 | 15 | var google_api_http_pb = require('../../google/api/http_pb.js'); 16 | goog.object.extend(proto, google_api_http_pb); 17 | var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); 18 | goog.object.extend(proto, google_protobuf_descriptor_pb); 19 | goog.exportSymbol('proto.google.api.http', null, global); 20 | 21 | /** 22 | * A tuple of {field number, class constructor} for the extension 23 | * field named `http`. 24 | * @type {!jspb.ExtensionFieldInfo} 25 | */ 26 | proto.google.api.http = new jspb.ExtensionFieldInfo( 27 | 72295728, 28 | {http: 0}, 29 | google_api_http_pb.HttpRule, 30 | /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( 31 | google_api_http_pb.HttpRule.toObject), 32 | 0); 33 | 34 | google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo( 35 | proto.google.api.http, 36 | jspb.BinaryReader.prototype.readMessage, 37 | jspb.BinaryWriter.prototype.writeMessage, 38 | google_api_http_pb.HttpRule.serializeBinaryToWriter, 39 | google_api_http_pb.HttpRule.deserializeBinaryFromReader, 40 | false); 41 | // This registers the extension field with the extended class, so that 42 | // toObject() will function correctly. 43 | google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http; 44 | 45 | goog.object.extend(exports, proto.google.api); 46 | -------------------------------------------------------------------------------- /ts-proto/google/api/http_pb.d.ts: -------------------------------------------------------------------------------- 1 | // package: google.api 2 | // file: google/api/http.proto 3 | 4 | import * as jspb from "google-protobuf"; 5 | 6 | export class Http extends jspb.Message { 7 | clearRulesList(): void; 8 | getRulesList(): Array; 9 | setRulesList(value: Array): void; 10 | addRules(value?: HttpRule, index?: number): HttpRule; 11 | 12 | getFullyDecodeReservedExpansion(): boolean; 13 | setFullyDecodeReservedExpansion(value: boolean): void; 14 | 15 | serializeBinary(): Uint8Array; 16 | toObject(includeInstance?: boolean): Http.AsObject; 17 | static toObject(includeInstance: boolean, msg: Http): Http.AsObject; 18 | static extensions: {[key: number]: jspb.ExtensionFieldInfo}; 19 | static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; 20 | static serializeBinaryToWriter(message: Http, writer: jspb.BinaryWriter): void; 21 | static deserializeBinary(bytes: Uint8Array): Http; 22 | static deserializeBinaryFromReader(message: Http, reader: jspb.BinaryReader): Http; 23 | } 24 | 25 | export namespace Http { 26 | export type AsObject = { 27 | rulesList: Array, 28 | fullyDecodeReservedExpansion: boolean, 29 | } 30 | } 31 | 32 | export class HttpRule extends jspb.Message { 33 | getSelector(): string; 34 | setSelector(value: string): void; 35 | 36 | hasGet(): boolean; 37 | clearGet(): void; 38 | getGet(): string; 39 | setGet(value: string): void; 40 | 41 | hasPut(): boolean; 42 | clearPut(): void; 43 | getPut(): string; 44 | setPut(value: string): void; 45 | 46 | hasPost(): boolean; 47 | clearPost(): void; 48 | getPost(): string; 49 | setPost(value: string): void; 50 | 51 | hasDelete(): boolean; 52 | clearDelete(): void; 53 | getDelete(): string; 54 | setDelete(value: string): void; 55 | 56 | hasPatch(): boolean; 57 | clearPatch(): void; 58 | getPatch(): string; 59 | setPatch(value: string): void; 60 | 61 | hasCustom(): boolean; 62 | clearCustom(): void; 63 | getCustom(): CustomHttpPattern | undefined; 64 | setCustom(value?: CustomHttpPattern): void; 65 | 66 | getBody(): string; 67 | setBody(value: string): void; 68 | 69 | getResponseBody(): string; 70 | setResponseBody(value: string): void; 71 | 72 | clearAdditionalBindingsList(): void; 73 | getAdditionalBindingsList(): Array; 74 | setAdditionalBindingsList(value: Array): void; 75 | addAdditionalBindings(value?: HttpRule, index?: number): HttpRule; 76 | 77 | getPatternCase(): HttpRule.PatternCase; 78 | serializeBinary(): Uint8Array; 79 | toObject(includeInstance?: boolean): HttpRule.AsObject; 80 | static toObject(includeInstance: boolean, msg: HttpRule): HttpRule.AsObject; 81 | static extensions: {[key: number]: jspb.ExtensionFieldInfo}; 82 | static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; 83 | static serializeBinaryToWriter(message: HttpRule, writer: jspb.BinaryWriter): void; 84 | static deserializeBinary(bytes: Uint8Array): HttpRule; 85 | static deserializeBinaryFromReader(message: HttpRule, reader: jspb.BinaryReader): HttpRule; 86 | } 87 | 88 | export namespace HttpRule { 89 | export type AsObject = { 90 | selector: string, 91 | get: string, 92 | put: string, 93 | post: string, 94 | pb_delete: string, 95 | patch: string, 96 | custom?: CustomHttpPattern.AsObject, 97 | body: string, 98 | responseBody: string, 99 | additionalBindingsList: Array, 100 | } 101 | 102 | export enum PatternCase { 103 | PATTERN_NOT_SET = 0, 104 | GET = 2, 105 | PUT = 3, 106 | POST = 4, 107 | DELETE = 5, 108 | PATCH = 6, 109 | CUSTOM = 8, 110 | } 111 | } 112 | 113 | export class CustomHttpPattern extends jspb.Message { 114 | getKind(): string; 115 | setKind(value: string): void; 116 | 117 | getPath(): string; 118 | setPath(value: string): void; 119 | 120 | serializeBinary(): Uint8Array; 121 | toObject(includeInstance?: boolean): CustomHttpPattern.AsObject; 122 | static toObject(includeInstance: boolean, msg: CustomHttpPattern): CustomHttpPattern.AsObject; 123 | static extensions: {[key: number]: jspb.ExtensionFieldInfo}; 124 | static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; 125 | static serializeBinaryToWriter(message: CustomHttpPattern, writer: jspb.BinaryWriter): void; 126 | static deserializeBinary(bytes: Uint8Array): CustomHttpPattern; 127 | static deserializeBinaryFromReader(message: CustomHttpPattern, reader: jspb.BinaryReader): CustomHttpPattern; 128 | } 129 | 130 | export namespace CustomHttpPattern { 131 | export type AsObject = { 132 | kind: string, 133 | path: string, 134 | } 135 | } 136 | 137 | -------------------------------------------------------------------------------- /ts-proto/sgn/cbridge/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_cbridge_v1_cbridge_pb from '../../../sgn/cbridge/v1/cbridge_pb'; 5 | 6 | 7 | export class GenesisState extends jspb.Message { 8 | getParams(): sgn_cbridge_v1_cbridge_pb.Params | undefined; 9 | setParams(value?: sgn_cbridge_v1_cbridge_pb.Params): GenesisState; 10 | hasParams(): boolean; 11 | clearParams(): GenesisState; 12 | 13 | getKvsList(): Array; 14 | setKvsList(value: Array): GenesisState; 15 | clearKvsList(): GenesisState; 16 | addKvs(value?: KV, index?: number): KV; 17 | 18 | getConfig(): sgn_cbridge_v1_cbridge_pb.CbrConfig | undefined; 19 | setConfig(value?: sgn_cbridge_v1_cbridge_pb.CbrConfig): GenesisState; 20 | hasConfig(): boolean; 21 | clearConfig(): GenesisState; 22 | 23 | getPrice(): sgn_cbridge_v1_cbridge_pb.CbrPrice | undefined; 24 | setPrice(value?: sgn_cbridge_v1_cbridge_pb.CbrPrice): GenesisState; 25 | hasPrice(): boolean; 26 | clearPrice(): GenesisState; 27 | 28 | serializeBinary(): Uint8Array; 29 | toObject(includeInstance?: boolean): GenesisState.AsObject; 30 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 31 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 32 | static deserializeBinary(bytes: Uint8Array): GenesisState; 33 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 34 | } 35 | 36 | export namespace GenesisState { 37 | export type AsObject = { 38 | params?: sgn_cbridge_v1_cbridge_pb.Params.AsObject, 39 | kvsList: Array, 40 | config?: sgn_cbridge_v1_cbridge_pb.CbrConfig.AsObject, 41 | price?: sgn_cbridge_v1_cbridge_pb.CbrPrice.AsObject, 42 | } 43 | } 44 | 45 | export class KV extends jspb.Message { 46 | getKey(): Uint8Array | string; 47 | getKey_asU8(): Uint8Array; 48 | getKey_asB64(): string; 49 | setKey(value: Uint8Array | string): KV; 50 | 51 | getVal(): Uint8Array | string; 52 | getVal_asU8(): Uint8Array; 53 | getVal_asB64(): string; 54 | setVal(value: Uint8Array | string): KV; 55 | 56 | serializeBinary(): Uint8Array; 57 | toObject(includeInstance?: boolean): KV.AsObject; 58 | static toObject(includeInstance: boolean, msg: KV): KV.AsObject; 59 | static serializeBinaryToWriter(message: KV, writer: jspb.BinaryWriter): void; 60 | static deserializeBinary(bytes: Uint8Array): KV; 61 | static deserializeBinaryFromReader(message: KV, reader: jspb.BinaryReader): KV; 62 | } 63 | 64 | export namespace KV { 65 | export type AsObject = { 66 | key: Uint8Array | string, 67 | val: Uint8Array | string, 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /ts-proto/sgn/common/v1/common_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | 5 | 6 | export class Signature extends jspb.Message { 7 | getSigner(): string; 8 | setSigner(value: string): Signature; 9 | 10 | getSigBytes(): Uint8Array | string; 11 | getSigBytes_asU8(): Uint8Array; 12 | getSigBytes_asB64(): string; 13 | setSigBytes(value: Uint8Array | string): Signature; 14 | 15 | serializeBinary(): Uint8Array; 16 | toObject(includeInstance?: boolean): Signature.AsObject; 17 | static toObject(includeInstance: boolean, msg: Signature): Signature.AsObject; 18 | static serializeBinaryToWriter(message: Signature, writer: jspb.BinaryWriter): void; 19 | static deserializeBinary(bytes: Uint8Array): Signature; 20 | static deserializeBinaryFromReader(message: Signature, reader: jspb.BinaryReader): Signature; 21 | } 22 | 23 | export namespace Signature { 24 | export type AsObject = { 25 | signer: string, 26 | sigBytes: Uint8Array | string, 27 | } 28 | } 29 | 30 | export class ContractInfo extends jspb.Message { 31 | getChainId(): number; 32 | setChainId(value: number): ContractInfo; 33 | 34 | getAddress(): string; 35 | setAddress(value: string): ContractInfo; 36 | 37 | serializeBinary(): Uint8Array; 38 | toObject(includeInstance?: boolean): ContractInfo.AsObject; 39 | static toObject(includeInstance: boolean, msg: ContractInfo): ContractInfo.AsObject; 40 | static serializeBinaryToWriter(message: ContractInfo, writer: jspb.BinaryWriter): void; 41 | static deserializeBinary(bytes: Uint8Array): ContractInfo; 42 | static deserializeBinaryFromReader(message: ContractInfo, reader: jspb.BinaryReader): ContractInfo; 43 | } 44 | 45 | export namespace ContractInfo { 46 | export type AsObject = { 47 | chainId: number, 48 | address: string, 49 | } 50 | } 51 | 52 | export class ERC20Token extends jspb.Message { 53 | getChainId(): number; 54 | setChainId(value: number): ERC20Token; 55 | 56 | getSymbol(): string; 57 | setSymbol(value: string): ERC20Token; 58 | 59 | getAddress(): string; 60 | setAddress(value: string): ERC20Token; 61 | 62 | getDecimals(): number; 63 | setDecimals(value: number): ERC20Token; 64 | 65 | serializeBinary(): Uint8Array; 66 | toObject(includeInstance?: boolean): ERC20Token.AsObject; 67 | static toObject(includeInstance: boolean, msg: ERC20Token): ERC20Token.AsObject; 68 | static serializeBinaryToWriter(message: ERC20Token, writer: jspb.BinaryWriter): void; 69 | static deserializeBinary(bytes: Uint8Array): ERC20Token; 70 | static deserializeBinaryFromReader(message: ERC20Token, reader: jspb.BinaryReader): ERC20Token; 71 | } 72 | 73 | export namespace ERC20Token { 74 | export type AsObject = { 75 | chainId: number, 76 | symbol: string, 77 | address: string, 78 | decimals: number, 79 | } 80 | } 81 | 82 | -------------------------------------------------------------------------------- /ts-proto/sgn/gov/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_gov_v1_gov_pb from '../../../sgn/gov/v1/gov_pb'; 5 | 6 | 7 | export class GenesisState extends jspb.Message { 8 | getStartingProposalId(): number; 9 | setStartingProposalId(value: number): GenesisState; 10 | 11 | getDepositsList(): Array; 12 | setDepositsList(value: Array): GenesisState; 13 | clearDepositsList(): GenesisState; 14 | addDeposits(value?: sgn_gov_v1_gov_pb.Deposit, index?: number): sgn_gov_v1_gov_pb.Deposit; 15 | 16 | getVotesList(): Array; 17 | setVotesList(value: Array): GenesisState; 18 | clearVotesList(): GenesisState; 19 | addVotes(value?: sgn_gov_v1_gov_pb.Vote, index?: number): sgn_gov_v1_gov_pb.Vote; 20 | 21 | getProposalsList(): Array; 22 | setProposalsList(value: Array): GenesisState; 23 | clearProposalsList(): GenesisState; 24 | addProposals(value?: sgn_gov_v1_gov_pb.Proposal, index?: number): sgn_gov_v1_gov_pb.Proposal; 25 | 26 | getDepositParams(): sgn_gov_v1_gov_pb.DepositParams | undefined; 27 | setDepositParams(value?: sgn_gov_v1_gov_pb.DepositParams): GenesisState; 28 | hasDepositParams(): boolean; 29 | clearDepositParams(): GenesisState; 30 | 31 | getVotingParams(): sgn_gov_v1_gov_pb.VotingParams | undefined; 32 | setVotingParams(value?: sgn_gov_v1_gov_pb.VotingParams): GenesisState; 33 | hasVotingParams(): boolean; 34 | clearVotingParams(): GenesisState; 35 | 36 | getTallyParams(): sgn_gov_v1_gov_pb.TallyParams | undefined; 37 | setTallyParams(value?: sgn_gov_v1_gov_pb.TallyParams): GenesisState; 38 | hasTallyParams(): boolean; 39 | clearTallyParams(): GenesisState; 40 | 41 | serializeBinary(): Uint8Array; 42 | toObject(includeInstance?: boolean): GenesisState.AsObject; 43 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 44 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 45 | static deserializeBinary(bytes: Uint8Array): GenesisState; 46 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 47 | } 48 | 49 | export namespace GenesisState { 50 | export type AsObject = { 51 | startingProposalId: number, 52 | depositsList: Array, 53 | votesList: Array, 54 | proposalsList: Array, 55 | depositParams?: sgn_gov_v1_gov_pb.DepositParams.AsObject, 56 | votingParams?: sgn_gov_v1_gov_pb.VotingParams.AsObject, 57 | tallyParams?: sgn_gov_v1_gov_pb.TallyParams.AsObject, 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /ts-proto/sgn/gov/v1/tx_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb'; 5 | import * as cosmos_proto_cosmos_pb from '../../../cosmos_proto/cosmos_pb'; 6 | import * as sgn_gov_v1_gov_pb from '../../../sgn/gov/v1/gov_pb'; 7 | 8 | 9 | export class MsgSubmitProposal extends jspb.Message { 10 | getContent(): google_protobuf_any_pb.Any | undefined; 11 | setContent(value?: google_protobuf_any_pb.Any): MsgSubmitProposal; 12 | hasContent(): boolean; 13 | clearContent(): MsgSubmitProposal; 14 | 15 | getInitialDeposit(): string; 16 | setInitialDeposit(value: string): MsgSubmitProposal; 17 | 18 | getProposer(): string; 19 | setProposer(value: string): MsgSubmitProposal; 20 | 21 | serializeBinary(): Uint8Array; 22 | toObject(includeInstance?: boolean): MsgSubmitProposal.AsObject; 23 | static toObject(includeInstance: boolean, msg: MsgSubmitProposal): MsgSubmitProposal.AsObject; 24 | static serializeBinaryToWriter(message: MsgSubmitProposal, writer: jspb.BinaryWriter): void; 25 | static deserializeBinary(bytes: Uint8Array): MsgSubmitProposal; 26 | static deserializeBinaryFromReader(message: MsgSubmitProposal, reader: jspb.BinaryReader): MsgSubmitProposal; 27 | } 28 | 29 | export namespace MsgSubmitProposal { 30 | export type AsObject = { 31 | content?: google_protobuf_any_pb.Any.AsObject, 32 | initialDeposit: string, 33 | proposer: string, 34 | } 35 | } 36 | 37 | export class MsgSubmitProposalResponse extends jspb.Message { 38 | getProposalId(): number; 39 | setProposalId(value: number): MsgSubmitProposalResponse; 40 | 41 | serializeBinary(): Uint8Array; 42 | toObject(includeInstance?: boolean): MsgSubmitProposalResponse.AsObject; 43 | static toObject(includeInstance: boolean, msg: MsgSubmitProposalResponse): MsgSubmitProposalResponse.AsObject; 44 | static serializeBinaryToWriter(message: MsgSubmitProposalResponse, writer: jspb.BinaryWriter): void; 45 | static deserializeBinary(bytes: Uint8Array): MsgSubmitProposalResponse; 46 | static deserializeBinaryFromReader(message: MsgSubmitProposalResponse, reader: jspb.BinaryReader): MsgSubmitProposalResponse; 47 | } 48 | 49 | export namespace MsgSubmitProposalResponse { 50 | export type AsObject = { 51 | proposalId: number, 52 | } 53 | } 54 | 55 | export class MsgVote extends jspb.Message { 56 | getProposalId(): number; 57 | setProposalId(value: number): MsgVote; 58 | 59 | getVoter(): string; 60 | setVoter(value: string): MsgVote; 61 | 62 | getOption(): sgn_gov_v1_gov_pb.VoteOption; 63 | setOption(value: sgn_gov_v1_gov_pb.VoteOption): MsgVote; 64 | 65 | serializeBinary(): Uint8Array; 66 | toObject(includeInstance?: boolean): MsgVote.AsObject; 67 | static toObject(includeInstance: boolean, msg: MsgVote): MsgVote.AsObject; 68 | static serializeBinaryToWriter(message: MsgVote, writer: jspb.BinaryWriter): void; 69 | static deserializeBinary(bytes: Uint8Array): MsgVote; 70 | static deserializeBinaryFromReader(message: MsgVote, reader: jspb.BinaryReader): MsgVote; 71 | } 72 | 73 | export namespace MsgVote { 74 | export type AsObject = { 75 | proposalId: number, 76 | voter: string, 77 | option: sgn_gov_v1_gov_pb.VoteOption, 78 | } 79 | } 80 | 81 | export class MsgVoteResponse extends jspb.Message { 82 | serializeBinary(): Uint8Array; 83 | toObject(includeInstance?: boolean): MsgVoteResponse.AsObject; 84 | static toObject(includeInstance: boolean, msg: MsgVoteResponse): MsgVoteResponse.AsObject; 85 | static serializeBinaryToWriter(message: MsgVoteResponse, writer: jspb.BinaryWriter): void; 86 | static deserializeBinary(bytes: Uint8Array): MsgVoteResponse; 87 | static deserializeBinaryFromReader(message: MsgVoteResponse, reader: jspb.BinaryReader): MsgVoteResponse; 88 | } 89 | 90 | export namespace MsgVoteResponse { 91 | export type AsObject = { 92 | } 93 | } 94 | 95 | export class MsgDeposit extends jspb.Message { 96 | getProposalId(): number; 97 | setProposalId(value: number): MsgDeposit; 98 | 99 | getDepositor(): string; 100 | setDepositor(value: string): MsgDeposit; 101 | 102 | getAmount(): string; 103 | setAmount(value: string): MsgDeposit; 104 | 105 | serializeBinary(): Uint8Array; 106 | toObject(includeInstance?: boolean): MsgDeposit.AsObject; 107 | static toObject(includeInstance: boolean, msg: MsgDeposit): MsgDeposit.AsObject; 108 | static serializeBinaryToWriter(message: MsgDeposit, writer: jspb.BinaryWriter): void; 109 | static deserializeBinary(bytes: Uint8Array): MsgDeposit; 110 | static deserializeBinaryFromReader(message: MsgDeposit, reader: jspb.BinaryReader): MsgDeposit; 111 | } 112 | 113 | export namespace MsgDeposit { 114 | export type AsObject = { 115 | proposalId: number, 116 | depositor: string, 117 | amount: string, 118 | } 119 | } 120 | 121 | export class MsgDepositResponse extends jspb.Message { 122 | serializeBinary(): Uint8Array; 123 | toObject(includeInstance?: boolean): MsgDepositResponse.AsObject; 124 | static toObject(includeInstance: boolean, msg: MsgDepositResponse): MsgDepositResponse.AsObject; 125 | static serializeBinaryToWriter(message: MsgDepositResponse, writer: jspb.BinaryWriter): void; 126 | static deserializeBinary(bytes: Uint8Array): MsgDepositResponse; 127 | static deserializeBinaryFromReader(message: MsgDepositResponse, reader: jspb.BinaryReader): MsgDepositResponse; 128 | } 129 | 130 | export namespace MsgDepositResponse { 131 | export type AsObject = { 132 | } 133 | } 134 | 135 | -------------------------------------------------------------------------------- /ts-proto/sgn/message/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_common_v1_common_pb from '../../../sgn/common/v1/common_pb'; 5 | import * as sgn_message_v1_message_pb from '../../../sgn/message/v1/message_pb'; 6 | 7 | 8 | export class GenesisState extends jspb.Message { 9 | getParams(): sgn_message_v1_message_pb.Params | undefined; 10 | setParams(value?: sgn_message_v1_message_pb.Params): GenesisState; 11 | hasParams(): boolean; 12 | clearParams(): GenesisState; 13 | 14 | getMessageBusesList(): Array; 15 | setMessageBusesList(value: Array): GenesisState; 16 | clearMessageBusesList(): GenesisState; 17 | addMessageBuses(value?: sgn_message_v1_message_pb.MessageBusInfo, index?: number): sgn_message_v1_message_pb.MessageBusInfo; 18 | 19 | serializeBinary(): Uint8Array; 20 | toObject(includeInstance?: boolean): GenesisState.AsObject; 21 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 22 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 23 | static deserializeBinary(bytes: Uint8Array): GenesisState; 24 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 25 | } 26 | 27 | export namespace GenesisState { 28 | export type AsObject = { 29 | params?: sgn_message_v1_message_pb.Params.AsObject, 30 | messageBusesList: Array, 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /ts-proto/sgn/mint/v1/QueryServiceClientPb.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @fileoverview gRPC-Web generated client stub for sgn.mint.v1 3 | * @enhanceable 4 | * @public 5 | */ 6 | 7 | // GENERATED CODE -- DO NOT EDIT! 8 | 9 | 10 | /* eslint-disable */ 11 | // @ts-nocheck 12 | 13 | 14 | import * as grpcWeb from 'grpc-web'; 15 | 16 | import * as sgn_mint_v1_query_pb from '../../../sgn/mint/v1/query_pb'; 17 | 18 | 19 | export class QueryClient { 20 | client_: grpcWeb.AbstractClientBase; 21 | hostname_: string; 22 | credentials_: null | { [index: string]: string; }; 23 | options_: null | { [index: string]: any; }; 24 | 25 | constructor (hostname: string, 26 | credentials?: null | { [index: string]: string; }, 27 | options?: null | { [index: string]: any; }) { 28 | if (!options) options = {}; 29 | if (!credentials) credentials = {}; 30 | options['format'] = 'binary'; 31 | 32 | this.client_ = new grpcWeb.GrpcWebClientBase(options); 33 | this.hostname_ = hostname; 34 | this.credentials_ = credentials; 35 | this.options_ = options; 36 | } 37 | 38 | methodInfoParams = new grpcWeb.MethodDescriptor( 39 | '/sgn.mint.v1.Query/Params', 40 | grpcWeb.MethodType.UNARY, 41 | sgn_mint_v1_query_pb.QueryParamsRequest, 42 | sgn_mint_v1_query_pb.QueryParamsResponse, 43 | (request: sgn_mint_v1_query_pb.QueryParamsRequest) => { 44 | return request.serializeBinary(); 45 | }, 46 | sgn_mint_v1_query_pb.QueryParamsResponse.deserializeBinary 47 | ); 48 | 49 | params( 50 | request: sgn_mint_v1_query_pb.QueryParamsRequest, 51 | metadata: grpcWeb.Metadata | null): Promise; 52 | 53 | params( 54 | request: sgn_mint_v1_query_pb.QueryParamsRequest, 55 | metadata: grpcWeb.Metadata | null, 56 | callback: (err: grpcWeb.RpcError, 57 | response: sgn_mint_v1_query_pb.QueryParamsResponse) => void): grpcWeb.ClientReadableStream; 58 | 59 | params( 60 | request: sgn_mint_v1_query_pb.QueryParamsRequest, 61 | metadata: grpcWeb.Metadata | null, 62 | callback?: (err: grpcWeb.RpcError, 63 | response: sgn_mint_v1_query_pb.QueryParamsResponse) => void) { 64 | if (callback !== undefined) { 65 | return this.client_.rpcCall( 66 | this.hostname_ + 67 | '/sgn.mint.v1.Query/Params', 68 | request, 69 | metadata || {}, 70 | this.methodInfoParams, 71 | callback); 72 | } 73 | return this.client_.unaryCall( 74 | this.hostname_ + 75 | '/sgn.mint.v1.Query/Params', 76 | request, 77 | metadata || {}, 78 | this.methodInfoParams); 79 | } 80 | 81 | methodInfoAnnualProvisions = new grpcWeb.MethodDescriptor( 82 | '/sgn.mint.v1.Query/AnnualProvisions', 83 | grpcWeb.MethodType.UNARY, 84 | sgn_mint_v1_query_pb.QueryAnnualProvisionsRequest, 85 | sgn_mint_v1_query_pb.QueryAnnualProvisionsResponse, 86 | (request: sgn_mint_v1_query_pb.QueryAnnualProvisionsRequest) => { 87 | return request.serializeBinary(); 88 | }, 89 | sgn_mint_v1_query_pb.QueryAnnualProvisionsResponse.deserializeBinary 90 | ); 91 | 92 | annualProvisions( 93 | request: sgn_mint_v1_query_pb.QueryAnnualProvisionsRequest, 94 | metadata: grpcWeb.Metadata | null): Promise; 95 | 96 | annualProvisions( 97 | request: sgn_mint_v1_query_pb.QueryAnnualProvisionsRequest, 98 | metadata: grpcWeb.Metadata | null, 99 | callback: (err: grpcWeb.RpcError, 100 | response: sgn_mint_v1_query_pb.QueryAnnualProvisionsResponse) => void): grpcWeb.ClientReadableStream; 101 | 102 | annualProvisions( 103 | request: sgn_mint_v1_query_pb.QueryAnnualProvisionsRequest, 104 | metadata: grpcWeb.Metadata | null, 105 | callback?: (err: grpcWeb.RpcError, 106 | response: sgn_mint_v1_query_pb.QueryAnnualProvisionsResponse) => void) { 107 | if (callback !== undefined) { 108 | return this.client_.rpcCall( 109 | this.hostname_ + 110 | '/sgn.mint.v1.Query/AnnualProvisions', 111 | request, 112 | metadata || {}, 113 | this.methodInfoAnnualProvisions, 114 | callback); 115 | } 116 | return this.client_.unaryCall( 117 | this.hostname_ + 118 | '/sgn.mint.v1.Query/AnnualProvisions', 119 | request, 120 | metadata || {}, 121 | this.methodInfoAnnualProvisions); 122 | } 123 | 124 | } 125 | 126 | -------------------------------------------------------------------------------- /ts-proto/sgn/mint/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_mint_v1_mint_pb from '../../../sgn/mint/v1/mint_pb'; 5 | 6 | 7 | export class GenesisState extends jspb.Message { 8 | getMinter(): sgn_mint_v1_mint_pb.Minter | undefined; 9 | setMinter(value?: sgn_mint_v1_mint_pb.Minter): GenesisState; 10 | hasMinter(): boolean; 11 | clearMinter(): GenesisState; 12 | 13 | getParams(): sgn_mint_v1_mint_pb.Params | undefined; 14 | setParams(value?: sgn_mint_v1_mint_pb.Params): GenesisState; 15 | hasParams(): boolean; 16 | clearParams(): GenesisState; 17 | 18 | serializeBinary(): Uint8Array; 19 | toObject(includeInstance?: boolean): GenesisState.AsObject; 20 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 21 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 22 | static deserializeBinary(bytes: Uint8Array): GenesisState; 23 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 24 | } 25 | 26 | export namespace GenesisState { 27 | export type AsObject = { 28 | minter?: sgn_mint_v1_mint_pb.Minter.AsObject, 29 | params?: sgn_mint_v1_mint_pb.Params.AsObject, 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /ts-proto/sgn/mint/v1/mint_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | 5 | 6 | export class Minter extends jspb.Message { 7 | getAnnualProvisions(): string; 8 | setAnnualProvisions(value: string): Minter; 9 | 10 | serializeBinary(): Uint8Array; 11 | toObject(includeInstance?: boolean): Minter.AsObject; 12 | static toObject(includeInstance: boolean, msg: Minter): Minter.AsObject; 13 | static serializeBinaryToWriter(message: Minter, writer: jspb.BinaryWriter): void; 14 | static deserializeBinary(bytes: Uint8Array): Minter; 15 | static deserializeBinaryFromReader(message: Minter, reader: jspb.BinaryReader): Minter; 16 | } 17 | 18 | export namespace Minter { 19 | export type AsObject = { 20 | annualProvisions: string, 21 | } 22 | } 23 | 24 | export class Params extends jspb.Message { 25 | getMintDenom(): string; 26 | setMintDenom(value: string): Params; 27 | 28 | getBlocksPerYear(): number; 29 | setBlocksPerYear(value: number): Params; 30 | 31 | serializeBinary(): Uint8Array; 32 | toObject(includeInstance?: boolean): Params.AsObject; 33 | static toObject(includeInstance: boolean, msg: Params): Params.AsObject; 34 | static serializeBinaryToWriter(message: Params, writer: jspb.BinaryWriter): void; 35 | static deserializeBinary(bytes: Uint8Array): Params; 36 | static deserializeBinaryFromReader(message: Params, reader: jspb.BinaryReader): Params; 37 | } 38 | 39 | export namespace Params { 40 | export type AsObject = { 41 | mintDenom: string, 42 | blocksPerYear: number, 43 | } 44 | } 45 | 46 | export class AdjustProvisionsProposal extends jspb.Message { 47 | getTitle(): string; 48 | setTitle(value: string): AdjustProvisionsProposal; 49 | 50 | getDescription(): string; 51 | setDescription(value: string): AdjustProvisionsProposal; 52 | 53 | getNewAnnualProvisions(): string; 54 | setNewAnnualProvisions(value: string): AdjustProvisionsProposal; 55 | 56 | serializeBinary(): Uint8Array; 57 | toObject(includeInstance?: boolean): AdjustProvisionsProposal.AsObject; 58 | static toObject(includeInstance: boolean, msg: AdjustProvisionsProposal): AdjustProvisionsProposal.AsObject; 59 | static serializeBinaryToWriter(message: AdjustProvisionsProposal, writer: jspb.BinaryWriter): void; 60 | static deserializeBinary(bytes: Uint8Array): AdjustProvisionsProposal; 61 | static deserializeBinaryFromReader(message: AdjustProvisionsProposal, reader: jspb.BinaryReader): AdjustProvisionsProposal; 62 | } 63 | 64 | export namespace AdjustProvisionsProposal { 65 | export type AsObject = { 66 | title: string, 67 | description: string, 68 | newAnnualProvisions: string, 69 | } 70 | } 71 | 72 | export class AdjustProvisionsProposalWithDeposit extends jspb.Message { 73 | getTitle(): string; 74 | setTitle(value: string): AdjustProvisionsProposalWithDeposit; 75 | 76 | getDescription(): string; 77 | setDescription(value: string): AdjustProvisionsProposalWithDeposit; 78 | 79 | getNewAnnualProvisions(): string; 80 | setNewAnnualProvisions(value: string): AdjustProvisionsProposalWithDeposit; 81 | 82 | getDeposit(): string; 83 | setDeposit(value: string): AdjustProvisionsProposalWithDeposit; 84 | 85 | serializeBinary(): Uint8Array; 86 | toObject(includeInstance?: boolean): AdjustProvisionsProposalWithDeposit.AsObject; 87 | static toObject(includeInstance: boolean, msg: AdjustProvisionsProposalWithDeposit): AdjustProvisionsProposalWithDeposit.AsObject; 88 | static serializeBinaryToWriter(message: AdjustProvisionsProposalWithDeposit, writer: jspb.BinaryWriter): void; 89 | static deserializeBinary(bytes: Uint8Array): AdjustProvisionsProposalWithDeposit; 90 | static deserializeBinaryFromReader(message: AdjustProvisionsProposalWithDeposit, reader: jspb.BinaryReader): AdjustProvisionsProposalWithDeposit; 91 | } 92 | 93 | export namespace AdjustProvisionsProposalWithDeposit { 94 | export type AsObject = { 95 | title: string, 96 | description: string, 97 | newAnnualProvisions: string, 98 | deposit: string, 99 | } 100 | } 101 | 102 | -------------------------------------------------------------------------------- /ts-proto/sgn/mint/v1/query_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as google_api_annotations_pb from '../../../google/api/annotations_pb'; 5 | import * as sgn_mint_v1_mint_pb from '../../../sgn/mint/v1/mint_pb'; 6 | 7 | 8 | export class QueryParamsRequest extends jspb.Message { 9 | serializeBinary(): Uint8Array; 10 | toObject(includeInstance?: boolean): QueryParamsRequest.AsObject; 11 | static toObject(includeInstance: boolean, msg: QueryParamsRequest): QueryParamsRequest.AsObject; 12 | static serializeBinaryToWriter(message: QueryParamsRequest, writer: jspb.BinaryWriter): void; 13 | static deserializeBinary(bytes: Uint8Array): QueryParamsRequest; 14 | static deserializeBinaryFromReader(message: QueryParamsRequest, reader: jspb.BinaryReader): QueryParamsRequest; 15 | } 16 | 17 | export namespace QueryParamsRequest { 18 | export type AsObject = { 19 | } 20 | } 21 | 22 | export class QueryParamsResponse extends jspb.Message { 23 | getParams(): sgn_mint_v1_mint_pb.Params | undefined; 24 | setParams(value?: sgn_mint_v1_mint_pb.Params): QueryParamsResponse; 25 | hasParams(): boolean; 26 | clearParams(): QueryParamsResponse; 27 | 28 | serializeBinary(): Uint8Array; 29 | toObject(includeInstance?: boolean): QueryParamsResponse.AsObject; 30 | static toObject(includeInstance: boolean, msg: QueryParamsResponse): QueryParamsResponse.AsObject; 31 | static serializeBinaryToWriter(message: QueryParamsResponse, writer: jspb.BinaryWriter): void; 32 | static deserializeBinary(bytes: Uint8Array): QueryParamsResponse; 33 | static deserializeBinaryFromReader(message: QueryParamsResponse, reader: jspb.BinaryReader): QueryParamsResponse; 34 | } 35 | 36 | export namespace QueryParamsResponse { 37 | export type AsObject = { 38 | params?: sgn_mint_v1_mint_pb.Params.AsObject, 39 | } 40 | } 41 | 42 | export class QueryAnnualProvisionsRequest extends jspb.Message { 43 | serializeBinary(): Uint8Array; 44 | toObject(includeInstance?: boolean): QueryAnnualProvisionsRequest.AsObject; 45 | static toObject(includeInstance: boolean, msg: QueryAnnualProvisionsRequest): QueryAnnualProvisionsRequest.AsObject; 46 | static serializeBinaryToWriter(message: QueryAnnualProvisionsRequest, writer: jspb.BinaryWriter): void; 47 | static deserializeBinary(bytes: Uint8Array): QueryAnnualProvisionsRequest; 48 | static deserializeBinaryFromReader(message: QueryAnnualProvisionsRequest, reader: jspb.BinaryReader): QueryAnnualProvisionsRequest; 49 | } 50 | 51 | export namespace QueryAnnualProvisionsRequest { 52 | export type AsObject = { 53 | } 54 | } 55 | 56 | export class QueryAnnualProvisionsResponse extends jspb.Message { 57 | getAnnualProvisions(): Uint8Array | string; 58 | getAnnualProvisions_asU8(): Uint8Array; 59 | getAnnualProvisions_asB64(): string; 60 | setAnnualProvisions(value: Uint8Array | string): QueryAnnualProvisionsResponse; 61 | 62 | serializeBinary(): Uint8Array; 63 | toObject(includeInstance?: boolean): QueryAnnualProvisionsResponse.AsObject; 64 | static toObject(includeInstance: boolean, msg: QueryAnnualProvisionsResponse): QueryAnnualProvisionsResponse.AsObject; 65 | static serializeBinaryToWriter(message: QueryAnnualProvisionsResponse, writer: jspb.BinaryWriter): void; 66 | static deserializeBinary(bytes: Uint8Array): QueryAnnualProvisionsResponse; 67 | static deserializeBinaryFromReader(message: QueryAnnualProvisionsResponse, reader: jspb.BinaryReader): QueryAnnualProvisionsResponse; 68 | } 69 | 70 | export namespace QueryAnnualProvisionsResponse { 71 | export type AsObject = { 72 | annualProvisions: Uint8Array | string, 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /ts-proto/sgn/pegbridge/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_common_v1_common_pb from '../../../sgn/common/v1/common_pb'; 5 | import * as sgn_pegbridge_v1_pegbridge_pb from '../../../sgn/pegbridge/v1/pegbridge_pb'; 6 | 7 | 8 | export class GenesisState extends jspb.Message { 9 | getParams(): sgn_pegbridge_v1_pegbridge_pb.Params | undefined; 10 | setParams(value?: sgn_pegbridge_v1_pegbridge_pb.Params): GenesisState; 11 | hasParams(): boolean; 12 | clearParams(): GenesisState; 13 | 14 | getConfig(): sgn_pegbridge_v1_pegbridge_pb.PegConfig | undefined; 15 | setConfig(value?: sgn_pegbridge_v1_pegbridge_pb.PegConfig): GenesisState; 16 | hasConfig(): boolean; 17 | clearConfig(): GenesisState; 18 | 19 | serializeBinary(): Uint8Array; 20 | toObject(includeInstance?: boolean): GenesisState.AsObject; 21 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 22 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 23 | static deserializeBinary(bytes: Uint8Array): GenesisState; 24 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 25 | } 26 | 27 | export namespace GenesisState { 28 | export type AsObject = { 29 | params?: sgn_pegbridge_v1_pegbridge_pb.Params.AsObject, 30 | config?: sgn_pegbridge_v1_pegbridge_pb.PegConfig.AsObject, 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /ts-proto/sgn/slashing/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_slashing_v1_slashing_pb from '../../../sgn/slashing/v1/slashing_pb'; 5 | 6 | 7 | export class GenesisState extends jspb.Message { 8 | getParams(): sgn_slashing_v1_slashing_pb.Params | undefined; 9 | setParams(value?: sgn_slashing_v1_slashing_pb.Params): GenesisState; 10 | hasParams(): boolean; 11 | clearParams(): GenesisState; 12 | 13 | getSlashesList(): Array; 14 | setSlashesList(value: Array): GenesisState; 15 | clearSlashesList(): GenesisState; 16 | addSlashes(value?: sgn_slashing_v1_slashing_pb.Slash, index?: number): sgn_slashing_v1_slashing_pb.Slash; 17 | 18 | getSlashNonce(): number; 19 | setSlashNonce(value: number): GenesisState; 20 | 21 | serializeBinary(): Uint8Array; 22 | toObject(includeInstance?: boolean): GenesisState.AsObject; 23 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 24 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 25 | static deserializeBinary(bytes: Uint8Array): GenesisState; 26 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 27 | } 28 | 29 | export namespace GenesisState { 30 | export type AsObject = { 31 | params?: sgn_slashing_v1_slashing_pb.Params.AsObject, 32 | slashesList: Array, 33 | slashNonce: number, 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /ts-proto/sgn/slashing/v1/tx_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as sgn_slashing_v1_slashing_pb from '../../../sgn/slashing/v1/slashing_pb'; 4 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 5 | 6 | 7 | export class MsgSignSlash extends jspb.Message { 8 | getNonce(): number; 9 | setNonce(value: number): MsgSignSlash; 10 | 11 | getSig(): Uint8Array | string; 12 | getSig_asU8(): Uint8Array; 13 | getSig_asB64(): string; 14 | setSig(value: Uint8Array | string): MsgSignSlash; 15 | 16 | getSender(): string; 17 | setSender(value: string): MsgSignSlash; 18 | 19 | serializeBinary(): Uint8Array; 20 | toObject(includeInstance?: boolean): MsgSignSlash.AsObject; 21 | static toObject(includeInstance: boolean, msg: MsgSignSlash): MsgSignSlash.AsObject; 22 | static serializeBinaryToWriter(message: MsgSignSlash, writer: jspb.BinaryWriter): void; 23 | static deserializeBinary(bytes: Uint8Array): MsgSignSlash; 24 | static deserializeBinaryFromReader(message: MsgSignSlash, reader: jspb.BinaryReader): MsgSignSlash; 25 | } 26 | 27 | export namespace MsgSignSlash { 28 | export type AsObject = { 29 | nonce: number, 30 | sig: Uint8Array | string, 31 | sender: string, 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /ts-proto/sgn/staking/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_staking_v1_staking_pb from '../../../sgn/staking/v1/staking_pb'; 5 | 6 | 7 | export class GenesisState extends jspb.Message { 8 | getParams(): sgn_staking_v1_staking_pb.Params | undefined; 9 | setParams(value?: sgn_staking_v1_staking_pb.Params): GenesisState; 10 | hasParams(): boolean; 11 | clearParams(): GenesisState; 12 | 13 | getSyncer(): sgn_staking_v1_staking_pb.Syncer | undefined; 14 | setSyncer(value?: sgn_staking_v1_staking_pb.Syncer): GenesisState; 15 | hasSyncer(): boolean; 16 | clearSyncer(): GenesisState; 17 | 18 | getValidatorsList(): Array; 19 | setValidatorsList(value: Array): GenesisState; 20 | clearValidatorsList(): GenesisState; 21 | addValidators(value?: sgn_staking_v1_staking_pb.Validator, index?: number): sgn_staking_v1_staking_pb.Validator; 22 | 23 | getDelegationsList(): Array; 24 | setDelegationsList(value: Array): GenesisState; 25 | clearDelegationsList(): GenesisState; 26 | addDelegations(value?: sgn_staking_v1_staking_pb.Delegation, index?: number): sgn_staking_v1_staking_pb.Delegation; 27 | 28 | serializeBinary(): Uint8Array; 29 | toObject(includeInstance?: boolean): GenesisState.AsObject; 30 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 31 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 32 | static deserializeBinary(bytes: Uint8Array): GenesisState; 33 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 34 | } 35 | 36 | export namespace GenesisState { 37 | export type AsObject = { 38 | params?: sgn_staking_v1_staking_pb.Params.AsObject, 39 | syncer?: sgn_staking_v1_staking_pb.Syncer.AsObject, 40 | validatorsList: Array, 41 | delegationsList: Array, 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /ts-proto/sgn/staking/v1/tx_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as sgn_staking_v1_staking_pb from '../../../sgn/staking/v1/staking_pb'; 4 | 5 | 6 | export class MsgSetTransactors extends jspb.Message { 7 | getOperation(): SetTransactorsOp; 8 | setOperation(value: SetTransactorsOp): MsgSetTransactors; 9 | 10 | getTransactorsList(): Array; 11 | setTransactorsList(value: Array): MsgSetTransactors; 12 | clearTransactorsList(): MsgSetTransactors; 13 | addTransactors(value: string, index?: number): MsgSetTransactors; 14 | 15 | getSender(): string; 16 | setSender(value: string): MsgSetTransactors; 17 | 18 | serializeBinary(): Uint8Array; 19 | toObject(includeInstance?: boolean): MsgSetTransactors.AsObject; 20 | static toObject(includeInstance: boolean, msg: MsgSetTransactors): MsgSetTransactors.AsObject; 21 | static serializeBinaryToWriter(message: MsgSetTransactors, writer: jspb.BinaryWriter): void; 22 | static deserializeBinary(bytes: Uint8Array): MsgSetTransactors; 23 | static deserializeBinaryFromReader(message: MsgSetTransactors, reader: jspb.BinaryReader): MsgSetTransactors; 24 | } 25 | 26 | export namespace MsgSetTransactors { 27 | export type AsObject = { 28 | operation: SetTransactorsOp, 29 | transactorsList: Array, 30 | sender: string, 31 | } 32 | } 33 | 34 | export class MsgEditDescription extends jspb.Message { 35 | getDescription(): sgn_staking_v1_staking_pb.Description | undefined; 36 | setDescription(value?: sgn_staking_v1_staking_pb.Description): MsgEditDescription; 37 | hasDescription(): boolean; 38 | clearDescription(): MsgEditDescription; 39 | 40 | getSender(): string; 41 | setSender(value: string): MsgEditDescription; 42 | 43 | serializeBinary(): Uint8Array; 44 | toObject(includeInstance?: boolean): MsgEditDescription.AsObject; 45 | static toObject(includeInstance: boolean, msg: MsgEditDescription): MsgEditDescription.AsObject; 46 | static serializeBinaryToWriter(message: MsgEditDescription, writer: jspb.BinaryWriter): void; 47 | static deserializeBinary(bytes: Uint8Array): MsgEditDescription; 48 | static deserializeBinaryFromReader(message: MsgEditDescription, reader: jspb.BinaryReader): MsgEditDescription; 49 | } 50 | 51 | export namespace MsgEditDescription { 52 | export type AsObject = { 53 | description?: sgn_staking_v1_staking_pb.Description.AsObject, 54 | sender: string, 55 | } 56 | } 57 | 58 | export enum SetTransactorsOp { 59 | NOP = 0, 60 | OVERWRITE = 1, 61 | ADD = 2, 62 | REMOVE = 3, 63 | } 64 | -------------------------------------------------------------------------------- /ts-proto/sgn/sync/v1/genesis_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_sync_v1_sync_pb from '../../../sgn/sync/v1/sync_pb'; 5 | 6 | 7 | export class GenesisState extends jspb.Message { 8 | getParams(): sgn_sync_v1_sync_pb.Params | undefined; 9 | setParams(value?: sgn_sync_v1_sync_pb.Params): GenesisState; 10 | hasParams(): boolean; 11 | clearParams(): GenesisState; 12 | 13 | getStartUpdateId(): number; 14 | setStartUpdateId(value: number): GenesisState; 15 | 16 | serializeBinary(): Uint8Array; 17 | toObject(includeInstance?: boolean): GenesisState.AsObject; 18 | static toObject(includeInstance: boolean, msg: GenesisState): GenesisState.AsObject; 19 | static serializeBinaryToWriter(message: GenesisState, writer: jspb.BinaryWriter): void; 20 | static deserializeBinary(bytes: Uint8Array): GenesisState; 21 | static deserializeBinaryFromReader(message: GenesisState, reader: jspb.BinaryReader): GenesisState; 22 | } 23 | 24 | export namespace GenesisState { 25 | export type AsObject = { 26 | params?: sgn_sync_v1_sync_pb.Params.AsObject, 27 | startUpdateId: number, 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /ts-proto/sgn/sync/v1/sync_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | 5 | 6 | export class Vote extends jspb.Message { 7 | getVoter(): string; 8 | setVoter(value: string): Vote; 9 | 10 | getOption(): VoteOption; 11 | setOption(value: VoteOption): Vote; 12 | 13 | serializeBinary(): Uint8Array; 14 | toObject(includeInstance?: boolean): Vote.AsObject; 15 | static toObject(includeInstance: boolean, msg: Vote): Vote.AsObject; 16 | static serializeBinaryToWriter(message: Vote, writer: jspb.BinaryWriter): void; 17 | static deserializeBinary(bytes: Uint8Array): Vote; 18 | static deserializeBinaryFromReader(message: Vote, reader: jspb.BinaryReader): Vote; 19 | } 20 | 21 | export namespace Vote { 22 | export type AsObject = { 23 | voter: string, 24 | option: VoteOption, 25 | } 26 | } 27 | 28 | export class PendingUpdate extends jspb.Message { 29 | getId(): number; 30 | setId(value: number): PendingUpdate; 31 | 32 | getType(): DataType; 33 | setType(value: DataType): PendingUpdate; 34 | 35 | getData(): Uint8Array | string; 36 | getData_asU8(): Uint8Array; 37 | getData_asB64(): string; 38 | setData(value: Uint8Array | string): PendingUpdate; 39 | 40 | getChainId(): number; 41 | setChainId(value: number): PendingUpdate; 42 | 43 | getChainBlock(): number; 44 | setChainBlock(value: number): PendingUpdate; 45 | 46 | getProposer(): string; 47 | setProposer(value: string): PendingUpdate; 48 | 49 | getVotesList(): Array; 50 | setVotesList(value: Array): PendingUpdate; 51 | clearVotesList(): PendingUpdate; 52 | addVotes(value?: Vote, index?: number): Vote; 53 | 54 | getProposeTs(): number; 55 | setProposeTs(value: number): PendingUpdate; 56 | 57 | getClosingTs(): number; 58 | setClosingTs(value: number): PendingUpdate; 59 | 60 | serializeBinary(): Uint8Array; 61 | toObject(includeInstance?: boolean): PendingUpdate.AsObject; 62 | static toObject(includeInstance: boolean, msg: PendingUpdate): PendingUpdate.AsObject; 63 | static serializeBinaryToWriter(message: PendingUpdate, writer: jspb.BinaryWriter): void; 64 | static deserializeBinary(bytes: Uint8Array): PendingUpdate; 65 | static deserializeBinaryFromReader(message: PendingUpdate, reader: jspb.BinaryReader): PendingUpdate; 66 | } 67 | 68 | export namespace PendingUpdate { 69 | export type AsObject = { 70 | id: number, 71 | type: DataType, 72 | data: Uint8Array | string, 73 | chainId: number, 74 | chainBlock: number, 75 | proposer: string, 76 | votesList: Array, 77 | proposeTs: number, 78 | closingTs: number, 79 | } 80 | } 81 | 82 | export class Params extends jspb.Message { 83 | getVotingPeriod(): number; 84 | setVotingPeriod(value: number): Params; 85 | 86 | getTallyThreshold(): Uint8Array | string; 87 | getTallyThreshold_asU8(): Uint8Array; 88 | getTallyThreshold_asB64(): string; 89 | setTallyThreshold(value: Uint8Array | string): Params; 90 | 91 | serializeBinary(): Uint8Array; 92 | toObject(includeInstance?: boolean): Params.AsObject; 93 | static toObject(includeInstance: boolean, msg: Params): Params.AsObject; 94 | static serializeBinaryToWriter(message: Params, writer: jspb.BinaryWriter): void; 95 | static deserializeBinary(bytes: Uint8Array): Params; 96 | static deserializeBinaryFromReader(message: Params, reader: jspb.BinaryReader): Params; 97 | } 98 | 99 | export namespace Params { 100 | export type AsObject = { 101 | votingPeriod: number, 102 | tallyThreshold: Uint8Array | string, 103 | } 104 | } 105 | 106 | export enum DataType { 107 | INVALID = 0, 108 | VALIDATORSGNADDR = 1, 109 | VALIDATORPARAMS = 2, 110 | VALIDATORSTATES = 3, 111 | DELEGATORSHARES = 4, 112 | CBRONCHAINEVENT = 5, 113 | CBRUPDATECBRPRICE = 6, 114 | PEGBRONCHAINEVENT = 7, 115 | MSGBRONCHAINEVENT = 8, 116 | } 117 | export enum VoteOption { 118 | EMPTY = 0, 119 | YES = 1, 120 | ABSTAIN = 2, 121 | NO = 3, 122 | } 123 | -------------------------------------------------------------------------------- /ts-proto/sgn/sync/v1/tx_pb.d.ts: -------------------------------------------------------------------------------- 1 | import * as jspb from 'google-protobuf' 2 | 3 | import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'; 4 | import * as sgn_sync_v1_sync_pb from '../../../sgn/sync/v1/sync_pb'; 5 | 6 | 7 | export class ProposeUpdate extends jspb.Message { 8 | getType(): sgn_sync_v1_sync_pb.DataType; 9 | setType(value: sgn_sync_v1_sync_pb.DataType): ProposeUpdate; 10 | 11 | getData(): Uint8Array | string; 12 | getData_asU8(): Uint8Array; 13 | getData_asB64(): string; 14 | setData(value: Uint8Array | string): ProposeUpdate; 15 | 16 | getChainId(): number; 17 | setChainId(value: number): ProposeUpdate; 18 | 19 | getChainBlock(): number; 20 | setChainBlock(value: number): ProposeUpdate; 21 | 22 | serializeBinary(): Uint8Array; 23 | toObject(includeInstance?: boolean): ProposeUpdate.AsObject; 24 | static toObject(includeInstance: boolean, msg: ProposeUpdate): ProposeUpdate.AsObject; 25 | static serializeBinaryToWriter(message: ProposeUpdate, writer: jspb.BinaryWriter): void; 26 | static deserializeBinary(bytes: Uint8Array): ProposeUpdate; 27 | static deserializeBinaryFromReader(message: ProposeUpdate, reader: jspb.BinaryReader): ProposeUpdate; 28 | } 29 | 30 | export namespace ProposeUpdate { 31 | export type AsObject = { 32 | type: sgn_sync_v1_sync_pb.DataType, 33 | data: Uint8Array | string, 34 | chainId: number, 35 | chainBlock: number, 36 | } 37 | } 38 | 39 | export class MsgProposeUpdates extends jspb.Message { 40 | getUpdatesList(): Array; 41 | setUpdatesList(value: Array): MsgProposeUpdates; 42 | clearUpdatesList(): MsgProposeUpdates; 43 | addUpdates(value?: ProposeUpdate, index?: number): ProposeUpdate; 44 | 45 | getSender(): string; 46 | setSender(value: string): MsgProposeUpdates; 47 | 48 | serializeBinary(): Uint8Array; 49 | toObject(includeInstance?: boolean): MsgProposeUpdates.AsObject; 50 | static toObject(includeInstance: boolean, msg: MsgProposeUpdates): MsgProposeUpdates.AsObject; 51 | static serializeBinaryToWriter(message: MsgProposeUpdates, writer: jspb.BinaryWriter): void; 52 | static deserializeBinary(bytes: Uint8Array): MsgProposeUpdates; 53 | static deserializeBinaryFromReader(message: MsgProposeUpdates, reader: jspb.BinaryReader): MsgProposeUpdates; 54 | } 55 | 56 | export namespace MsgProposeUpdates { 57 | export type AsObject = { 58 | updatesList: Array, 59 | sender: string, 60 | } 61 | } 62 | 63 | export class VoteUpdate extends jspb.Message { 64 | getId(): number; 65 | setId(value: number): VoteUpdate; 66 | 67 | getOption(): sgn_sync_v1_sync_pb.VoteOption; 68 | setOption(value: sgn_sync_v1_sync_pb.VoteOption): VoteUpdate; 69 | 70 | serializeBinary(): Uint8Array; 71 | toObject(includeInstance?: boolean): VoteUpdate.AsObject; 72 | static toObject(includeInstance: boolean, msg: VoteUpdate): VoteUpdate.AsObject; 73 | static serializeBinaryToWriter(message: VoteUpdate, writer: jspb.BinaryWriter): void; 74 | static deserializeBinary(bytes: Uint8Array): VoteUpdate; 75 | static deserializeBinaryFromReader(message: VoteUpdate, reader: jspb.BinaryReader): VoteUpdate; 76 | } 77 | 78 | export namespace VoteUpdate { 79 | export type AsObject = { 80 | id: number, 81 | option: sgn_sync_v1_sync_pb.VoteOption, 82 | } 83 | } 84 | 85 | export class MsgVoteUpdates extends jspb.Message { 86 | getVotesList(): Array; 87 | setVotesList(value: Array): MsgVoteUpdates; 88 | clearVotesList(): MsgVoteUpdates; 89 | addVotes(value?: VoteUpdate, index?: number): VoteUpdate; 90 | 91 | getSender(): string; 92 | setSender(value: string): MsgVoteUpdates; 93 | 94 | serializeBinary(): Uint8Array; 95 | toObject(includeInstance?: boolean): MsgVoteUpdates.AsObject; 96 | static toObject(includeInstance: boolean, msg: MsgVoteUpdates): MsgVoteUpdates.AsObject; 97 | static serializeBinaryToWriter(message: MsgVoteUpdates, writer: jspb.BinaryWriter): void; 98 | static deserializeBinary(bytes: Uint8Array): MsgVoteUpdates; 99 | static deserializeBinaryFromReader(message: MsgVoteUpdates, reader: jspb.BinaryReader): MsgVoteUpdates; 100 | } 101 | 102 | export namespace MsgVoteUpdates { 103 | export type AsObject = { 104 | votesList: Array, 105 | sender: string, 106 | } 107 | } 108 | 109 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react-jsx", 9 | "lib": ["es5", "es6", "dom"], 10 | "module": "commonjs", 11 | "moduleResolution": "node", 12 | "noEmit": true, 13 | "noFallthroughCasesInSwitch": true, 14 | "noImplicitAny": false, 15 | "outDir": "dist", 16 | "resolveJsonModule": true, 17 | "skipLibCheck": true, 18 | "sourceMap": true, 19 | "strict": true, 20 | "target": "es2020" 21 | }, 22 | "ts-node": { 23 | "esm": true 24 | }, 25 | "exclude": ["node_modules/**/*"], 26 | "include": ["examples/**/*"] 27 | } 28 | --------------------------------------------------------------------------------