@canton-network/core-wallet-dapp-remote-rpc-client 1.16.0 → 1.18.0
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.
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
// \0@oxc-project+runtime@0.
|
|
5
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
6
6
|
function _typeof(o) {
|
|
7
7
|
"@babel/helpers - typeof";
|
|
8
8
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -11,23 +11,23 @@ function _typeof(o) {
|
|
|
11
11
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
12
12
|
}, _typeof(o);
|
|
13
13
|
}
|
|
14
|
-
// \0@oxc-project+runtime@0.
|
|
15
|
-
function toPrimitive(t,
|
|
14
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
15
|
+
function toPrimitive(t, e) {
|
|
16
16
|
if ("object" != _typeof(t) || !t) return t;
|
|
17
|
-
var
|
|
18
|
-
if (void 0 !==
|
|
19
|
-
var i =
|
|
17
|
+
var r;
|
|
18
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
19
|
+
var i = r.call(t, e || "default");
|
|
20
20
|
if ("object" != _typeof(i)) return i;
|
|
21
21
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
22
22
|
}
|
|
23
|
-
return ("string" ===
|
|
23
|
+
return ("string" === e ? String : Number)(t);
|
|
24
24
|
}
|
|
25
|
-
// \0@oxc-project+runtime@0.
|
|
25
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
28
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
29
29
|
}
|
|
30
|
-
// \0@oxc-project+runtime@0.
|
|
30
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
31
31
|
function _defineProperty(e, r, t) {
|
|
32
32
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
33
33
|
value: t,
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Code generated by @open-rpc/generator DO NOT EDIT.\nimport type { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport type { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* oxlint-disable no-unused-vars */\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\ntype AlwaysTrue = any\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateCommand schema; do not re-specify here.\n *\n */\nexport interface CreateCommandPayload {\n [key: string]: any\n}\ntype AlwaysFalse = any\nexport interface CreateCommand {\n CreateCommand: CreateCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseCommand {\n ExerciseCommand: ExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateAndExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface CreateAndExerciseCommandPayload {\n [key: string]: any\n}\nexport interface CreateAndExerciseCommand {\n CreateAndExerciseCommand: CreateAndExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseByKeyCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseByKeyCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseByKeyCommand {\n ExerciseByKeyCommand: ExerciseByKeyCommandPayload\n}\n/**\n *\n * A Daml command atom. Mirror of the Canton Ledger API Command union; inner shapes are intentionally opaque so the dApp layer never drifts from the Ledger API contract.\n *\n */\nexport type Command =\n | CreateCommand\n | ExerciseCommand\n | CreateAndExerciseCommand\n | ExerciseByKeyCommand\n/**\n *\n * Non-empty array of Daml command atoms to submit atomically as a single transaction.\n *\n */\nexport type Commands = Command[]\n/**\n *\n * The party that signed the transaction.\n *\n */\nexport type Party = string\n/**\n *\n * Set of parties on whose behalf the command should be executed, if submitted. If not set, the primary wallet's party is used.\n *\n */\nexport type ActAs = Party[]\n/**\n *\n * Set of parties that should be granted read access to the command, if submitted. If not set, no additional read parties are granted.\n *\n */\nexport type ReadAs = Party[]\n/**\n *\n * The template identifier of the disclosed contract.\n *\n */\nexport type TemplateId = string\n/**\n *\n * The unique identifier of the disclosed contract.\n *\n */\nexport type ContractId = string\n/**\n *\n * The blob data of the created event for the disclosed contract.\n *\n */\nexport type CreatedEventBlob = string\n/**\n *\n * If not set, a suitable synchronizer that this node is connected to will be chosen.\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Structure representing a disclosed contract for transaction execution\n *\n */\nexport interface DisclosedContract {\n templateId?: TemplateId\n contractId?: ContractId\n createdEventBlob: CreatedEventBlob\n synchronizerId?: SynchronizerId\n}\n/**\n *\n * List of contract IDs to be disclosed with the command.\n *\n */\nexport type DisclosedContracts = DisclosedContract[]\nexport type PackageId = string\n/**\n *\n * The package-id selection preference of the client for resolving package names and interface instances in command submission and interpretation\n *\n */\nexport type PackageIdSelectionPreference = PackageId[]\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\nexport type RequestMethod = 'get' | 'post' | 'patch' | 'put' | 'delete'\nexport type Resource = string\nexport interface Body {\n [key: string]: any\n}\n/**\n *\n * Query parameters as key-value pairs.\n *\n */\nexport interface Query {\n [key: string]: any\n}\n/**\n *\n * Path parameters as key-value pairs.\n *\n */\nexport interface Path {\n [key: string]: any\n}\n/**\n *\n * The unique identifier of the Provider.\n *\n */\nexport type ProviderId = string\n/**\n *\n * The version of the Provider.\n *\n */\nexport type Version = string\n/**\n *\n * The type of client that implements the Provider.\n *\n */\nexport type ProviderType = 'browser' | 'desktop' | 'mobile' | 'remote'\n/**\n *\n * The URL of the Wallet Provider.\n *\n */\nexport type Url = string\n/**\n *\n * A URL that points to a user interface.\n *\n */\nexport type UserUrl = string\n/**\n *\n * Represents a Provider.\n *\n */\nexport interface Provider {\n id: ProviderId\n version?: Version\n providerType: ProviderType\n url?: Url\n userUrl?: UserUrl\n}\n/**\n *\n * Whether or not the user is authenticated with the Wallet.\n *\n */\nexport type IsConnectedValue = boolean\n/**\n *\n * Reason for the wallet state, e.g., 'no signing provider matched'.\n *\n */\nexport type Reason = string\n/**\n *\n * Whether or not a connection to a network is established.\n *\n */\nexport type IsNetworkConnected = boolean\n/**\n *\n * If not connected to a network, the reason why.\n *\n */\nexport type NetworkReason = string\nexport interface ConnectResult {\n isConnected: IsConnectedValue\n reason?: Reason\n isNetworkConnected: IsNetworkConnected\n networkReason?: NetworkReason\n userUrl?: UserUrl\n}\n/**\n *\n * The network ID the wallet corresponds to.\n *\n */\nexport type NetworkId = string\n/**\n *\n * The base URL of the ledger API.\n *\n */\nexport type LedgerApiUrl = string\n/**\n *\n * JWT authentication token.\n *\n */\nexport type AccessToken = string\n/**\n *\n * Network information, if connected to a network.\n *\n */\nexport interface Network {\n networkId: NetworkId\n ledgerApi?: LedgerApiUrl\n accessToken?: AccessToken\n}\n/**\n *\n * The user identifier.\n *\n */\nexport type UserId = string\n/**\n *\n * Session information, if authenticated.\n *\n */\nexport interface Session {\n accessToken: AccessToken\n userId: UserId\n}\n/**\n *\n * The unique identifier of the message associated with the message to be signed.\n *\n */\nexport type MessageId = string\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party ID corresponding to the wallet.\n *\n */\nexport type PartyId = string\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\n/**\n *\n * Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n isAuthParty?: IsAuthParty\n rights: PartyRights\n}\n/**\n *\n * Whether the party authenticates the user with self-issued tokens.\n *\n */\nexport type IsAuthParty = boolean\nexport type PartyLevelRight = 'CanActAs' | 'CanReadAs' | 'CanExecuteAs'\n/**\n *\n * The rights of the wallet.\n *\n */\nexport type PartyRights = PartyLevelRight[]\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusPending = 'pending'\n/**\n *\n * Event emitted when a transaction is pending.\n *\n */\nexport interface TxChangedPendingEvent {\n status: StatusPending\n commandId: CommandId\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusSigned = 'signed'\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\n/**\n *\n * The identifier of the provider that signed the transaction.\n *\n */\nexport type SignedBy = string\n/**\n *\n * Payload for the TxChangedSignedEvent.\n *\n */\nexport interface TxChangedSignedPayload {\n signature: Signature\n signedBy: SignedBy\n party: Party\n}\n/**\n *\n * Event emitted when a transaction has been signed.\n *\n */\nexport interface TxChangedSignedEvent {\n status: StatusSigned\n commandId: CommandId\n payload: TxChangedSignedPayload\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type StatusExecuted = 'executed'\n/**\n *\n * The update ID corresponding to the transaction.\n *\n */\nexport type UpdateId = string\nexport type CompletionOffset = number\n/**\n *\n * Payload for the TxChangedExecutedEvent.\n *\n */\nexport interface TxChangedExecutedPayload {\n updateId: UpdateId\n completionOffset: CompletionOffset\n}\n/**\n *\n * Event emitted when a transaction is executed against the participant.\n *\n */\nexport interface TxChangedExecutedEvent {\n status: StatusExecuted\n commandId: CommandId\n payload: TxChangedExecutedPayload\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusFailed = 'failed'\n/**\n *\n * Event emitted when a transaction has failed.\n *\n */\nexport interface TxChangedFailedEvent {\n status: StatusFailed\n commandId: CommandId\n}\n/**\n *\n * Event emitted when a message signature is requested.\n *\n */\nexport interface MessageSignaturePendingEvent {\n status: StatusPending\n messageId: MessageId\n}\n/**\n *\n * Event emitted when a message signature is completed.\n *\n */\nexport interface MessageSignatureSignedEvent {\n status: StatusSigned\n messageId: MessageId\n signature: Signature\n}\n/**\n *\n * Event emitted when a message signature has failed.\n *\n */\nexport interface MessageSignatureFailedEvent {\n status: StatusFailed\n messageId: MessageId\n}\n/**\n *\n * Structure representing the request for prepare and execute calls\n *\n */\nexport interface PrepareExecuteParams {\n commandId?: CommandId\n commands: Commands\n actAs?: ActAs\n readAs?: ReadAs\n disclosedContracts?: DisclosedContracts\n synchronizerId?: SynchronizerId\n packageIdSelectionPreference?: PackageIdSelectionPreference\n}\n/**\n *\n * Request to sign a message.\n *\n */\nexport interface SignMessageParams {\n message: Message\n}\n/**\n *\n * Ledger API request structure\n *\n */\nexport interface LedgerApiParams {\n requestMethod: RequestMethod\n resource: Resource\n body?: Body\n query?: Query\n path?: Path\n}\nexport interface StatusEvent {\n provider: Provider\n connection: ConnectResult\n network?: Network\n session?: Session\n}\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface PrepareExecuteResult {\n userUrl: UserUrl\n}\nexport interface SignMessageResult {\n messageId: MessageId\n userUrl: UserUrl\n}\n/**\n *\n * Ledger Api response\n *\n */\nexport interface LedgerApiResult {\n [key: string]: any\n}\n/**\n *\n * Event emitted when the user's accounts change.\n *\n */\nexport type AccountsChangedEvent = Wallet[]\n/**\n *\n * An array of accounts that the user has authorized the dapp to access..\n *\n */\nexport type ListAccountsResult = Wallet[]\n/**\n *\n * Event emitted when a transaction changes.\n *\n */\nexport type TxChangedEvent =\n | TxChangedPendingEvent\n | TxChangedSignedEvent\n | TxChangedExecutedEvent\n | TxChangedFailedEvent\n/**\n *\n * Event emitted when a message signature is requested or completed.\n *\n */\nexport type MessageSignatureEvent =\n | MessageSignaturePendingEvent\n | MessageSignatureSignedEvent\n | MessageSignatureFailedEvent\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type Status = () => Promise<StatusEvent>\nexport type Connect = () => Promise<ConnectResult>\nexport type Disconnect = () => Promise<Null>\nexport type IsConnected = () => Promise<ConnectResult>\nexport type GetActiveNetwork = () => Promise<Network>\nexport type PrepareExecute = (\n params: PrepareExecuteParams\n) => Promise<PrepareExecuteResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type LedgerApi = (params: LedgerApiParams) => Promise<LedgerApiResult>\nexport type Connected = () => Promise<StatusEvent>\nexport type OnStatusChanged = () => Promise<StatusEvent>\nexport type AccountsChanged = () => Promise<AccountsChangedEvent>\nexport type GetPrimaryAccount = () => Promise<Wallet>\nexport type ListAccounts = () => Promise<ListAccountsResult>\nexport type TxChanged = () => Promise<TxChangedEvent>\nexport type MessageSignature = () => Promise<MessageSignatureEvent>\n/* oxlint-enable no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n status: {\n params: Params<Status>\n result: Result<Status>\n }\n\n connect: {\n params: Params<Connect>\n result: Result<Connect>\n }\n\n disconnect: {\n params: Params<Disconnect>\n result: Result<Disconnect>\n }\n\n isConnected: {\n params: Params<IsConnected>\n result: Result<IsConnected>\n }\n\n getActiveNetwork: {\n params: Params<GetActiveNetwork>\n result: Result<GetActiveNetwork>\n }\n\n prepareExecute: {\n params: Params<PrepareExecute>\n result: Result<PrepareExecute>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n ledgerApi: {\n params: Params<LedgerApi>\n result: Result<LedgerApi>\n }\n\n connected: {\n params: Params<Connected>\n result: Result<Connected>\n }\n\n onStatusChanged: {\n params: Params<OnStatusChanged>\n result: Result<OnStatusChanged>\n }\n\n accountsChanged: {\n params: Params<AccountsChanged>\n result: Result<AccountsChanged>\n }\n\n getPrimaryAccount: {\n params: Params<GetPrimaryAccount>\n result: Result<GetPrimaryAccount>\n }\n\n listAccounts: {\n params: Params<ListAccounts>\n result: Result<ListAccounts>\n }\n\n txChanged: {\n params: Params<TxChanged>\n result: Result<TxChanged>\n }\n\n messageSignature: {\n params: Params<MessageSignature>\n result: Result<MessageSignature>\n }\n}\n\nexport class WalletJSONRPCRemoteDAppAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n return response.result as RpcTypes[M]['result']\n }\n}\nexport default WalletJSONRPCRemoteDAppAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4sBA,IAAa,6BAAb,MAAwC;CAGpC,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAE9B,QAAO,MADgB,KAAK,UAAU,OAAO,IAAsB,EAAA,CACnD;CACpB;AACJ"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Code generated by @open-rpc/generator DO NOT EDIT.\nimport type { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport type { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* oxlint-disable no-unused-vars */\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\ntype AlwaysTrue = any\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateCommand schema; do not re-specify here.\n *\n */\nexport interface CreateCommandPayload {\n [key: string]: any\n}\ntype AlwaysFalse = any\nexport interface CreateCommand {\n CreateCommand: CreateCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseCommand {\n ExerciseCommand: ExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateAndExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface CreateAndExerciseCommandPayload {\n [key: string]: any\n}\nexport interface CreateAndExerciseCommand {\n CreateAndExerciseCommand: CreateAndExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseByKeyCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseByKeyCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseByKeyCommand {\n ExerciseByKeyCommand: ExerciseByKeyCommandPayload\n}\n/**\n *\n * A Daml command atom. Mirror of the Canton Ledger API Command union; inner shapes are intentionally opaque so the dApp layer never drifts from the Ledger API contract.\n *\n */\nexport type Command =\n | CreateCommand\n | ExerciseCommand\n | CreateAndExerciseCommand\n | ExerciseByKeyCommand\n/**\n *\n * Non-empty array of Daml command atoms to submit atomically as a single transaction.\n *\n */\nexport type Commands = Command[]\n/**\n *\n * The party that signed the transaction.\n *\n */\nexport type Party = string\n/**\n *\n * Set of parties on whose behalf the command should be executed, if submitted. If not set, the primary wallet's party is used.\n *\n */\nexport type ActAs = Party[]\n/**\n *\n * Set of parties that should be granted read access to the command, if submitted. If not set, no additional read parties are granted.\n *\n */\nexport type ReadAs = Party[]\n/**\n *\n * The template identifier of the disclosed contract.\n *\n */\nexport type TemplateId = string\n/**\n *\n * The unique identifier of the disclosed contract.\n *\n */\nexport type ContractId = string\n/**\n *\n * The blob data of the created event for the disclosed contract.\n *\n */\nexport type CreatedEventBlob = string\n/**\n *\n * If not set, a suitable synchronizer that this node is connected to will be chosen.\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Structure representing a disclosed contract for transaction execution\n *\n */\nexport interface DisclosedContract {\n templateId?: TemplateId\n contractId?: ContractId\n createdEventBlob: CreatedEventBlob\n synchronizerId?: SynchronizerId\n}\n/**\n *\n * List of contract IDs to be disclosed with the command.\n *\n */\nexport type DisclosedContracts = DisclosedContract[]\nexport type PackageId = string\n/**\n *\n * The package-id selection preference of the client for resolving package names and interface instances in command submission and interpretation\n *\n */\nexport type PackageIdSelectionPreference = PackageId[]\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\nexport type RequestMethod = 'get' | 'post' | 'patch' | 'put' | 'delete'\nexport type Resource = string\nexport interface Body {\n [key: string]: any\n}\n/**\n *\n * Query parameters as key-value pairs.\n *\n */\nexport interface Query {\n [key: string]: any\n}\n/**\n *\n * Path parameters as key-value pairs.\n *\n */\nexport interface Path {\n [key: string]: any\n}\n/**\n *\n * The unique identifier of the Provider.\n *\n */\nexport type ProviderId = string\n/**\n *\n * The version of the Provider.\n *\n */\nexport type Version = string\n/**\n *\n * The type of client that implements the Provider.\n *\n */\nexport type ProviderType = 'browser' | 'desktop' | 'mobile' | 'remote'\n/**\n *\n * The URL of the Wallet Provider.\n *\n */\nexport type Url = string\n/**\n *\n * A URL that points to a user interface.\n *\n */\nexport type UserUrl = string\n/**\n *\n * Represents a Provider.\n *\n */\nexport interface Provider {\n id: ProviderId\n version?: Version\n providerType: ProviderType\n url?: Url\n userUrl?: UserUrl\n}\n/**\n *\n * Whether or not the user is authenticated with the Wallet.\n *\n */\nexport type IsConnectedValue = boolean\n/**\n *\n * Reason for the wallet state, e.g., 'no signing provider matched'.\n *\n */\nexport type Reason = string\n/**\n *\n * Whether or not a connection to a network is established.\n *\n */\nexport type IsNetworkConnected = boolean\n/**\n *\n * If not connected to a network, the reason why.\n *\n */\nexport type NetworkReason = string\nexport interface ConnectResult {\n isConnected: IsConnectedValue\n reason?: Reason\n isNetworkConnected: IsNetworkConnected\n networkReason?: NetworkReason\n userUrl?: UserUrl\n}\n/**\n *\n * The network ID the wallet corresponds to.\n *\n */\nexport type NetworkId = string\n/**\n *\n * The base URL of the ledger API.\n *\n */\nexport type LedgerApiUrl = string\n/**\n *\n * JWT authentication token.\n *\n */\nexport type AccessToken = string\n/**\n *\n * Network information, if connected to a network.\n *\n */\nexport interface Network {\n networkId: NetworkId\n ledgerApi?: LedgerApiUrl\n accessToken?: AccessToken\n}\n/**\n *\n * The user identifier.\n *\n */\nexport type UserId = string\n/**\n *\n * Session information, if authenticated.\n *\n */\nexport interface Session {\n accessToken: AccessToken\n userId: UserId\n}\n/**\n *\n * The unique identifier of the message associated with the message to be signed.\n *\n */\nexport type MessageId = string\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party ID corresponding to the wallet.\n *\n */\nexport type PartyId = string\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\n/**\n *\n * Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n isAuthParty?: IsAuthParty\n rights: PartyRights\n}\n/**\n *\n * Whether the party authenticates the user with self-issued tokens.\n *\n */\nexport type IsAuthParty = boolean\nexport type PartyLevelRight = 'CanActAs' | 'CanReadAs' | 'CanExecuteAs'\n/**\n *\n * The rights of the wallet.\n *\n */\nexport type PartyRights = PartyLevelRight[]\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusPending = 'pending'\n/**\n *\n * Event emitted when a transaction is pending.\n *\n */\nexport interface TxChangedPendingEvent {\n status: StatusPending\n commandId: CommandId\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusSigned = 'signed'\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\n/**\n *\n * The identifier of the provider that signed the transaction.\n *\n */\nexport type SignedBy = string\n/**\n *\n * Payload for the TxChangedSignedEvent.\n *\n */\nexport interface TxChangedSignedPayload {\n signature: Signature\n signedBy: SignedBy\n party: Party\n}\n/**\n *\n * Event emitted when a transaction has been signed.\n *\n */\nexport interface TxChangedSignedEvent {\n status: StatusSigned\n commandId: CommandId\n payload: TxChangedSignedPayload\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type StatusExecuted = 'executed'\n/**\n *\n * The update ID corresponding to the transaction.\n *\n */\nexport type UpdateId = string\nexport type CompletionOffset = number\n/**\n *\n * Payload for the TxChangedExecutedEvent.\n *\n */\nexport interface TxChangedExecutedPayload {\n updateId: UpdateId\n completionOffset: CompletionOffset\n}\n/**\n *\n * Event emitted when a transaction is executed against the participant.\n *\n */\nexport interface TxChangedExecutedEvent {\n status: StatusExecuted\n commandId: CommandId\n payload: TxChangedExecutedPayload\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusFailed = 'failed'\n/**\n *\n * One of the EIP-1193 or EIP-1474 error codes adopted by CIP-103.\n *\n */\nexport type ErrorCode = number\n/**\n *\n * Human readable description of the failure.\n *\n */\nexport type ErrorMessage = string\n/**\n *\n * Optional additional information about the failure, as for JSON-RPC errors.\n *\n */\nexport type ErrorData = any\n/**\n *\n * Why it failed, as a JSON-RPC error object with one of the error codes adopted by CIP-103, e.g. 4001 when the user rejected it or -32003 when the signing provider or the ledger rejected it. The message is human readable and meant for display, not for parsing.\n *\n */\nexport interface FailureError {\n code: ErrorCode\n message: ErrorMessage\n data?: ErrorData\n}\n/**\n *\n * Event emitted when a transaction has failed.\n *\n */\nexport interface TxChangedFailedEvent {\n status: StatusFailed\n commandId: CommandId\n error?: FailureError\n}\n/**\n *\n * Event emitted when a message signature is requested.\n *\n */\nexport interface MessageSignaturePendingEvent {\n status: StatusPending\n messageId: MessageId\n}\n/**\n *\n * Event emitted when a message signature is completed.\n *\n */\nexport interface MessageSignatureSignedEvent {\n status: StatusSigned\n messageId: MessageId\n signature: Signature\n}\n/**\n *\n * Event emitted when a message signature has failed.\n *\n */\nexport interface MessageSignatureFailedEvent {\n status: StatusFailed\n messageId: MessageId\n error?: FailureError\n}\n/**\n *\n * Structure representing the request for prepare and execute calls\n *\n */\nexport interface PrepareExecuteParams {\n commandId?: CommandId\n commands: Commands\n actAs?: ActAs\n readAs?: ReadAs\n disclosedContracts?: DisclosedContracts\n synchronizerId?: SynchronizerId\n packageIdSelectionPreference?: PackageIdSelectionPreference\n}\n/**\n *\n * Request to sign a message.\n *\n */\nexport interface SignMessageParams {\n message: Message\n}\n/**\n *\n * Ledger API request structure\n *\n */\nexport interface LedgerApiParams {\n requestMethod: RequestMethod\n resource: Resource\n body?: Body\n query?: Query\n path?: Path\n}\nexport interface StatusEvent {\n provider: Provider\n connection: ConnectResult\n network?: Network\n session?: Session\n}\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface PrepareExecuteResult {\n userUrl: UserUrl\n}\nexport interface SignMessageResult {\n messageId: MessageId\n userUrl: UserUrl\n}\n/**\n *\n * Ledger Api response\n *\n */\nexport interface LedgerApiResult {\n [key: string]: any\n}\n/**\n *\n * Event emitted when the user's accounts change.\n *\n */\nexport type AccountsChangedEvent = Wallet[]\n/**\n *\n * An array of accounts that the user has authorized the dapp to access..\n *\n */\nexport type ListAccountsResult = Wallet[]\n/**\n *\n * Event emitted when a transaction changes.\n *\n */\nexport type TxChangedEvent =\n | TxChangedPendingEvent\n | TxChangedSignedEvent\n | TxChangedExecutedEvent\n | TxChangedFailedEvent\n/**\n *\n * Event emitted when a message signature is requested or completed.\n *\n */\nexport type MessageSignatureEvent =\n | MessageSignaturePendingEvent\n | MessageSignatureSignedEvent\n | MessageSignatureFailedEvent\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type Status = () => Promise<StatusEvent>\nexport type Connect = () => Promise<ConnectResult>\nexport type Disconnect = () => Promise<Null>\nexport type IsConnected = () => Promise<ConnectResult>\nexport type GetActiveNetwork = () => Promise<Network>\nexport type PrepareExecute = (\n params: PrepareExecuteParams\n) => Promise<PrepareExecuteResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type LedgerApi = (params: LedgerApiParams) => Promise<LedgerApiResult>\nexport type Connected = () => Promise<StatusEvent>\nexport type OnStatusChanged = () => Promise<StatusEvent>\nexport type AccountsChanged = () => Promise<AccountsChangedEvent>\nexport type GetPrimaryAccount = () => Promise<Wallet>\nexport type ListAccounts = () => Promise<ListAccountsResult>\nexport type TxChanged = () => Promise<TxChangedEvent>\nexport type MessageSignature = () => Promise<MessageSignatureEvent>\n/* oxlint-enable no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n status: {\n params: Params<Status>\n result: Result<Status>\n }\n\n connect: {\n params: Params<Connect>\n result: Result<Connect>\n }\n\n disconnect: {\n params: Params<Disconnect>\n result: Result<Disconnect>\n }\n\n isConnected: {\n params: Params<IsConnected>\n result: Result<IsConnected>\n }\n\n getActiveNetwork: {\n params: Params<GetActiveNetwork>\n result: Result<GetActiveNetwork>\n }\n\n prepareExecute: {\n params: Params<PrepareExecute>\n result: Result<PrepareExecute>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n ledgerApi: {\n params: Params<LedgerApi>\n result: Result<LedgerApi>\n }\n\n connected: {\n params: Params<Connected>\n result: Result<Connected>\n }\n\n onStatusChanged: {\n params: Params<OnStatusChanged>\n result: Result<OnStatusChanged>\n }\n\n accountsChanged: {\n params: Params<AccountsChanged>\n result: Result<AccountsChanged>\n }\n\n getPrimaryAccount: {\n params: Params<GetPrimaryAccount>\n result: Result<GetPrimaryAccount>\n }\n\n listAccounts: {\n params: Params<ListAccounts>\n result: Result<ListAccounts>\n }\n\n txChanged: {\n params: Params<TxChanged>\n result: Result<TxChanged>\n }\n\n messageSignature: {\n params: Params<MessageSignature>\n result: Result<MessageSignature>\n }\n}\n\nexport class WalletJSONRPCRemoteDAppAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n return response.result as RpcTypes[M]['result']\n }\n}\nexport default WalletJSONRPCRemoteDAppAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0uBA,IAAa,6BAAb,MAAwC;CAGpC,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAE9B,QAAO,MADgB,KAAK,UAAU,OAAO,IAAsB,EAAA,CACnD;CACpB;AACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -462,6 +462,34 @@ export interface TxChangedExecutedEvent {
|
|
|
462
462
|
*
|
|
463
463
|
*/
|
|
464
464
|
export type StatusFailed = 'failed';
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* One of the EIP-1193 or EIP-1474 error codes adopted by CIP-103.
|
|
468
|
+
*
|
|
469
|
+
*/
|
|
470
|
+
export type ErrorCode = number;
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* Human readable description of the failure.
|
|
474
|
+
*
|
|
475
|
+
*/
|
|
476
|
+
export type ErrorMessage = string;
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* Optional additional information about the failure, as for JSON-RPC errors.
|
|
480
|
+
*
|
|
481
|
+
*/
|
|
482
|
+
export type ErrorData = any;
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* Why it failed, as a JSON-RPC error object with one of the error codes adopted by CIP-103, e.g. 4001 when the user rejected it or -32003 when the signing provider or the ledger rejected it. The message is human readable and meant for display, not for parsing.
|
|
486
|
+
*
|
|
487
|
+
*/
|
|
488
|
+
export interface FailureError {
|
|
489
|
+
code: ErrorCode;
|
|
490
|
+
message: ErrorMessage;
|
|
491
|
+
data?: ErrorData;
|
|
492
|
+
}
|
|
465
493
|
/**
|
|
466
494
|
*
|
|
467
495
|
* Event emitted when a transaction has failed.
|
|
@@ -470,6 +498,7 @@ export type StatusFailed = 'failed';
|
|
|
470
498
|
export interface TxChangedFailedEvent {
|
|
471
499
|
status: StatusFailed;
|
|
472
500
|
commandId: CommandId;
|
|
501
|
+
error?: FailureError;
|
|
473
502
|
}
|
|
474
503
|
/**
|
|
475
504
|
*
|
|
@@ -498,6 +527,7 @@ export interface MessageSignatureSignedEvent {
|
|
|
498
527
|
export interface MessageSignatureFailedEvent {
|
|
499
528
|
status: StatusFailed;
|
|
500
529
|
messageId: MessageId;
|
|
530
|
+
error?: FailureError;
|
|
501
531
|
}
|
|
502
532
|
/**
|
|
503
533
|
*
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,4BAA4B,CAAA;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAGtE;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAE9B;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB;AAED,MAAM,WAAW,aAAa;IAC1B,aAAa,EAAE,oBAAoB,CAAA;CACtC;AACD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB;AACD,MAAM,WAAW,eAAe;IAC5B,eAAe,EAAE,sBAAsB,CAAA;CAC1C;AACD;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB;AAC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M,EAAE,MAAM,CAAC,eAAe,CAAC,CAAA;QAC/B,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC,CAAA;KAClC,CAAA;IAED,iBAAiB,EAAE;QACf,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACjC,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAA;KACpC,CAAA;IAED,YAAY,EAAE;QACV,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAA;QAC5B,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAA;KAC/B,CAAA;IAED,SAAS,EAAE;QACP,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;QACzB,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;KAC5B,CAAA;IAED,gBAAgB,EAAE;QACd,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAA;QAChC,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAA;KACnC,CAAA;CACJ,CAAA;AAED,qBAAa,0BAA0B;IAC5B,SAAS,EAAE,YAAY,CAAA;IAE9B,YAAY,SAAS,EAAE,YAAY,EAElC;IAEY,OAAO,CAAC,CAAC,SAAS,MAAM,QAAQ,EACzC,IAAI,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,GAC/B,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAGhC;CACJ;eACc,0BAA0B"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// \0@oxc-project+runtime@0.
|
|
1
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -7,23 +7,23 @@ function _typeof(o) {
|
|
|
7
7
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
|
-
// \0@oxc-project+runtime@0.
|
|
11
|
-
function toPrimitive(t,
|
|
10
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
11
|
+
function toPrimitive(t, e) {
|
|
12
12
|
if ("object" != _typeof(t) || !t) return t;
|
|
13
|
-
var
|
|
14
|
-
if (void 0 !==
|
|
15
|
-
var i =
|
|
13
|
+
var r;
|
|
14
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
15
|
+
var i = r.call(t, e || "default");
|
|
16
16
|
if ("object" != _typeof(i)) return i;
|
|
17
17
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
18
18
|
}
|
|
19
|
-
return ("string" ===
|
|
19
|
+
return ("string" === e ? String : Number)(t);
|
|
20
20
|
}
|
|
21
|
-
// \0@oxc-project+runtime@0.
|
|
21
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
22
22
|
function toPropertyKey(t) {
|
|
23
23
|
var i = toPrimitive(t, "string");
|
|
24
24
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
25
25
|
}
|
|
26
|
-
// \0@oxc-project+runtime@0.
|
|
26
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
27
27
|
function _defineProperty(e, r, t) {
|
|
28
28
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
29
29
|
value: t,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Code generated by @open-rpc/generator DO NOT EDIT.\nimport type { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport type { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* oxlint-disable no-unused-vars */\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\ntype AlwaysTrue = any\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateCommand schema; do not re-specify here.\n *\n */\nexport interface CreateCommandPayload {\n [key: string]: any\n}\ntype AlwaysFalse = any\nexport interface CreateCommand {\n CreateCommand: CreateCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseCommand {\n ExerciseCommand: ExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateAndExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface CreateAndExerciseCommandPayload {\n [key: string]: any\n}\nexport interface CreateAndExerciseCommand {\n CreateAndExerciseCommand: CreateAndExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseByKeyCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseByKeyCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseByKeyCommand {\n ExerciseByKeyCommand: ExerciseByKeyCommandPayload\n}\n/**\n *\n * A Daml command atom. Mirror of the Canton Ledger API Command union; inner shapes are intentionally opaque so the dApp layer never drifts from the Ledger API contract.\n *\n */\nexport type Command =\n | CreateCommand\n | ExerciseCommand\n | CreateAndExerciseCommand\n | ExerciseByKeyCommand\n/**\n *\n * Non-empty array of Daml command atoms to submit atomically as a single transaction.\n *\n */\nexport type Commands = Command[]\n/**\n *\n * The party that signed the transaction.\n *\n */\nexport type Party = string\n/**\n *\n * Set of parties on whose behalf the command should be executed, if submitted. If not set, the primary wallet's party is used.\n *\n */\nexport type ActAs = Party[]\n/**\n *\n * Set of parties that should be granted read access to the command, if submitted. If not set, no additional read parties are granted.\n *\n */\nexport type ReadAs = Party[]\n/**\n *\n * The template identifier of the disclosed contract.\n *\n */\nexport type TemplateId = string\n/**\n *\n * The unique identifier of the disclosed contract.\n *\n */\nexport type ContractId = string\n/**\n *\n * The blob data of the created event for the disclosed contract.\n *\n */\nexport type CreatedEventBlob = string\n/**\n *\n * If not set, a suitable synchronizer that this node is connected to will be chosen.\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Structure representing a disclosed contract for transaction execution\n *\n */\nexport interface DisclosedContract {\n templateId?: TemplateId\n contractId?: ContractId\n createdEventBlob: CreatedEventBlob\n synchronizerId?: SynchronizerId\n}\n/**\n *\n * List of contract IDs to be disclosed with the command.\n *\n */\nexport type DisclosedContracts = DisclosedContract[]\nexport type PackageId = string\n/**\n *\n * The package-id selection preference of the client for resolving package names and interface instances in command submission and interpretation\n *\n */\nexport type PackageIdSelectionPreference = PackageId[]\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\nexport type RequestMethod = 'get' | 'post' | 'patch' | 'put' | 'delete'\nexport type Resource = string\nexport interface Body {\n [key: string]: any\n}\n/**\n *\n * Query parameters as key-value pairs.\n *\n */\nexport interface Query {\n [key: string]: any\n}\n/**\n *\n * Path parameters as key-value pairs.\n *\n */\nexport interface Path {\n [key: string]: any\n}\n/**\n *\n * The unique identifier of the Provider.\n *\n */\nexport type ProviderId = string\n/**\n *\n * The version of the Provider.\n *\n */\nexport type Version = string\n/**\n *\n * The type of client that implements the Provider.\n *\n */\nexport type ProviderType = 'browser' | 'desktop' | 'mobile' | 'remote'\n/**\n *\n * The URL of the Wallet Provider.\n *\n */\nexport type Url = string\n/**\n *\n * A URL that points to a user interface.\n *\n */\nexport type UserUrl = string\n/**\n *\n * Represents a Provider.\n *\n */\nexport interface Provider {\n id: ProviderId\n version?: Version\n providerType: ProviderType\n url?: Url\n userUrl?: UserUrl\n}\n/**\n *\n * Whether or not the user is authenticated with the Wallet.\n *\n */\nexport type IsConnectedValue = boolean\n/**\n *\n * Reason for the wallet state, e.g., 'no signing provider matched'.\n *\n */\nexport type Reason = string\n/**\n *\n * Whether or not a connection to a network is established.\n *\n */\nexport type IsNetworkConnected = boolean\n/**\n *\n * If not connected to a network, the reason why.\n *\n */\nexport type NetworkReason = string\nexport interface ConnectResult {\n isConnected: IsConnectedValue\n reason?: Reason\n isNetworkConnected: IsNetworkConnected\n networkReason?: NetworkReason\n userUrl?: UserUrl\n}\n/**\n *\n * The network ID the wallet corresponds to.\n *\n */\nexport type NetworkId = string\n/**\n *\n * The base URL of the ledger API.\n *\n */\nexport type LedgerApiUrl = string\n/**\n *\n * JWT authentication token.\n *\n */\nexport type AccessToken = string\n/**\n *\n * Network information, if connected to a network.\n *\n */\nexport interface Network {\n networkId: NetworkId\n ledgerApi?: LedgerApiUrl\n accessToken?: AccessToken\n}\n/**\n *\n * The user identifier.\n *\n */\nexport type UserId = string\n/**\n *\n * Session information, if authenticated.\n *\n */\nexport interface Session {\n accessToken: AccessToken\n userId: UserId\n}\n/**\n *\n * The unique identifier of the message associated with the message to be signed.\n *\n */\nexport type MessageId = string\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party ID corresponding to the wallet.\n *\n */\nexport type PartyId = string\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\n/**\n *\n * Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n isAuthParty?: IsAuthParty\n rights: PartyRights\n}\n/**\n *\n * Whether the party authenticates the user with self-issued tokens.\n *\n */\nexport type IsAuthParty = boolean\nexport type PartyLevelRight = 'CanActAs' | 'CanReadAs' | 'CanExecuteAs'\n/**\n *\n * The rights of the wallet.\n *\n */\nexport type PartyRights = PartyLevelRight[]\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusPending = 'pending'\n/**\n *\n * Event emitted when a transaction is pending.\n *\n */\nexport interface TxChangedPendingEvent {\n status: StatusPending\n commandId: CommandId\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusSigned = 'signed'\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\n/**\n *\n * The identifier of the provider that signed the transaction.\n *\n */\nexport type SignedBy = string\n/**\n *\n * Payload for the TxChangedSignedEvent.\n *\n */\nexport interface TxChangedSignedPayload {\n signature: Signature\n signedBy: SignedBy\n party: Party\n}\n/**\n *\n * Event emitted when a transaction has been signed.\n *\n */\nexport interface TxChangedSignedEvent {\n status: StatusSigned\n commandId: CommandId\n payload: TxChangedSignedPayload\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type StatusExecuted = 'executed'\n/**\n *\n * The update ID corresponding to the transaction.\n *\n */\nexport type UpdateId = string\nexport type CompletionOffset = number\n/**\n *\n * Payload for the TxChangedExecutedEvent.\n *\n */\nexport interface TxChangedExecutedPayload {\n updateId: UpdateId\n completionOffset: CompletionOffset\n}\n/**\n *\n * Event emitted when a transaction is executed against the participant.\n *\n */\nexport interface TxChangedExecutedEvent {\n status: StatusExecuted\n commandId: CommandId\n payload: TxChangedExecutedPayload\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusFailed = 'failed'\n/**\n *\n * Event emitted when a transaction has failed.\n *\n */\nexport interface TxChangedFailedEvent {\n status: StatusFailed\n commandId: CommandId\n}\n/**\n *\n * Event emitted when a message signature is requested.\n *\n */\nexport interface MessageSignaturePendingEvent {\n status: StatusPending\n messageId: MessageId\n}\n/**\n *\n * Event emitted when a message signature is completed.\n *\n */\nexport interface MessageSignatureSignedEvent {\n status: StatusSigned\n messageId: MessageId\n signature: Signature\n}\n/**\n *\n * Event emitted when a message signature has failed.\n *\n */\nexport interface MessageSignatureFailedEvent {\n status: StatusFailed\n messageId: MessageId\n}\n/**\n *\n * Structure representing the request for prepare and execute calls\n *\n */\nexport interface PrepareExecuteParams {\n commandId?: CommandId\n commands: Commands\n actAs?: ActAs\n readAs?: ReadAs\n disclosedContracts?: DisclosedContracts\n synchronizerId?: SynchronizerId\n packageIdSelectionPreference?: PackageIdSelectionPreference\n}\n/**\n *\n * Request to sign a message.\n *\n */\nexport interface SignMessageParams {\n message: Message\n}\n/**\n *\n * Ledger API request structure\n *\n */\nexport interface LedgerApiParams {\n requestMethod: RequestMethod\n resource: Resource\n body?: Body\n query?: Query\n path?: Path\n}\nexport interface StatusEvent {\n provider: Provider\n connection: ConnectResult\n network?: Network\n session?: Session\n}\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface PrepareExecuteResult {\n userUrl: UserUrl\n}\nexport interface SignMessageResult {\n messageId: MessageId\n userUrl: UserUrl\n}\n/**\n *\n * Ledger Api response\n *\n */\nexport interface LedgerApiResult {\n [key: string]: any\n}\n/**\n *\n * Event emitted when the user's accounts change.\n *\n */\nexport type AccountsChangedEvent = Wallet[]\n/**\n *\n * An array of accounts that the user has authorized the dapp to access..\n *\n */\nexport type ListAccountsResult = Wallet[]\n/**\n *\n * Event emitted when a transaction changes.\n *\n */\nexport type TxChangedEvent =\n | TxChangedPendingEvent\n | TxChangedSignedEvent\n | TxChangedExecutedEvent\n | TxChangedFailedEvent\n/**\n *\n * Event emitted when a message signature is requested or completed.\n *\n */\nexport type MessageSignatureEvent =\n | MessageSignaturePendingEvent\n | MessageSignatureSignedEvent\n | MessageSignatureFailedEvent\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type Status = () => Promise<StatusEvent>\nexport type Connect = () => Promise<ConnectResult>\nexport type Disconnect = () => Promise<Null>\nexport type IsConnected = () => Promise<ConnectResult>\nexport type GetActiveNetwork = () => Promise<Network>\nexport type PrepareExecute = (\n params: PrepareExecuteParams\n) => Promise<PrepareExecuteResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type LedgerApi = (params: LedgerApiParams) => Promise<LedgerApiResult>\nexport type Connected = () => Promise<StatusEvent>\nexport type OnStatusChanged = () => Promise<StatusEvent>\nexport type AccountsChanged = () => Promise<AccountsChangedEvent>\nexport type GetPrimaryAccount = () => Promise<Wallet>\nexport type ListAccounts = () => Promise<ListAccountsResult>\nexport type TxChanged = () => Promise<TxChangedEvent>\nexport type MessageSignature = () => Promise<MessageSignatureEvent>\n/* oxlint-enable no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n status: {\n params: Params<Status>\n result: Result<Status>\n }\n\n connect: {\n params: Params<Connect>\n result: Result<Connect>\n }\n\n disconnect: {\n params: Params<Disconnect>\n result: Result<Disconnect>\n }\n\n isConnected: {\n params: Params<IsConnected>\n result: Result<IsConnected>\n }\n\n getActiveNetwork: {\n params: Params<GetActiveNetwork>\n result: Result<GetActiveNetwork>\n }\n\n prepareExecute: {\n params: Params<PrepareExecute>\n result: Result<PrepareExecute>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n ledgerApi: {\n params: Params<LedgerApi>\n result: Result<LedgerApi>\n }\n\n connected: {\n params: Params<Connected>\n result: Result<Connected>\n }\n\n onStatusChanged: {\n params: Params<OnStatusChanged>\n result: Result<OnStatusChanged>\n }\n\n accountsChanged: {\n params: Params<AccountsChanged>\n result: Result<AccountsChanged>\n }\n\n getPrimaryAccount: {\n params: Params<GetPrimaryAccount>\n result: Result<GetPrimaryAccount>\n }\n\n listAccounts: {\n params: Params<ListAccounts>\n result: Result<ListAccounts>\n }\n\n txChanged: {\n params: Params<TxChanged>\n result: Result<TxChanged>\n }\n\n messageSignature: {\n params: Params<MessageSignature>\n result: Result<MessageSignature>\n }\n}\n\nexport class WalletJSONRPCRemoteDAppAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n return response.result as RpcTypes[M]['result']\n }\n}\nexport default WalletJSONRPCRemoteDAppAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4sBA,IAAa,6BAAb,MAAwC;CAGpC,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAE9B,QAAO,MADgB,KAAK,UAAU,OAAO,IAAsB,EAAA,CACnD;CACpB;AACJ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Code generated by @open-rpc/generator DO NOT EDIT.\nimport type { RequestArgs, RequestPayload } from '@canton-network/core-types'\nimport type { RpcTransport } from '@canton-network/core-rpc-transport'\n\n/* oxlint-disable no-unused-vars */\n/**\n *\n * The unique identifier of the command associated with the transaction.\n *\n */\nexport type CommandId = string\ntype AlwaysTrue = any\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateCommand schema; do not re-specify here.\n *\n */\nexport interface CreateCommandPayload {\n [key: string]: any\n}\ntype AlwaysFalse = any\nexport interface CreateCommand {\n CreateCommand: CreateCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseCommand {\n ExerciseCommand: ExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API CreateAndExerciseCommand schema; do not re-specify here.\n *\n */\nexport interface CreateAndExerciseCommandPayload {\n [key: string]: any\n}\nexport interface CreateAndExerciseCommand {\n CreateAndExerciseCommand: CreateAndExerciseCommandPayload\n}\n/**\n *\n * Inner shape is defined by the Canton Ledger API ExerciseByKeyCommand schema; do not re-specify here.\n *\n */\nexport interface ExerciseByKeyCommandPayload {\n [key: string]: any\n}\nexport interface ExerciseByKeyCommand {\n ExerciseByKeyCommand: ExerciseByKeyCommandPayload\n}\n/**\n *\n * A Daml command atom. Mirror of the Canton Ledger API Command union; inner shapes are intentionally opaque so the dApp layer never drifts from the Ledger API contract.\n *\n */\nexport type Command =\n | CreateCommand\n | ExerciseCommand\n | CreateAndExerciseCommand\n | ExerciseByKeyCommand\n/**\n *\n * Non-empty array of Daml command atoms to submit atomically as a single transaction.\n *\n */\nexport type Commands = Command[]\n/**\n *\n * The party that signed the transaction.\n *\n */\nexport type Party = string\n/**\n *\n * Set of parties on whose behalf the command should be executed, if submitted. If not set, the primary wallet's party is used.\n *\n */\nexport type ActAs = Party[]\n/**\n *\n * Set of parties that should be granted read access to the command, if submitted. If not set, no additional read parties are granted.\n *\n */\nexport type ReadAs = Party[]\n/**\n *\n * The template identifier of the disclosed contract.\n *\n */\nexport type TemplateId = string\n/**\n *\n * The unique identifier of the disclosed contract.\n *\n */\nexport type ContractId = string\n/**\n *\n * The blob data of the created event for the disclosed contract.\n *\n */\nexport type CreatedEventBlob = string\n/**\n *\n * If not set, a suitable synchronizer that this node is connected to will be chosen.\n *\n */\nexport type SynchronizerId = string\n/**\n *\n * Structure representing a disclosed contract for transaction execution\n *\n */\nexport interface DisclosedContract {\n templateId?: TemplateId\n contractId?: ContractId\n createdEventBlob: CreatedEventBlob\n synchronizerId?: SynchronizerId\n}\n/**\n *\n * List of contract IDs to be disclosed with the command.\n *\n */\nexport type DisclosedContracts = DisclosedContract[]\nexport type PackageId = string\n/**\n *\n * The package-id selection preference of the client for resolving package names and interface instances in command submission and interpretation\n *\n */\nexport type PackageIdSelectionPreference = PackageId[]\n/**\n *\n * The message to sign.\n *\n */\nexport type Message = string\nexport type RequestMethod = 'get' | 'post' | 'patch' | 'put' | 'delete'\nexport type Resource = string\nexport interface Body {\n [key: string]: any\n}\n/**\n *\n * Query parameters as key-value pairs.\n *\n */\nexport interface Query {\n [key: string]: any\n}\n/**\n *\n * Path parameters as key-value pairs.\n *\n */\nexport interface Path {\n [key: string]: any\n}\n/**\n *\n * The unique identifier of the Provider.\n *\n */\nexport type ProviderId = string\n/**\n *\n * The version of the Provider.\n *\n */\nexport type Version = string\n/**\n *\n * The type of client that implements the Provider.\n *\n */\nexport type ProviderType = 'browser' | 'desktop' | 'mobile' | 'remote'\n/**\n *\n * The URL of the Wallet Provider.\n *\n */\nexport type Url = string\n/**\n *\n * A URL that points to a user interface.\n *\n */\nexport type UserUrl = string\n/**\n *\n * Represents a Provider.\n *\n */\nexport interface Provider {\n id: ProviderId\n version?: Version\n providerType: ProviderType\n url?: Url\n userUrl?: UserUrl\n}\n/**\n *\n * Whether or not the user is authenticated with the Wallet.\n *\n */\nexport type IsConnectedValue = boolean\n/**\n *\n * Reason for the wallet state, e.g., 'no signing provider matched'.\n *\n */\nexport type Reason = string\n/**\n *\n * Whether or not a connection to a network is established.\n *\n */\nexport type IsNetworkConnected = boolean\n/**\n *\n * If not connected to a network, the reason why.\n *\n */\nexport type NetworkReason = string\nexport interface ConnectResult {\n isConnected: IsConnectedValue\n reason?: Reason\n isNetworkConnected: IsNetworkConnected\n networkReason?: NetworkReason\n userUrl?: UserUrl\n}\n/**\n *\n * The network ID the wallet corresponds to.\n *\n */\nexport type NetworkId = string\n/**\n *\n * The base URL of the ledger API.\n *\n */\nexport type LedgerApiUrl = string\n/**\n *\n * JWT authentication token.\n *\n */\nexport type AccessToken = string\n/**\n *\n * Network information, if connected to a network.\n *\n */\nexport interface Network {\n networkId: NetworkId\n ledgerApi?: LedgerApiUrl\n accessToken?: AccessToken\n}\n/**\n *\n * The user identifier.\n *\n */\nexport type UserId = string\n/**\n *\n * Session information, if authenticated.\n *\n */\nexport interface Session {\n accessToken: AccessToken\n userId: UserId\n}\n/**\n *\n * The unique identifier of the message associated with the message to be signed.\n *\n */\nexport type MessageId = string\n/**\n *\n * Set as primary wallet for dApp usage.\n *\n */\nexport type Primary = boolean\n/**\n *\n * The party ID corresponding to the wallet.\n *\n */\nexport type PartyId = string\n/**\n *\n * The status of the wallet.\n *\n */\nexport type WalletStatus = 'initialized' | 'allocated' | 'removed'\n/**\n *\n * The party hint and name of the wallet.\n *\n */\nexport type Hint = string\n/**\n *\n * The public key of the party.\n *\n */\nexport type PublicKey = string\n/**\n *\n * The namespace of the party.\n *\n */\nexport type Namespace = string\n/**\n *\n * The signing provider ID the wallet corresponds to.\n *\n */\nexport type SigningProviderId = string\n/**\n *\n * Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.\n *\n */\nexport type ExternalTxId = string\n/**\n *\n * The topology transactions\n *\n */\nexport type TopologyTransactions = string\n/**\n *\n * Whether the wallet is disabled. Wallets are disabled when no signing provider matches the party's namespace during sync. Disabled wallets use participant as the default signing provider.\n *\n */\nexport type Disabled = boolean\n/**\n *\n * Structure representing a wallet\n *\n */\nexport interface Wallet {\n primary: Primary\n partyId: PartyId\n status: WalletStatus\n hint: Hint\n publicKey: PublicKey\n namespace: Namespace\n networkId: NetworkId\n signingProviderId: SigningProviderId\n externalTxId?: ExternalTxId\n topologyTransactions?: TopologyTransactions\n disabled?: Disabled\n reason?: Reason\n isAuthParty?: IsAuthParty\n rights: PartyRights\n}\n/**\n *\n * Whether the party authenticates the user with self-issued tokens.\n *\n */\nexport type IsAuthParty = boolean\nexport type PartyLevelRight = 'CanActAs' | 'CanReadAs' | 'CanExecuteAs'\n/**\n *\n * The rights of the wallet.\n *\n */\nexport type PartyRights = PartyLevelRight[]\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusPending = 'pending'\n/**\n *\n * Event emitted when a transaction is pending.\n *\n */\nexport interface TxChangedPendingEvent {\n status: StatusPending\n commandId: CommandId\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusSigned = 'signed'\n/**\n *\n * The signature of the message.\n *\n */\nexport type Signature = string\n/**\n *\n * The identifier of the provider that signed the transaction.\n *\n */\nexport type SignedBy = string\n/**\n *\n * Payload for the TxChangedSignedEvent.\n *\n */\nexport interface TxChangedSignedPayload {\n signature: Signature\n signedBy: SignedBy\n party: Party\n}\n/**\n *\n * Event emitted when a transaction has been signed.\n *\n */\nexport interface TxChangedSignedEvent {\n status: StatusSigned\n commandId: CommandId\n payload: TxChangedSignedPayload\n}\n/**\n *\n * The status of the transaction.\n *\n */\nexport type StatusExecuted = 'executed'\n/**\n *\n * The update ID corresponding to the transaction.\n *\n */\nexport type UpdateId = string\nexport type CompletionOffset = number\n/**\n *\n * Payload for the TxChangedExecutedEvent.\n *\n */\nexport interface TxChangedExecutedPayload {\n updateId: UpdateId\n completionOffset: CompletionOffset\n}\n/**\n *\n * Event emitted when a transaction is executed against the participant.\n *\n */\nexport interface TxChangedExecutedEvent {\n status: StatusExecuted\n commandId: CommandId\n payload: TxChangedExecutedPayload\n}\n/**\n *\n * The status of the message signature.\n *\n */\nexport type StatusFailed = 'failed'\n/**\n *\n * One of the EIP-1193 or EIP-1474 error codes adopted by CIP-103.\n *\n */\nexport type ErrorCode = number\n/**\n *\n * Human readable description of the failure.\n *\n */\nexport type ErrorMessage = string\n/**\n *\n * Optional additional information about the failure, as for JSON-RPC errors.\n *\n */\nexport type ErrorData = any\n/**\n *\n * Why it failed, as a JSON-RPC error object with one of the error codes adopted by CIP-103, e.g. 4001 when the user rejected it or -32003 when the signing provider or the ledger rejected it. The message is human readable and meant for display, not for parsing.\n *\n */\nexport interface FailureError {\n code: ErrorCode\n message: ErrorMessage\n data?: ErrorData\n}\n/**\n *\n * Event emitted when a transaction has failed.\n *\n */\nexport interface TxChangedFailedEvent {\n status: StatusFailed\n commandId: CommandId\n error?: FailureError\n}\n/**\n *\n * Event emitted when a message signature is requested.\n *\n */\nexport interface MessageSignaturePendingEvent {\n status: StatusPending\n messageId: MessageId\n}\n/**\n *\n * Event emitted when a message signature is completed.\n *\n */\nexport interface MessageSignatureSignedEvent {\n status: StatusSigned\n messageId: MessageId\n signature: Signature\n}\n/**\n *\n * Event emitted when a message signature has failed.\n *\n */\nexport interface MessageSignatureFailedEvent {\n status: StatusFailed\n messageId: MessageId\n error?: FailureError\n}\n/**\n *\n * Structure representing the request for prepare and execute calls\n *\n */\nexport interface PrepareExecuteParams {\n commandId?: CommandId\n commands: Commands\n actAs?: ActAs\n readAs?: ReadAs\n disclosedContracts?: DisclosedContracts\n synchronizerId?: SynchronizerId\n packageIdSelectionPreference?: PackageIdSelectionPreference\n}\n/**\n *\n * Request to sign a message.\n *\n */\nexport interface SignMessageParams {\n message: Message\n}\n/**\n *\n * Ledger API request structure\n *\n */\nexport interface LedgerApiParams {\n requestMethod: RequestMethod\n resource: Resource\n body?: Body\n query?: Query\n path?: Path\n}\nexport interface StatusEvent {\n provider: Provider\n connection: ConnectResult\n network?: Network\n session?: Session\n}\n/**\n *\n * Represents a null value, used in responses where no data is returned.\n *\n */\nexport type Null = null\nexport interface PrepareExecuteResult {\n userUrl: UserUrl\n}\nexport interface SignMessageResult {\n messageId: MessageId\n userUrl: UserUrl\n}\n/**\n *\n * Ledger Api response\n *\n */\nexport interface LedgerApiResult {\n [key: string]: any\n}\n/**\n *\n * Event emitted when the user's accounts change.\n *\n */\nexport type AccountsChangedEvent = Wallet[]\n/**\n *\n * An array of accounts that the user has authorized the dapp to access..\n *\n */\nexport type ListAccountsResult = Wallet[]\n/**\n *\n * Event emitted when a transaction changes.\n *\n */\nexport type TxChangedEvent =\n | TxChangedPendingEvent\n | TxChangedSignedEvent\n | TxChangedExecutedEvent\n | TxChangedFailedEvent\n/**\n *\n * Event emitted when a message signature is requested or completed.\n *\n */\nexport type MessageSignatureEvent =\n | MessageSignaturePendingEvent\n | MessageSignatureSignedEvent\n | MessageSignatureFailedEvent\n/**\n *\n * Generated! Represents an alias to any of the provided schemas\n *\n */\n\nexport type Status = () => Promise<StatusEvent>\nexport type Connect = () => Promise<ConnectResult>\nexport type Disconnect = () => Promise<Null>\nexport type IsConnected = () => Promise<ConnectResult>\nexport type GetActiveNetwork = () => Promise<Network>\nexport type PrepareExecute = (\n params: PrepareExecuteParams\n) => Promise<PrepareExecuteResult>\nexport type SignMessage = (\n params: SignMessageParams\n) => Promise<SignMessageResult>\nexport type LedgerApi = (params: LedgerApiParams) => Promise<LedgerApiResult>\nexport type Connected = () => Promise<StatusEvent>\nexport type OnStatusChanged = () => Promise<StatusEvent>\nexport type AccountsChanged = () => Promise<AccountsChangedEvent>\nexport type GetPrimaryAccount = () => Promise<Wallet>\nexport type ListAccounts = () => Promise<ListAccountsResult>\nexport type TxChanged = () => Promise<TxChangedEvent>\nexport type MessageSignature = () => Promise<MessageSignatureEvent>\n/* oxlint-enable no-unused-vars */\n\ntype Params<T> = T extends (...args: infer A) => any\n ? A extends []\n ? never\n : A[0]\n : never\ntype Result<T> = T extends (...args: any[]) => Promise<infer R> ? R : never\n\nexport type RpcTypes = {\n status: {\n params: Params<Status>\n result: Result<Status>\n }\n\n connect: {\n params: Params<Connect>\n result: Result<Connect>\n }\n\n disconnect: {\n params: Params<Disconnect>\n result: Result<Disconnect>\n }\n\n isConnected: {\n params: Params<IsConnected>\n result: Result<IsConnected>\n }\n\n getActiveNetwork: {\n params: Params<GetActiveNetwork>\n result: Result<GetActiveNetwork>\n }\n\n prepareExecute: {\n params: Params<PrepareExecute>\n result: Result<PrepareExecute>\n }\n\n signMessage: {\n params: Params<SignMessage>\n result: Result<SignMessage>\n }\n\n ledgerApi: {\n params: Params<LedgerApi>\n result: Result<LedgerApi>\n }\n\n connected: {\n params: Params<Connected>\n result: Result<Connected>\n }\n\n onStatusChanged: {\n params: Params<OnStatusChanged>\n result: Result<OnStatusChanged>\n }\n\n accountsChanged: {\n params: Params<AccountsChanged>\n result: Result<AccountsChanged>\n }\n\n getPrimaryAccount: {\n params: Params<GetPrimaryAccount>\n result: Result<GetPrimaryAccount>\n }\n\n listAccounts: {\n params: Params<ListAccounts>\n result: Result<ListAccounts>\n }\n\n txChanged: {\n params: Params<TxChanged>\n result: Result<TxChanged>\n }\n\n messageSignature: {\n params: Params<MessageSignature>\n result: Result<MessageSignature>\n }\n}\n\nexport class WalletJSONRPCRemoteDAppAPI {\n public transport: RpcTransport\n\n constructor(transport: RpcTransport) {\n this.transport = transport\n }\n\n public async request<M extends keyof RpcTypes>(\n args: RequestArgs<RpcTypes, M>\n ): Promise<RpcTypes[M]['result']> {\n const response = await this.transport.submit(args as RequestPayload)\n return response.result as RpcTypes[M]['result']\n }\n}\nexport default WalletJSONRPCRemoteDAppAPI\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0uBA,IAAa,6BAAb,MAAwC;CAGpC,YAAY,WAAyB;EAF9B,gBAAA,MAAA,aAAA,KAAA,CAAA;EAGH,KAAK,YAAY;CACrB;CAEA,MAAa,QACT,MAC8B;EAE9B,QAAO,MADgB,KAAK,UAAU,OAAO,IAAsB,EAAA,CACnD;CACpB;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-wallet-dapp-remote-rpc-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript client generated by OpenRPC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@canton-network/core-rpc-transport": "1.
|
|
27
|
-
"@canton-network/core-types": "2.
|
|
26
|
+
"@canton-network/core-rpc-transport": "1.18.0",
|
|
27
|
+
"@canton-network/core-types": "2.4.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"tsdown": "^0.23.
|
|
30
|
+
"tsdown": "^0.23.7",
|
|
31
31
|
"typedoc": "^0.28.20",
|
|
32
32
|
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
33
33
|
},
|