@human.tech/waap-sdk 2.2.0-staging-96d8fa → 2.2.0-staging-ac3dde
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/CHANGELOG.md +1 -1
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -272,12 +272,27 @@ declare const rpcMethodRequiresUI: (method: JSON_RPC_METHOD) => boolean;
|
|
|
272
272
|
*/
|
|
273
273
|
declare function handleWalletRequestAndResponse(args: RequestArguments, interactionRequired: boolean, walletMessageManager: WalletMessageManager, internalProviderEventEmitter: EventEmitter, silkOptions?: WaaPRequestOptions): Promise<any>;
|
|
274
274
|
//#endregion
|
|
275
|
-
//#region ../waap-core/dist/index-
|
|
275
|
+
//#region ../waap-core/dist/index-DrVqylZO.d.ts
|
|
276
276
|
/** Canonical chain identifier signed into a permission token. */
|
|
277
277
|
type PermissionTokenChain = `evm:${number}` | `sui:${string}` | `solana:${string}`;
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region src/permission-token/scope.d.ts
|
|
280
280
|
type HexBytes = `0x${string}`;
|
|
281
|
+
/**
|
|
282
|
+
* Wildcarding is not uniform across chains, because the identifiers are not
|
|
283
|
+
* comparable. `target:*` — any supported action on a target — is available
|
|
284
|
+
* everywhere. Beyond that:
|
|
285
|
+
*
|
|
286
|
+
* - **Sui** supports `module::*`, because a Move module is a named namespace
|
|
287
|
+
* and "every function in it" is a set the user can reason about.
|
|
288
|
+
* - **EVM** has no partial wildcard. A selector is four bytes of a hash with no
|
|
289
|
+
* structure to generalize over, so a scope names one method or the whole
|
|
290
|
+
* contract.
|
|
291
|
+
* - **Solana** has no explicit wildcard, but
|
|
292
|
+
* {@link permissionTokenSolanaDiscriminator} is already a prefix match — a
|
|
293
|
+
* discriminator authorizes every instruction whose data starts with it.
|
|
294
|
+
* {@link permissionTokenSolanaInstruction} is the exact-payload form.
|
|
295
|
+
*/
|
|
281
296
|
/** A plain address authorizes only value or asset delivery to that recipient. */
|
|
282
297
|
declare function permissionTokenRecipient(chain: PermissionTokenChain, address: string): string;
|
|
283
298
|
/** Authorize every directly-invoked function on one EVM contract. */
|
package/dist/index.d.ts
CHANGED
|
@@ -272,12 +272,27 @@ declare const rpcMethodRequiresUI: (method: JSON_RPC_METHOD) => boolean;
|
|
|
272
272
|
*/
|
|
273
273
|
declare function handleWalletRequestAndResponse(args: RequestArguments, interactionRequired: boolean, walletMessageManager: WalletMessageManager, internalProviderEventEmitter: EventEmitter, silkOptions?: WaaPRequestOptions): Promise<any>;
|
|
274
274
|
//#endregion
|
|
275
|
-
//#region ../waap-core/dist/index-
|
|
275
|
+
//#region ../waap-core/dist/index-DrVqylZO.d.ts
|
|
276
276
|
/** Canonical chain identifier signed into a permission token. */
|
|
277
277
|
type PermissionTokenChain = `evm:${number}` | `sui:${string}` | `solana:${string}`;
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region src/permission-token/scope.d.ts
|
|
280
280
|
type HexBytes = `0x${string}`;
|
|
281
|
+
/**
|
|
282
|
+
* Wildcarding is not uniform across chains, because the identifiers are not
|
|
283
|
+
* comparable. `target:*` — any supported action on a target — is available
|
|
284
|
+
* everywhere. Beyond that:
|
|
285
|
+
*
|
|
286
|
+
* - **Sui** supports `module::*`, because a Move module is a named namespace
|
|
287
|
+
* and "every function in it" is a set the user can reason about.
|
|
288
|
+
* - **EVM** has no partial wildcard. A selector is four bytes of a hash with no
|
|
289
|
+
* structure to generalize over, so a scope names one method or the whole
|
|
290
|
+
* contract.
|
|
291
|
+
* - **Solana** has no explicit wildcard, but
|
|
292
|
+
* {@link permissionTokenSolanaDiscriminator} is already a prefix match — a
|
|
293
|
+
* discriminator authorizes every instruction whose data starts with it.
|
|
294
|
+
* {@link permissionTokenSolanaInstruction} is the exact-payload form.
|
|
295
|
+
*/
|
|
281
296
|
/** A plain address authorizes only value or asset delivery to that recipient. */
|
|
282
297
|
declare function permissionTokenRecipient(chain: PermissionTokenChain, address: string): string;
|
|
283
298
|
/** Authorize every directly-invoked function on one EVM contract. */
|