Skip to content

Commit

Permalink
time test
Browse files Browse the repository at this point in the history
  • Loading branch information
julesGoullee committed Nov 11, 2021
1 parent 5883c0d commit a791772
Show file tree
Hide file tree
Showing 53 changed files with 6,703 additions and 5,589 deletions.
14 changes: 7 additions & 7 deletions packages/contracts/test/CyberDestinationFactories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ describe('CyberDestinationFactories', function () {
const timeEnd = parseInt((Date.now() / 1000 + 1000).toString())
const priceStart = 100
const priceEnd = 10
const stepDuration = 20
const stepDuration = 200
const amountCap = 10
const shareCyber = 50
const nonce = 0
Expand Down Expand Up @@ -1023,7 +1023,7 @@ describe('CyberDestinationFactories', function () {
)
const tokenId = 0
const mintPrice = await memory.contract.getMintPriceForToken(tokenId)
expect(mintPrice).to.be.eq('91')
expect(mintPrice).to.be.eq('100')
})

it('Should get mint price for token fixed price', async () => {
Expand Down Expand Up @@ -1154,10 +1154,10 @@ describe('CyberDestinationFactories', function () {
it('Should get mint price for token without cap', async () => {
const uri = 'Qmsfzefi221ifjzifj'
const timeStart = parseInt((Date.now() / 1000 - 100).toString())
const timeEnd = parseInt((Date.now() / 1000 + 100).toString())
const timeEnd = parseInt((Date.now() / 1000 + 1000).toString())
const priceStart = 100
const priceEnd = 10
const stepDuration = 20
const stepDuration = 200
const amountCap = 0
const shareCyber = 50
const nonce = 0
Expand Down Expand Up @@ -1189,7 +1189,7 @@ describe('CyberDestinationFactories', function () {
)
const tokenId = 0
const mintPrice = await memory.contract.getMintPriceForToken(tokenId)
expect(mintPrice).to.be.eq('55')
expect(mintPrice).to.be.eq('100')
})

it('Should get mint price for token throw when cap reach', async () => {
Expand All @@ -1198,7 +1198,7 @@ describe('CyberDestinationFactories', function () {
const timeEnd = parseInt((Date.now() / 1000 + 1000).toString())
const priceStart = 100
const priceEnd = 10
const stepDuration = 20
const stepDuration = 200
const amountCap = 1
const shareCyber = 50
const nonce = 0
Expand Down Expand Up @@ -1230,7 +1230,7 @@ describe('CyberDestinationFactories', function () {
)
const tokenId = 0
const mintPrice = await memory.contract.getMintPriceForToken(tokenId)
expect(mintPrice).to.be.eq('91')
expect(mintPrice).to.be.eq('100')
await memory.contract.connect(memory.other2).mint(tokenId, {
value: mintPrice,
})
Expand Down
104 changes: 69 additions & 35 deletions packages/contracts/typechain-types/BaseRelayRecipient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,93 +12,127 @@ import {
BaseContract,
ContractTransaction,
CallOverrides,
} from 'ethers'
import { BytesLike } from '@ethersproject/bytes'
import { Listener, Provider } from '@ethersproject/providers'
import { FunctionFragment, EventFragment, Result } from '@ethersproject/abi'
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
} from './common'
} from "./common";

export interface BaseRelayRecipientInterface extends ethers.utils.Interface {
functions: {
'isTrustedForwarder(address)': FunctionFragment
}
"c_0xd4dc4272(bytes32)": FunctionFragment;
"isTrustedForwarder(address)": FunctionFragment;
};

encodeFunctionData(
functionFragment: 'isTrustedForwarder',
functionFragment: "c_0xd4dc4272",
values: [BytesLike]
): string;
encodeFunctionData(
functionFragment: "isTrustedForwarder",
values: [string]
): string
): string;

decodeFunctionResult(
functionFragment: 'isTrustedForwarder',
functionFragment: "c_0xd4dc4272",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "isTrustedForwarder",
data: BytesLike
): Result
): Result;

events: {}
events: {};
}

export interface BaseRelayRecipient extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this
attach(addressOrName: string): this
deployed(): Promise<this>
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;

interface: BaseRelayRecipientInterface
interface: BaseRelayRecipientInterface;

queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TEvent>>
): Promise<Array<TEvent>>;

listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>
): Array<TypedListener<TEvent>>
listeners(eventName?: string): Array<Listener>
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>
): this
removeAllListeners(eventName?: string): this
off: OnEvent<this>
on: OnEvent<this>
once: OnEvent<this>
removeListener: OnEvent<this>
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;

functions: {
c_0xd4dc4272(
c__0xd4dc4272: BytesLike,
overrides?: CallOverrides
): Promise<[void]>;

isTrustedForwarder(
forwarder: string,
overrides?: CallOverrides
): Promise<[boolean]>
}
): Promise<[boolean]>;
};

c_0xd4dc4272(
c__0xd4dc4272: BytesLike,
overrides?: CallOverrides
): Promise<void>;

isTrustedForwarder(
forwarder: string,
overrides?: CallOverrides
): Promise<boolean>
): Promise<boolean>;

callStatic: {
c_0xd4dc4272(
c__0xd4dc4272: BytesLike,
overrides?: CallOverrides
): Promise<void>;

isTrustedForwarder(
forwarder: string,
overrides?: CallOverrides
): Promise<boolean>
}
): Promise<boolean>;
};

filters: {}
filters: {};

estimateGas: {
c_0xd4dc4272(
c__0xd4dc4272: BytesLike,
overrides?: CallOverrides
): Promise<BigNumber>;

isTrustedForwarder(
forwarder: string,
overrides?: CallOverrides
): Promise<BigNumber>
}
): Promise<BigNumber>;
};

populateTransaction: {
c_0xd4dc4272(
c__0xd4dc4272: BytesLike,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;

isTrustedForwarder(
forwarder: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>
}
): Promise<PopulatedTransaction>;
};
}
70 changes: 35 additions & 35 deletions packages/contracts/typechain-types/BaseRelayRecipientStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,94 +12,94 @@ import {
BaseContract,
ContractTransaction,
CallOverrides,
} from 'ethers'
import { BytesLike } from '@ethersproject/bytes'
import { Listener, Provider } from '@ethersproject/providers'
import { FunctionFragment, EventFragment, Result } from '@ethersproject/abi'
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
} from './common'
} from "./common";

export interface BaseRelayRecipientStorageInterface
extends ethers.utils.Interface {
functions: {
'c_0x08a8f2bf(bytes32)': FunctionFragment
}
"c_0x08a8f2bf(bytes32)": FunctionFragment;
};

encodeFunctionData(
functionFragment: 'c_0x08a8f2bf',
functionFragment: "c_0x08a8f2bf",
values: [BytesLike]
): string
): string;

decodeFunctionResult(
functionFragment: 'c_0x08a8f2bf',
functionFragment: "c_0x08a8f2bf",
data: BytesLike
): Result
): Result;

events: {}
events: {};
}

export interface BaseRelayRecipientStorage extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this
attach(addressOrName: string): this
deployed(): Promise<this>
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;

interface: BaseRelayRecipientStorageInterface
interface: BaseRelayRecipientStorageInterface;

queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TEvent>>
): Promise<Array<TEvent>>;

listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>
): Array<TypedListener<TEvent>>
listeners(eventName?: string): Array<Listener>
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>
): this
removeAllListeners(eventName?: string): this
off: OnEvent<this>
on: OnEvent<this>
once: OnEvent<this>
removeListener: OnEvent<this>
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;

functions: {
c_0x08a8f2bf(
c__0x08a8f2bf: BytesLike,
overrides?: CallOverrides
): Promise<[void]>
}
): Promise<[void]>;
};

c_0x08a8f2bf(
c__0x08a8f2bf: BytesLike,
overrides?: CallOverrides
): Promise<void>
): Promise<void>;

callStatic: {
c_0x08a8f2bf(
c__0x08a8f2bf: BytesLike,
overrides?: CallOverrides
): Promise<void>
}
): Promise<void>;
};

filters: {}
filters: {};

estimateGas: {
c_0x08a8f2bf(
c__0x08a8f2bf: BytesLike,
overrides?: CallOverrides
): Promise<BigNumber>
}
): Promise<BigNumber>;
};

populateTransaction: {
c_0x08a8f2bf(
c__0x08a8f2bf: BytesLike,
overrides?: CallOverrides
): Promise<PopulatedTransaction>
}
): Promise<PopulatedTransaction>;
};
}
Loading

0 comments on commit a791772

Please sign in to comment.