feat: Implement service worker for IPFS vault

This commit is contained in:
Prad Nukala
2024-10-07 20:13:38 -04:00
parent fa7b11198e
commit c608a067ed
34 changed files with 740 additions and 758 deletions
+17
View File
@@ -0,0 +1,17 @@
package state
templ InsertAccount(accountName string) {
<script>
const accountId = await motr.insertAccount({
name: accountName,
address: "0x1234567890123456789012345678901234567890",
publicKey: "sample_public_key",
chainCode: "SONR",
index: 0,
controller: "sample_controller",
createdAt: new Date(),
});
console.log("Inserted account with ID:", accountId);
</script>
}