Skip to content

Commit

Permalink
Rebuild: contract abis based on the new network tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Jul 5, 2021
1 parent 3b7b92f commit b2447d8
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 14 deletions.
132 changes: 122 additions & 10 deletions src/contracts/extensions/coinMachine/2/CoinMachine.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ interface CoinMachineInterface extends Interface {
_windowSize,
_targetPerPeriod,
_maxPerPeriod,
_userLimitFraction,
_startingPrice,
_whitelist,
]: [
Expand All @@ -63,6 +64,7 @@ interface CoinMachineInterface extends Interface {
BigNumberish,
BigNumberish,
BigNumberish,
BigNumberish,
string
]): string;
}>;
Expand Down Expand Up @@ -101,7 +103,15 @@ interface CoinMachineInterface extends Interface {

getCurrentPrice: TypedFunctionDescription<{ encode([]: []): string }>;

getNumAvailable: TypedFunctionDescription<{ encode([]: []): string }>;
getSellableTokens: TypedFunctionDescription<{ encode([]: []): string }>;

getUserLimit: TypedFunctionDescription<{
encode([_user]: [string]): string;
}>;

getMaxPurchase: TypedFunctionDescription<{
encode([_user]: [string]): string;
}>;

getWhitelist: TypedFunctionDescription<{ encode([]: []): string }>;

Expand Down Expand Up @@ -297,6 +307,7 @@ export class CoinMachine extends Contract {
_windowSize: BigNumberish,
_targetPerPeriod: BigNumberish,
_maxPerPeriod: BigNumberish,
_userLimitFraction: BigNumberish,
_startingPrice: BigNumberish,
_whitelist: string,
overrides?: TransactionOverrides
Expand All @@ -313,13 +324,14 @@ export class CoinMachine extends Contract {
* @param _whitelist Optionally an address of a whitelist contract to use can be provided. Pass 0x0 if no whitelist being used
* @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust
*/
"initialise(address,address,uint256,uint256,uint256,uint256,uint256,address)"(
"initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)"(
_token: string,
_purchaseToken: string,
_periodLength: BigNumberish,
_windowSize: BigNumberish,
_targetPerPeriod: BigNumberish,
_maxPerPeriod: BigNumberish,
_userLimitFraction: BigNumberish,
_startingPrice: BigNumberish,
_whitelist: string,
overrides?: TransactionOverrides
Expand Down Expand Up @@ -500,12 +512,44 @@ export class CoinMachine extends Contract {
/**
* Get the number of remaining tokens for sale this period
*/
getNumAvailable(overrides?: TransactionOverrides): Promise<BigNumber>;
getSellableTokens(overrides?: TransactionOverrides): Promise<BigNumber>;

/**
* Get the number of remaining tokens for sale this period
*/
"getNumAvailable()"(overrides?: TransactionOverrides): Promise<BigNumber>;
"getSellableTokens()"(overrides?: TransactionOverrides): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in total
*/
getUserLimit(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in total
*/
"getUserLimit(address)"(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in a period
*/
getMaxPurchase(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in a period
*/
"getMaxPurchase(address)"(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the address of the whitelist (if exists)
Expand Down Expand Up @@ -668,6 +712,7 @@ export class CoinMachine extends Contract {
_windowSize: BigNumberish,
_targetPerPeriod: BigNumberish,
_maxPerPeriod: BigNumberish,
_userLimitFraction: BigNumberish,
_startingPrice: BigNumberish,
_whitelist: string,
overrides?: TransactionOverrides
Expand All @@ -684,13 +729,14 @@ export class CoinMachine extends Contract {
* @param _whitelist Optionally an address of a whitelist contract to use can be provided. Pass 0x0 if no whitelist being used
* @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust
*/
"initialise(address,address,uint256,uint256,uint256,uint256,uint256,address)"(
"initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)"(
_token: string,
_purchaseToken: string,
_periodLength: BigNumberish,
_windowSize: BigNumberish,
_targetPerPeriod: BigNumberish,
_maxPerPeriod: BigNumberish,
_userLimitFraction: BigNumberish,
_startingPrice: BigNumberish,
_whitelist: string,
overrides?: TransactionOverrides
Expand Down Expand Up @@ -867,12 +913,44 @@ export class CoinMachine extends Contract {
/**
* Get the number of remaining tokens for sale this period
*/
getNumAvailable(overrides?: TransactionOverrides): Promise<BigNumber>;
getSellableTokens(overrides?: TransactionOverrides): Promise<BigNumber>;

/**
* Get the number of remaining tokens for sale this period
*/
"getNumAvailable()"(overrides?: TransactionOverrides): Promise<BigNumber>;
"getSellableTokens()"(overrides?: TransactionOverrides): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in total
*/
getUserLimit(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in total
*/
"getUserLimit(address)"(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in a period
*/
getMaxPurchase(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in a period
*/
"getMaxPurchase(address)"(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the address of the whitelist (if exists)
Expand Down Expand Up @@ -1049,6 +1127,7 @@ export class CoinMachine extends Contract {
_windowSize: BigNumberish,
_targetPerPeriod: BigNumberish,
_maxPerPeriod: BigNumberish,
_userLimitFraction: BigNumberish,
_startingPrice: BigNumberish,
_whitelist: string,
overrides?: TransactionOverrides
Expand All @@ -1065,13 +1144,14 @@ export class CoinMachine extends Contract {
* @param _whitelist Optionally an address of a whitelist contract to use can be provided. Pass 0x0 if no whitelist being used
* @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust
*/
"initialise(address,address,uint256,uint256,uint256,uint256,uint256,address)"(
"initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)"(
_token: string,
_purchaseToken: string,
_periodLength: BigNumberish,
_windowSize: BigNumberish,
_targetPerPeriod: BigNumberish,
_maxPerPeriod: BigNumberish,
_userLimitFraction: BigNumberish,
_startingPrice: BigNumberish,
_whitelist: string,
overrides?: TransactionOverrides
Expand Down Expand Up @@ -1248,12 +1328,44 @@ export class CoinMachine extends Contract {
/**
* Get the number of remaining tokens for sale this period
*/
getNumAvailable(overrides?: TransactionOverrides): Promise<BigNumber>;
getSellableTokens(overrides?: TransactionOverrides): Promise<BigNumber>;

/**
* Get the number of remaining tokens for sale this period
*/
"getNumAvailable()"(overrides?: TransactionOverrides): Promise<BigNumber>;
"getSellableTokens()"(overrides?: TransactionOverrides): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in total
*/
getUserLimit(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in total
*/
"getUserLimit(address)"(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in a period
*/
getMaxPurchase(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the maximum amount of tokens a user can purchase in a period
*/
"getMaxPurchase(address)"(
_user: string,
overrides?: TransactionOverrides
): Promise<BigNumber>;

/**
* Get the address of the whitelist (if exists)
Expand Down
Loading

0 comments on commit b2447d8

Please sign in to comment.