@cartridge/controller
Advanced tools
Comparing version 0.3.32 to 0.3.33
@@ -25,2 +25,3 @@ export * from "./types"; | ||
username(): Promise<string> | undefined; | ||
delegateAccount(): Promise<import("starknet").CallContractResponse | null>; | ||
} | ||
@@ -27,0 +28,0 @@ export * from "./types"; |
@@ -137,2 +137,13 @@ export * from "./types"; | ||
} | ||
async delegateAccount() { | ||
if (!this.account) { | ||
console.error(new NotReadyToConnect().message); | ||
return null; | ||
} | ||
return this.account.callContract({ | ||
contractAddress: this.account.address, | ||
entrypoint: "delegate_account", | ||
calldata: [], | ||
}); | ||
} | ||
} | ||
@@ -139,0 +150,0 @@ export * from "./types"; |
@@ -75,3 +75,12 @@ export const defaultPresets = { | ||
}, | ||
"tale-weaver": { | ||
id: "tale-weaver", | ||
name: "Tale Weaver", | ||
icon: "/whitelabel/tale-weaver/icon.png", | ||
cover: "/whitelabel/tale-weaver/cover.png", | ||
colors: { | ||
primary: "#fce377", | ||
}, | ||
} | ||
}; | ||
//# sourceMappingURL=presets.js.map |
{ | ||
"name": "@cartridge/controller", | ||
"version": "0.3.32", | ||
"version": "0.3.33", | ||
"description": "Cartridge Controller", | ||
@@ -22,3 +22,3 @@ "module": "dist/index.js", | ||
"typescript": "^5.4.5", | ||
"@cartridge/tsconfig": "^0.3.32" | ||
"@cartridge/tsconfig": "^0.3.33" | ||
}, | ||
@@ -25,0 +25,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44096
725