@inco/shield-js 0.1.0 → 0.2.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/README.md +52 -308
- package/dist/contracts/abi.d.ts +2000 -4513
- package/dist/contracts/abi.js +2400 -5651
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +2 -2
- package/dist/contracts/utils.d.ts +5 -24
- package/dist/contracts/utils.js +13 -24
- package/dist/errors.d.ts +16 -47
- package/dist/errors.js +6 -53
- package/dist/generated/inco/shield/v2/conductor_pb.d.ts +77 -0
- package/dist/generated/inco/shield/v2/conductor_pb.js +6 -0
- package/dist/generated/inco/shield/v2/deposit_pb.d.ts +12 -103
- package/dist/generated/inco/shield/v2/deposit_pb.js +4 -141
- package/dist/generated/inco/shield/v2/drafting_pb.d.ts +45 -269
- package/dist/generated/inco/shield/v2/drafting_pb.js +8 -361
- package/dist/generated/inco/shield/v2/types_pb.d.ts +47 -166
- package/dist/generated/inco/shield/v2/types_pb.js +12 -261
- package/dist/index.d.ts +1 -7
- package/dist/index.js +1 -14
- package/dist/shield/abi.d.ts +5 -0
- package/dist/shield/abi.js +28 -0
- package/dist/shield/client.d.ts +27 -51
- package/dist/shield/client.js +73 -65
- package/dist/shield/convert.d.ts +2 -14
- package/dist/shield/convert.js +39 -115
- package/dist/shield/encryption.d.ts +0 -67
- package/dist/shield/encryption.js +0 -67
- package/dist/shield/envelope.d.ts +10 -11
- package/dist/shield/envelope.js +15 -14
- package/dist/shield/fee.d.ts +24 -0
- package/dist/shield/fee.js +151 -0
- package/dist/shield/index.d.ts +9 -3
- package/dist/shield/index.js +7 -2
- package/dist/shield/intent.d.ts +20 -933
- package/dist/shield/intent.js +92 -112
- package/dist/shield/permission-status.d.ts +9 -0
- package/dist/shield/permission-status.js +8 -0
- package/dist/shield/rpc.d.ts +50 -49
- package/dist/shield/rpc.js +207 -354
- package/dist/shield/shield.eip712.gen.d.ts +1096 -43
- package/dist/shield/shield.eip712.gen.js +572 -62
- package/dist/shield/types.d.ts +7 -102
- package/dist/shield/types.js +1 -4
- package/dist/shield/userop/gas-estimation.d.ts +7 -22
- package/dist/shield/userop/gas-estimation.js +100 -137
- package/dist/shield/userop/paymaster.d.ts +15 -0
- package/dist/shield/userop/paymaster.js +17 -0
- package/dist/shield/userop/token-exchange.d.ts +5 -52
- package/dist/shield/userop/token-exchange.js +41 -149
- package/dist/shield/userop/types.d.ts +2 -27
- package/dist/shield/userop/types.js +0 -3
- package/dist/shield/userop/userOp.d.ts +0 -19
- package/dist/shield/userop/userOp.js +4 -22
- package/dist/shield/utils/chain.d.ts +1 -0
- package/dist/shield/utils/chain.js +3 -0
- package/dist/shield/validate-withdrawal-split.d.ts +13 -0
- package/dist/shield/validate-withdrawal-split.js +93 -0
- package/package.json +18 -27
- package/dist/generated/inco/shield/v2/conductor_connect.d.ts +0 -137
- package/dist/generated/inco/shield/v2/conductor_connect.js +0 -141
- package/dist/generated/inco/shield/v2/permission_pb.d.ts +0 -443
- package/dist/generated/inco/shield/v2/permission_pb.js +0 -639
- package/dist/generated/inco/shield/v2/query_pb.d.ts +0 -103
- package/dist/generated/inco/shield/v2/query_pb.js +0 -141
- package/dist/shield/userop/index.d.ts +0 -1
- package/dist/shield/userop/index.js +0 -1
- package/dist/uniswap-adapter/config.d.ts +0 -34
- package/dist/uniswap-adapter/config.js +0 -45
- package/dist/uniswap-adapter/find-pools.d.ts +0 -91
- package/dist/uniswap-adapter/find-pools.js +0 -108
- package/dist/uniswap-adapter/index.d.ts +0 -10
- package/dist/uniswap-adapter/index.js +0 -13
- package/dist/uniswap-adapter/swap.d.ts +0 -344
- package/dist/uniswap-adapter/swap.js +0 -309
package/dist/shield/index.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
export { ShieldError } from '../errors.js';
|
|
1
2
|
export { IntentKind } from '../generated/inco/shield/v2/drafting_pb.js';
|
|
3
|
+
export { decodeStruct, encodeStruct } from './abi.js';
|
|
2
4
|
export { computeDomainSeparator, createShieldClient, type ShieldClient, } from './client.js';
|
|
3
5
|
export { bigintToProtoUint256 } from './convert.js';
|
|
4
6
|
export { AEAD_KEY_SIZE, AEAD_NONCE_SIZE, deriveKeyPair, deserializeKeyPair, deserializePublicKey, generateKeyPair, openAead, openEnvelope, type SerializedKeyPair, sealAead, sealEnvelope, serializeKeyPair, serializePublicKey, } from './encryption.js';
|
|
5
7
|
export * from './envelope.js';
|
|
8
|
+
export { checkProtocolFeeSplit, type DebitQuote, type DeliveryQuote, decodeMovementAmount, encodeMovementAmount, type FeeContext, protocolFee, quoteByDebit, quoteByDelivery, WITHDRAW_FEE_BPS, withProtocolFeeLeg, } from './fee.js';
|
|
6
9
|
export * from './intent.js';
|
|
7
|
-
export {
|
|
10
|
+
export { PERMISSION_STATUS, type PermissionStatus, } from './permission-status.js';
|
|
11
|
+
export { computePermissionId, type DepositAttestationParams, type GetBalanceParams, type GetPermissionDetailsParams, type GetPermissionsByOwnerParams, type GetPermissionsBySpenderParams, type HistoryPageOptions, nextHistoryCursor, type PermissionIdInput, type SignedViewingSession, type ViewingSessionParams, } from './rpc.js';
|
|
8
12
|
export { handlePreimageDigest as computeHandle } from './shield.eip712.gen.js';
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
13
|
+
export type { ShieldConfig, ShieldSigner, ShieldSignerInput, } from './types.js';
|
|
14
|
+
export type { BuildPaymasterDataParams, PaymasterFields, } from './userop/paymaster.js';
|
|
15
|
+
export { buildPaymasterData } from './userop/paymaster.js';
|
|
11
16
|
export type { BuildUnsignedUserOpParams, DefiInteractionIntent, DelegatedDefiInteractionIntent, DelegatedTransferIntent, DelegatedWithdrawalIntent, IndividualRevocationIntent, Intent, TransferIntent, UnsignedUserOperation, UserWideRevocationIntent, WithdrawalIntent, } from './userop/types.js';
|
|
12
17
|
export { ENTRYPOINT_VERSION } from './userop/types.js';
|
|
13
18
|
export { assembleUserOp, buildUnsignedUserOp, userOpHash, } from './userop/userOp.js';
|
|
19
|
+
export * from './validate-withdrawal-split.js';
|
package/dist/shield/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
export { ShieldError } from '../errors.js';
|
|
1
2
|
export { IntentKind } from '../generated/inco/shield/v2/drafting_pb.js';
|
|
3
|
+
export { decodeStruct, encodeStruct } from './abi.js';
|
|
2
4
|
export { computeDomainSeparator, createShieldClient, } from './client.js';
|
|
3
5
|
export { bigintToProtoUint256 } from './convert.js';
|
|
4
6
|
export { AEAD_KEY_SIZE, AEAD_NONCE_SIZE, deriveKeyPair, deserializeKeyPair, deserializePublicKey, generateKeyPair, openAead, openEnvelope, sealAead, sealEnvelope, serializeKeyPair, serializePublicKey, } from './encryption.js';
|
|
5
7
|
export * from './envelope.js';
|
|
8
|
+
export { checkProtocolFeeSplit, decodeMovementAmount, encodeMovementAmount, protocolFee, quoteByDebit, quoteByDelivery, WITHDRAW_FEE_BPS, withProtocolFeeLeg, } from './fee.js';
|
|
6
9
|
export * from './intent.js';
|
|
7
|
-
export {
|
|
10
|
+
export { PERMISSION_STATUS, } from './permission-status.js';
|
|
11
|
+
export { computePermissionId, nextHistoryCursor, } from './rpc.js';
|
|
8
12
|
export { handlePreimageDigest as computeHandle } from './shield.eip712.gen.js';
|
|
9
|
-
export {
|
|
13
|
+
export { buildPaymasterData } from './userop/paymaster.js';
|
|
10
14
|
export { ENTRYPOINT_VERSION } from './userop/types.js';
|
|
11
15
|
export { assembleUserOp, buildUnsignedUserOp, userOpHash, } from './userop/userOp.js';
|
|
16
|
+
export * from './validate-withdrawal-split.js';
|