rubic-sdk
Version:
Simplify dApp creation
326 lines • 8.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DRAGON_SWAP_CONTRACT_ABI = exports.DRAGON_SWAP_PROVIDER_CONFIGURATION = exports.DRAGON_SWAP_CONTRACT_ADDRESS = void 0;
const default_constants_1 = require("../default-constants");
exports.DRAGON_SWAP_CONTRACT_ADDRESS = '0xa4cF2F53D1195aDDdE9e4D3aCa54f556895712f2';
exports.DRAGON_SWAP_PROVIDER_CONFIGURATION = {
...default_constants_1.defaultSeiProviderConfiguration,
maxTransitTokens: 2
};
exports.DRAGON_SWAP_CONTRACT_ABI = [
{
inputs: [
{
internalType: 'uint256',
name: 'amountOut',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'reserveIn',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'reserveOut',
type: 'uint256'
}
],
name: 'getAmountIn',
outputs: [
{
internalType: 'uint256',
name: 'amountIn',
type: 'uint256'
}
],
stateMutability: 'pure',
type: 'function'
},
{
inputs: [
{
internalType: 'uint256',
name: 'amountIn',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'reserveIn',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'reserveOut',
type: 'uint256'
}
],
name: 'getAmountOut',
outputs: [
{
internalType: 'uint256',
name: 'amountOut',
type: 'uint256'
}
],
stateMutability: 'pure',
type: 'function'
},
{
inputs: [
{
internalType: 'uint256',
name: 'amountOut',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'path',
type: 'address[]'
}
],
name: 'getAmountsIn',
outputs: [
{
internalType: 'uint256[]',
name: 'amounts',
type: 'uint256[]'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{
internalType: 'uint256',
name: 'amountIn',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'path',
type: 'address[]'
}
],
name: 'getAmountsOut',
outputs: [
{
internalType: 'uint256[]',
name: 'amounts',
type: 'uint256[]'
}
],
stateMutability: 'view',
type: 'function'
},
// SEI → 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: 'swapExactSEIForTokens',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256'
}
],
stateMutability: 'payable',
type: 'function'
},
// Any → SEI
{
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: 'swapExactTokensForSEI',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256'
}
],
stateMutability: 'nonpayable',
type: 'function'
},
{
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: 'swapExactTokensForTokens',
outputs: [
{
internalType: 'uint256[]',
name: 'amounts',
type: 'uint256[]'
}
],
stateMutability: 'nonpayable',
type: 'function'
},
{
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: 'swapExactSEIForTokensSupportingFeeOnTransferTokens',
outputs: [],
stateMutability: 'payable',
type: 'function'
},
{
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: 'swapExactTokensForSEISupportingFeeOnTransferTokens',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
},
{
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: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
}
];
//# sourceMappingURL=constants.js.map