UNPKG

@lidofinance/lido-ethereum-sdk

Version:

<div style="display: flex;" align="center"> <h1 align="center">Lido Ethereum SDK</h1> </div>

394 lines 13.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.rebasableL2StethAbi = void 0; exports.rebasableL2StethAbi = [ { inputs: [ { internalType: 'string', name: 'name_', type: 'string' }, { internalType: 'string', name: 'symbol_', type: 'string' }, { internalType: 'string', name: 'version_', type: 'string' }, { internalType: 'uint8', name: 'decimals_', type: 'uint8' }, { internalType: 'address', name: 'tokenToWrapFrom_', type: 'address' }, { internalType: 'address', name: 'tokenRateOracle_', type: 'address' }, { internalType: 'address', name: 'bridge_', type: 'address' }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [], name: 'ErrorAccountIsZeroAddress', type: 'error' }, { inputs: [], name: 'ErrorDeadlineExpired', type: 'error' }, { inputs: [], name: 'ErrorInvalidSignature', type: 'error' }, { inputs: [], name: 'ErrorNameIsEmpty', type: 'error' }, { inputs: [], name: 'ErrorNotBridge', type: 'error' }, { inputs: [], name: 'ErrorNotEnoughAllowance', type: 'error' }, { inputs: [], name: 'ErrorNotEnoughBalance', type: 'error' }, { inputs: [], name: 'ErrorSymbolIsEmpty', type: 'error' }, { inputs: [], name: 'ErrorTransferToRebasableContract', type: 'error' }, { inputs: [], name: 'ErrorZeroAddressL2ERC20TokenBridge', type: 'error' }, { inputs: [], name: 'ErrorZeroAddressTokenRateOracle', type: 'error' }, { inputs: [], name: 'ErrorZeroAddressTokenToWrapFrom', type: 'error' }, { inputs: [], name: 'ErrorZeroDecimals', type: 'error' }, { inputs: [], name: 'ErrorZeroSharesUnwrap', type: 'error' }, { inputs: [], name: 'ErrorZeroSharesWrap', type: 'error' }, { inputs: [], name: 'ErrorZeroTokensUnwrap', type: 'error' }, { inputs: [], name: 'InvalidContractVersionIncrement', type: 'error' }, { inputs: [], name: 'NonZeroContractVersionOnInit', type: 'error' }, { inputs: [ { internalType: 'uint256', name: 'expected', type: 'uint256' }, { internalType: 'uint256', name: 'received', type: 'uint256' }, ], name: 'UnexpectedContractVersion', type: 'error', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address', }, { indexed: true, internalType: 'address', name: 'spender', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'value', type: 'uint256', }, ], name: 'Approval', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint256', name: 'version', type: 'uint256', }, ], name: 'ContractVersionSet', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'from', type: 'address' }, { indexed: true, internalType: 'address', name: 'to', type: 'address' }, { indexed: false, internalType: 'uint256', name: 'value', type: 'uint256', }, ], name: 'Transfer', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'from', type: 'address' }, { indexed: true, internalType: 'address', name: 'to', type: 'address' }, { indexed: false, internalType: 'uint256', name: 'sharesValue', type: 'uint256', }, ], name: 'TransferShares', type: 'event', }, { inputs: [], name: 'DOMAIN_SEPARATOR', outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'L2_ERC20_TOKEN_BRIDGE', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'TOKEN_RATE_ORACLE', outputs: [ { internalType: 'contract ITokenRateOracle', name: '', type: 'address' }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'TOKEN_RATE_ORACLE_DECIMALS', outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'TOKEN_TO_WRAP_FROM', outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: 'owner', type: 'address' }, { internalType: 'address', name: 'spender', type: 'address' }, ], name: 'allowance', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: 'spender_', type: 'address' }, { internalType: 'uint256', name: 'amount_', type: 'uint256' }, ], name: 'approve', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [{ internalType: 'address', name: 'account_', type: 'address' }], name: 'balanceOf', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: 'account_', type: 'address' }, { internalType: 'uint256', name: 'tokenAmount_', type: 'uint256' }, ], name: 'bridgeUnwrap', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'account_', type: 'address' }, { internalType: 'uint256', name: 'sharesAmount_', type: 'uint256' }, ], name: 'bridgeWrap', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'decimals', outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'eip712Domain', outputs: [ { internalType: 'bytes1', name: 'fields', type: 'bytes1' }, { internalType: 'string', name: 'name', type: 'string' }, { internalType: 'string', name: 'version', type: 'string' }, { internalType: 'uint256', name: 'chainId', type: 'uint256' }, { internalType: 'address', name: 'verifyingContract', type: 'address' }, { internalType: 'bytes32', name: 'salt', type: 'bytes32' }, { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getContractVersion', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'tokenAmount_', type: 'uint256' }, ], name: 'getSharesByTokens', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'sharesAmount_', type: 'uint256' }, ], name: 'getTokensByShares', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'getTotalShares', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'string', name: 'name_', type: 'string' }, { internalType: 'string', name: 'symbol_', type: 'string' }, { internalType: 'string', name: 'version_', type: 'string' }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'name', outputs: [{ internalType: 'string', name: '', type: 'string' }], stateMutability: 'view', type: 'function', }, { inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], name: 'nonces', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: 'owner_', type: 'address' }, { internalType: 'address', name: 'spender_', type: 'address' }, { internalType: 'uint256', name: 'value_', type: 'uint256' }, { internalType: 'uint256', name: 'deadline_', type: 'uint256' }, { internalType: 'bytes', name: 'signature_', type: 'bytes' }, ], name: 'permit', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'owner_', type: 'address' }, { internalType: 'address', name: 'spender_', type: 'address' }, { internalType: 'uint256', name: 'value_', type: 'uint256' }, { internalType: 'uint256', name: 'deadline_', type: 'uint256' }, { internalType: 'uint8', name: 'v_', type: 'uint8' }, { internalType: 'bytes32', name: 'r_', type: 'bytes32' }, { internalType: 'bytes32', name: 's_', type: 'bytes32' }, ], name: 'permit', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [{ internalType: 'address', name: 'account_', type: 'address' }], name: 'sharesOf', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'symbol', outputs: [{ internalType: 'string', name: '', type: 'string' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'totalSupply', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: 'to_', type: 'address' }, { internalType: 'uint256', name: 'amount_', type: 'uint256' }, ], name: 'transfer', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'from_', type: 'address' }, { internalType: 'address', name: 'to_', type: 'address' }, { internalType: 'uint256', name: 'amount_', type: 'uint256' }, ], name: 'transferFrom', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'recipient_', type: 'address' }, { internalType: 'uint256', name: 'sharesAmount_', type: 'uint256' }, ], name: 'transferShares', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'sender_', type: 'address' }, { internalType: 'address', name: 'recipient_', type: 'address' }, { internalType: 'uint256', name: 'sharesAmount_', type: 'uint256' }, ], name: 'transferSharesFrom', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'tokenAmount_', type: 'uint256' }, ], name: 'unwrap', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'sharesAmount_', type: 'uint256' }, ], name: 'unwrapShares', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'sharesAmount_', type: 'uint256' }, ], name: 'wrap', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function', }, ]; //# sourceMappingURL=rebasableL2Steth.js.map