diff --git a/src/apps/stargate/contracts/abis/stargate-aa.json b/src/apps/stargate/contracts/abis/stargate-aa.json deleted file mode 100644 index af444dda3..000000000 --- a/src/apps/stargate/contracts/abis/stargate-aa.json +++ /dev/null @@ -1,417 +0,0 @@ -[ - { - "inputs": [ - { "internalType": "address payable", "name": "_stargateTreasury", "type": "address" }, - { "internalType": "contract IERC20Metadata", "name": "_stargate", "type": "address" }, - { "internalType": "contract IERC20Metadata", "name": "_stableCoin", "type": "address" }, - { "internalType": "uint256", "name": "_auctionStartTime", "type": "uint256" }, - { "internalType": "uint256", "name": "_astgWhitelistMaxAlloc", "type": "uint256" }, - { "internalType": "uint256", "name": "_bondingWhitelistMaxAlloc", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "_to", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "_remainingUSD", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "_remainingSTG", "type": "uint256" } - ], - "name": "FinalWithdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "_sender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "_astgAmount", "type": "uint256" } - ], - "name": "FirstAuctioned", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "_sender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "_astgAmount", "type": "uint256" }, - { "indexed": false, "internalType": "uint256", "name": "_stgAmount", "type": "uint256" } - ], - "name": "Redeemed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "_sender", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "_astgAmount", "type": "uint256" } - ], - "name": "SecondAuctioned", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "Transfer", - "type": "event" - }, - { - "inputs": [], - "name": "FIRST_AUCTION_DURATION", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SECOND_AUCTION_DURATION", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "STARGATE_FOR_AUCTION", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "USD_AUCTION_CAP", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "VEST_DURATION", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address[]", "name": "addresses", "type": "address[]" }], - "name": "addAuctionAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address[]", "name": "addresses", "type": "address[]" }], - "name": "addBondAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "astgDecimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "astgWhitelist", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "astgWhitelistMaxAlloc", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "bondingWhitelist", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "bondingWhitelistMaxAlloc", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "capStgAuctionAmount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "countOfMaxAuction", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } - ], - "name": "decreaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "_requestAmount", "type": "uint256" }], - "name": "enterFirstAuction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "_requestAmount", "type": "uint256" }], - "name": "enterSecondAuction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "firstAuctionEndTime", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "firstAuctionStartTime", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "user", "type": "address" }], - "name": "getFirstAuctionCapAmount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ownerWithdrawn", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { "inputs": [], "name": "redeem", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [{ "internalType": "address", "name": "_redeemer", "type": "address" }], - "name": "redeemable", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "redeemedShares", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "remainingUsdQuota", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [], - "name": "secondAuctionAdditionalAllocCap", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "secondAuctionAllocCap", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "secondAuctionEndTime", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "secondAuctionInit", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stableCoin", - "outputs": [{ "internalType": "contract IERC20Metadata", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stargateToken", - "outputs": [{ "internalType": "contract IERC20Metadata", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stargateTreasury", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vestStartTime", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "_to", "type": "address" }], - "name": "withdrawRemainingStargate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/src/apps/stargate/contracts/ethers/StargateAa.ts b/src/apps/stargate/contracts/ethers/StargateAa.ts deleted file mode 100644 index 6f14b27d4..000000000 --- a/src/apps/stargate/contracts/ethers/StargateAa.ts +++ /dev/null @@ -1,1057 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from 'ethers'; -import type { FunctionFragment, Result, EventFragment } from '@ethersproject/abi'; -import type { Listener, Provider } from '@ethersproject/providers'; -import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from './common'; - -export interface StargateAaInterface extends utils.Interface { - functions: { - 'FIRST_AUCTION_DURATION()': FunctionFragment; - 'SECOND_AUCTION_DURATION()': FunctionFragment; - 'STARGATE_FOR_AUCTION()': FunctionFragment; - 'USD_AUCTION_CAP()': FunctionFragment; - 'VEST_DURATION()': FunctionFragment; - 'addAuctionAddresses(address[])': FunctionFragment; - 'addBondAddresses(address[])': FunctionFragment; - 'allowance(address,address)': FunctionFragment; - 'approve(address,uint256)': FunctionFragment; - 'astgDecimals()': FunctionFragment; - 'astgWhitelist(address)': FunctionFragment; - 'astgWhitelistMaxAlloc()': FunctionFragment; - 'balanceOf(address)': FunctionFragment; - 'bondingWhitelist(address)': FunctionFragment; - 'bondingWhitelistMaxAlloc()': FunctionFragment; - 'capStgAuctionAmount()': FunctionFragment; - 'countOfMaxAuction()': FunctionFragment; - 'decimals()': FunctionFragment; - 'decreaseAllowance(address,uint256)': FunctionFragment; - 'enterFirstAuction(uint256)': FunctionFragment; - 'enterSecondAuction(uint256)': FunctionFragment; - 'firstAuctionEndTime()': FunctionFragment; - 'firstAuctionStartTime()': FunctionFragment; - 'getFirstAuctionCapAmount(address)': FunctionFragment; - 'increaseAllowance(address,uint256)': FunctionFragment; - 'name()': FunctionFragment; - 'owner()': FunctionFragment; - 'ownerWithdrawn()': FunctionFragment; - 'redeem()': FunctionFragment; - 'redeemable(address)': FunctionFragment; - 'redeemedShares(address)': FunctionFragment; - 'remainingUsdQuota()': FunctionFragment; - 'renounceOwnership()': FunctionFragment; - 'secondAuctionAdditionalAllocCap()': FunctionFragment; - 'secondAuctionAllocCap()': FunctionFragment; - 'secondAuctionEndTime()': FunctionFragment; - 'secondAuctionInit()': FunctionFragment; - 'stableCoin()': FunctionFragment; - 'stargateToken()': FunctionFragment; - 'stargateTreasury()': FunctionFragment; - 'symbol()': FunctionFragment; - 'totalSupply()': FunctionFragment; - 'transfer(address,uint256)': FunctionFragment; - 'transferFrom(address,address,uint256)': FunctionFragment; - 'transferOwnership(address)': FunctionFragment; - 'vestStartTime()': FunctionFragment; - 'withdrawRemainingStargate(address)': FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | 'FIRST_AUCTION_DURATION' - | 'SECOND_AUCTION_DURATION' - | 'STARGATE_FOR_AUCTION' - | 'USD_AUCTION_CAP' - | 'VEST_DURATION' - | 'addAuctionAddresses' - | 'addBondAddresses' - | 'allowance' - | 'approve' - | 'astgDecimals' - | 'astgWhitelist' - | 'astgWhitelistMaxAlloc' - | 'balanceOf' - | 'bondingWhitelist' - | 'bondingWhitelistMaxAlloc' - | 'capStgAuctionAmount' - | 'countOfMaxAuction' - | 'decimals' - | 'decreaseAllowance' - | 'enterFirstAuction' - | 'enterSecondAuction' - | 'firstAuctionEndTime' - | 'firstAuctionStartTime' - | 'getFirstAuctionCapAmount' - | 'increaseAllowance' - | 'name' - | 'owner' - | 'ownerWithdrawn' - | 'redeem' - | 'redeemable' - | 'redeemedShares' - | 'remainingUsdQuota' - | 'renounceOwnership' - | 'secondAuctionAdditionalAllocCap' - | 'secondAuctionAllocCap' - | 'secondAuctionEndTime' - | 'secondAuctionInit' - | 'stableCoin' - | 'stargateToken' - | 'stargateTreasury' - | 'symbol' - | 'totalSupply' - | 'transfer' - | 'transferFrom' - | 'transferOwnership' - | 'vestStartTime' - | 'withdrawRemainingStargate', - ): FunctionFragment; - - encodeFunctionData(functionFragment: 'FIRST_AUCTION_DURATION', values?: undefined): string; - encodeFunctionData(functionFragment: 'SECOND_AUCTION_DURATION', values?: undefined): string; - encodeFunctionData(functionFragment: 'STARGATE_FOR_AUCTION', values?: undefined): string; - encodeFunctionData(functionFragment: 'USD_AUCTION_CAP', values?: undefined): string; - encodeFunctionData(functionFragment: 'VEST_DURATION', values?: undefined): string; - encodeFunctionData(functionFragment: 'addAuctionAddresses', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'addBondAddresses', values: [PromiseOrValue[]]): string; - encodeFunctionData(functionFragment: 'allowance', values: [PromiseOrValue, PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'approve', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'astgDecimals', values?: undefined): string; - encodeFunctionData(functionFragment: 'astgWhitelist', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'astgWhitelistMaxAlloc', values?: undefined): string; - encodeFunctionData(functionFragment: 'balanceOf', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'bondingWhitelist', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'bondingWhitelistMaxAlloc', values?: undefined): string; - encodeFunctionData(functionFragment: 'capStgAuctionAmount', values?: undefined): string; - encodeFunctionData(functionFragment: 'countOfMaxAuction', values?: undefined): string; - encodeFunctionData(functionFragment: 'decimals', values?: undefined): string; - encodeFunctionData( - functionFragment: 'decreaseAllowance', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'enterFirstAuction', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'enterSecondAuction', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'firstAuctionEndTime', values?: undefined): string; - encodeFunctionData(functionFragment: 'firstAuctionStartTime', values?: undefined): string; - encodeFunctionData(functionFragment: 'getFirstAuctionCapAmount', values: [PromiseOrValue]): string; - encodeFunctionData( - functionFragment: 'increaseAllowance', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'name', values?: undefined): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData(functionFragment: 'ownerWithdrawn', values?: undefined): string; - encodeFunctionData(functionFragment: 'redeem', values?: undefined): string; - encodeFunctionData(functionFragment: 'redeemable', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'redeemedShares', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'remainingUsdQuota', values?: undefined): string; - encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; - encodeFunctionData(functionFragment: 'secondAuctionAdditionalAllocCap', values?: undefined): string; - encodeFunctionData(functionFragment: 'secondAuctionAllocCap', values?: undefined): string; - encodeFunctionData(functionFragment: 'secondAuctionEndTime', values?: undefined): string; - encodeFunctionData(functionFragment: 'secondAuctionInit', values?: undefined): string; - encodeFunctionData(functionFragment: 'stableCoin', values?: undefined): string; - encodeFunctionData(functionFragment: 'stargateToken', values?: undefined): string; - encodeFunctionData(functionFragment: 'stargateTreasury', values?: undefined): string; - encodeFunctionData(functionFragment: 'symbol', values?: undefined): string; - encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string; - encodeFunctionData( - functionFragment: 'transfer', - values: [PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData( - functionFragment: 'transferFrom', - values: [PromiseOrValue, PromiseOrValue, PromiseOrValue], - ): string; - encodeFunctionData(functionFragment: 'transferOwnership', values: [PromiseOrValue]): string; - encodeFunctionData(functionFragment: 'vestStartTime', values?: undefined): string; - encodeFunctionData(functionFragment: 'withdrawRemainingStargate', values: [PromiseOrValue]): string; - - decodeFunctionResult(functionFragment: 'FIRST_AUCTION_DURATION', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'SECOND_AUCTION_DURATION', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'STARGATE_FOR_AUCTION', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'USD_AUCTION_CAP', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'VEST_DURATION', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'addAuctionAddresses', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'addBondAddresses', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'astgDecimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'astgWhitelist', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'astgWhitelistMaxAlloc', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'bondingWhitelist', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'bondingWhitelistMaxAlloc', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'capStgAuctionAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'countOfMaxAuction', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decimals', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'decreaseAllowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'enterFirstAuction', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'enterSecondAuction', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'firstAuctionEndTime', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'firstAuctionStartTime', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'getFirstAuctionCapAmount', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'increaseAllowance', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'ownerWithdrawn', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeem', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeemable', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'redeemedShares', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'remainingUsdQuota', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'secondAuctionAdditionalAllocCap', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'secondAuctionAllocCap', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'secondAuctionEndTime', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'secondAuctionInit', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stableCoin', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stargateToken', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'stargateTreasury', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'symbol', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'vestStartTime', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'withdrawRemainingStargate', data: BytesLike): Result; - - events: { - 'Approval(address,address,uint256)': EventFragment; - 'FinalWithdrawal(address,uint256,uint256)': EventFragment; - 'FirstAuctioned(address,uint256)': EventFragment; - 'OwnershipTransferred(address,address)': EventFragment; - 'Redeemed(address,uint256,uint256)': EventFragment; - 'SecondAuctioned(address,uint256)': EventFragment; - 'Transfer(address,address,uint256)': EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: 'Approval'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'FinalWithdrawal'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'FirstAuctioned'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Redeemed'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'SecondAuctioned'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'Transfer'): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent<[string, string, BigNumber], ApprovalEventObject>; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface FinalWithdrawalEventObject { - _to: string; - _remainingUSD: BigNumber; - _remainingSTG: BigNumber; -} -export type FinalWithdrawalEvent = TypedEvent<[string, BigNumber, BigNumber], FinalWithdrawalEventObject>; - -export type FinalWithdrawalEventFilter = TypedEventFilter; - -export interface FirstAuctionedEventObject { - _sender: string; - _astgAmount: BigNumber; -} -export type FirstAuctionedEvent = TypedEvent<[string, BigNumber], FirstAuctionedEventObject>; - -export type FirstAuctionedEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent<[string, string], OwnershipTransferredEventObject>; - -export type OwnershipTransferredEventFilter = TypedEventFilter; - -export interface RedeemedEventObject { - _sender: string; - _astgAmount: BigNumber; - _stgAmount: BigNumber; -} -export type RedeemedEvent = TypedEvent<[string, BigNumber, BigNumber], RedeemedEventObject>; - -export type RedeemedEventFilter = TypedEventFilter; - -export interface SecondAuctionedEventObject { - _sender: string; - _astgAmount: BigNumber; -} -export type SecondAuctionedEvent = TypedEvent<[string, BigNumber], SecondAuctionedEventObject>; - -export type SecondAuctionedEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent<[string, string, BigNumber], TransferEventObject>; - -export type TransferEventFilter = TypedEventFilter; - -export interface StargateAa extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: StargateAaInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>; - - listeners(eventFilter?: TypedEventFilter): Array>; - listeners(eventName?: string): Array; - removeAllListeners(eventFilter: TypedEventFilter): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - FIRST_AUCTION_DURATION(overrides?: CallOverrides): Promise<[BigNumber]>; - - SECOND_AUCTION_DURATION(overrides?: CallOverrides): Promise<[BigNumber]>; - - STARGATE_FOR_AUCTION(overrides?: CallOverrides): Promise<[BigNumber]>; - - USD_AUCTION_CAP(overrides?: CallOverrides): Promise<[BigNumber]>; - - VEST_DURATION(overrides?: CallOverrides): Promise<[BigNumber]>; - - addAuctionAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - addBondAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - astgDecimals(overrides?: CallOverrides): Promise<[number]>; - - astgWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - astgWhitelistMaxAlloc(overrides?: CallOverrides): Promise<[BigNumber]>; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - bondingWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[boolean]>; - - bondingWhitelistMaxAlloc(overrides?: CallOverrides): Promise<[BigNumber]>; - - capStgAuctionAmount(overrides?: CallOverrides): Promise<[BigNumber]>; - - countOfMaxAuction(overrides?: CallOverrides): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterFirstAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterSecondAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - firstAuctionEndTime(overrides?: CallOverrides): Promise<[BigNumber]>; - - firstAuctionStartTime(overrides?: CallOverrides): Promise<[BigNumber]>; - - getFirstAuctionCapAmount(user: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - ownerWithdrawn(overrides?: CallOverrides): Promise<[boolean]>; - - redeem(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - redeemable(_redeemer: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - redeemedShares(arg0: PromiseOrValue, overrides?: CallOverrides): Promise<[BigNumber]>; - - remainingUsdQuota(overrides?: CallOverrides): Promise<[BigNumber]>; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - secondAuctionAdditionalAllocCap(overrides?: CallOverrides): Promise<[BigNumber]>; - - secondAuctionAllocCap(overrides?: CallOverrides): Promise<[BigNumber]>; - - secondAuctionEndTime(overrides?: CallOverrides): Promise<[BigNumber]>; - - secondAuctionInit(overrides?: CallOverrides): Promise<[boolean]>; - - stableCoin(overrides?: CallOverrides): Promise<[string]>; - - stargateToken(overrides?: CallOverrides): Promise<[string]>; - - stargateTreasury(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - vestStartTime(overrides?: CallOverrides): Promise<[BigNumber]>; - - withdrawRemainingStargate( - _to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - FIRST_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - SECOND_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - STARGATE_FOR_AUCTION(overrides?: CallOverrides): Promise; - - USD_AUCTION_CAP(overrides?: CallOverrides): Promise; - - VEST_DURATION(overrides?: CallOverrides): Promise; - - addAuctionAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - addBondAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - astgDecimals(overrides?: CallOverrides): Promise; - - astgWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - astgWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - capStgAuctionAmount(overrides?: CallOverrides): Promise; - - countOfMaxAuction(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterFirstAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterSecondAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - firstAuctionEndTime(overrides?: CallOverrides): Promise; - - firstAuctionStartTime(overrides?: CallOverrides): Promise; - - getFirstAuctionCapAmount(user: PromiseOrValue, overrides?: CallOverrides): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - ownerWithdrawn(overrides?: CallOverrides): Promise; - - redeem(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - redeemable(_redeemer: PromiseOrValue, overrides?: CallOverrides): Promise; - - redeemedShares(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - remainingUsdQuota(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - secondAuctionAdditionalAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionEndTime(overrides?: CallOverrides): Promise; - - secondAuctionInit(overrides?: CallOverrides): Promise; - - stableCoin(overrides?: CallOverrides): Promise; - - stargateToken(overrides?: CallOverrides): Promise; - - stargateTreasury(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - vestStartTime(overrides?: CallOverrides): Promise; - - withdrawRemainingStargate( - _to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - callStatic: { - FIRST_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - SECOND_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - STARGATE_FOR_AUCTION(overrides?: CallOverrides): Promise; - - USD_AUCTION_CAP(overrides?: CallOverrides): Promise; - - VEST_DURATION(overrides?: CallOverrides): Promise; - - addAuctionAddresses(addresses: PromiseOrValue[], overrides?: CallOverrides): Promise; - - addBondAddresses(addresses: PromiseOrValue[], overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - astgDecimals(overrides?: CallOverrides): Promise; - - astgWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - astgWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - capStgAuctionAmount(overrides?: CallOverrides): Promise; - - countOfMaxAuction(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - enterFirstAuction(_requestAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - enterSecondAuction(_requestAmount: PromiseOrValue, overrides?: CallOverrides): Promise; - - firstAuctionEndTime(overrides?: CallOverrides): Promise; - - firstAuctionStartTime(overrides?: CallOverrides): Promise; - - getFirstAuctionCapAmount(user: PromiseOrValue, overrides?: CallOverrides): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - ownerWithdrawn(overrides?: CallOverrides): Promise; - - redeem(overrides?: CallOverrides): Promise; - - redeemable(_redeemer: PromiseOrValue, overrides?: CallOverrides): Promise; - - redeemedShares(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - remainingUsdQuota(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - secondAuctionAdditionalAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionEndTime(overrides?: CallOverrides): Promise; - - secondAuctionInit(overrides?: CallOverrides): Promise; - - stableCoin(overrides?: CallOverrides): Promise; - - stargateToken(overrides?: CallOverrides): Promise; - - stargateTreasury(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - transferOwnership(newOwner: PromiseOrValue, overrides?: CallOverrides): Promise; - - vestStartTime(overrides?: CallOverrides): Promise; - - withdrawRemainingStargate(_to: PromiseOrValue, overrides?: CallOverrides): Promise; - }; - - filters: { - 'Approval(address,address,uint256)'( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null, - ): ApprovalEventFilter; - - 'FinalWithdrawal(address,uint256,uint256)'( - _to?: null, - _remainingUSD?: null, - _remainingSTG?: null, - ): FinalWithdrawalEventFilter; - FinalWithdrawal(_to?: null, _remainingUSD?: null, _remainingSTG?: null): FinalWithdrawalEventFilter; - - 'FirstAuctioned(address,uint256)'(_sender?: null, _astgAmount?: null): FirstAuctionedEventFilter; - FirstAuctioned(_sender?: null, _astgAmount?: null): FirstAuctionedEventFilter; - - 'OwnershipTransferred(address,address)'( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null, - ): OwnershipTransferredEventFilter; - - 'Redeemed(address,uint256,uint256)'(_sender?: null, _astgAmount?: null, _stgAmount?: null): RedeemedEventFilter; - Redeemed(_sender?: null, _astgAmount?: null, _stgAmount?: null): RedeemedEventFilter; - - 'SecondAuctioned(address,uint256)'(_sender?: null, _astgAmount?: null): SecondAuctionedEventFilter; - SecondAuctioned(_sender?: null, _astgAmount?: null): SecondAuctionedEventFilter; - - 'Transfer(address,address,uint256)'( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null, - ): TransferEventFilter; - }; - - estimateGas: { - FIRST_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - SECOND_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - STARGATE_FOR_AUCTION(overrides?: CallOverrides): Promise; - - USD_AUCTION_CAP(overrides?: CallOverrides): Promise; - - VEST_DURATION(overrides?: CallOverrides): Promise; - - addAuctionAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - addBondAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - astgDecimals(overrides?: CallOverrides): Promise; - - astgWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - astgWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - capStgAuctionAmount(overrides?: CallOverrides): Promise; - - countOfMaxAuction(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterFirstAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterSecondAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - firstAuctionEndTime(overrides?: CallOverrides): Promise; - - firstAuctionStartTime(overrides?: CallOverrides): Promise; - - getFirstAuctionCapAmount(user: PromiseOrValue, overrides?: CallOverrides): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - ownerWithdrawn(overrides?: CallOverrides): Promise; - - redeem(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - redeemable(_redeemer: PromiseOrValue, overrides?: CallOverrides): Promise; - - redeemedShares(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - remainingUsdQuota(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - secondAuctionAdditionalAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionEndTime(overrides?: CallOverrides): Promise; - - secondAuctionInit(overrides?: CallOverrides): Promise; - - stableCoin(overrides?: CallOverrides): Promise; - - stargateToken(overrides?: CallOverrides): Promise; - - stargateTreasury(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - vestStartTime(overrides?: CallOverrides): Promise; - - withdrawRemainingStargate( - _to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; - - populateTransaction: { - FIRST_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - SECOND_AUCTION_DURATION(overrides?: CallOverrides): Promise; - - STARGATE_FOR_AUCTION(overrides?: CallOverrides): Promise; - - USD_AUCTION_CAP(overrides?: CallOverrides): Promise; - - VEST_DURATION(overrides?: CallOverrides): Promise; - - addAuctionAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - addBondAddresses( - addresses: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides, - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - astgDecimals(overrides?: CallOverrides): Promise; - - astgWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - astgWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - balanceOf(account: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelist(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - bondingWhitelistMaxAlloc(overrides?: CallOverrides): Promise; - - capStgAuctionAmount(overrides?: CallOverrides): Promise; - - countOfMaxAuction(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterFirstAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - enterSecondAuction( - _requestAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - firstAuctionEndTime(overrides?: CallOverrides): Promise; - - firstAuctionStartTime(overrides?: CallOverrides): Promise; - - getFirstAuctionCapAmount(user: PromiseOrValue, overrides?: CallOverrides): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - name(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - ownerWithdrawn(overrides?: CallOverrides): Promise; - - redeem(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - redeemable(_redeemer: PromiseOrValue, overrides?: CallOverrides): Promise; - - redeemedShares(arg0: PromiseOrValue, overrides?: CallOverrides): Promise; - - remainingUsdQuota(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue }): Promise; - - secondAuctionAdditionalAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionAllocCap(overrides?: CallOverrides): Promise; - - secondAuctionEndTime(overrides?: CallOverrides): Promise; - - secondAuctionInit(overrides?: CallOverrides): Promise; - - stableCoin(overrides?: CallOverrides): Promise; - - stargateToken(overrides?: CallOverrides): Promise; - - stargateTreasury(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - - vestStartTime(overrides?: CallOverrides): Promise; - - withdrawRemainingStargate( - _to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue }, - ): Promise; - }; -} diff --git a/src/apps/stargate/contracts/ethers/factories/StargateAa__factory.ts b/src/apps/stargate/contracts/ethers/factories/StargateAa__factory.ts deleted file mode 100644 index 74446f164..000000000 --- a/src/apps/stargate/contracts/ethers/factories/StargateAa__factory.ts +++ /dev/null @@ -1,919 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from 'ethers'; -import type { Provider } from '@ethersproject/providers'; -import type { StargateAa, StargateAaInterface } from '../StargateAa'; - -const _abi = [ - { - inputs: [ - { - internalType: 'address payable', - name: '_stargateTreasury', - type: 'address', - }, - { - internalType: 'contract IERC20Metadata', - name: '_stargate', - type: 'address', - }, - { - internalType: 'contract IERC20Metadata', - name: '_stableCoin', - type: 'address', - }, - { - internalType: 'uint256', - name: '_auctionStartTime', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_astgWhitelistMaxAlloc', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '_bondingWhitelistMaxAlloc', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_remainingUSD', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_remainingSTG', - type: 'uint256', - }, - ], - name: 'FinalWithdrawal', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_astgAmount', - type: 'uint256', - }, - ], - name: 'FirstAuctioned', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_astgAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_stgAmount', - type: 'uint256', - }, - ], - name: 'Redeemed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_astgAmount', - type: 'uint256', - }, - ], - name: 'SecondAuctioned', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - inputs: [], - name: 'FIRST_AUCTION_DURATION', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'SECOND_AUCTION_DURATION', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'STARGATE_FOR_AUCTION', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'USD_AUCTION_CAP', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'VEST_DURATION', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: 'addresses', - type: 'address[]', - }, - ], - name: 'addAuctionAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: 'addresses', - type: 'address[]', - }, - ], - name: 'addBondAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'astgDecimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'astgWhitelist', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'astgWhitelistMaxAlloc', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'bondingWhitelist', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'bondingWhitelistMaxAlloc', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'capStgAuctionAmount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'countOfMaxAuction', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [ - { - internalType: 'uint8', - name: '', - type: 'uint8', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'subtractedValue', - type: 'uint256', - }, - ], - name: 'decreaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_requestAmount', - type: 'uint256', - }, - ], - name: 'enterFirstAuction', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_requestAmount', - type: 'uint256', - }, - ], - name: 'enterSecondAuction', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'firstAuctionEndTime', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'firstAuctionStartTime', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'user', - type: 'address', - }, - ], - name: 'getFirstAuctionCapAmount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'addedValue', - type: 'uint256', - }, - ], - name: 'increaseAllowance', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ownerWithdrawn', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'redeem', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_redeemer', - type: 'address', - }, - ], - name: 'redeemable', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'redeemedShares', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'remainingUsdQuota', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'secondAuctionAdditionalAllocCap', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'secondAuctionAllocCap', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'secondAuctionEndTime', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'secondAuctionInit', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'stableCoin', - outputs: [ - { - internalType: 'contract IERC20Metadata', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'stargateToken', - outputs: [ - { - internalType: 'contract IERC20Metadata', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'stargateTreasury', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'vestStartTime', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_to', - type: 'address', - }, - ], - name: 'withdrawRemainingStargate', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export class StargateAa__factory { - static readonly abi = _abi; - static createInterface(): StargateAaInterface { - return new utils.Interface(_abi) as StargateAaInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): StargateAa { - return new Contract(address, _abi, signerOrProvider) as StargateAa; - } -} diff --git a/src/apps/stargate/contracts/ethers/factories/index.ts b/src/apps/stargate/contracts/ethers/factories/index.ts index 0843351c9..03e0b9858 100644 --- a/src/apps/stargate/contracts/ethers/factories/index.ts +++ b/src/apps/stargate/contracts/ethers/factories/index.ts @@ -1,7 +1,6 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { StargateAa__factory } from './StargateAa__factory'; export { StargateChef__factory } from './StargateChef__factory'; export { StargateChefBase__factory } from './StargateChefBase__factory'; export { StargateEth__factory } from './StargateEth__factory'; diff --git a/src/apps/stargate/contracts/ethers/index.ts b/src/apps/stargate/contracts/ethers/index.ts index 430fb82a9..d2388675e 100644 --- a/src/apps/stargate/contracts/ethers/index.ts +++ b/src/apps/stargate/contracts/ethers/index.ts @@ -1,7 +1,6 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export type { StargateAa } from './StargateAa'; export type { StargateChef } from './StargateChef'; export type { StargateChefBase } from './StargateChefBase'; export type { StargateEth } from './StargateEth'; @@ -9,7 +8,6 @@ export type { StargateFactory } from './StargateFactory'; export type { StargatePool } from './StargatePool'; export type { StargateVe } from './StargateVe'; export * as factories from './factories'; -export { StargateAa__factory } from './factories/StargateAa__factory'; export { StargateChefBase__factory } from './factories/StargateChefBase__factory'; export { StargateChef__factory } from './factories/StargateChef__factory'; export { StargateEth__factory } from './factories/StargateEth__factory'; diff --git a/src/apps/stargate/contracts/index.ts b/src/apps/stargate/contracts/index.ts index 6ffe4dcf2..1e10ba06b 100644 --- a/src/apps/stargate/contracts/index.ts +++ b/src/apps/stargate/contracts/index.ts @@ -5,7 +5,6 @@ import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; import { - StargateAa__factory, StargateChef__factory, StargateChefBase__factory, StargateEth__factory, @@ -23,9 +22,6 @@ export class StargateContractFactory extends ContractFactory { super((network: Network) => appToolkit.getNetworkProvider(network)); } - stargateAa({ address, network }: ContractOpts) { - return StargateAa__factory.connect(address, this.appToolkit.getNetworkProvider(network)); - } stargateChef({ address, network }: ContractOpts) { return StargateChef__factory.connect(address, this.appToolkit.getNetworkProvider(network)); } @@ -46,7 +42,6 @@ export class StargateContractFactory extends ContractFactory { } } -export type { StargateAa } from './ethers'; export type { StargateChef } from './ethers'; export type { StargateChefBase } from './ethers'; export type { StargateEth } from './ethers'; diff --git a/src/apps/stargate/ethereum/stargate.auction-locked.token-fetcher.ts b/src/apps/stargate/ethereum/stargate.auction-locked.token-fetcher.ts deleted file mode 100644 index 33e729428..000000000 --- a/src/apps/stargate/ethereum/stargate.auction-locked.token-fetcher.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; -import { GetUnderlyingTokensParams } from '~position/template/app-token.template.types'; - -import { StargateAa, StargateContractFactory } from '../contracts'; - -@PositionTemplate() -export class EthereumStargateAuctionLockedTokenFetcher extends AppTokenTemplatePositionFetcher { - groupLabel = 'Auction Locked'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(StargateContractFactory) protected readonly contractFactory: StargateContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string): StargateAa { - return this.contractFactory.stargateAa({ address, network: this.network }); - } - - getAddresses() { - return ['0x4dfcad285ef39fed84e77edf1b7dbc442565e55e']; - } - - async getUnderlyingTokenDefinitions({ contract }: GetUnderlyingTokensParams) { - return [{ address: await contract.stargateToken(), network: this.network }]; - } - - async getPricePerShare() { - return [4]; // 1 aaSTG = 4 STG - } -} diff --git a/src/apps/stargate/stargate.module.ts b/src/apps/stargate/stargate.module.ts index 8193d026a..6cc02766b 100644 --- a/src/apps/stargate/stargate.module.ts +++ b/src/apps/stargate/stargate.module.ts @@ -16,7 +16,6 @@ import { BinanceSmartChainStargateFarmContractPositionFetcher } from './binance- import { BinanceSmartChainStargatePoolTokenFetcher } from './binance-smart-chain/stargate.pool.token-fetcher'; import { BinanceSmartChainStargateVotingEscrowContractPositionFetcher } from './binance-smart-chain/stargate.voting-escrow.contract-position-fetcher'; import { StargateContractFactory } from './contracts'; -import { EthereumStargateAuctionLockedTokenFetcher } from './ethereum/stargate.auction-locked.token-fetcher'; import { EthereumStargateEthTokenFetcher } from './ethereum/stargate.eth.token-fetcher'; import { EthereumStargateFarmContractPositionFetcher } from './ethereum/stargate.farm.contract-position-fetcher'; import { EthereumStargatePoolTokenFetcher } from './ethereum/stargate.pool.token-fetcher'; @@ -57,7 +56,6 @@ import { PolygonStargateVotingEscrowContractPositionFetcher } from './polygon/st EthereumStargateFarmContractPositionFetcher, EthereumStargatePoolTokenFetcher, EthereumStargateVotingEscrowContractPositionFetcher, - EthereumStargateAuctionLockedTokenFetcher, // Fantom FantomStargateFarmContractPositionFetcher, FantomStargatePoolTokenFetcher,