Skip to content

Commit

Permalink
Merge pull request #369 from cowprotocol/release/1.13
Browse files Browse the repository at this point in the history
[🎏 RELEASE 1.13.0] "Sayonara Claim"
  • Loading branch information
fairlighteth authored Apr 7, 2022
2 parents e718f86 + 2028ef3 commit 94c5331
Show file tree
Hide file tree
Showing 36 changed files with 1,028 additions and 176 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ REACT_APP_FORTMATIC_SITE_VERIFICATION="LzjrtdM7hqVJfvvA"

# Domain regex (to detect environment)
REACT_APP_DOMAIN_REGEX_LOCAL="^(:?localhost:\d{2,5}|(?:127|192)(?:\.[0-9]{1,3}){3})"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--gpswapui\.review"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--cowswap\.review"
REACT_APP_DOMAIN_REGEX_DEV="^cowswap\.dev"
REACT_APP_DOMAIN_REGEX_STAGING="^cowswap\.staging"
REACT_APP_DOMAIN_REGEX_PROD="^cowswap\.exchange$"
Expand Down
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ REACT_APP_FORTMATIC_KEY_PROD="pk_live_7BD8004CBBF5CDD6"

# Domain regex (to detect environment)
REACT_APP_DOMAIN_REGEX_LOCAL="^(:?localhost:\d{2,5}|(?:127|192)(?:\.[0-9]{1,3}){3})"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--gpswapui\.review"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--cowswap\.review"
REACT_APP_DOMAIN_REGEX_DEV="^cowswap\.dev"
REACT_APP_DOMAIN_REGEX_STAGING="^cowswap\.staging"
REACT_APP_DOMAIN_REGEX_PROD="^cowswap\.exchange$"
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/prepare_production_deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ -n "$VERSION_TAG" ] && [ -n "$PROD_DEPLOYMENT_HOOK_TOKEN" ] && [ -n "$PROD_
then
curl --silent --output /dev/null --write-out "%{http_code}" -X POST \
-F token="$PROD_DEPLOYMENT_HOOK_TOKEN" \
-F ref=master \
-F ref=main \
-F "variables[TRIGGER_RELEASE_COMMIT_TAG]=$VERSION_TAG" \
$PROD_DEPLOYMENT_HOOK_URL
else
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: CI

on:
# build on PR creation/updates, also when pushing to master/develop, or create a release
# build on PR creation/updates, also when pushing to main/develop, or create a release
pull_request:
types: [opened, synchronize]
push:
branches: [master, develop]
branches: [main, develop]
tags: [v*]


env:
REPO_NAME_SLUG: gpswapui
REPO_NAME_SLUG: cowswap
PR_NUMBER: ${{ github.event.number }}
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
REACT_APP_PINATA_API_KEY: ${{ secrets.REACT_APP_PINATA_API_KEY }}
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
run: aws s3 sync website s3://${{ secrets.AWS_DEV_BUCKET_NAME }} --delete

- name: 'Deploy to S3: Staging'
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: aws s3 sync website s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/current --delete

- name: Get the version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
tags: [v*]

env:
REPO_NAME_SLUG: gpswapui
REPO_NAME_SLUG: cowswap
REACT_APP_PINATA_API_KEY: ${{ secrets.REACT_APP_PINATA_API_KEY }}
REACT_APP_PINATA_SECRET_API_KEY: ${{ secrets.REACT_APP_PINATA_SECRET_API_KEY }}

Expand Down
26 changes: 26 additions & 0 deletions src/custom/abis/MerkleDrop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "merkleProof",
"type": "bytes32[]"
}
],
"name": "claim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]

33 changes: 33 additions & 0 deletions src/custom/abis/TokenDistro.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "balances",
"outputs": [
{
"internalType": "uint256",
"name": "allocatedTokens",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "claimed",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "claim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
124 changes: 124 additions & 0 deletions src/custom/abis/types/MerkleDrop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
BaseContract,
ContractTransaction,
Overrides,
CallOverrides,
} 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 } from "./common";

interface MerkleDropInterface extends ethers.utils.Interface {
functions: {
"claim(uint256,uint256,bytes32[])": FunctionFragment;
};

encodeFunctionData(
functionFragment: "claim",
values: [BigNumberish, BigNumberish, BytesLike[]]
): string;

decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;

events: {};
}

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

listeners<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
): Array<TypedListener<EventArgsArray, EventArgsObject>>;
off<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
on<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
once<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
): this;

listeners(eventName?: string): Array<Listener>;
off(eventName: string, listener: Listener): this;
on(eventName: string, listener: Listener): this;
once(eventName: string, listener: Listener): this;
removeListener(eventName: string, listener: Listener): this;
removeAllListeners(eventName?: string): this;

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

interface: MerkleDropInterface;

functions: {
claim(
index: BigNumberish,
amount: BigNumberish,
merkleProof: BytesLike[],
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
};

claim(
index: BigNumberish,
amount: BigNumberish,
merkleProof: BytesLike[],
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;

callStatic: {
claim(
index: BigNumberish,
amount: BigNumberish,
merkleProof: BytesLike[],
overrides?: CallOverrides
): Promise<void>;
};

filters: {};

estimateGas: {
claim(
index: BigNumberish,
amount: BigNumberish,
merkleProof: BytesLike[],
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
};

populateTransaction: {
claim(
index: BigNumberish,
amount: BigNumberish,
merkleProof: BytesLike[],
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
};
}
141 changes: 141 additions & 0 deletions src/custom/abis/types/TokenDistro.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
BaseContract,
ContractTransaction,
Overrides,
CallOverrides,
} 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 } from "./common";

interface TokenDistroInterface extends ethers.utils.Interface {
functions: {
"balances(address)": FunctionFragment;
"claim()": FunctionFragment;
};

encodeFunctionData(functionFragment: "balances", values: [string]): string;
encodeFunctionData(functionFragment: "claim", values?: undefined): string;

decodeFunctionResult(functionFragment: "balances", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;

events: {};
}

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

listeners<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
): Array<TypedListener<EventArgsArray, EventArgsObject>>;
off<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
on<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
once<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
listener: TypedListener<EventArgsArray, EventArgsObject>
): this;
removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
): this;

listeners(eventName?: string): Array<Listener>;
off(eventName: string, listener: Listener): this;
on(eventName: string, listener: Listener): this;
once(eventName: string, listener: Listener): this;
removeListener(eventName: string, listener: Listener): this;
removeAllListeners(eventName?: string): this;

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

interface: TokenDistroInterface;

functions: {
balances(
arg0: string,
overrides?: CallOverrides
): Promise<
[BigNumber, BigNumber] & {
allocatedTokens: BigNumber;
claimed: BigNumber;
}
>;

claim(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
};

balances(
arg0: string,
overrides?: CallOverrides
): Promise<
[BigNumber, BigNumber] & { allocatedTokens: BigNumber; claimed: BigNumber }
>;

claim(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;

callStatic: {
balances(
arg0: string,
overrides?: CallOverrides
): Promise<
[BigNumber, BigNumber] & {
allocatedTokens: BigNumber;
claimed: BigNumber;
}
>;

claim(overrides?: CallOverrides): Promise<void>;
};

filters: {};

estimateGas: {
balances(arg0: string, overrides?: CallOverrides): Promise<BigNumber>;

claim(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
};

populateTransaction: {
balances(
arg0: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;

claim(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
};
}
Loading

0 comments on commit 94c5331

Please sign in to comment.