mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
- **feat: remove Hway deployment** - **feat: introduce session middleware for requests** - **refactor: update path imports to use new pkg folder** - **feat: add gRPC client for interacting with services** - **feat: remove grpc client and use REST api** - **refactor: move from to** - **feat: add client views endpoint** - **feat: add webauthn support** - **closes: #1124** - **refactor: Improve PR labeler configuration** - **feat: add milestone discussion template** - **feat: remove OKR tracking issue template** - **feat: use gorilla sessions for session management** - **refactor: move pubkey related code to** - **<no value>** - **refactor: remove unused identifier type** - **feat: integrate Macaroon Keeper with Service Module** - **refactor: rename worker routes for clarity**
18 lines
401 B
Templ
18 lines
401 B
Templ
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>
|
|
}
|