@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
120 lines • 3.02 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseReferralRegistryFactory = void 0;
const ethers_1 = require("ethers");
class BaseReferralRegistryFactory {
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.BaseReferralRegistryFactory = BaseReferralRegistryFactory;
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "refCode",
type: "uint256",
},
{
indexed: false,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
],
name: "RefCodeDelegated",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "addr",
type: "address",
},
],
name: "defaultCode",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "refCode",
type: "uint256",
},
{
internalType: "address",
name: "to",
type: "address",
},
],
name: "registerCustomCode",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "uint256[]",
name: "codes",
type: "uint256[]",
},
],
name: "timestampsOf",
outputs: [
{
internalType: "uint32[]",
name: "timestamps",
type: "uint32[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "refCode",
type: "uint256",
},
{
internalType: "address",
name: "to",
type: "address",
},
],
name: "transferCodeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
//# sourceMappingURL=BaseReferralRegistryFactory.js.map