rubic-sdk
Version:
Simplify dApp creation
141 lines • 3.91 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EDDY_FINANCE_MODE_SWAP_CONTRACT_ABI = exports.EDDY_FINANCE_MODE_CALCULATE_CONTRACT_ADDRESS = exports.EDDY_FINANCE_MODE_SWAP_CONTRACT_ADDRESS = exports.EDDY_FINANCE_MODE_PROVIDER_CONFIGURATION = void 0;
const default_constants_1 = require("../default-constants");
exports.EDDY_FINANCE_MODE_PROVIDER_CONFIGURATION = {
...default_constants_1.defaultModeProviderConfiguration,
maxTransitTokens: 1
};
exports.EDDY_FINANCE_MODE_SWAP_CONTRACT_ADDRESS = '0xCb0ca072EFb267F17289574Bf563e8dF05c7Ffe3';
exports.EDDY_FINANCE_MODE_CALCULATE_CONTRACT_ADDRESS = '0xc1e624C810D297FD70eF53B0E08F44FABE468591';
exports.EDDY_FINANCE_MODE_SWAP_CONTRACT_ABI = [
{
inputs: [],
name: 'WETH',
outputs: [
{
internalType: 'address',
name: '',
type: 'address'
}
],
stateMutability: 'view',
type: 'function'
},
// ETH → any
{
inputs: [
{
internalType: 'uint256',
name: 'amountOutMin',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'path',
type: 'address[]'
},
{
internalType: 'address',
name: 'to',
type: 'address'
},
{
internalType: 'uint256',
name: 'deadline',
type: 'uint256'
}
],
name: 'swapEddyExactETHForTokens',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256'
}
],
stateMutability: 'payable',
type: 'function'
},
// Any → ETH
{
inputs: [
{
internalType: 'uint256',
name: 'amountIn',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'amountOutMin',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'path',
type: 'address[]'
},
{
internalType: 'address',
name: 'to',
type: 'address'
},
{
internalType: 'uint256',
name: 'deadline',
type: 'uint256'
}
],
name: 'swapEddyExactTokensForEth',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256'
}
],
stateMutability: 'nonpayable',
type: 'function'
},
// Any → Any
{
inputs: [
{
internalType: 'uint256',
name: 'amountIn',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'amountOutMin',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'path',
type: 'address[]'
},
{
internalType: 'address',
name: 'to',
type: 'address'
},
{
internalType: 'uint256',
name: 'deadline',
type: 'uint256'
}
],
name: 'swapEddyTokensForTokens',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256'
}
],
stateMutability: 'nonpayable',
type: 'function'
}
];
//# sourceMappingURL=constants.js.map