@le-space/core 0.12.12 → 0.12.14
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/{ccip-B2SK6IAF.js → ccip-RE2T2ODT.js} +1 -1
- package/{chunk-KNGOYVGK.js → chunk-QTT6U5EL.js} +9 -1
- package/index.d.ts +21 -10
- package/index.js +8147 -280
- package/package.json +3 -3
|
@@ -4068,7 +4068,7 @@ async function call(client, args) {
|
|
|
4068
4068
|
if (isAbortError(err))
|
|
4069
4069
|
throw err;
|
|
4070
4070
|
const data2 = getRevertErrorData(err);
|
|
4071
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
4071
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-RE2T2ODT.js");
|
|
4072
4072
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
4073
4073
|
return {
|
|
4074
4074
|
data: await offchainLookup2(client, { data: data2, requestOptions, to })
|
|
@@ -4478,8 +4478,16 @@ async function ccipRequest({ data, requestOptions, sender, urls }) {
|
|
|
4478
4478
|
}
|
|
4479
4479
|
|
|
4480
4480
|
export {
|
|
4481
|
+
isHex,
|
|
4482
|
+
size2 as size,
|
|
4483
|
+
hexToBigInt,
|
|
4484
|
+
hexToNumber,
|
|
4485
|
+
toHex,
|
|
4486
|
+
bytesToHex,
|
|
4481
4487
|
stringToHex,
|
|
4482
4488
|
keccak256,
|
|
4489
|
+
checksumAddress,
|
|
4490
|
+
concat,
|
|
4483
4491
|
offchainLookupSignature,
|
|
4484
4492
|
offchainLookupAbiItem,
|
|
4485
4493
|
offchainLookup,
|
package/index.d.ts
CHANGED
|
@@ -834,16 +834,27 @@ declare function verifyUcGoPeerReachability(args: {
|
|
|
834
834
|
checks: Record<string, Record<string, unknown>>;
|
|
835
835
|
}>;
|
|
836
836
|
|
|
837
|
+
/**
|
|
838
|
+
* An optional field of a signed payload, as it was recorded.
|
|
839
|
+
*
|
|
840
|
+
* `null` and "left out" mean the same thing to a reader, but they are two
|
|
841
|
+
* different signed texts: `{"version":null}` is not `{}`. The guest refresh
|
|
842
|
+
* scripts sign with Python's `json.dumps`, which writes an unset field as
|
|
843
|
+
* `null`; the helpers in this file sign with `JSON.stringify`, which leaves an
|
|
844
|
+
* `undefined` one out. A reader has to hand back whichever it was given, or
|
|
845
|
+
* the signature recovers somebody else's address.
|
|
846
|
+
*/
|
|
847
|
+
type SignedOptional<T> = T | null | undefined;
|
|
837
848
|
interface RelayBootstrapAuthorizationPayload {
|
|
838
849
|
ownerAddress: string;
|
|
839
850
|
publisherAddress: string;
|
|
840
851
|
peerId: string;
|
|
841
|
-
registrationId?: string
|
|
842
|
-
profile?: string
|
|
843
|
-
version?: string
|
|
844
|
-
instanceItemHash?: string
|
|
852
|
+
registrationId?: SignedOptional<string>;
|
|
853
|
+
profile?: SignedOptional<string>;
|
|
854
|
+
version?: SignedOptional<string>;
|
|
855
|
+
instanceItemHash?: SignedOptional<string>;
|
|
845
856
|
issuedAt: number;
|
|
846
|
-
expiresAt?: number
|
|
857
|
+
expiresAt?: SignedOptional<number>;
|
|
847
858
|
}
|
|
848
859
|
interface RelayBootstrapAuthorizationRecord {
|
|
849
860
|
scheme: string;
|
|
@@ -854,11 +865,11 @@ interface RelayBootstrapProofPayload {
|
|
|
854
865
|
peerId: string;
|
|
855
866
|
multiaddrs?: string[];
|
|
856
867
|
browserMultiaddrs?: string[];
|
|
857
|
-
multiaddrsHash?: string
|
|
858
|
-
browserMultiaddrsHash?: string
|
|
859
|
-
registrationId?: string
|
|
860
|
-
profile?: string
|
|
861
|
-
version?: string
|
|
868
|
+
multiaddrsHash?: SignedOptional<string>;
|
|
869
|
+
browserMultiaddrsHash?: SignedOptional<string>;
|
|
870
|
+
registrationId?: SignedOptional<string>;
|
|
871
|
+
profile?: SignedOptional<string>;
|
|
872
|
+
version?: SignedOptional<string>;
|
|
862
873
|
updatedAt: number;
|
|
863
874
|
}
|
|
864
875
|
interface RelayBootstrapProofRecord {
|