@sei-js/evm
Version:
TypeScript library for EVM interactions on the Sei blockchain
55 lines (54 loc) • 1.99 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ADDRESS_PRECOMPILE_ABI = exports.ADDRESS_PRECOMPILE_ADDRESS = void 0;
/**
* The address of the Address precompile contract.
* This contract gets associated Sei and EVM addresses.
* @category Cosmos Interoperability
*/
exports.ADDRESS_PRECOMPILE_ADDRESS = '0x0000000000000000000000000000000000001004';
/**
* The ABI for the Address precompile contract.
* @category Cosmos Interoperability
*/
exports.ADDRESS_PRECOMPILE_ABI = [
{
inputs: [{ internalType: 'string', name: 'addr', type: 'string' }],
name: 'getEvmAddr',
outputs: [{ internalType: 'address', name: 'response', type: 'address' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [{ internalType: 'address', name: 'addr', type: 'address' }],
name: 'getSeiAddr',
outputs: [{ internalType: 'string', name: 'response', type: 'string' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'string', name: 'v', type: 'string' },
{ internalType: 'string', name: 'r', type: 'string' },
{ internalType: 'string', name: 's', type: 'string' },
{ internalType: 'string', name: 'customMessage', type: 'string' }
],
name: 'associate',
outputs: [
{ internalType: 'string', name: 'seiAddr', type: 'string' },
{ internalType: 'address', name: 'evmAddr', type: 'address' }
],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [{ internalType: 'string', name: 'pubKeyHex', type: 'string' }],
name: 'associatePubKey',
outputs: [
{ internalType: 'string', name: 'seiAddr', type: 'string' },
{ internalType: 'address', name: 'evmAddr', type: 'address' }
],
stateMutability: 'nonpayable',
type: 'function'
}
];