Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c4ac4cc
Implement partial transpilation
Amxx Sep 19, 2023
06f00f1
missing newlines
Amxx Sep 19, 2023
8064ec1
use getData to mark object that are not transpiled
Amxx Sep 19, 2023
890d8de
remove non-transpiled objects from files that are transpiled
Amxx Sep 19, 2023
48d3f61
fix
Amxx Sep 20, 2023
71e16a9
lint
Amxx Sep 20, 2023
f6cd41a
remove unecessary eslint-disable
Amxx Sep 20, 2023
4b19e44
declare TransformData.importPath in the fix-import-directives file
Amxx Sep 20, 2023
bfcb1e1
fix bug when a.local === undefined
Amxx Sep 20, 2023
9b831ea
refactor import for Initializable
Amxx Sep 20, 2023
46c62ab
update test cache
Amxx Sep 20, 2023
d216e47
change linting of the produced solidity code
Amxx Sep 20, 2023
904500b
Apply suggestions from code review
Amxx Sep 21, 2023
d4faaf8
Update src/transformations/rename-identifiers.ts
Amxx Sep 21, 2023
7f53af6
Rename importPath to importFromPeer
Amxx Sep 21, 2023
94c1892
move partial transpilation form class Transform to function transpile
Amxx Sep 21, 2023
8d5a339
add helper function excludeAndImportPathsForPeer
Amxx Sep 21, 2023
1bc7930
Update index.ts
Amxx Sep 21, 2023
2b95625
change exclude return
Amxx Sep 23, 2023
b12b69d
renames
frangio Sep 25, 2023
7d7cb3f
use for..of
frangio Sep 25, 2023
fd1302d
move variable definition inside
frangio Sep 25, 2023
0a3b6cf
Apply suggestions from code review
Amxx Sep 25, 2023
30ab602
resolve any imported node
Amxx Sep 25, 2023
be412df
lint
Amxx Sep 25, 2023
b806261
Switch node type
Amxx Sep 25, 2023
13ddd81
peer import constant variable declarations
Amxx Sep 25, 2023
e2456ab
Update peer-import.ts
Amxx Sep 25, 2023
3037c78
explicit comparaison against undefined
Amxx Sep 25, 2023
eb9a435
minimize change
Amxx Sep 25, 2023
d4a70dd
Update src/transformations/peer-import.ts
Amxx Sep 25, 2023
1f7c353
add assertion
frangio Sep 25, 2023
ea04008
add struct to test
frangio Sep 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
renames
  • Loading branch information
frangio committed Sep 25, 2023
commit b12b69d71de82d3322eeabceb8b59437a3498119
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function getExtraOutputPaths(
return outputPaths;
}

function excludeAndImportPathsForPeer(
function getExcludeAndImportPathsForPeer(
solcOutput: SolcOutput,
peerProject: string,
): [Set<string>, NodeTransformData[]] {
Expand Down Expand Up @@ -124,11 +124,11 @@ export async function transpile(

// if partial transpilation, extract the list of soft exclude, and the peer import paths.
if (options.peerProject !== undefined) {
const [peerSoftExcludedSet, importFromPeerData] = excludeAndImportPathsForPeer(
const [peerSoftExcludeSet, importFromPeerData] = getExcludeAndImportPathsForPeer(
solcOutput,
options.peerProject,
);
peerSoftExcludedSet.forEach(source => softExcludeSet.add(source));
peerSoftExcludeSet.forEach(source => softExcludeSet.add(source));
nodeData.push(...importFromPeerData);
}

Expand Down