Skip to content

Commit f14db8d

Browse files
Fix of yarn and fabric problems
1 parent 6a5986f commit f14db8d

File tree

9 files changed

+24
-30
lines changed

9 files changed

+24
-30
lines changed

packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/common/message.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ message NetworkId {
303303
}
304304

305305
enum ERCTokenStandard {
306-
UNSPECIFIED = 0;
307-
ERC20 = 1;
308-
ERC721 = 2;
309-
ERC1155 = 3;
306+
ERC_TOKEN_STANDARD_UNSPECIFIED = 0;
307+
ERC_TOKEN_STANDARD_ERC20 = 1;
308+
ERC_TOKEN_STANDARD_ERC721 = 2;
309+
ERC_TOKEN_STANDARD_ERC1155 = 3;
310310
}
311311

packages/cactus-plugin-satp-hermes/src/main/typescript/cross-chain-mechanisms/bridge/leafs/fabric-leaf.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ export class FabricLeaf
226226

227227
this.connector = new PluginLedgerConnectorFabric({
228228
...options.connectorOptions,
229-
dockerNetworkName:
230-
/*options.connectorOptions.dockerNetworkName ??*/ "host",
229+
dockerNetworkName: options.connectorOptions.dockerNetworkName ?? "host",
231230
} as IPluginLedgerConnectorFabricOptions);
232231

233232
this.ontologyManager = ontologyManager;
@@ -777,7 +776,6 @@ export class FabricLeaf
777776
asset.channelName,
778777
asset.contractName,
779778
safeStableStringify(interactions),
780-
asset.ercTokenStandard.toString(),
781779
],
782780
contractName: this.wrapperContractName,
783781
invocationType: FabricContractInvocationType.Send,

packages/cactus-plugin-satp-hermes/src/main/typescript/generated/proto/cacti/satp/v02/common/message_pb.ts

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/bridge/besu-leaf.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe("Besu Leaf Test with Fungible Tokens", () => {
153153
id: BesuTestEnvironment.BESU_NETWORK_ID,
154154
ledgerType: LedgerType.Besu2X,
155155
},
156-
ercTokenStandard: ERCTokenStandard.ERC20,
156+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC721,
157157
} as EvmFungibleAsset;
158158

159159
const response = await besuLeaf.wrapAsset(asset);
@@ -434,7 +434,7 @@ describe("Besu Leaf Test with Non Fungible Tokens", () => {
434434
id: BesuTestEnvironment.BESU_NETWORK_ID,
435435
ledgerType: LedgerType.Besu2X,
436436
},
437-
ercTokenStandard: ERCTokenStandard.ERC721,
437+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC721,
438438
} as EvmNonFungibleAsset;
439439

440440
const response = await besuLeaf.wrapAsset(nonFungibleAsset);

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/bridge/ethereum-leaf.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe("Ethereum Leaf Test with Fungible Tokens", () => {
156156
id: EthereumTestEnvironment.ETH_NETWORK_ID,
157157
ledgerType: LedgerType.Ethereum,
158158
},
159-
ercTokenStandard: ERCTokenStandard.ERC20,
159+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC20,
160160
} as EvmFungibleAsset;
161161

162162
const response = await ethereumLeaf.wrapAsset(asset);
@@ -450,7 +450,7 @@ describe("Ethereum Leaf Non Fungible Test", () => {
450450
id: EthereumTestEnvironment.ETH_NETWORK_ID,
451451
ledgerType: LedgerType.Ethereum,
452452
},
453-
ercTokenStandard: ERCTokenStandard.ERC721,
453+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC721,
454454
} as EvmNonFungibleAsset;
455455

456456
const response = await ethereumLeaf.wrapAsset(nonFungibleAsset);

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/bridge/fabric-leaf.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ import {
88
pruneDockerAllIfGithubAction,
99
} from "@hyperledger/cactus-test-tooling";
1010

11-
import {
12-
TokenType,
13-
ERCTokenStandard,
14-
} from "../../../../main/typescript/generated/proto/cacti/satp/v02/common/message_pb";
11+
import { TokenType } from "../../../../main/typescript/generated/proto/cacti/satp/v02/common/message_pb";
1512
import { ClaimFormat } from "../../../../main/typescript/generated/proto/cacti/satp/v02/common/message_pb";
1613
import { LedgerType } from "@hyperledger/cactus-core-api";
1714
import { FabricTestEnvironment } from "../../test-utils";
@@ -135,7 +132,6 @@ describe("Fabric Bridge Test", () => {
135132
id: FabricTestEnvironment.FABRIC_NETWORK_ID,
136133
ledgerType: LedgerType.Fabric2,
137134
},
138-
ercTokenStandard: ERCTokenStandard.ERC20,
139135
} as FabricFungibleAsset;
140136

141137
const response = await fabricLeaf.wrapAsset(asset);

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/rollback/rollback-stage-0.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ describe.skip("Rollback Test stage 0", () => {
273273
contractName: besuEnv.getTestFungibleContractName(),
274274
contractAddress: besuEnv.getTestFungibleContractAddress(),
275275
network: besuEnv.network,
276-
ercTokenStandard: ERCTokenStandard.ERC20,
276+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC20,
277277
};
278278
const besuReceipt = await besuLeaf.wrapAsset(besuAsset);
279279
expect(besuReceipt).toBeDefined();
@@ -289,7 +289,7 @@ describe.skip("Rollback Test stage 0", () => {
289289
mspId: "Org1MSP",
290290
channelName: fabricEnv.fabricChannelName,
291291
contractName: fabricEnv.satpContractName,
292-
ercTokenStandard: ERCTokenStandard.ERC20,
292+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC20,
293293
};
294294

295295
const fabricReceipt = await fabricLeaf.wrapAsset(fabricAsset);

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/rollback/rollback-stage-2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ describe.skip("Rollback Test stage 2", () => {
283283
contractName: besuEnv.getTestFungibleContractName(),
284284
contractAddress: besuEnv.getTestFungibleContractAddress(),
285285
network: besuEnv.network,
286-
ercTokenStandard: ERCTokenStandard.ERC20,
286+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC20,
287287
};
288288
const besuReceipt = await besuLeaf.wrapAsset(besuAsset);
289289
log.info(`Besu Asset Wrapped: ${besuReceipt}`);

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/rollback/rollback-stage-3.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ describe.skip("Rollback Test stage 3", () => {
296296
contractName: besuEnv.getTestFungibleContractName(),
297297
contractAddress: besuEnv.getTestFungibleContractAddress(),
298298
network: besuEnv.network,
299-
ercTokenStandard: ERCTokenStandard.ERC20,
299+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC20,
300300
};
301301
const besuReceipt = await besuLeaf.wrapAsset(besuAsset);
302302
expect(besuReceipt).toBeDefined();
@@ -320,7 +320,7 @@ describe.skip("Rollback Test stage 3", () => {
320320
mspId: "Org1MSP",
321321
channelName: fabricEnv.fabricChannelName,
322322
contractName: fabricEnv.satpContractName,
323-
ercTokenStandard: ERCTokenStandard.ERC20,
323+
ercTokenStandard: ERCTokenStandard.ERC_TOKEN_STANDARD_ERC20,
324324
};
325325

326326
const fabricReceipt = await fabricLeaf.wrapAsset(fabricAsset);

0 commit comments

Comments
 (0)