soulswap-rubik-sdk
Version:
Simplify dApp creation
246 lines • 8.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.crossChainContractAbiV2 = void 0;
exports.crossChainContractAbiV2 = [
{
inputs: [
{
components: [
{
internalType: 'uint256',
name: 'blockchain',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'tokenInAmount',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'firstPath',
type: 'address[]'
},
{
internalType: 'bytes32[]',
name: 'secondPath',
type: 'bytes32[]'
},
{
internalType: 'uint256',
name: 'exactRBCtokenOut',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'tokenOutMin',
type: 'uint256'
},
{
internalType: 'bytes32',
name: 'newAddress',
type: 'bytes32'
},
{
internalType: 'address',
name: 'provider',
type: 'address'
},
{
internalType: 'bool',
name: 'swapToCrypto',
type: 'bool'
},
{
internalType: 'bool',
name: 'swapExactFor',
type: 'bool'
},
{
internalType: 'bool',
name: 'withFee',
type: 'bool'
},
{
internalType: 'string',
name: 'signature',
type: 'string'
}
],
internalType: 'struct ISwapContract.swapToParams',
name: 'params',
type: 'tuple'
}
],
name: 'swapTokensToOtherBlockchain',
outputs: [],
stateMutability: 'payable',
type: 'function'
},
{
inputs: [
{
components: [
{
internalType: 'uint256',
name: 'blockchain',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'tokenInAmount',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'firstPath',
type: 'address[]'
},
{
internalType: 'bytes32[]',
name: 'secondPath',
type: 'bytes32[]'
},
{
internalType: 'uint256',
name: 'exactRBCtokenOut',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'tokenOutMin',
type: 'uint256'
},
{
internalType: 'bytes32',
name: 'newAddress',
type: 'bytes32'
},
{
internalType: 'address',
name: 'provider',
type: 'address'
},
{
internalType: 'bool',
name: 'swapToCrypto',
type: 'bool'
},
{
internalType: 'bool',
name: 'swapExactFor',
type: 'bool'
},
{
internalType: 'bool',
name: 'withFee',
type: 'bool'
},
{
internalType: 'string',
name: 'signature',
type: 'string'
}
],
internalType: 'struct ISwapContract.swapToParams',
name: 'params',
type: 'tuple'
}
],
name: 'swapCryptoToOtherBlockchain',
outputs: [],
stateMutability: 'payable',
type: 'function'
},
{
inputs: [
{
components: [
{
internalType: 'address',
name: 'user',
type: 'address'
},
{
internalType: 'uint256',
name: 'amountWithFee',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'amountOutMin',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'path',
type: 'address[]'
},
{
internalType: 'bytes32',
name: 'originalTxHash',
type: 'bytes32'
},
{
internalType: 'bytes',
name: 'concatSignatures',
type: 'bytes'
}
],
internalType: 'struct ISwapContract.swapFromParams',
name: 'params',
type: 'tuple'
}
],
name: 'swapTokensToUserWithFee',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [
{
components: [
{
internalType: 'address',
name: 'user',
type: 'address'
},
{
internalType: 'uint256',
name: 'amountWithFee',
type: 'uint256'
},
{
internalType: 'uint256',
name: 'amountOutMin',
type: 'uint256'
},
{
internalType: 'address[]',
name: 'path',
type: 'address[]'
},
{
internalType: 'bytes32',
name: 'originalTxHash',
type: 'bytes32'
},
{
internalType: 'bytes',
name: 'concatSignatures',
type: 'bytes'
}
],
internalType: 'struct ISwapContract.swapFromParams',
name: 'params',
type: 'tuple'
}
],
name: 'swapCryptoToUserWithFee',
outputs: [],
stateMutability: 'nonpayable',
type: 'function'
}
];
//# sourceMappingURL=cross-chain-contract-abi-v2.js.map