@haneullabs/haneul 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,22 @@
1
1
  import { TypeTag as TypeTag$1 } from "./types.mjs";
2
- import * as _haneullabs_bcs823 from "@haneullabs/bcs";
2
+ import * as _haneullabs_bcs810 from "@haneullabs/bcs";
3
3
  import { BcsType } from "@haneullabs/bcs";
4
4
 
5
5
  //#region src/bcs/bcs.d.ts
6
6
 
7
7
  declare const TypeTag: BcsType<string, string | TypeTag$1, string>;
8
- declare function IntentMessage<T extends BcsType<any>>(T: T): _haneullabs_bcs823.BcsStruct<{
9
- intent: _haneullabs_bcs823.BcsStruct<{
10
- scope: _haneullabs_bcs823.BcsEnum<{
8
+ declare function IntentMessage<T extends BcsType<any>>(T: T): _haneullabs_bcs810.BcsStruct<{
9
+ intent: _haneullabs_bcs810.BcsStruct<{
10
+ scope: _haneullabs_bcs810.BcsEnum<{
11
11
  TransactionData: null;
12
12
  TransactionEffects: null;
13
13
  CheckpointSummary: null;
14
14
  PersonalMessage: null;
15
15
  }, "IntentScope">;
16
- version: _haneullabs_bcs823.BcsEnum<{
16
+ version: _haneullabs_bcs810.BcsEnum<{
17
17
  V0: null;
18
18
  }, "IntentVersion">;
19
- appId: _haneullabs_bcs823.BcsEnum<{
19
+ appId: _haneullabs_bcs810.BcsEnum<{
20
20
  Haneul: null;
21
21
  }, "AppId">;
22
22
  }, string>;
@@ -26,12 +26,6 @@ declare function toSerializedSignature({
26
26
  * Decodes a serialized signature into its constituent components: the signature scheme, the actual signature, and the public key
27
27
  */
28
28
  declare function parseSerializedSignature(serializedSignature: string): {
29
- serializedSignature: string;
30
- signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1";
31
- signature: Uint8Array<ArrayBuffer>;
32
- publicKey: Uint8Array<ArrayBuffer>;
33
- bytes: Uint8Array<ArrayBuffer>;
34
- } | {
35
29
  signatureScheme: "Passkey";
36
30
  serializedSignature: string;
37
31
  signature: Uint8Array<ArrayBufferLike>;
@@ -63,6 +57,12 @@ declare function parseSerializedSignature(serializedSignature: string): {
63
57
  };
64
58
  signature: Uint8Array<ArrayBufferLike>;
65
59
  publicKey: Uint8Array<ArrayBuffer>;
60
+ } | {
61
+ serializedSignature: string;
62
+ signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1";
63
+ signature: Uint8Array<ArrayBuffer>;
64
+ publicKey: Uint8Array<ArrayBuffer>;
65
+ bytes: Uint8Array<ArrayBuffer>;
66
66
  } | {
67
67
  serializedSignature: string;
68
68
  signatureScheme: "MultiSig";
@@ -1,6 +1,6 @@
1
1
  import { GetDatatypeRequest, GetDatatypeResponse, GetFunctionRequest, GetFunctionResponse, GetPackageRequest, GetPackageResponse, ListPackageVersionsRequest, ListPackageVersionsResponse } from "./move_package_service.mjs";
2
- import * as _protobuf_ts_runtime2 from "@protobuf-ts/runtime";
3
- import * as _protobuf_ts_runtime_rpc2 from "@protobuf-ts/runtime-rpc";
2
+ import * as _protobuf_ts_runtime0 from "@protobuf-ts/runtime";
3
+ import * as _protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
4
4
  import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
5
5
 
6
6
  //#region src/grpc/proto/haneul/rpc/v2/move_package_service.client.d.ts
@@ -32,9 +32,9 @@ interface IMovePackageServiceClient {
32
32
  declare class MovePackageServiceClient implements IMovePackageServiceClient, ServiceInfo {
33
33
  private readonly _transport;
34
34
  typeName: string;
35
- methods: _protobuf_ts_runtime_rpc2.MethodInfo<any, any>[];
35
+ methods: _protobuf_ts_runtime_rpc0.MethodInfo<any, any>[];
36
36
  options: {
37
- [extensionName: string]: _protobuf_ts_runtime2.JsonValue;
37
+ [extensionName: string]: _protobuf_ts_runtime0.JsonValue;
38
38
  };
39
39
  constructor(_transport: RpcTransport);
40
40
  /**
@@ -1,6 +1,6 @@
1
1
  import { LookupNameRequest, LookupNameResponse, ReverseLookupNameRequest, ReverseLookupNameResponse } from "./name_service.mjs";
2
- import * as _protobuf_ts_runtime0 from "@protobuf-ts/runtime";
3
- import * as _protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
2
+ import * as _protobuf_ts_runtime4 from "@protobuf-ts/runtime";
3
+ import * as _protobuf_ts_runtime_rpc4 from "@protobuf-ts/runtime-rpc";
4
4
  import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
5
5
 
6
6
  //#region src/grpc/proto/haneul/rpc/v2/name_service.client.d.ts
@@ -24,9 +24,9 @@ interface INameServiceClient {
24
24
  declare class NameServiceClient implements INameServiceClient, ServiceInfo {
25
25
  private readonly _transport;
26
26
  typeName: string;
27
- methods: _protobuf_ts_runtime_rpc0.MethodInfo<any, any>[];
27
+ methods: _protobuf_ts_runtime_rpc4.MethodInfo<any, any>[];
28
28
  options: {
29
- [extensionName: string]: _protobuf_ts_runtime0.JsonValue;
29
+ [extensionName: string]: _protobuf_ts_runtime4.JsonValue;
30
30
  };
31
31
  constructor(_transport: RpcTransport);
32
32
  /**
@@ -1,6 +1,6 @@
1
1
  import { VerifySignatureRequest, VerifySignatureResponse } from "./signature_verification_service.mjs";
2
- import * as _protobuf_ts_runtime3 from "@protobuf-ts/runtime";
3
- import * as _protobuf_ts_runtime_rpc3 from "@protobuf-ts/runtime-rpc";
2
+ import * as _protobuf_ts_runtime2 from "@protobuf-ts/runtime";
3
+ import * as _protobuf_ts_runtime_rpc2 from "@protobuf-ts/runtime-rpc";
4
4
  import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
5
5
 
6
6
  //#region src/grpc/proto/haneul/rpc/v2/signature_verification_service.client.d.ts
@@ -22,9 +22,9 @@ interface ISignatureVerificationServiceClient {
22
22
  declare class SignatureVerificationServiceClient implements ISignatureVerificationServiceClient, ServiceInfo {
23
23
  private readonly _transport;
24
24
  typeName: string;
25
- methods: _protobuf_ts_runtime_rpc3.MethodInfo<any, any>[];
25
+ methods: _protobuf_ts_runtime_rpc2.MethodInfo<any, any>[];
26
26
  options: {
27
- [extensionName: string]: _protobuf_ts_runtime3.JsonValue;
27
+ [extensionName: string]: _protobuf_ts_runtime2.JsonValue;
28
28
  };
29
29
  constructor(_transport: RpcTransport);
30
30
  /**
@@ -1,6 +1,6 @@
1
1
  import { GetBalanceRequest, GetBalanceResponse, GetCoinInfoRequest, GetCoinInfoResponse, ListBalancesRequest, ListBalancesResponse, ListDynamicFieldsRequest, ListDynamicFieldsResponse, ListOwnedObjectsRequest, ListOwnedObjectsResponse } from "./state_service.mjs";
2
- import * as _protobuf_ts_runtime4 from "@protobuf-ts/runtime";
3
- import * as _protobuf_ts_runtime_rpc4 from "@protobuf-ts/runtime-rpc";
2
+ import * as _protobuf_ts_runtime3 from "@protobuf-ts/runtime";
3
+ import * as _protobuf_ts_runtime_rpc3 from "@protobuf-ts/runtime-rpc";
4
4
  import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
5
5
 
6
6
  //#region src/grpc/proto/haneul/rpc/v2/state_service.client.d.ts
@@ -36,9 +36,9 @@ interface IStateServiceClient {
36
36
  declare class StateServiceClient implements IStateServiceClient, ServiceInfo {
37
37
  private readonly _transport;
38
38
  typeName: string;
39
- methods: _protobuf_ts_runtime_rpc4.MethodInfo<any, any>[];
39
+ methods: _protobuf_ts_runtime_rpc3.MethodInfo<any, any>[];
40
40
  options: {
41
- [extensionName: string]: _protobuf_ts_runtime4.JsonValue;
41
+ [extensionName: string]: _protobuf_ts_runtime3.JsonValue;
42
42
  };
43
43
  constructor(_transport: RpcTransport);
44
44
  /**
@@ -8,7 +8,7 @@ import { createPure } from "./pure.mjs";
8
8
  import { SignatureWithBytes, Signer } from "../cryptography/keypair.mjs";
9
9
  import "../cryptography/index.mjs";
10
10
  import { ClientWithCoreApi } from "../client/core.mjs";
11
- import * as _haneullabs_bcs1124 from "@haneullabs/bcs";
11
+ import * as _haneullabs_bcs1126 from "@haneullabs/bcs";
12
12
  import { SerializedBcs } from "@haneullabs/bcs";
13
13
  import { InferInput } from "valibot";
14
14
 
@@ -77,7 +77,7 @@ declare class Transaction {
77
77
  getData(): {
78
78
  version: 2;
79
79
  sender?: string | null | undefined;
80
- expiration?: _haneullabs_bcs1124.EnumOutputShapeWithKeys<{
80
+ expiration?: _haneullabs_bcs1126.EnumOutputShapeWithKeys<{
81
81
  None: true;
82
82
  Epoch: string | number;
83
83
  ValidDuring: {
@@ -99,8 +99,8 @@ declare class Transaction {
99
99
  digest: string;
100
100
  }[] | null;
101
101
  };
102
- inputs: _haneullabs_bcs1124.EnumOutputShapeWithKeys<{
103
- Object: _haneullabs_bcs1124.EnumOutputShapeWithKeys<{
102
+ inputs: _haneullabs_bcs1126.EnumOutputShapeWithKeys<{
103
+ Object: _haneullabs_bcs1126.EnumOutputShapeWithKeys<{
104
104
  ImmOrOwnedObject: {
105
105
  objectId: string;
106
106
  version: string | number;
@@ -139,13 +139,13 @@ declare class Transaction {
139
139
  Balance: string;
140
140
  $kind: "Balance";
141
141
  };
142
- withdrawFrom: _haneullabs_bcs1124.EnumOutputShapeWithKeys<{
142
+ withdrawFrom: _haneullabs_bcs1126.EnumOutputShapeWithKeys<{
143
143
  Sender: true;
144
144
  Sponsor: true;
145
145
  }, "Sender" | "Sponsor">;
146
146
  };
147
147
  }, "Pure" | "Object" | "FundsWithdrawal" | "UnresolvedPure" | "UnresolvedObject">[];
148
- commands: _haneullabs_bcs1124.EnumOutputShapeWithKeys<{
148
+ commands: _haneullabs_bcs1126.EnumOutputShapeWithKeys<{
149
149
  MoveCall: {
150
150
  package: string;
151
151
  module: string;