Skip to content

Commit fc8e860

Browse files
committed
fmt
1 parent 3ac0751 commit fc8e860

21 files changed

+40
-68103
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export declare const METHODS_TO_EXTRACT: readonly ["PKPPermissions.getPermittedActions", "PKPPermissions.getPermittedAddresses", "PKPPermissions.isPermittedAction", "PKPPermissions.isPermittedAddress", "PKPPermissions.getPermittedAuthMethods", "PKPPermissions.getPermittedAuthMethodScopes", "PKPPermissions.addPermittedAction", "PKPPermissions.addPermittedAddress", "PKPPermissions.addPermittedAuthMethodScope", "PKPPermissions.addPermittedAuthMethod", "PKPPermissions.removePermittedAction", "PKPPermissions.removePermittedAddress", "PKPPermissions.removePermittedAuthMethod", "PKPPermissions.removePermittedAuthMethodScope", "PKPPermissions.getTokenIdsForAuthMethod", "PKPNFT.tokenOfOwnerByIndex", "PKPNFT.mintCost", "PKPNFT.safeTransferFrom", "PKPNFT.mintNext", "PKPNFT.claimAndMint", "PKPHelper.claimAndMintNextAndAddAuthMethodsWithTypes", "PKPHelper.mintNextAndAddAuthMethods", "Staking.getActiveUnkickedValidatorStructsAndCounts", "PriceFeed.getNodesForRequest", "PubkeyRouter.deriveEthAddressFromPubkey", "PubkeyRouter.ethAddressToPkpId", "PubkeyRouter.getPubkey", "PubkeyRouter.getEthAddress", "Ledger.deposit", "Ledger.depositForUser", "Ledger.balance", "Ledger.stableBalance", "Ledger.requestWithdraw", "Ledger.latestWithdrawRequest", "Ledger.userWithdrawDelay", "Ledger.withdraw", "PaymentDelegation.getPayersAndRestrictions", "PaymentDelegation.getUsers", "PaymentDelegation.getRestriction", "PaymentDelegation.getPayers", "PaymentDelegation.delegatePayments", "PaymentDelegation.undelegatePayments", "PaymentDelegation.delegatePaymentsBatch", "PaymentDelegation.undelegatePaymentsBatch", "PaymentDelegation.setRestriction"];
2-
export type ContractName = "PKPPermissions" | "PKPNFT" | "PKPHelper" | "Staking" | "PubkeyRouter";
2+
export type ContractName = 'PKPPermissions' | 'PKPNFT' | 'PKPHelper' | 'Staking' | 'PubkeyRouter';
33
export type ExtractMethodName<T extends string> = T extends `${ContractName}.${infer Method}` ? Method : never;

packages/contracts/dist/config/networks.d.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export declare const NETWORKS_REPO = "networks";
88
export declare const LIT_ASSETS_REPO = "lit-assets";
99
export declare const PROD_PATH_BY_NETWORK: {
1010
readonly datil: "datil-prod";
11-
readonly "datil-dev": "datil-dev";
12-
readonly "datil-test": "datil-test";
13-
readonly "naga-dev": "naga-dev";
14-
readonly "naga-test": "naga-test";
15-
readonly "naga-staging": "naga-staging";
11+
readonly 'datil-dev': "datil-dev";
12+
readonly 'datil-test': "datil-test";
13+
readonly 'naga-dev': "naga-dev";
14+
readonly 'naga-test': "naga-test";
15+
readonly 'naga-staging': "naga-staging";
1616
};
1717
export declare const DEV_PATH_BY_NETWORK: {
1818
readonly develop: "develop";
@@ -40,11 +40,11 @@ export declare const NETWORK_PATHS: {
4040
*/
4141
readonly networkToPath: {
4242
readonly datil: "datil-prod";
43-
readonly "datil-dev": "datil-dev";
44-
readonly "datil-test": "datil-test";
45-
readonly "naga-dev": "naga-dev";
46-
readonly "naga-test": "naga-test";
47-
readonly "naga-staging": "naga-staging";
43+
readonly 'datil-dev': "datil-dev";
44+
readonly 'datil-test': "datil-test";
45+
readonly 'naga-dev': "naga-dev";
46+
readonly 'naga-test': "naga-test";
47+
readonly 'naga-staging': "naga-staging";
4848
};
4949
/**
5050
* Constructs the full path for production networks
@@ -73,19 +73,19 @@ export declare const NETWORKS: {
7373
readonly prod: {
7474
readonly networks: ProdNetworkName[];
7575
readonly deployedContracts: {
76-
readonly "datil-dev": "https://raw.githubusercontent.com/LIT-Protocol/networks/main/datil-dev/deployed-lit-node-contracts-temp.json";
77-
readonly "datil-test": "https://raw.githubusercontent.com/LIT-Protocol/networks/main/datil-test/deployed-lit-node-contracts-temp.json";
76+
readonly 'datil-dev': "https://raw.githubusercontent.com/LIT-Protocol/networks/main/datil-dev/deployed-lit-node-contracts-temp.json";
77+
readonly 'datil-test': "https://raw.githubusercontent.com/LIT-Protocol/networks/main/datil-test/deployed-lit-node-contracts-temp.json";
7878
readonly datil: "https://raw.githubusercontent.com/LIT-Protocol/networks/main/datil-prod/deployed-lit-node-contracts-temp.json";
79-
readonly "naga-dev": "https://raw.githubusercontent.com/LIT-Protocol/networks/main/naga-dev/deployed-lit-node-contracts-temp.json";
80-
readonly "naga-staging": "https://raw.githubusercontent.com/LIT-Protocol/networks/main/naga-staging/deployed-lit-node-contracts-temp.json";
81-
readonly "naga-test": "https://raw.githubusercontent.com/LIT-Protocol/networks/main/naga-test/deployed-lit-node-contracts-temp.json";
79+
readonly 'naga-dev': "https://raw.githubusercontent.com/LIT-Protocol/networks/main/naga-dev/deployed-lit-node-contracts-temp.json";
80+
readonly 'naga-staging': "https://raw.githubusercontent.com/LIT-Protocol/networks/main/naga-staging/deployed-lit-node-contracts-temp.json";
81+
readonly 'naga-test': "https://raw.githubusercontent.com/LIT-Protocol/networks/main/naga-test/deployed-lit-node-contracts-temp.json";
8282
};
8383
};
8484
readonly dev: {
8585
readonly networks: DevNetworkName[];
8686
readonly deployedContracts: {
8787
readonly develop: "https://raw.githubusercontent.com/LIT-Protocol/networks/main/naga-dev/deployed-lit-node-contracts-temp.json";
88-
readonly "datil-clone": "https://raw.githubusercontent.com/LIT-Protocol/networks/main/datil-clone/deployed-lit-node-contracts-temp.json";
88+
readonly 'datil-clone': "https://raw.githubusercontent.com/LIT-Protocol/networks/main/datil-clone/deployed-lit-node-contracts-temp.json";
8989
};
9090
};
9191
};

packages/contracts/dist/custom-network-signatures.cjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5035,7 +5035,9 @@ function extractAbiMethods(networkCache, methodNames) {
50355035
const iface = new Interface(ABI);
50365036
let functionFragment;
50375037
if (abiItem.name === "safeTransferFrom") {
5038-
functionFragment = iface.getFunction("safeTransferFrom(address,address,uint256)");
5038+
functionFragment = iface.getFunction(
5039+
"safeTransferFrom(address,address,uint256)"
5040+
);
50395041
} else {
50405042
functionFragment = iface.getFunction(abiItem.name);
50415043
}
@@ -5230,7 +5232,10 @@ if (mainScriptPath === currentScriptPath) {
52305232
useScriptDirectory: false
52315233
// Use current working directory for CLI usage
52325234
}).catch((error) => {
5233-
console.error("Error in CLI execution of custom-network-signatures:", error);
5235+
console.error(
5236+
"Error in CLI execution of custom-network-signatures:",
5237+
error
5238+
);
52345239
process.exit(1);
52355240
});
52365241
}

packages/contracts/dist/custom-network-signatures.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5001,7 +5001,9 @@ function extractAbiMethods(networkCache, methodNames) {
50015001
const iface = new Interface(ABI);
50025002
let functionFragment;
50035003
if (abiItem.name === "safeTransferFrom") {
5004-
functionFragment = iface.getFunction("safeTransferFrom(address,address,uint256)");
5004+
functionFragment = iface.getFunction(
5005+
"safeTransferFrom(address,address,uint256)"
5006+
);
50055007
} else {
50065008
functionFragment = iface.getFunction(abiItem.name);
50075009
}
@@ -5195,7 +5197,10 @@ if (mainScriptPath === currentScriptPath) {
51955197
useScriptDirectory: false
51965198
// Use current working directory for CLI usage
51975199
}).catch((error) => {
5198-
console.error("Error in CLI execution of custom-network-signatures:", error);
5200+
console.error(
5201+
"Error in CLI execution of custom-network-signatures:",
5202+
error
5203+
);
51995204
process.exit(1);
52005205
});
52015206
}

0 commit comments

Comments
 (0)