Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert hc spartan holo hash #267

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Added
### Changed
- Revert addition of @hc-spartan/holo-hash. Hashes were used inconsistently and lead to wrong types for return values.
### Fixed
### Removed

Expand Down
14 changes: 14 additions & 0 deletions docs/client.actionhash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@holochain/client](./client.md) &gt; [ActionHash](./client.actionhash.md)

## ActionHash type


**Signature:**

```typescript
export type ActionHash = HoloHash;
```
**References:** [HoloHash](./client.holohash.md)

2 changes: 1 addition & 1 deletion docs/client.actionhashandsig.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Action hash with the signature of the action at that hash
```typescript
export type ActionHashAndSig = [ActionHash, Signature];
```
**References:** [Signature](./client.signature.md)
**References:** [ActionHash](./client.actionhash.md)<!-- -->, [Signature](./client.signature.md)

2 changes: 1 addition & 1 deletion docs/client.adminwebsocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Get the DNA definition for the specified DNA hash.

</td><td>

(cellId: [CellId](./client.cellid.md)<!-- -->, functions: [GrantedFunctions](./client.grantedfunctions.md)<!-- -->, signingKey: AgentPubKey) =&gt; Promise&lt;[CapSecret](./client.capsecret.md)<!-- -->&gt;
(cellId: [CellId](./client.cellid.md)<!-- -->, functions: [GrantedFunctions](./client.grantedfunctions.md)<!-- -->, signingKey: [AgentPubKey](./client.agentpubkey.md)<!-- -->) =&gt; Promise&lt;[CapSecret](./client.capsecret.md)<!-- -->&gt;


</td><td>
Expand Down
14 changes: 14 additions & 0 deletions docs/client.agentpubkey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@holochain/client](./client.md) &gt; [AgentPubKey](./client.agentpubkey.md)

## AgentPubKey type


**Signature:**

```typescript
export type AgentPubKey = HoloHash;
```
**References:** [HoloHash](./client.holohash.md)

4 changes: 2 additions & 2 deletions docs/client.agentvalidationpkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ number

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand Down Expand Up @@ -95,7 +95,7 @@ any

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand Down
14 changes: 14 additions & 0 deletions docs/client.anydhthash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@holochain/client](./client.md) &gt; [AnyDhtHash](./client.anydhthash.md)

## AnyDhtHash type


**Signature:**

```typescript
export type AnyDhtHash = HoloHash;
```
**References:** [HoloHash](./client.holohash.md)

14 changes: 14 additions & 0 deletions docs/client.anylinkablehash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@holochain/client](./client.md) &gt; [AnyLinkableHash](./client.anylinkablehash.md)

## AnyLinkableHash type


**Signature:**

```typescript
export type AnyLinkableHash = EntryHash | ActionHash | ExternalHash;
```
**References:** [EntryHash](./client.entryhash.md)<!-- -->, [ActionHash](./client.actionhash.md)<!-- -->, [ExternalHash](./client.externalhash.md)

2 changes: 1 addition & 1 deletion docs/client.appclient.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Description

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand Down
2 changes: 1 addition & 1 deletion docs/client.appinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export type AppInfo = {
status: InstalledAppInfoStatus;
};
```
**References:** [InstalledAppId](./client.installedappid.md)<!-- -->, [RoleName](./client.rolename.md)<!-- -->, [CellInfo](./client.cellinfo.md)<!-- -->, [InstalledAppInfoStatus](./client.installedappinfostatus.md)
**References:** [AgentPubKey](./client.agentpubkey.md)<!-- -->, [InstalledAppId](./client.installedappid.md)<!-- -->, [RoleName](./client.rolename.md)<!-- -->, [CellInfo](./client.cellinfo.md)<!-- -->, [InstalledAppInfoStatus](./client.installedappinfostatus.md)

2 changes: 1 addition & 1 deletion docs/client.appwebsocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ _(Optional)_

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand Down
2 changes: 1 addition & 1 deletion docs/client.callzomerequestgeneric.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export type CallZomeRequestGeneric<Payload> = {
provenance: AgentPubKey;
};
```
**References:** [CellId](./client.cellid.md)<!-- -->, [ZomeName](./client.zomename.md)<!-- -->, [FunctionName](./client.functionname.md)
**References:** [CellId](./client.cellid.md)<!-- -->, [ZomeName](./client.zomename.md)<!-- -->, [FunctionName](./client.functionname.md)<!-- -->, [AgentPubKey](./client.agentpubkey.md)

2 changes: 1 addition & 1 deletion docs/client.capaccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export type CapAccess = [CapAccessType.Unrestricted] | {
};
};
```
**References:** [CapAccessType.Unrestricted](./client.capaccesstype.md)<!-- -->, [CapAccessType.Transferable](./client.capaccesstype.md)<!-- -->, [CapSecret](./client.capsecret.md)<!-- -->, [CapAccessType.Assigned](./client.capaccesstype.md)
**References:** [CapAccessType.Unrestricted](./client.capaccesstype.md)<!-- -->, [CapAccessType.Transferable](./client.capaccesstype.md)<!-- -->, [CapSecret](./client.capsecret.md)<!-- -->, [CapAccessType.Assigned](./client.capaccesstype.md)<!-- -->, [AgentPubKey](./client.agentpubkey.md)

2 changes: 1 addition & 1 deletion docs/client.capclaim.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Description

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand Down
2 changes: 1 addition & 1 deletion docs/client.capgrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export type CapGrant = {
RemoteAgent: ZomeCallCapGrant;
};
```
**References:** [ZomeCallCapGrant](./client.zomecallcapgrant.md)
**References:** [AgentPubKey](./client.agentpubkey.md)<!-- -->, [ZomeCallCapGrant](./client.zomecallcapgrant.md)

2 changes: 2 additions & 0 deletions docs/client.cellid.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
```typescript
export type CellId = [DnaHash, AgentPubKey];
```
**References:** [DnaHash](./client.dnahash.md)<!-- -->, [AgentPubKey](./client.agentpubkey.md)

2 changes: 1 addition & 1 deletion docs/client.chainintegritywarrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export type ChainIntegrityWarrant = {
};
};
```
**References:** [ActionHashAndSig](./client.actionhashandsig.md)<!-- -->, [ValidationType](./client.validationtype.md)
**References:** [AgentPubKey](./client.agentpubkey.md)<!-- -->, [ActionHashAndSig](./client.actionhashandsig.md)<!-- -->, [ValidationType](./client.validationtype.md)

2 changes: 1 addition & 1 deletion docs/client.clonedcell.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ string

</td><td>

DnaHash
[DnaHash](./client.dnahash.md)


</td><td>
Expand Down
6 changes: 3 additions & 3 deletions docs/client.closechain.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ number

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand All @@ -78,7 +78,7 @@ AgentPubKey

</td><td>

DnaHash
[DnaHash](./client.dnahash.md)


</td><td>
Expand All @@ -95,7 +95,7 @@ DnaHash

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand Down
2 changes: 1 addition & 1 deletion docs/client.countersigningagents.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
```typescript
export type CounterSigningAgents = Array<[AgentPubKey, Array<Role>]>;
```
**References:** [Role](./client.role.md)
**References:** [AgentPubKey](./client.agentpubkey.md)<!-- -->, [Role](./client.role.md)

2 changes: 1 addition & 1 deletion docs/client.countersigningagentstate.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ number

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand Down
6 changes: 3 additions & 3 deletions docs/client.create.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ number

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand All @@ -78,7 +78,7 @@ AgentPubKey

</td><td>

EntryHash
[EntryHash](./client.entryhash.md)


</td><td>
Expand Down Expand Up @@ -112,7 +112,7 @@ EntryHash

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand Down
8 changes: 4 additions & 4 deletions docs/client.createlink.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ number

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand All @@ -78,7 +78,7 @@ AgentPubKey

</td><td>

EntryHash
[EntryHash](./client.entryhash.md)


</td><td>
Expand Down Expand Up @@ -112,7 +112,7 @@ EntryHash

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand Down Expand Up @@ -146,7 +146,7 @@ ActionHash

</td><td>

EntryHash
[EntryHash](./client.entryhash.md)


</td><td>
Expand Down
6 changes: 3 additions & 3 deletions docs/client.decodehashfrombase64.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Decodes a Base64 encoded string to a byte array hash.
**Signature:**

```typescript
export declare function decodeHashFromBase64(hash: string): HoloHash;
export declare function decodeHashFromBase64(hash: HoloHashB64): HoloHash;
```

## Parameters
Expand Down Expand Up @@ -37,7 +37,7 @@ hash

</td><td>

string
[HoloHashB64](./client.holohashb64.md)


</td><td>
Expand All @@ -49,7 +49,7 @@ The Base64 encoded string to decode.
</tbody></table>
**Returns:**

HoloHash
[HoloHash](./client.holohash.md)

The hash in byte format.

8 changes: 4 additions & 4 deletions docs/client.delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ number

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand All @@ -78,7 +78,7 @@ AgentPubKey

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand All @@ -95,7 +95,7 @@ ActionHash

</td><td>

EntryHash
[EntryHash](./client.entryhash.md)


</td><td>
Expand All @@ -112,7 +112,7 @@ EntryHash

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand Down
8 changes: 4 additions & 4 deletions docs/client.deletelink.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ number

</td><td>

AgentPubKey
[AgentPubKey](./client.agentpubkey.md)


</td><td>
Expand All @@ -78,7 +78,7 @@ AgentPubKey

</td><td>

EntryHash
[EntryHash](./client.entryhash.md)


</td><td>
Expand All @@ -95,7 +95,7 @@ EntryHash

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand All @@ -112,7 +112,7 @@ ActionHash

</td><td>

ActionHash
[ActionHash](./client.actionhash.md)


</td><td>
Expand Down
Loading
Loading