Skip to content

Commit 19331a3

Browse files
Fix composite subgraph scaffolding for case-sensitive environments (#1963)
* fix composite subgraph scaffolding for case-sensitive environments * remove tests that don't test anything new
1 parent 0c34c86 commit 19331a3

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

packages/cli/src/command-helpers/contracts.test.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,31 @@ import { loadRegistry } from './registry.js';
55

66
// An object with some test cases for contract deployment block numbers
77
const TEST_CONTRACT_START_BLOCKS = {
8-
'arbitrum-one': {
9-
'0xF4d73326C13a4Fc5FD7A064217e12780e9Bd62c3': 226_981,
10-
},
11-
avalanche: {
12-
'0xc35DADB65012eC5796536bD9864eD8773aBc74C4': 506_190,
13-
},
14-
bsc: {
15-
'0xc35DADB65012eC5796536bD9864eD8773aBc74C4': 5_205_069,
16-
},
17-
mainnet: {
18-
'0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd': 10_736_242,
19-
},
20-
matic: {
21-
'0x0769fd68dFb93167989C6f7254cd0D766Fb2841F': 13_911_377,
22-
},
23-
moonbeam: {
24-
'0x011E52E4E40CF9498c79273329E8827b21E2e581': 505_060,
25-
},
8+
// rate limited APIs temporarily disabled
9+
// 'arbitrum-one': {
10+
// '0xF4d73326C13a4Fc5FD7A064217e12780e9Bd62c3': 226_981,
11+
// },
12+
// bsc: {
13+
// '0xc35DADB65012eC5796536bD9864eD8773aBc74C4': 5_205_069,
14+
// },
15+
// mainnet: {
16+
// '0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd': 10_736_242,
17+
// },
18+
// matic: {
19+
// '0x0769fd68dFb93167989C6f7254cd0D766Fb2841F': 13_911_377,
20+
// },
21+
// moonbeam: {
22+
// '0x011E52E4E40CF9498c79273329E8827b21E2e581': 505_060,
23+
// },
2624
optimism: {
2725
'0xc35DADB65012eC5796536bD9864eD8773aBc74C4': 7_019_815,
2826
},
2927
gnosis: {
3028
'0xdDCbf776dF3dE60163066A5ddDF2277cB445E0F3': 16_655_565,
3129
},
30+
// avalanche: {
31+
// '0xc35DADB65012eC5796536bD9864eD8773aBc74C4': 506_190,
32+
// },
3233
// not stable RPCs
3334
// moonriver: {
3435
// '0x3dB01570D97631f69bbb0ba39796865456Cf89A5': 800_950,

packages/cli/src/protocols/subgraph/scaffold/manifest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { strings } from 'gluegun';
2+
13
export const source = ({
24
contract,
35
startBlock,
@@ -30,5 +32,5 @@ export const mapping = ({
3032
entity: ${entity}`,
3133
)
3234
.join(' ')}
33-
file: ./src/${contractName}.ts
35+
file: ./src/${strings.kebabCase(contractName)}.ts
3436
`;

0 commit comments

Comments
 (0)