From 38ec11776342079d1dfe59137a6234895aa4c749 Mon Sep 17 00:00:00 2001 From: Credence Date: Thu, 26 Sep 2024 03:41:56 +0100 Subject: [PATCH] prettier --- contracts/scripts/system_models.json | 2 +- sdk/packages/eternum/src/provider/index.ts | 28 +++++++++++++++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/contracts/scripts/system_models.json b/contracts/scripts/system_models.json index c55bfa5e4..155fac3a8 100644 --- a/contracts/scripts/system_models.json +++ b/contracts/scripts/system_models.json @@ -30,7 +30,7 @@ "ResourceBridgeFeeSplitConfig", "ResourceBridgeWhitelistConfig" ], - + "DEV_RESOURCE_SYSTEMS": ["Resource", "OwnedResourcesTracker", "Production"], "DEV_BANK_SYSTEMS": ["Tile", "Position", "Owner", "Bank", "Structure", "StructureCount", "CapacityCategory"], "REALM_SYSTEMS": [ diff --git a/sdk/packages/eternum/src/provider/index.ts b/sdk/packages/eternum/src/provider/index.ts index 3622c2966..31286c9a4 100644 --- a/sdk/packages/eternum/src/provider/index.ts +++ b/sdk/packages/eternum/src/provider/index.ts @@ -395,17 +395,39 @@ export class EternumProvider extends EnhancedDojoProvider { } public async create_bank(props: SystemProps.CreateBankProps) { - const { realm_entity_id, coord, owner_fee_num, owner_fee_denom, owner_bridge_fee_dpt_percent, owner_bridge_fee_wtdr_percent, signer } = props; + const { + realm_entity_id, + coord, + owner_fee_num, + owner_fee_denom, + owner_bridge_fee_dpt_percent, + owner_bridge_fee_wtdr_percent, + signer, + } = props; return await this.executeAndCheckTransaction(signer, { contractAddress: getContractByName(this.manifest, `${NAMESPACE}-bank_systems`), entrypoint: "create_bank", - calldata: [realm_entity_id, coord, owner_fee_num, owner_fee_denom, owner_bridge_fee_dpt_percent, owner_bridge_fee_wtdr_percent], + calldata: [ + realm_entity_id, + coord, + owner_fee_num, + owner_fee_denom, + owner_bridge_fee_dpt_percent, + owner_bridge_fee_wtdr_percent, + ], }); } public async create_admin_bank(props: SystemProps.CreateAdminBankProps) { - const { coord, owner_fee_num, owner_fee_denom, owner_bridge_fee_dpt_percent, owner_bridge_fee_wtdr_percent, signer } = props; + const { + coord, + owner_fee_num, + owner_fee_denom, + owner_bridge_fee_dpt_percent, + owner_bridge_fee_wtdr_percent, + signer, + } = props; return await this.executeAndCheckTransaction(signer, { contractAddress: getContractByName(this.manifest, `${NAMESPACE}-dev_bank_systems`),