@wormhole-foundation/wormhole-connect 1.1.8-beta.2-development → 1.1.8
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/assets/{ccip-B5VfDKOr.js → ccip-atE20ZEL.js} +1 -1
- package/dist/assets/{evm-CkbZddI4.js → evm-DiRlPnyB.js} +4 -4
- package/dist/assets/{index-BVl4T3LK.js → index-C6qclzFA.js} +1 -1
- package/dist/assets/index-CKe5Sopa.js +2 -0
- package/dist/assets/{index-CPZCe6ys.js → index-DOuohql9.js} +1 -1
- package/dist/assets/{index.es-D_CMbICm.js → index.es-BxGbRBbk.js} +2 -2
- package/dist/main.js +3 -3
- package/lib/{algorand-tXcNTbqw.js → algorand-BvtlkYvW.js} +1 -1
- package/lib/{algorand-DgpF_mXd.mjs → algorand-DUcbNcTT.mjs} +5 -5
- package/lib/{aptos-CTr4u3up.mjs → aptos-B4rlOyU6.mjs} +3 -3
- package/lib/{aptos-Cbmld6H3.js → aptos-BhgRAjHC.js} +2 -2
- package/lib/{aptos-CR0OcDBV.js → aptos-DhzeFi4o.js} +1 -1
- package/lib/{aptos-M_shWERr.mjs → aptos-nQowjIcb.mjs} +1 -1
- package/lib/{ccip-DaRd1xyq.js → ccip-BGUsNrsA.js} +1 -1
- package/lib/{ccip-C0KpO3UY.mjs → ccip-jzRXPLFO.mjs} +1 -1
- package/lib/{cosmwasm-u__X419O.js → cosmwasm-CGeqw6cI.js} +4 -4
- package/lib/{cosmwasm-BrumI-4g.mjs → cosmwasm-DrywDSkp.mjs} +10 -10
- package/lib/{events-B3M_mwnv.js → events-COjha8bx.js} +1 -1
- package/lib/{events-CpI6THlG.mjs → events-DuoZYNKO.mjs} +1 -1
- package/lib/{evm-Blf-_XHQ.js → evm-BBDClE2g.js} +4 -4
- package/lib/{evm-DTv3ll5g.mjs → evm-BuIItcEA.mjs} +12 -12
- package/lib/{evm-CcAiiNiN.mjs → evm-CEj34i-Y.mjs} +7 -7
- package/lib/{evm-B8QV0WMy.js → evm-CYnUn08H.js} +1 -1
- package/lib/{index-BWadlVxP.js → index-8IabBseN.js} +1 -1
- package/lib/{index-C24awnH1.mjs → index-A72nDBhY.mjs} +11 -11
- package/lib/{index-BLT1iLJO.js → index-B-LwhonE.js} +1 -1
- package/lib/{index-D_WLQWCk.js → index-B2JFHCjY.js} +1 -1
- package/lib/{index-CrvMtWJk.js → index-B6AFQ_fB.js} +1 -1
- package/lib/{index-lNjLQ3Ln.mjs → index-BISC0EuN.mjs} +9 -9
- package/lib/{index-NVVfqKqy.js → index-BIVNmWjC.js} +1 -1
- package/lib/{index-nvF_Vnsk.mjs → index-BJuAlURA.mjs} +3 -3
- package/lib/{index-Hj_44yP6.js → index-BJvQdk3o.js} +92 -92
- package/lib/{index-sqvrX5as.js → index-BTncL8og.js} +1 -1
- package/lib/{index-Br2oG_eT.mjs → index-BXkKxPSN.mjs} +2 -2
- package/lib/{index-BeR2pFP_.mjs → index-Bbhbkgfa.mjs} +2 -2
- package/lib/{index-DGUuTzq5.mjs → index-BeJsTgpu.mjs} +10 -10
- package/lib/{index-CH4v9fdl.mjs → index-Bh9u5bZu.mjs} +15 -15
- package/lib/{index-MAW-S7qJ.js → index-Bi4OJr6O.js} +1 -1
- package/lib/index-BsHKXTKU.js +1 -0
- package/lib/{index-CwrUNk7R.js → index-BuGRcK_Q.js} +1 -1
- package/lib/{index-CuqXZa2Q.mjs → index-CJEjOaWr.mjs} +1 -1
- package/lib/{index-BVEhvlmw.mjs → index-CRv6XxH6.mjs} +16 -16
- package/lib/{index-Dsp18Ki0.js → index-CTHiXye2.js} +1 -1
- package/lib/{index-iMGGdz1P.js → index-CWM3H2LC.js} +1 -1
- package/lib/{index-B9I8wNfR.js → index-CXIAreWV.js} +1 -1
- package/lib/{index-BVvayeum.mjs → index-CdExxm-8.mjs} +2 -2
- package/lib/{index-5iQ5GTSu.mjs → index-Cdpg2Kj3.mjs} +2 -2
- package/lib/{index-EFO4LCUD.mjs → index-CjexIr7B.mjs} +12 -12
- package/lib/{index-BPyIEVyq.js → index-Cyjyg63s.js} +1 -1
- package/lib/{index-DIeGmRzd.js → index-D5tJ7kz1.js} +1 -1
- package/lib/{index-DhvaqGhk.mjs → index-D7uCV0-2.mjs} +55 -55
- package/lib/{index-DSQmXjdq.mjs → index-D9fbH3oE.mjs} +35 -35
- package/lib/{index-B0-xPGuQ.mjs → index-D9h0sJ3x.mjs} +76 -76
- package/lib/{index-CaA38viB.js → index-DEi8dfu-.js} +1 -1
- package/lib/{index-BRV3iD_7.mjs → index-DKptU_Hc.mjs} +4 -4
- package/lib/{index-aB_fp0rM.mjs → index-Dc5wV51P.mjs} +20462 -20465
- package/lib/{index-CPe7WKSz.mjs → index-DcurocLc.mjs} +2 -2
- package/lib/{index-DZohPEoL.mjs → index-DdeuHj0J.mjs} +7 -7
- package/lib/{index-DcH-LW3u.js → index-DgbQ-dwi.js} +1 -1
- package/lib/{index-CU3bs1UO.js → index-DlnKgVH2.js} +1 -1
- package/lib/{index-CX4xrmvB.js → index-Ds_oSleh.js} +1 -1
- package/lib/{index-Dj9uX8Yq.mjs → index-HLOU4jOA.mjs} +2 -2
- package/lib/{index-QVDg02xQ.js → index-NNKFqYq6.js} +1 -1
- package/lib/{index-DXxIHcif.js → index-a5wU3oUB.js} +1 -1
- package/lib/{index-5Nsx5Sww.mjs → index-qoWS15WJ.mjs} +4 -4
- package/lib/{index-DaqgMXh5.mjs → index-uAstvLd8.mjs} +2 -2
- package/lib/{index-w19NhRI8.js → index-vjvft509.js} +1 -1
- package/lib/{index.es-8dGbttwj.js → index.es-ex5QzFoQ.js} +2 -2
- package/lib/{index.es-4k95rbkL.mjs → index.es-tj48a6VI.mjs} +5 -5
- package/lib/index.js +1 -1
- package/lib/index.mjs +2 -2
- package/lib/{keccak-BVl93H2h.mjs → keccak-CVFfUSfU.mjs} +1 -1
- package/lib/{keccak-DxPHQOs9.js → keccak-CzODwJ6V.js} +1 -1
- package/lib/{pbkdf2-C4tGHSl-.js → pbkdf2-DLmVRSHA.js} +1 -1
- package/lib/{pbkdf2-CrsCYTQU.mjs → pbkdf2-GUTNazYD.mjs} +1 -1
- package/lib/{signer-Du2DF25K.mjs → signer-Cqs1I7RB.mjs} +1 -1
- package/lib/{signer-BcAkKtkv.js → signer-rbcgQjZj.js} +1 -1
- package/lib/{solana-DS0mdgC1.mjs → solana-7ZFkKRtX.mjs} +4 -4
- package/lib/solana-BYPpXpJs.js +1 -0
- package/lib/solana-CcjhlsWI.mjs +16 -0
- package/lib/{solana-B2noqxW_.js → solana-DoqT3pca.js} +1 -1
- package/lib/{solanaEmbed.esm-Cr2BGkxp.js → solanaEmbed.esm-Bkti_f5v.js} +1 -1
- package/lib/{solanaEmbed.esm-B9HRNUtr.mjs → solanaEmbed.esm-LdO_IpPZ.mjs} +3 -3
- package/lib/{sui-CnGk4aWJ.mjs → sui-BffnXOND.mjs} +10 -10
- package/lib/{sui-CsizbSts.mjs → sui-Ch7mNd_P.mjs} +4 -4
- package/lib/{sui-Q9BM2cCK.js → sui-Df7REI6I.js} +2 -2
- package/lib/{sui-C7SxJ54B.js → sui-DfRirJoo.js} +1 -1
- package/lib/{unsignedTransaction-Cd7qXgBL.mjs → unsignedTransaction-CsCwFMvo.mjs} +4 -4
- package/lib/{unsignedTransaction-DDxT_548.js → unsignedTransaction-CvjJdjtG.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/index-C_hywdem.js +0 -2
- package/lib/index-YmHc4VtK.js +0 -1
- package/lib/solana-CFMBUeJY.js +0 -1
- package/lib/solana-lSSqSdUq.mjs +0 -16
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Zr = Object.defineProperty;
|
|
2
2
|
var Qr = (t, e, r) => e in t ? Zr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var C = (t, e, r) => Qr(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { ak as Yr, F as en,
|
|
5
|
-
import { g as tt, a as gt, i as
|
|
6
|
-
import "./index-
|
|
4
|
+
import { ak as Yr, F as en, cH as ft, L as tn, cI as hr, cJ as ke, ax as rn, bZ as nt, bC as nn, b_ as nr, ag as ce, Q as ge, p as oe, bz as sn, c3 as ir, c0 as an, cK as on, bD as ht, N as cn, u as De, ad as un, ce as sr, cL as dn, O as ar, bI as gr } from "./index-Dc5wV51P.mjs";
|
|
5
|
+
import { g as tt, a as gt, i as ze, S as Y, b as H, p as ln, c as fn, d as it, u as Ve, e as pr, f as hn, h as He, j as gn, k as pn } from "./sui-Ch7mNd_P.mjs";
|
|
6
|
+
import "./index-DcurocLc.mjs";
|
|
7
7
|
class yr {
|
|
8
8
|
constructor(e, r, n, i, s = !1) {
|
|
9
9
|
C(this, "transaction");
|
|
@@ -556,10 +556,10 @@ const Nn = p({
|
|
|
556
556
|
name: h()
|
|
557
557
|
}), Dn = $([T("Private"), T("Public"), T("Friend")]), It = p({
|
|
558
558
|
abilities: I(h())
|
|
559
|
-
}),
|
|
559
|
+
}), zn = p({
|
|
560
560
|
constraints: It,
|
|
561
561
|
isPhantom: D()
|
|
562
|
-
}),
|
|
562
|
+
}), Vn = p({
|
|
563
563
|
TypeParameter: ye()
|
|
564
564
|
}), st = Sr([
|
|
565
565
|
p({
|
|
@@ -577,7 +577,7 @@ p({
|
|
|
577
577
|
function Ir(t) {
|
|
578
578
|
if (!t)
|
|
579
579
|
return !1;
|
|
580
|
-
if (typeof t == "string" || F(t,
|
|
580
|
+
if (typeof t == "string" || F(t, Vn) || jr(t))
|
|
581
581
|
return !0;
|
|
582
582
|
if (typeof t != "object")
|
|
583
583
|
return !1;
|
|
@@ -612,7 +612,7 @@ const Fn = p({
|
|
|
612
612
|
type: Se
|
|
613
613
|
}), Ln = p({
|
|
614
614
|
abilities: It,
|
|
615
|
-
typeParameters: I(
|
|
615
|
+
typeParameters: I(zn),
|
|
616
616
|
fields: I(Gn)
|
|
617
617
|
}), Wn = p({
|
|
618
618
|
fileFormatVersion: ye(),
|
|
@@ -2561,7 +2561,7 @@ const Z = l.bytes(xt).transform({
|
|
|
2561
2561
|
address: null,
|
|
2562
2562
|
signer: null,
|
|
2563
2563
|
vector: l.lazy(() => ve),
|
|
2564
|
-
struct: l.lazy(() =>
|
|
2564
|
+
struct: l.lazy(() => Vt),
|
|
2565
2565
|
u16: null,
|
|
2566
2566
|
u32: null,
|
|
2567
2567
|
u256: null
|
|
@@ -2653,10 +2653,10 @@ const Z = l.bytes(xt).transform({
|
|
|
2653
2653
|
ChangeEpoch: null,
|
|
2654
2654
|
Genesis: null,
|
|
2655
2655
|
ConsensusCommitPrologue: null
|
|
2656
|
-
}),
|
|
2656
|
+
}), zt = l.enum("TransactionExpiration", {
|
|
2657
2657
|
None: null,
|
|
2658
2658
|
Epoch: Rr()
|
|
2659
|
-
}),
|
|
2659
|
+
}), Vt = l.struct("StructTag", {
|
|
2660
2660
|
address: Z,
|
|
2661
2661
|
module: l.string(),
|
|
2662
2662
|
name: l.string(),
|
|
@@ -2670,7 +2670,7 @@ const Z = l.bytes(xt).transform({
|
|
|
2670
2670
|
kind: Dt,
|
|
2671
2671
|
sender: Z,
|
|
2672
2672
|
gasData: Ft,
|
|
2673
|
-
expiration:
|
|
2673
|
+
expiration: zt
|
|
2674
2674
|
}), Lt = l.enum("TransactionData", {
|
|
2675
2675
|
V1: Gt
|
|
2676
2676
|
}), Ai = l.enum("IntentScope", {
|
|
@@ -2747,12 +2747,12 @@ const Z = l.bytes(xt).transform({
|
|
|
2747
2747
|
SenderSignedData: Nr,
|
|
2748
2748
|
SenderSignedTransaction: Mr,
|
|
2749
2749
|
SharedObjectRef: Ut,
|
|
2750
|
-
StructTag:
|
|
2750
|
+
StructTag: Vt,
|
|
2751
2751
|
SuiObjectRef: _e,
|
|
2752
2752
|
Transaction: Mt,
|
|
2753
2753
|
TransactionData: Lt,
|
|
2754
2754
|
TransactionDataV1: Gt,
|
|
2755
|
-
TransactionExpiration:
|
|
2755
|
+
TransactionExpiration: zt,
|
|
2756
2756
|
TransactionKind: Dt,
|
|
2757
2757
|
TypeTag: ve,
|
|
2758
2758
|
// preserve backwards compatibility with old bcs export
|
|
@@ -2788,12 +2788,12 @@ A.registerBcsType("enumKind", (t) => Ct(t));
|
|
|
2788
2788
|
Kt,
|
|
2789
2789
|
Nr,
|
|
2790
2790
|
Ut,
|
|
2791
|
-
|
|
2791
|
+
Vt,
|
|
2792
2792
|
_e,
|
|
2793
2793
|
Mt,
|
|
2794
2794
|
Lt,
|
|
2795
2795
|
Gt,
|
|
2796
|
-
|
|
2796
|
+
zt,
|
|
2797
2797
|
Dt,
|
|
2798
2798
|
ve
|
|
2799
2799
|
].forEach((t) => {
|
|
@@ -2820,7 +2820,7 @@ function Ri(t, e) {
|
|
|
2820
2820
|
)
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
|
-
const
|
|
2823
|
+
const V = {
|
|
2824
2824
|
Pure: Ri,
|
|
2825
2825
|
ObjectRef({ objectId: t, digest: e, version: r }) {
|
|
2826
2826
|
return {
|
|
@@ -2866,7 +2866,7 @@ function Mi(t) {
|
|
|
2866
2866
|
var e;
|
|
2867
2867
|
return ((e = Pi(t)) == null ? void 0 : e.mutable) ?? !1;
|
|
2868
2868
|
}
|
|
2869
|
-
function
|
|
2869
|
+
function z(t, e) {
|
|
2870
2870
|
return mr(t, e);
|
|
2871
2871
|
}
|
|
2872
2872
|
const Ni = (t) => $([p({ None: $([T(!0), T(null)]) }), p({ Some: t })]), xe = $([
|
|
@@ -2896,11 +2896,11 @@ const Ni = (t) => $([p({ None: $([T(!0), T(null)]) }), p({ Some: t })]), xe = $(
|
|
|
2896
2896
|
target: G("target", h().validator),
|
|
2897
2897
|
typeArguments: I(h()),
|
|
2898
2898
|
arguments: I(se)
|
|
2899
|
-
}),
|
|
2899
|
+
}), zr = p({
|
|
2900
2900
|
kind: T("TransferObjects"),
|
|
2901
2901
|
objects: I(se),
|
|
2902
2902
|
address: se
|
|
2903
|
-
}),
|
|
2903
|
+
}), Vr = p({
|
|
2904
2904
|
kind: T("SplitCoins"),
|
|
2905
2905
|
coin: se,
|
|
2906
2906
|
amounts: I(se)
|
|
@@ -2925,17 +2925,17 @@ const Ni = (t) => $([p({ None: $([T(!0), T(null)]) }), p({ Some: t })]), xe = $(
|
|
|
2925
2925
|
dependencies: I(h()),
|
|
2926
2926
|
packageId: h(),
|
|
2927
2927
|
ticket: se
|
|
2928
|
-
}),
|
|
2928
|
+
}), zi = [
|
|
2929
2929
|
Dr,
|
|
2930
|
-
Vr,
|
|
2931
2930
|
zr,
|
|
2931
|
+
Vr,
|
|
2932
2932
|
Fr,
|
|
2933
2933
|
Lr,
|
|
2934
2934
|
Wr,
|
|
2935
2935
|
Gr
|
|
2936
|
-
],
|
|
2936
|
+
], Vi = $([...zi]), he = {
|
|
2937
2937
|
MoveCall(t) {
|
|
2938
|
-
return
|
|
2938
|
+
return z(
|
|
2939
2939
|
{
|
|
2940
2940
|
kind: "MoveCall",
|
|
2941
2941
|
target: t.target,
|
|
@@ -2946,28 +2946,28 @@ const Ni = (t) => $([p({ None: $([T(!0), T(null)]) }), p({ Some: t })]), xe = $(
|
|
|
2946
2946
|
);
|
|
2947
2947
|
},
|
|
2948
2948
|
TransferObjects(t, e) {
|
|
2949
|
-
return e.kind === "Input" && e.type === "pure" && typeof e.value != "object" && (e.value =
|
|
2949
|
+
return e.kind === "Input" && e.type === "pure" && typeof e.value != "object" && (e.value = V.Pure(P.Address.serialize(e.value))), z({ kind: "TransferObjects", objects: t, address: e }, zr);
|
|
2950
2950
|
},
|
|
2951
2951
|
SplitCoins(t, e) {
|
|
2952
2952
|
return e.forEach((r) => {
|
|
2953
|
-
r.kind === "Input" && r.type === "pure" && typeof r.value != "object" && (r.value =
|
|
2954
|
-
}),
|
|
2953
|
+
r.kind === "Input" && r.type === "pure" && typeof r.value != "object" && (r.value = V.Pure(P.U64.serialize(r.value)));
|
|
2954
|
+
}), z(
|
|
2955
2955
|
{
|
|
2956
2956
|
kind: "SplitCoins",
|
|
2957
2957
|
coin: t,
|
|
2958
2958
|
amounts: e
|
|
2959
2959
|
},
|
|
2960
|
-
|
|
2960
|
+
Vr
|
|
2961
2961
|
);
|
|
2962
2962
|
},
|
|
2963
2963
|
MergeCoins(t, e) {
|
|
2964
|
-
return
|
|
2964
|
+
return z({ kind: "MergeCoins", destination: t, sources: e }, Fr);
|
|
2965
2965
|
},
|
|
2966
2966
|
Publish({
|
|
2967
2967
|
modules: t,
|
|
2968
2968
|
dependencies: e
|
|
2969
2969
|
}) {
|
|
2970
|
-
return
|
|
2970
|
+
return z(
|
|
2971
2971
|
{
|
|
2972
2972
|
kind: "Publish",
|
|
2973
2973
|
modules: t.map(
|
|
@@ -2984,7 +2984,7 @@ const Ni = (t) => $([p({ None: $([T(!0), T(null)]) }), p({ Some: t })]), xe = $(
|
|
|
2984
2984
|
packageId: r,
|
|
2985
2985
|
ticket: n
|
|
2986
2986
|
}) {
|
|
2987
|
-
return
|
|
2987
|
+
return z(
|
|
2988
2988
|
{
|
|
2989
2989
|
kind: "Upgrade",
|
|
2990
2990
|
modules: t.map(
|
|
@@ -3001,7 +3001,7 @@ const Ni = (t) => $([p({ None: $([T(!0), T(null)]) }), p({ Some: t })]), xe = $(
|
|
|
3001
3001
|
type: t,
|
|
3002
3002
|
objects: e
|
|
3003
3003
|
}) {
|
|
3004
|
-
return
|
|
3004
|
+
return z(
|
|
3005
3005
|
{
|
|
3006
3006
|
kind: "MakeMoveVec",
|
|
3007
3007
|
type: t ? { Some: ne.parseFromStr(t) } : { None: null },
|
|
@@ -3044,7 +3044,7 @@ const Li = S(
|
|
|
3044
3044
|
expiration: Li,
|
|
3045
3045
|
gasConfig: Wi,
|
|
3046
3046
|
inputs: I(xe),
|
|
3047
|
-
transactions: I(
|
|
3047
|
+
transactions: I(Vi)
|
|
3048
3048
|
});
|
|
3049
3049
|
function lr(t) {
|
|
3050
3050
|
return N(t).replace("0x", "");
|
|
@@ -3057,12 +3057,12 @@ class ie {
|
|
|
3057
3057
|
const r = P.TransactionKind.parse(e), n = "ProgrammableTransaction" in r ? r.ProgrammableTransaction : null;
|
|
3058
3058
|
if (!n)
|
|
3059
3059
|
throw new Error("Unable to deserialize from bytes.");
|
|
3060
|
-
const i =
|
|
3060
|
+
const i = z(
|
|
3061
3061
|
{
|
|
3062
3062
|
version: 1,
|
|
3063
3063
|
gasConfig: {},
|
|
3064
3064
|
inputs: n.inputs.map(
|
|
3065
|
-
(s, c) =>
|
|
3065
|
+
(s, c) => z(
|
|
3066
3066
|
{
|
|
3067
3067
|
kind: "Input",
|
|
3068
3068
|
value: s,
|
|
@@ -3083,14 +3083,14 @@ class ie {
|
|
|
3083
3083
|
const r = P.TransactionData.parse(e), n = r == null ? void 0 : r.V1, i = "ProgrammableTransaction" in n.kind ? (c = n == null ? void 0 : n.kind) == null ? void 0 : c.ProgrammableTransaction : null;
|
|
3084
3084
|
if (!n || !i)
|
|
3085
3085
|
throw new Error("Unable to deserialize from bytes.");
|
|
3086
|
-
const s =
|
|
3086
|
+
const s = z(
|
|
3087
3087
|
{
|
|
3088
3088
|
version: 1,
|
|
3089
3089
|
sender: n.sender,
|
|
3090
3090
|
expiration: n.expiration,
|
|
3091
3091
|
gasConfig: n.gasData,
|
|
3092
3092
|
inputs: i.inputs.map(
|
|
3093
|
-
(a, o) =>
|
|
3093
|
+
(a, o) => z(
|
|
3094
3094
|
{
|
|
3095
3095
|
kind: "Input",
|
|
3096
3096
|
value: a,
|
|
@@ -3169,7 +3169,7 @@ class ie {
|
|
|
3169
3169
|
return ie.getDigestFromBytes(e);
|
|
3170
3170
|
}
|
|
3171
3171
|
snapshot() {
|
|
3172
|
-
return
|
|
3172
|
+
return z(this, Me);
|
|
3173
3173
|
}
|
|
3174
3174
|
}
|
|
3175
3175
|
var Xt = (t, e, r) => {
|
|
@@ -3309,7 +3309,7 @@ const Xi = Symbol.for("@mysten/transaction"), lt = {
|
|
|
3309
3309
|
enumerable: !1,
|
|
3310
3310
|
value: Fi((t, e) => _t(t) ? M(this, Ee, Le).call(this, "pure", {
|
|
3311
3311
|
Pure: Array.from(t.toBytes())
|
|
3312
|
-
}) : M(this, Ee, Le).call(this, "pure", t instanceof Uint8Array ?
|
|
3312
|
+
}) : M(this, Ee, Le).call(this, "pure", t instanceof Uint8Array ? V.Pure(t) : e ? V.Pure(t, e) : t))
|
|
3313
3313
|
}), this.pure;
|
|
3314
3314
|
}
|
|
3315
3315
|
/** Returns an argument for the gas coin, to be used in a transaction. */
|
|
@@ -3332,21 +3332,21 @@ const Xi = Symbol.for("@mysten/transaction"), lt = {
|
|
|
3332
3332
|
* If you only have an object ID, use `builder.object(id)` instead.
|
|
3333
3333
|
*/
|
|
3334
3334
|
objectRef(...t) {
|
|
3335
|
-
return this.object(
|
|
3335
|
+
return this.object(V.ObjectRef(...t));
|
|
3336
3336
|
}
|
|
3337
3337
|
/**
|
|
3338
3338
|
* Add a new receiving input to the transaction using the fully-resolved object reference.
|
|
3339
3339
|
* If you only have an object ID, use `builder.object(id)` instead.
|
|
3340
3340
|
*/
|
|
3341
3341
|
receivingRef(...t) {
|
|
3342
|
-
return this.object(
|
|
3342
|
+
return this.object(V.ReceivingRef(...t));
|
|
3343
3343
|
}
|
|
3344
3344
|
/**
|
|
3345
3345
|
* Add a new shared object input to the transaction using the fully-resolved shared object reference.
|
|
3346
3346
|
* If you only have an object ID, use `builder.object(id)` instead.
|
|
3347
3347
|
*/
|
|
3348
3348
|
sharedObjectRef(...t) {
|
|
3349
|
-
return this.object(
|
|
3349
|
+
return this.object(V.SharedObjectRef(...t));
|
|
3350
3350
|
}
|
|
3351
3351
|
/** Add a transaction to the transaction block. */
|
|
3352
3352
|
add(t) {
|
|
@@ -3463,7 +3463,7 @@ let ue = Tt;
|
|
|
3463
3463
|
v = /* @__PURE__ */ new WeakMap();
|
|
3464
3464
|
Ee = /* @__PURE__ */ new WeakSet();
|
|
3465
3465
|
Le = function(t, e) {
|
|
3466
|
-
const r = O(this, v).inputs.length, n =
|
|
3466
|
+
const r = O(this, v).inputs.length, n = z(
|
|
3467
3467
|
{
|
|
3468
3468
|
kind: "Input",
|
|
3469
3469
|
// bigints can't be serialized to JSON, so just string-convert them here:
|
|
@@ -3542,11 +3542,11 @@ Xr = async function(t) {
|
|
|
3542
3542
|
) && n.push(s), s.kind === "SplitCoins" && s.amounts.forEach((c) => {
|
|
3543
3543
|
if (c.kind === "Input") {
|
|
3544
3544
|
const a = e[c.index];
|
|
3545
|
-
typeof a.value != "object" && (a.value =
|
|
3545
|
+
typeof a.value != "object" && (a.value = V.Pure(P.U64.serialize(a.value)));
|
|
3546
3546
|
}
|
|
3547
3547
|
}), s.kind === "TransferObjects" && s.address.kind === "Input") {
|
|
3548
3548
|
const c = e[s.address.index];
|
|
3549
|
-
typeof c.value != "object" && (c.value =
|
|
3549
|
+
typeof c.value != "object" && (c.value = V.Pure(P.Address.serialize(c.value)));
|
|
3550
3550
|
}
|
|
3551
3551
|
}), n.length && await Promise.all(
|
|
3552
3552
|
n.map(async (s) => {
|
|
@@ -3566,7 +3566,7 @@ Xr = async function(t) {
|
|
|
3566
3566
|
return;
|
|
3567
3567
|
const f = b.value, j = wt(m, f);
|
|
3568
3568
|
if (j) {
|
|
3569
|
-
b.value =
|
|
3569
|
+
b.value = V.Pure(f, j);
|
|
3570
3570
|
return;
|
|
3571
3571
|
}
|
|
3572
3572
|
if (jt(m) != null || typeof m == "object" && "TypeParameter" in m) {
|
|
@@ -3614,12 +3614,12 @@ Xr = async function(t) {
|
|
|
3614
3614
|
const y = o.get(u), w = (f = y.data) == null ? void 0 : f.owner, b = w && typeof w == "object" && "Shared" in w ? w.Shared.initial_shared_version : void 0;
|
|
3615
3615
|
if (b) {
|
|
3616
3616
|
const j = m != null && mt(m) == null && Er(m) == null, _ = Mi(g.value) || j || m != null && mt(m) != null;
|
|
3617
|
-
g.value =
|
|
3617
|
+
g.value = V.SharedObjectRef({
|
|
3618
3618
|
objectId: u,
|
|
3619
3619
|
initialSharedVersion: b,
|
|
3620
3620
|
mutable: _
|
|
3621
3621
|
});
|
|
3622
|
-
} else m && Hi(m) ? g.value =
|
|
3622
|
+
} else m && Hi(m) ? g.value = V.ReceivingRef(cr(y)) : g.value = V.ObjectRef(cr(y));
|
|
3623
3623
|
});
|
|
3624
3624
|
}
|
|
3625
3625
|
};
|
|
@@ -3702,7 +3702,7 @@ const fr = async (t, e, r) => {
|
|
|
3702
3702
|
const d = gt(o);
|
|
3703
3703
|
if (!d)
|
|
3704
3704
|
return null;
|
|
3705
|
-
if (!
|
|
3705
|
+
if (!ze(d))
|
|
3706
3706
|
throw new Error("What?");
|
|
3707
3707
|
return "value" in d ? ke(d.value) : null;
|
|
3708
3708
|
};
|
|
@@ -3744,7 +3744,7 @@ class er {
|
|
|
3744
3744
|
const n = await fr(this.provider, this.tokenBridgeObjectId, r), i = gt(n);
|
|
3745
3745
|
if (!i)
|
|
3746
3746
|
throw nt(r);
|
|
3747
|
-
if (!
|
|
3747
|
+
if (!ze(i))
|
|
3748
3748
|
throw new Error("Expected fields to be a MoveStruct");
|
|
3749
3749
|
if (!("value" in i))
|
|
3750
3750
|
throw new Error("Expected a `value` key in fields of MoveStruct");
|
|
@@ -3759,7 +3759,7 @@ class er {
|
|
|
3759
3759
|
const o = a.fields.token_address;
|
|
3760
3760
|
if (!H(o))
|
|
3761
3761
|
throw new Error("Expected fields to be a MoveStruct");
|
|
3762
|
-
if (!
|
|
3762
|
+
if (!ze(o.fields))
|
|
3763
3763
|
throw new Error("Expected address data to be a MoveObject");
|
|
3764
3764
|
if (!("value" in o.fields))
|
|
3765
3765
|
throw new Error("Expected a `value` key in fields of MoveStruct");
|
|
@@ -3781,7 +3781,7 @@ class er {
|
|
|
3781
3781
|
const n = await fr(this.provider, this.tokenBridgeObjectId, r), i = gt(n);
|
|
3782
3782
|
if (!i)
|
|
3783
3783
|
throw new Error(`Token of type ${r} has not been registered with the token bridge. Has it been attested?`);
|
|
3784
|
-
if (!
|
|
3784
|
+
if (!ze(i))
|
|
3785
3785
|
throw new Error("Expected fields to be a MoveStruct");
|
|
3786
3786
|
if (!("value" in i))
|
|
3787
3787
|
throw new Error("Expected a `value` key in fields of MoveStruct");
|
|
@@ -3895,7 +3895,7 @@ class er {
|
|
|
3895
3895
|
target: `${n}::vaa::parse_and_verify`,
|
|
3896
3896
|
arguments: [
|
|
3897
3897
|
f.object(this.coreBridgeObjectId),
|
|
3898
|
-
f.pure(
|
|
3898
|
+
f.pure(Ve(ht(e))),
|
|
3899
3899
|
f.object(pe)
|
|
3900
3900
|
]
|
|
3901
3901
|
}), [_] = f.moveCall({
|
|
@@ -3984,7 +3984,7 @@ class er {
|
|
|
3984
3984
|
U,
|
|
3985
3985
|
j,
|
|
3986
3986
|
f.pure(ce(r.chain)),
|
|
3987
|
-
f.pure(
|
|
3987
|
+
f.pure(Ve(r.address.toUint8Array())),
|
|
3988
3988
|
f.pure(a),
|
|
3989
3989
|
f.pure(0)
|
|
3990
3990
|
],
|
|
@@ -4019,7 +4019,7 @@ class er {
|
|
|
4019
4019
|
target: `${s}::vaa::parse_and_verify`,
|
|
4020
4020
|
arguments: [
|
|
4021
4021
|
a.object(this.coreBridgeObjectId),
|
|
4022
|
-
a.pure(
|
|
4022
|
+
a.pure(Ve(ht(r))),
|
|
4023
4023
|
a.object(pe)
|
|
4024
4024
|
]
|
|
4025
4025
|
}), [d] = a.moveCall({
|
|
@@ -4138,7 +4138,7 @@ class tr {
|
|
|
4138
4138
|
target: `${n}::vaa::parse_and_verify`,
|
|
4139
4139
|
arguments: [
|
|
4140
4140
|
o.object(this.coreBridgeObjectId),
|
|
4141
|
-
o.pure(
|
|
4141
|
+
o.pure(Ve(ht(r))),
|
|
4142
4142
|
o.object(pe)
|
|
4143
4143
|
]
|
|
4144
4144
|
}), [u] = o.moveCall({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Q = Object.defineProperty;
|
|
2
2
|
var X = (O, e, t) => e in O ? Q(O, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : O[e] = t;
|
|
3
3
|
var d = (O, e, t) => X(O, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
import { A as at } from "./algorand-
|
|
7
|
-
const
|
|
4
|
+
import { A as C, S as g, a as Y } from "./index-CjexIr7B.mjs";
|
|
5
|
+
import { c_ as Z, ad as S, ag as $, c$ as F, aH as I, d0 as _, d1 as q, bC as tt, ce as b, b_ as et, p as H, c3 as K, d2 as y, d3 as u, d4 as k, d5 as U, bD as D, d6 as z, d7 as st, d8 as V, d9 as ot, bI as nt, aE as rt } from "./index-Dc5wV51P.mjs";
|
|
6
|
+
import { A as at } from "./algorand-DUcbNcTT.mjs";
|
|
7
|
+
const G = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
8
8
|
constructor(e, t, n, o) {
|
|
9
9
|
d(this, "network");
|
|
10
10
|
d(this, "chain");
|
|
@@ -16,13 +16,13 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
16
16
|
d(this, "coreAppAddress");
|
|
17
17
|
d(this, "tokenBridgeAppId");
|
|
18
18
|
d(this, "tokenBridgeAddress");
|
|
19
|
-
if (this.network = e, this.chain = t, this.connection = n, this.contracts = o, this.chainId =
|
|
19
|
+
if (this.network = e, this.chain = t, this.connection = n, this.contracts = o, this.chainId = $(t), !o.coreBridge)
|
|
20
20
|
throw new Error(`Core contract address for chain ${t} not found`);
|
|
21
21
|
const r = BigInt(o.coreBridge);
|
|
22
|
-
if (this.coreAppId = r, this.coreAppAddress =
|
|
22
|
+
if (this.coreAppId = r, this.coreAppAddress = F(r), this.coreBridge = new C(e, t, n, o), !o.tokenBridge)
|
|
23
23
|
throw new Error(`TokenBridge contract address for chain ${t} not found`);
|
|
24
24
|
const a = BigInt(o.tokenBridge);
|
|
25
|
-
this.tokenBridgeAppId = a, this.tokenBridgeAddress =
|
|
25
|
+
this.tokenBridgeAppId = a, this.tokenBridgeAddress = F(a);
|
|
26
26
|
}
|
|
27
27
|
static async fromRpc(e, t) {
|
|
28
28
|
const [n, o] = await at.chainFromRpc(e), r = t[o];
|
|
@@ -35,12 +35,12 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
35
35
|
const t = new I(e).toInt();
|
|
36
36
|
if (t === 0)
|
|
37
37
|
return !1;
|
|
38
|
-
const n = await this.connection.getAssetByID(t).do(), r =
|
|
38
|
+
const n = await this.connection.getAssetByID(t).do(), r = _.from_obj_for_encoding(n).params.creator, a = await this.connection.accountInformation(r).exclude("all").do(), s = q.from_obj_for_encoding(a);
|
|
39
39
|
return (s == null ? void 0 : s.authAddr) === this.tokenBridgeAddress;
|
|
40
40
|
}
|
|
41
41
|
// Returns the original asset with its foreign chain
|
|
42
42
|
async getOriginalAsset(e) {
|
|
43
|
-
const t = new I(e).toInt(), n = await this.connection.getAssetByID(t).do(), o =
|
|
43
|
+
const t = new I(e).toInt(), n = await this.connection.getAssetByID(t).do(), o = _.from_obj_for_encoding(n), r = await g.decodeLocalState(this.connection, this.tokenBridgeAppId, o.params.creator);
|
|
44
44
|
if (r.length < 94)
|
|
45
45
|
throw new Error("Invalid local state data");
|
|
46
46
|
const a = r.slice(92, 94), s = tt(b.decode(a)), p = new et(r.slice(60, 92));
|
|
@@ -90,15 +90,15 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
90
90
|
async *createAttestation(e, t) {
|
|
91
91
|
if (!t)
|
|
92
92
|
throw new Error("Payer required to create attestation");
|
|
93
|
-
const n = new I(t).toString(), o = new I(e).toInt(), r = [], a = await this.connection.getTransactionParams().do(), s = g.forEmitter(this.coreAppId, new I(this.tokenBridgeAddress).toUint8Array()), { accounts: [p], txs: w } = await
|
|
93
|
+
const n = new I(t).toString(), o = new I(e).toInt(), r = [], a = await this.connection.getTransactionParams().do(), s = g.forEmitter(this.coreAppId, new I(this.tokenBridgeAddress).toUint8Array()), { accounts: [p], txs: w } = await C.maybeCreateStorageTx(this.connection, n, this.coreAppId, s, a);
|
|
94
94
|
r.push(...w);
|
|
95
95
|
let f = "", i;
|
|
96
96
|
if (o !== 0) {
|
|
97
|
-
const l = await this.connection.getAssetByID(o).do(), j =
|
|
97
|
+
const l = await this.connection.getAssetByID(o).do(), j = _.from_obj_for_encoding(l), E = await this.connection.accountInformation(j.params.creator).do();
|
|
98
98
|
if (i = q.from_obj_for_encoding(E), i.authAddr === this.tokenBridgeAddress.toString())
|
|
99
99
|
throw new Error("Cannot re-attest wormhole assets");
|
|
100
100
|
}
|
|
101
|
-
const T = g.forNativeAsset(this.tokenBridgeAppId, BigInt(o)), B = await
|
|
101
|
+
const T = g.forNativeAsset(this.tokenBridgeAppId, BigInt(o)), B = await C.maybeCreateStorageTx(this.connection, n, this.tokenBridgeAppId, T);
|
|
102
102
|
f = B.accounts[0], r.push(...B.txs);
|
|
103
103
|
const m = y({
|
|
104
104
|
from: n,
|
|
@@ -181,17 +181,17 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
181
181
|
yield this.createUnsignedTx(i, "TokenBridge.submitAttestation", !0);
|
|
182
182
|
}
|
|
183
183
|
async *transfer(e, t, n, o, r) {
|
|
184
|
-
const a = e.toString(), s = H(n) ? 0 : new I(n).toInt(), p = o, w =
|
|
184
|
+
const a = e.toString(), s = H(n) ? 0 : new I(n).toInt(), p = o, w = $(t.chain), f = t.address.toUniversalAddress().toUint8Array(), i = await this.connection.getTransactionParams().do(), T = BigInt(0), B = g.fromData({
|
|
185
185
|
appId: this.coreAppId,
|
|
186
186
|
appAddress: z(this.coreAppAddress).publicKey,
|
|
187
187
|
idx: BigInt(0),
|
|
188
188
|
address: z(this.tokenBridgeAddress).publicKey
|
|
189
|
-
}), m = [], { accounts: [A], txs: W } = await
|
|
189
|
+
}), m = [], { accounts: [A], txs: W } = await C.maybeCreateStorageTx(this.connection, a, this.coreAppId, B, i);
|
|
190
190
|
m.push(...W);
|
|
191
191
|
let h = "", l, j = !1;
|
|
192
192
|
if (s !== 0) {
|
|
193
193
|
const x = await this.connection.getAssetByID(s).do();
|
|
194
|
-
h =
|
|
194
|
+
h = _.from_obj_for_encoding(x).params.creator;
|
|
195
195
|
const R = await this.connection.accountInformation(h).do();
|
|
196
196
|
l = q.from_obj_for_encoding(R), j = l.authAddr === this.tokenBridgeAddress.toString();
|
|
197
197
|
}
|
|
@@ -204,7 +204,7 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
204
204
|
suggestedParams: i
|
|
205
205
|
})
|
|
206
206
|
}), !j) {
|
|
207
|
-
const x = g.forNativeAsset(this.tokenBridgeAppId, BigInt(s)), { accounts: [N], txs: R } = await
|
|
207
|
+
const x = g.forNativeAsset(this.tokenBridgeAppId, BigInt(s)), { accounts: [N], txs: R } = await C.maybeCreateStorageTx(this.connection, a, this.tokenBridgeAppId, x, i);
|
|
208
208
|
h = N, R.push(...R);
|
|
209
209
|
}
|
|
210
210
|
if (s !== 0 && !await c.isOptedInToAsset(this.connection, h, s)) {
|
|
@@ -225,15 +225,15 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
225
225
|
});
|
|
226
226
|
N.fee *= 2, m.unshift({ tx: x }, { tx: N });
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const J = y({
|
|
229
229
|
from: a,
|
|
230
230
|
appIndex: u(this.tokenBridgeAppId),
|
|
231
231
|
onComplete: k.NoOpOC,
|
|
232
232
|
appArgs: [c.noop],
|
|
233
233
|
suggestedParams: i
|
|
234
234
|
});
|
|
235
|
-
m.push({ tx:
|
|
236
|
-
let
|
|
235
|
+
m.push({ tx: J });
|
|
236
|
+
let v = [];
|
|
237
237
|
if (s === 0) {
|
|
238
238
|
const x = U({
|
|
239
239
|
from: a,
|
|
@@ -241,18 +241,18 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
241
241
|
amount: p,
|
|
242
242
|
suggestedParams: i
|
|
243
243
|
});
|
|
244
|
-
m.push({ tx: x }),
|
|
244
|
+
m.push({ tx: x }), v = [A, h, h];
|
|
245
245
|
} else {
|
|
246
|
-
const x =
|
|
246
|
+
const x = V({
|
|
247
247
|
from: a,
|
|
248
248
|
to: h,
|
|
249
249
|
amount: p,
|
|
250
250
|
assetIndex: s,
|
|
251
251
|
suggestedParams: i
|
|
252
252
|
});
|
|
253
|
-
m.push({ tx: x }),
|
|
253
|
+
m.push({ tx: x }), v = l != null && l.address ? [A, h, l.address] : [A, h];
|
|
254
254
|
}
|
|
255
|
-
const
|
|
255
|
+
const M = [
|
|
256
256
|
c.sendTransfer,
|
|
257
257
|
b.toBytes(s, 8),
|
|
258
258
|
b.toBytes(p, 8),
|
|
@@ -260,24 +260,24 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
260
260
|
b.toBytes(w, 8),
|
|
261
261
|
b.toBytes(T, 8)
|
|
262
262
|
];
|
|
263
|
-
r &&
|
|
264
|
-
const
|
|
263
|
+
r && M.push(r);
|
|
264
|
+
const P = y({
|
|
265
265
|
from: a,
|
|
266
266
|
appIndex: u(this.tokenBridgeAppId),
|
|
267
267
|
onComplete: k.NoOpOC,
|
|
268
|
-
appArgs:
|
|
268
|
+
appArgs: M,
|
|
269
269
|
foreignApps: [u(this.coreAppId)],
|
|
270
270
|
foreignAssets: [s],
|
|
271
|
-
accounts:
|
|
271
|
+
accounts: v,
|
|
272
272
|
suggestedParams: i
|
|
273
273
|
});
|
|
274
|
-
|
|
274
|
+
P.fee *= 2, m.push({ tx: P });
|
|
275
275
|
for (const x of m)
|
|
276
276
|
yield this.createUnsignedTx(x, "TokenBridge.transfer", !0);
|
|
277
277
|
}
|
|
278
278
|
async *redeem(e, t, n = !0, o) {
|
|
279
279
|
o || (o = await this.connection.getTransactionParams().do());
|
|
280
|
-
const r = new I(e).toString(), { accounts: a, txs: s } = await
|
|
280
|
+
const r = new I(e).toString(), { accounts: a, txs: s } = await C.submitVAAHeader(this.connection, this.coreAppId, this.tokenBridgeAppId, t, r);
|
|
281
281
|
let p, w = "", f = [], i = 0;
|
|
282
282
|
if (t.payload.token.chain !== this.chain) {
|
|
283
283
|
p = g.forWrappedAsset(this.tokenBridgeAppId, t.payload.token), w = p.address();
|
|
@@ -289,11 +289,11 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
289
289
|
}
|
|
290
290
|
a.push(w);
|
|
291
291
|
let T = 0, B = "";
|
|
292
|
-
if (t.payloadName === "TransferWithPayload" ? (T = new I(t.payload.to.address).toInt(), B =
|
|
292
|
+
if (t.payloadName === "TransferWithPayload" ? (T = new I(t.payload.to.address).toInt(), B = F(T)) : B = new I(t.payload.to.address.toUint8Array()).toString(), a.push(B), i !== 0 && (f.push(i), !await c.isOptedInToAsset(this.connection, B, i))) {
|
|
293
293
|
if (r != B)
|
|
294
294
|
throw new Error("Cannot ASA optin for somebody else (asset " + i.toString() + ")");
|
|
295
295
|
s.unshift({
|
|
296
|
-
tx:
|
|
296
|
+
tx: V({
|
|
297
297
|
amount: 0,
|
|
298
298
|
assetIndex: i,
|
|
299
299
|
from: r,
|
|
@@ -316,8 +316,8 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
316
316
|
}), s[s.length - 1].tx.fee = s[s.length - 1].tx.fee * (t.payloadName === "Transfer" && t.payload.fee !== void 0 && t.payload.fee === 0n ? 2 : 3), t.payloadName === "TransferWithPayload" && (s[s.length - 1].tx.appForeignApps = [T], s.push({
|
|
317
317
|
tx: y({
|
|
318
318
|
appArgs: [
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
G.getSelector(),
|
|
320
|
+
G.args[0].type.encode(D(t))
|
|
321
321
|
],
|
|
322
322
|
appIndex: T,
|
|
323
323
|
foreignAssets: f,
|
|
@@ -349,10 +349,10 @@ const V = Z.fromSignature("portal_transfer(byte[])byte[]"), c = class c {
|
|
|
349
349
|
return new Y(e, this.network, this.chain, t, n);
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
d(c, "sendTransfer",
|
|
352
|
+
d(c, "sendTransfer", S.encode("sendTransfer")), d(c, "attestToken", S.encode("attestToken")), d(c, "noop", S.encode("nop")), d(c, "optIn", S.encode("optin")), d(c, "completeTransfer", S.encode("completeTransfer")), d(c, "receiveAttest", S.encode("receiveAttest"));
|
|
353
353
|
let L = c;
|
|
354
354
|
nt(rt, "TokenBridge", L);
|
|
355
355
|
export {
|
|
356
356
|
L as AlgorandTokenBridge,
|
|
357
|
-
|
|
357
|
+
G as TransferMethodSelector
|
|
358
358
|
};
|