Compare commits

...
Author SHA1 Message Date
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
d2bb62a1b8 Version Packages (#840)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-30 11:03:44 -07:00
sidandGitHub db648ed22d Add --clean flag to deploy, publish, build (#836) 2023-03-30 17:50:17 +00:00
Jonas DanielsandGitHub 9b3038291d [chains] - add telos icon & update other chains (#839) 2023-03-30 17:28:37 +00:00
e2581f211e [RectCore] fix auth logout by invalidating and storing invalidated cookie (#837)
Co-authored-by: Jonas Daniels <[email protected]>
2023-03-30 17:21:00 +00:00
39 changed files with 188 additions and 16 deletions
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/auth
## 3.0.9
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@0.2.10
## 3.0.8
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "3.0.8",
"version": "3.0.9",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+6
View File
@@ -1,5 +1,11 @@
# @thirdweb-dev/chains
## 0.1.8
### Patch Changes
- [#839](https://github.com/thirdweb-dev/js/pull/839) [`9b303829`](https://github.com/thirdweb-dev/js/commit/9b3038291d1c9f4eb243718a6070e3dac829a354) Thanks [@jnsdls](https://github.com/jnsdls)! - update chains (add telos icon & avalanche fuji faucet)
## 0.1.7
### Patch Changes
+6
View File
@@ -22,6 +22,12 @@ export default {
"standard": "EIP3091"
}
],
"icon": {
"url": "ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",
"format": "png",
"width": 228,
"height": 228
},
"testnet": false,
"slug": "telos-evm"
} as const;
+6
View File
@@ -18,5 +18,11 @@ export default {
"chainId": 41,
"networkId": 41,
"testnet": true,
"icon": {
"url": "ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",
"format": "png",
"width": 228,
"height": 228
},
"slug": "telos-evm-testnet"
} as const;
+1
View File
@@ -21,6 +21,7 @@ export default {
"https://api.avax-test.network/ext/bc/C/rpc"
],
"faucets": [
"https://faucet.avax.network/",
"https://faucet.avax-test.network/"
],
"nativeCurrency": {
+1 -1
View File
@@ -8,7 +8,7 @@ export default {
"symbol": "CAM",
"decimals": 18
},
"infoURL": "https://camino.foundation/",
"infoURL": "https://camino.network/",
"shortName": "Camino",
"chainId": 500,
"networkId": 1000,
+5 -2
View File
@@ -1,14 +1,17 @@
export default {
"name": "Columbus Test Network",
"chain": "CAM",
"rpc": [],
"rpc": [
"https://columbus-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://columbus.camino.network/ext/bc/C/rpc"
],
"faucets": [],
"nativeCurrency": {
"name": "Camino",
"symbol": "CAM",
"decimals": 18
},
"infoURL": "https://camino.foundation/",
"infoURL": "https://camino.network/",
"shortName": "Columbus",
"chainId": 501,
"networkId": 1001,
+1
View File
@@ -30,6 +30,7 @@ export default {
"explorers": [
{
"name": "meerscan",
"icon": "meer",
"url": "https://evm.meerscan.com",
"standard": "none"
}
+1
View File
@@ -21,6 +21,7 @@ export default {
"explorers": [
{
"name": "meerscan testnet",
"icon": "meer",
"url": "https://testnet.qng.meerscan.io",
"standard": "none"
}
+13
View File
@@ -0,0 +1,13 @@
// @ts-check
/** @typedef { import("../../src/types").Chain } Chain */
/** @type {Partial<Chain>} */
export default {
chainId: 40,
icon: {
url: "ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",
format: "png",
width: 228,
height: 228,
},
};
+14
View File
@@ -0,0 +1,14 @@
// @ts-check
/** @typedef { import("../../src/types").Chain } Chain */
/** @type {Partial<Chain>} */
export default {
chainId: 41,
testnet: true,
icon: {
url: "ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",
format: "png",
width: 228,
height: 228,
},
};
+1
View File
@@ -11,4 +11,5 @@ export default {
sizes: [16, 32, 64, 128, 256, 512],
},
rpc: ["https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}"],
faucets: ["https://faucet.avax.network/"],
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.7",
"version": "0.1.8",
"main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js",
"browser": {
File diff suppressed because one or more lines are too long
+9
View File
@@ -1,5 +1,14 @@
# thirdweb
## 0.10.5
### Patch Changes
- [#836](https://github.com/thirdweb-dev/js/pull/836) [`db648ed2`](https://github.com/thirdweb-dev/js/commit/db648ed22dba672c64e7893865f9ad8b72189dea) Thanks [@shift4id](https://github.com/shift4id)! - Added the --clean flag to build, publish, and deploy
- Updated dependencies []:
- @thirdweb-dev/sdk@3.10.5
## 0.10.4
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "thirdweb",
"main": "dist/cli/index.js",
"version": "0.10.4",
"version": "0.10.5",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+4
View File
@@ -251,6 +251,7 @@ const main = async () => {
program
.command("build")
.description("Compile contract and detect thirdweb contract extensions")
.option("--clean", "clear the cache before building")
.option("-p, --path <project-path>", "path to project", ".")
.option("-d, --debug", "show debug logs")
.option("-a, --all", "run detection on all contracts")
@@ -262,6 +263,7 @@ const main = async () => {
.command("deploy")
.description("Deploy your (or team) contracts securely to blockchains")
.option("-p, --path <project-path>", "path to project", ".")
.option("--clean", "clear the cache before building")
.option("--dry-run", "dry run (skip actually publishing)")
.option("-d, --debug", "show debug logs")
.option("--ci", "Continuous Integration mode")
@@ -310,6 +312,7 @@ const main = async () => {
"-cn, --contract-name [name]",
"Filter for contracts that contain this contract name",
)
.option("--clean", "clear the cache before building")
.option("--dry-run", "dry run (skip actually publishing)")
.option("-d, --debug", "show debug logs")
.option("--ci", "Continuous Integration mode")
@@ -340,6 +343,7 @@ const main = async () => {
"-cn, --contract-name [name]",
"Filter for contracts that contain this contract name",
)
.option("--clean", "clear the cache before building")
.option("--dry-run", "dry run (skip actually publishing)")
.option("-d, --debug", "show debug logs")
.option("--ci", "Continuous Integration mode")
+1 -1
View File
@@ -34,7 +34,7 @@ export async function detectExtensions(options: any) {
let compiledResult;
const compileLoader = spinner("Compiling project...");
try {
compiledResult = await build(projectPath, projectType);
compiledResult = await build(projectPath, projectType, options);
} catch (e) {
compileLoader.fail("Compilation failed");
logger.error(e);
+1 -1
View File
@@ -97,7 +97,7 @@ export async function processProject(
let compiledResult: { contracts: ContractPayload[] };
const compileLoader = spinner("Compiling project...");
try {
compiledResult = await build(projectPath, projectType);
compiledResult = await build(projectPath, projectType, options);
} catch (e) {
compileLoader.fail("Compilation failed");
logger.error(e);
+2
View File
@@ -9,6 +9,7 @@ import { TruffleBuilder } from "./truffle";
export default async function build(
path: string,
projectType: ProjectType,
options: { clean: boolean },
): Promise<{
contracts: ContractPayload[];
}> {
@@ -38,5 +39,6 @@ export default async function build(
return await builder.compile({
name: "",
projectPath: path,
clean: options.clean,
});
}
+3
View File
@@ -25,6 +25,9 @@ export class FoundryBuilder extends BaseBuilder {
process.exit(1);
}
if (options.clean) {
await execute("forge clean", options.projectPath);
}
await execute("forge build --extra-output metadata", options.projectPath);
// get the current config first
+3
View File
@@ -12,6 +12,9 @@ export class HardhatBuilder extends BaseBuilder {
public async compile(options: CompileOptions): Promise<{
contracts: ContractPayload[];
}> {
if (options.clean) {
await execute("npx hardhat clean", options.projectPath);
}
await execute("npx hardhat compile", options.projectPath);
//we get our very own extractor script from the dir that we're in during execution
// this is `./dist/cli` (for all purposes of the CLI)
@@ -1,6 +1,7 @@
import { ContractPayload } from "./ContractPayload";
export type CompileOptions = {
clean: boolean;
projectPath: string;
name: string;
};
+11
View File
@@ -1,5 +1,16 @@
# @thirdweb-dev/react-core
## 3.11.1
### Patch Changes
- [#837](https://github.com/thirdweb-dev/js/pull/837) [`e2581f21`](https://github.com/thirdweb-dev/js/commit/e2581f211e4419105d6169d84a60a4d69759eda9) Thanks [@lucoadam](https://github.com/lucoadam)! - Fixes auth logout by invalidating cookie by storing updated cookie credential
- Updated dependencies [[`9b303829`](https://github.com/thirdweb-dev/js/commit/9b3038291d1c9f4eb243718a6070e3dac829a354)]:
- @thirdweb-dev/chains@0.1.8
- @thirdweb-dev/sdk@3.10.5
- @thirdweb-dev/wallets@0.2.10
## 3.11.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "3.11.0",
"version": "3.11.1",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -28,6 +28,7 @@ export function useLogout() {
await fetch(`${authConfig.authUrl}/logout`, {
method: "POST",
credentials: "include",
});
queryClient.invalidateQueries(cacheKeys.auth.user());
@@ -1,5 +1,7 @@
# @thirdweb-dev/react-native-compat
## 0.2.1
## 0.2.0
### Minor Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.2.0",
"version": "0.2.1",
"author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-native
## 0.2.1
### Patch Changes
- Updated dependencies [[`e2581f21`](https://github.com/thirdweb-dev/js/commit/e2581f211e4419105d6169d84a60a4d69759eda9), [`9b303829`](https://github.com/thirdweb-dev/js/commit/9b3038291d1c9f4eb243718a6070e3dac829a354)]:
- @thirdweb-dev/react-core@3.11.1
- @thirdweb-dev/chains@0.1.8
- @thirdweb-dev/sdk@3.10.5
- @thirdweb-dev/wallets@0.2.10
## 0.2.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.2.0",
"version": "0.2.1",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react
## 3.11.1
### Patch Changes
- Updated dependencies [[`e2581f21`](https://github.com/thirdweb-dev/js/commit/e2581f211e4419105d6169d84a60a4d69759eda9), [`9b303829`](https://github.com/thirdweb-dev/js/commit/9b3038291d1c9f4eb243718a6070e3dac829a354)]:
- @thirdweb-dev/react-core@3.11.1
- @thirdweb-dev/chains@0.1.8
- @thirdweb-dev/sdk@3.10.5
- @thirdweb-dev/wallets@0.2.10
## 3.11.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "3.11.0",
"version": "3.11.1",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/sdk
## 3.10.5
### Patch Changes
- Updated dependencies [[`9b303829`](https://github.com/thirdweb-dev/js/commit/9b3038291d1c9f4eb243718a6070e3dac829a354)]:
- @thirdweb-dev/chains@0.1.8
## 3.10.4
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "3.10.4",
"version": "3.10.5",
"description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk",
"license": "Apache-2.0",
+9
View File
@@ -1,5 +1,14 @@
# @thirdweb-dev/unity-js-bridge
## 0.2.19
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/sdk@3.10.5
- @thirdweb-dev/wallets@0.2.10
- @thirdweb-dev/auth@3.0.9
## 0.2.18
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/unity-js-bridge",
"version": "0.2.18",
"version": "0.2.19",
"main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0",
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/wallets
## 0.2.10
### Patch Changes
- Updated dependencies [[`9b303829`](https://github.com/thirdweb-dev/js/commit/9b3038291d1c9f4eb243718a6070e3dac829a354)]:
- @thirdweb-dev/chains@0.1.8
## 0.2.9
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/wallets",
"version": "0.2.9",
"version": "0.2.10",
"main": "dist/thirdweb-dev-wallets.cjs.js",
"module": "dist/thirdweb-dev-wallets.esm.js",
"types": "dist/thirdweb-dev-wallets.cjs.d.ts",