ufomarketplace-sdk-new
Version:
SDK to interact with set ufo marketplace contracts
169 lines • 4.33 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IWeapon__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
type: "function",
name: "getWeaponInfo",
inputs: [
{
name: "weaponId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "level",
type: "uint256",
internalType: "uint256",
},
{
name: "rarity",
type: "uint256",
internalType: "uint256",
},
{
name: "weaponType",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "initialize",
inputs: [
{
name: "_admin",
type: "address",
internalType: "address",
},
{
name: "_factory",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "openLootBox",
inputs: [
{
name: "_owner",
type: "address",
internalType: "address",
},
{
name: "_rarity",
type: "uint256",
internalType: "uint256",
},
{
name: "_weaponType",
type: "uint256",
internalType: "uint256",
},
{
name: "_tokenId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "purchaseLootBox",
inputs: [
{
name: "_quantity",
type: "uint256",
internalType: "uint256",
},
{
name: "_user",
type: "address",
internalType: "address",
},
{
name: "_totalPrice",
type: "uint256",
internalType: "uint256",
},
{
name: "_tokenType",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "purchaseLootBoxAndSendGift",
inputs: [
{
name: "_quantity",
type: "uint256",
internalType: "uint256",
},
{
name: "_sender",
type: "address",
internalType: "address",
},
{
name: "_receiver",
type: "address",
internalType: "address",
},
{
name: "_totalPrice",
type: "uint256",
internalType: "uint256",
},
{
name: "_tokenType",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "updateWeaponLevel",
inputs: [
{
name: "weaponId",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
];
class IWeapon__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IWeapon__factory = IWeapon__factory;
IWeapon__factory.abi = _abi;
//# sourceMappingURL=IWeapon__factory.js.map