@sentio/cli 3.9.0-rc.1 → 3.9.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +152 -150
- package/package.json +2 -2
- package/src/commands/upload.ts +2 -2
- package/src/network.ts +3 -1
- package/templates/aptos/package.json +1 -1
- package/templates/aptos/tsconfig.json +2 -1
- package/templates/eth/package.json +1 -1
- package/templates/fuel/package.json +1 -1
- package/templates/iota/package.json +1 -1
- package/templates/iota/tsconfig.json +2 -1
- package/templates/raw/package.json +1 -1
- package/templates/solana/package.json +1 -1
- package/templates/sui/package.json +1 -1
- package/templates/sui/tsconfig.json +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/cli",
|
|
3
|
-
"version": "3.9.0-rc.
|
|
3
|
+
"version": "3.9.0-rc.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"bundle": "esbuild --platform=node --format=esm --bundle src/index.ts --outfile=lib/index.js --sourcemap --inject:src/cjs-shim.ts --external:@sentio/sdk",
|
|
44
44
|
"cli": "tsx src/index.ts",
|
|
45
45
|
"compile": "tsc",
|
|
46
|
-
"test": "
|
|
46
|
+
"test": "tsx --test 'src/**/*.test.ts'"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/commands/upload.ts
CHANGED
|
@@ -737,8 +737,8 @@ export async function uploadFile(
|
|
|
737
737
|
}
|
|
738
738
|
try {
|
|
739
739
|
await upload()
|
|
740
|
-
} catch (e) {
|
|
741
|
-
if (e
|
|
740
|
+
} catch (e: any) {
|
|
741
|
+
if (e?.constructor.name === 'FetchError' && e.type === 'system' && e.code === 'EPIPE') {
|
|
742
742
|
error = e
|
|
743
743
|
await new Promise((resolve) => setTimeout(resolve, 1000))
|
|
744
744
|
await tryUploading()
|
package/src/network.ts
CHANGED
|
@@ -158,7 +158,9 @@ export async function resolveNetworkAddresses(config: SentioNetworkConfig): Prom
|
|
|
158
158
|
const id = ethers.id(name)
|
|
159
159
|
return await addressBook['getAddress(bytes32)'](id)
|
|
160
160
|
} catch (e) {
|
|
161
|
-
throw new Error(
|
|
161
|
+
throw new Error(
|
|
162
|
+
`Failed to resolve "${name}" from AddressBook (${addressBookAddr}): ${e instanceof Error ? e.message : String(e)}`
|
|
163
|
+
)
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
}
|