@gardenfi/swap 0.1.2 → 0.1.3-beta.1
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/index104.cjs +1 -1
- package/dist/index104.js +4 -4
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -1
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +1 -1
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +1 -1
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +2 -2
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +8 -8
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +4 -4
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +2 -2
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +2 -2
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +3 -3
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +1 -1
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +2 -2
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +1 -1
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +1 -1
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +1 -1
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +1 -1
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +1 -1
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +1 -1
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +1 -1
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +2 -2
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +1 -1
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +1 -1
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +2 -2
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +3 -3
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +2 -2
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +2 -2
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +2 -2
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +3 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +3 -3
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +2 -2
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +1 -1
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +3 -3
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +1 -1
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +15 -15
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +4 -4
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +3 -3
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +1 -1
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +3 -3
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +1 -1
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +6 -6
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +1 -1
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +1 -1
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +1 -1
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +1 -1
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +1 -1
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +1 -1
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -2
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +1 -1
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +1 -1
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +1 -1
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +2 -2
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +3 -3
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +2 -2
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +4 -4
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +2 -2
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +2 -2
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +4 -4
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +2 -2
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +2 -2
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +3 -3
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +41 -36
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +320 -15
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +604 -7
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +110 -8
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +167 -42
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +291 -310
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +94 -606
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +44 -97
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +52 -166
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +41 -298
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +15 -93
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +310 -49
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +57 -51
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +18 -43
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +28 -14
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +3 -317
- package/dist/index315.cjs +7 -1
- package/dist/index315.js +232 -54
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +47 -19
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +208 -25
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +81 -3
- package/dist/index319.cjs +1 -7
- package/dist/index319.js +27 -235
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +77 -48
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +34 -209
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +14 -80
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +8 -29
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +7 -76
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +1 -1
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +1 -1
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +1 -1
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +1 -1
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +1 -1
- package/dist/index349.cjs +2 -1
- package/dist/index349.js +193 -4
- package/dist/index350.cjs +1 -2
- package/dist/index350.js +52 -168
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +331 -65
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +149 -332
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +5 -161
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +5 -5
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +3 -3
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +1 -1
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +1 -1
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +1 -1
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +1 -1
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +275 -3
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +170 -140
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +10 -276
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +107 -170
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +10 -10
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +3 -107
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +140 -9
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +22 -2
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +2 -22
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +24 -83
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +15 -11
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +103 -24
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +12 -18
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +58 -107
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +522 -12
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +30 -59
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +26 -522
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +12 -16
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +34 -11
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +16 -14
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +16 -37
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +17 -14
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +19 -17
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +42 -17
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +39 -15
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +29 -49
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +29 -46
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +19 -25
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +18 -27
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +14 -16
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +15 -28
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +14 -28
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +86 -13
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +13 -13
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -6
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +3 -3
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +2 -2
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +728 -20
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +482 -688
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +18 -520
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +19 -11
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +30 -11
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +24 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -45
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +6 -42
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +16 -171
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +12 -20
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -26
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +11 -26
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +17 -3
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +45 -6
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +42 -16
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +171 -12
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +1 -1
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +3 -3
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -1
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +1 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +2 -2
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -2
- package/dist/src/lib/store/swapStore.d.ts +1 -1
- package/package.json +4 -4
package/dist/index354.js
CHANGED
package/dist/index356.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index87.cjs"),u=require("./index214.cjs"),c=require("./index88.cjs"),a=require("./index89.cjs"),h=require("./index226.cjs");function d(e){const{chainId:t,nonce:o,to:r}=e,s=e.contractAddress??e.address,n=h.keccak256(i.concatHex(["0x05",a.toRlp([t?c.numberToHex(t):"0x",s,o?c.numberToHex(o):"0x"])]));return r==="bytes"?u.hexToBytes(n):n}exports.hashAuthorization=d;
|
package/dist/index356.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { concatHex as i } from "./
|
|
1
|
+
import { concatHex as i } from "./index87.js";
|
|
2
2
|
import { hexToBytes as m } from "./index214.js";
|
|
3
|
-
import { numberToHex as c } from "./
|
|
4
|
-
import { toRlp as d } from "./
|
|
3
|
+
import { numberToHex as c } from "./index88.js";
|
|
4
|
+
import { toRlp as d } from "./index89.js";
|
|
5
5
|
import { keccak256 as f } from "./index226.js";
|
|
6
6
|
function b(o) {
|
|
7
7
|
const { chainId: t, nonce: r, to: s } = o, e = o.contractAddress ?? o.address, n = f(i([
|
package/dist/index363.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index362.cjs"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index362.cjs"),o=require("./index313.cjs");class a{constructor({initialSize:t=1024,maxSize:i=1/0,allocateSize:e=1024}={}){this.bytePosition=0,this.size=t,this.maxSize=i,this.allocateSize=e,this.dataView=new DataView(new ArrayBuffer(t))}ensureSizeOrGrow(t){const i=this.bytePosition+t;if(i>this.size){const e=Math.min(this.maxSize,Math.max(this.size+i,this.size+this.allocateSize));if(i>e)throw new Error(`Attempting to serialize to BCS, but buffer does not have enough size. Allocated size: ${this.size}, Max size: ${this.maxSize}, Required size: ${i}`);this.size=e;const s=new ArrayBuffer(this.size);new Uint8Array(s).set(new Uint8Array(this.dataView.buffer)),this.dataView=new DataView(s)}}shift(t){return this.bytePosition+=t,this}write8(t){return this.ensureSizeOrGrow(1),this.dataView.setUint8(this.bytePosition,Number(t)),this.shift(1)}writeBytes(t){this.ensureSizeOrGrow(t.length);for(let i=0;i<t.length;i++)this.dataView.setUint8(this.bytePosition+i,t[i]);return this.shift(t.length)}write16(t){return this.ensureSizeOrGrow(2),this.dataView.setUint16(this.bytePosition,Number(t),!0),this.shift(2)}write32(t){return this.ensureSizeOrGrow(4),this.dataView.setUint32(this.bytePosition,Number(t),!0),this.shift(4)}write64(t){return n(BigInt(t),8).forEach(i=>this.write8(i)),this}write128(t){return n(BigInt(t),16).forEach(i=>this.write8(i)),this}write256(t){return n(BigInt(t),32).forEach(i=>this.write8(i)),this}writeULEB(t){return h.ulebEncode(t).forEach(i=>this.write8(i)),this}writeVec(t,i){return this.writeULEB(t.length),Array.from(t).forEach((e,s)=>i(this,e,s,t.length)),this}*[Symbol.iterator](){for(let t=0;t<this.bytePosition;t++)yield this.dataView.getUint8(t);return this.toBytes()}toBytes(){return new Uint8Array(this.dataView.buffer.slice(0,this.bytePosition))}toString(t){return o.encodeStr(this.toBytes(),t)}}function n(r,t){const i=new Uint8Array(t);let e=0;for(;r>0;)i[e]=Number(r%BigInt(256)),r=r/BigInt(256),e+=1;return i}exports.BcsWriter=a;
|
package/dist/index363.js
CHANGED
package/dist/index364.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index300.cjs"),m=require("./index362.cjs");function y(e,r,a){return new d.BcsType({read:t=>{const n=new Array(e);for(let u=0;u<e;u++)n[u]=r.read(t);return n},write:(t,n)=>{for(const u of t)r.write(u,n)},...a,name:(a==null?void 0:a.name)??`${r.name}[${e}]`,validate:t=>{var n;if((n=a==null?void 0:a.validate)==null||n.call(a,t),!t||typeof t!="object"||!("length"in t))throw new TypeError(`Expected array, found ${typeof t}`);if(t.length!==e)throw new TypeError(`Expected array of length ${e}, found ${t.length}`)}})}function w(e){return c.enum(`Option<${e.name}>`,{None:null,Some:e}).transform({input:r=>r==null?{None:!0}:{Some:r},output:r=>r.$kind==="Some"?r.Some:null})}function f(e,r){return new d.BcsType({read:a=>{const t=a.readULEB(),n=new Array(t);for(let u=0;u<t;u++)n[u]=e.read(a);return n},write:(a,t)=>{t.writeULEB(a.length);for(const n of a)e.write(n,t)},...r,name:(r==null?void 0:r.name)??`vector<${e.name}>`,validate:a=>{var t;if((t=r==null?void 0:r.validate)==null||t.call(r,a),!a||typeof a!="object"||!("length"in a))throw new TypeError(`Expected array, found ${typeof a}`)}})}function l(e,r){return c.vector(c.tuple([e,r])).transform({name:`Map<${e.name}, ${r.name}>`,input:a=>[...a.entries()],output:a=>{const t=new Map;for(const[n,u]of a)t.set(n,u);return t}})}const c={u8(e){return d.uIntBcsType({readMethod:"read8",writeMethod:"write8",size:1,maxValue:2**8-1,...e,name:(e==null?void 0:e.name)??"u8"})},u16(e){return d.uIntBcsType({readMethod:"read16",writeMethod:"write16",size:2,maxValue:2**16-1,...e,name:(e==null?void 0:e.name)??"u16"})},u32(e){return d.uIntBcsType({readMethod:"read32",writeMethod:"write32",size:4,maxValue:2**32-1,...e,name:(e==null?void 0:e.name)??"u32"})},u64(e){return d.bigUIntBcsType({readMethod:"read64",writeMethod:"write64",size:8,maxValue:2n**64n-1n,...e,name:(e==null?void 0:e.name)??"u64"})},u128(e){return d.bigUIntBcsType({readMethod:"read128",writeMethod:"write128",size:16,maxValue:2n**128n-1n,...e,name:(e==null?void 0:e.name)??"u128"})},u256(e){return d.bigUIntBcsType({readMethod:"read256",writeMethod:"write256",size:32,maxValue:2n**256n-1n,...e,name:(e==null?void 0:e.name)??"u256"})},bool(e){return d.fixedSizeBcsType({size:1,read:r=>r.read8()===1,write:(r,a)=>a.write8(r?1:0),...e,name:(e==null?void 0:e.name)??"bool",validate:r=>{var a;if((a=e==null?void 0:e.validate)==null||a.call(e,r),typeof r!="boolean")throw new TypeError(`Expected boolean, found ${typeof r}`)}})},uleb128(e){return d.dynamicSizeBcsType({read:r=>r.readULEB(),serialize:r=>Uint8Array.from(m.ulebEncode(r)),...e,name:(e==null?void 0:e.name)??"uleb128"})},bytes(e,r){return d.fixedSizeBcsType({size:e,read:a=>a.readBytes(e),write:(a,t)=>{t.writeBytes(new Uint8Array(a))},...r,name:(r==null?void 0:r.name)??`bytes[${e}]`,validate:a=>{var t;if((t=r==null?void 0:r.validate)==null||t.call(r,a),!a||typeof a!="object"||!("length"in a))throw new TypeError(`Expected array, found ${typeof a}`);if(a.length!==e)throw new TypeError(`Expected array of length ${e}, found ${a.length}`)}})},byteVector(e){return new d.BcsType({read:r=>{const a=r.readULEB();return r.readBytes(a)},write:(r,a)=>{const t=new Uint8Array(r);a.writeULEB(t.length),a.writeBytes(t)},...e,name:(e==null?void 0:e.name)??"vector<u8>",serializedSize:r=>{const a="length"in r?r.length:null;return a==null?null:m.ulebEncode(a).length+a},validate:r=>{var a;if((a=e==null?void 0:e.validate)==null||a.call(e,r),!r||typeof r!="object"||!("length"in r))throw new TypeError(`Expected array, found ${typeof r}`)}})},string(e){return d.stringLikeBcsType({toBytes:r=>new TextEncoder().encode(r),fromBytes:r=>new TextDecoder().decode(r),...e,name:(e==null?void 0:e.name)??"string"})},fixedArray:y,option:w,vector:f,tuple(e,r){return new d.BcsTuple({fields:e,...r})},struct(e,r,a){return new d.BcsStruct({name:e,fields:r,...a})},enum(e,r,a){return new d.BcsEnum({name:e,fields:r,...a})},map:l,lazy(e){return d.lazyBcsType(e)}};exports.bcs=c;
|
package/dist/index364.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lazyBcsType as l, BcsEnum as h, BcsStruct as g, BcsTuple as E, stringLikeBcsType as B, BcsType as w, fixedSizeBcsType as f, dynamicSizeBcsType as x, bigUIntBcsType as u, uIntBcsType as m } from "./
|
|
1
|
+
import { lazyBcsType as l, BcsEnum as h, BcsStruct as g, BcsTuple as E, stringLikeBcsType as B, BcsType as w, fixedSizeBcsType as f, dynamicSizeBcsType as x, bigUIntBcsType as u, uIntBcsType as m } from "./index300.js";
|
|
2
2
|
import { ulebEncode as y } from "./index362.js";
|
|
3
3
|
function $(e, r, a) {
|
|
4
4
|
return new w({
|
package/dist/index365.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index313.cjs"),i=require("./index117.cjs"),o=/^vector<(.+)>$/,l=/^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/;class t{static parseFromStr(r,e=!1){if(r==="address")return{address:null};if(r==="bool")return{bool:null};if(r==="u8")return{u8:null};if(r==="u16")return{u16:null};if(r==="u32")return{u32:null};if(r==="u64")return{u64:null};if(r==="u128")return{u128:null};if(r==="u256")return{u256:null};if(r==="signer")return{signer:null};const u=r.match(o);if(u)return{vector:t.parseFromStr(u[1],e)};const n=r.match(l);if(n)return{struct:{address:e?i.normalizeSuiAddress(n[1]):n[1],module:n[2],name:n[3],typeParams:n[5]===void 0?[]:t.parseStructTypeArgs(n[5],e)}};throw new Error(`Encountered unexpected token when parsing type args for ${r}`)}static parseStructTypeArgs(r,e=!1){return s.splitGenericParameters(r).map(u=>t.parseFromStr(u,e))}static tagToString(r){if("bool"in r)return"bool";if("u8"in r)return"u8";if("u16"in r)return"u16";if("u32"in r)return"u32";if("u64"in r)return"u64";if("u128"in r)return"u128";if("u256"in r)return"u256";if("address"in r)return"address";if("signer"in r)return"signer";if("vector"in r)return`vector<${t.tagToString(r.vector)}>`;if("struct"in r){const e=r.struct,u=e.typeParams.map(t.tagToString).join(", ");return`${e.address}::${e.module}::${e.name}${u?`<${u}>`:""}`}throw new Error("Invalid TypeTag")}}exports.TypeTagSerializer=t;
|
package/dist/index365.js
CHANGED
package/dist/index366.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index364.cjs"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index364.cjs"),n=require("./index368.cjs");function c(r){switch(r){case"u8":return e.bcs.u8();case"u16":return e.bcs.u16();case"u32":return e.bcs.u32();case"u64":return e.bcs.u64();case"u128":return e.bcs.u128();case"u256":return e.bcs.u256();case"bool":return e.bcs.bool();case"string":return e.bcs.string();case"id":case"address":return n.Address}const s=r.match(/^(vector|option)<(.+)>$/);if(s){const[u,t]=s.slice(1);return u==="vector"?e.bcs.vector(c(t)):e.bcs.option(c(t))}throw new Error(`Invalid Pure type name: ${r}`)}exports.pureBcsSchemaFromTypeName=c;
|
package/dist/index366.js
CHANGED
package/dist/index368.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(e){return`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index113.cjs"),r=require("./index114.cjs"),i=require("./index115.cjs"),t=require("./index364.cjs"),o=require("./index117.cjs"),m=require("./index365.cjs");function x(e){return t.bcs.u64({name:"unsafe_u64",...e}).transform({input:c=>c,output:c=>Number(c)})}function z(e){return t.bcs.enum("Option",{None:null,Some:e})}const s=t.bcs.bytes(o.SUI_ADDRESS_LENGTH).transform({validate:e=>{const c=typeof e=="string"?e:i.toHex(e);if(!c||!o.isValidSuiAddress(o.normalizeSuiAddress(c)))throw new Error(`Invalid Sui address ${c}`)},input:e=>typeof e=="string"?i.fromHex(o.normalizeSuiAddress(e)):e,output:e=>o.normalizeSuiAddress(i.toHex(e))}),g=t.bcs.byteVector().transform({name:"ObjectDigest",input:e=>u.fromBase58(e),output:e=>u.toBase58(new Uint8Array(e)),validate:e=>{if(u.fromBase58(e).length!==32)throw new Error("ObjectDigest must be 32 bytes")}}),a=t.bcs.struct("SuiObjectRef",{objectId:s,version:t.bcs.u64(),digest:g}),d=t.bcs.struct("SharedObjectRef",{objectId:s,initialSharedVersion:t.bcs.u64(),mutable:t.bcs.bool()}),p=t.bcs.enum("ObjectArg",{ImmOrOwnedObject:a,SharedObject:d,Receiving:a}),U=t.bcs.enum("Owner",{AddressOwner:s,ObjectOwner:s,Shared:t.bcs.struct("Shared",{initialSharedVersion:t.bcs.u64()}),Immutable:null,ConsensusAddressOwner:t.bcs.struct("ConsensusAddressOwner",{owner:s,startVersion:t.bcs.u64()})}),S=t.bcs.enum("CallArg",{Pure:t.bcs.struct("Pure",{bytes:t.bcs.byteVector().transform({input:e=>typeof e=="string"?r.fromBase64(e):e,output:e=>r.toBase64(new Uint8Array(e))})}),Object:p}),b=t.bcs.enum("TypeTag",{bool:null,u8:null,u64:null,u128:null,address:null,signer:null,vector:t.bcs.lazy(()=>b),struct:t.bcs.lazy(()=>M),u16:null,u32:null,u256:null}),l=b.transform({input:e=>typeof e=="string"?m.TypeTagSerializer.parseFromStr(e,!0):e,output:e=>m.TypeTagSerializer.tagToString(e)}),n=t.bcs.enum("Argument",{GasCoin:null,Input:t.bcs.u16(),Result:t.bcs.u16(),NestedResult:t.bcs.tuple([t.bcs.u16(),t.bcs.u16()])}),y=t.bcs.struct("ProgrammableMoveCall",{package:s,module:t.bcs.string(),function:t.bcs.string(),typeArguments:t.bcs.vector(l),arguments:t.bcs.vector(n)}),f=t.bcs.enum("Command",{MoveCall:y,TransferObjects:t.bcs.struct("TransferObjects",{objects:t.bcs.vector(n),address:n}),SplitCoins:t.bcs.struct("SplitCoins",{coin:n,amounts:t.bcs.vector(n)}),MergeCoins:t.bcs.struct("MergeCoins",{destination:n,sources:t.bcs.vector(n)}),Publish:t.bcs.struct("Publish",{modules:t.bcs.vector(t.bcs.byteVector().transform({input:e=>typeof e=="string"?r.fromBase64(e):e,output:e=>r.toBase64(new Uint8Array(e))})),dependencies:t.bcs.vector(s)}),MakeMoveVec:t.bcs.struct("MakeMoveVec",{type:z(l).transform({input:e=>e===null?{None:!0}:{Some:e},output:e=>e.Some??null}),elements:t.bcs.vector(n)}),Upgrade:t.bcs.struct("Upgrade",{modules:t.bcs.vector(t.bcs.byteVector().transform({input:e=>typeof e=="string"?r.fromBase64(e):e,output:e=>r.toBase64(new Uint8Array(e))})),dependencies:t.bcs.vector(s),package:s,ticket:n})}),T=t.bcs.struct("ProgrammableTransaction",{inputs:t.bcs.vector(S),commands:t.bcs.vector(f)}),A=t.bcs.enum("TransactionKind",{ProgrammableTransaction:T,ChangeEpoch:null,Genesis:null,ConsensusCommitPrologue:null}),O=t.bcs.enum("TransactionExpiration",{None:null,Epoch:x()}),M=t.bcs.struct("StructTag",{address:s,module:t.bcs.string(),name:t.bcs.string(),typeParams:t.bcs.vector(b)}),P=t.bcs.struct("GasData",{payment:t.bcs.vector(a),owner:s,price:t.bcs.u64(),budget:t.bcs.u64()}),h=t.bcs.struct("TransactionDataV1",{kind:A,sender:s,gasData:P,expiration:O}),C=t.bcs.enum("TransactionData",{V1:h}),D=t.bcs.enum("IntentScope",{TransactionData:null,TransactionEffects:null,CheckpointSummary:null,PersonalMessage:null}),I=t.bcs.enum("IntentVersion",{V0:null}),V=t.bcs.enum("AppId",{Sui:null}),j=t.bcs.struct("Intent",{scope:D,version:I,appId:V});function k(e){return t.bcs.struct(`IntentMessage<${e.name}>`,{intent:j,value:e})}const v=t.bcs.enum("CompressedSignature",{ED25519:t.bcs.bytes(64),Secp256k1:t.bcs.bytes(64),Secp256r1:t.bcs.bytes(64),ZkLogin:t.bcs.byteVector(),Passkey:t.bcs.byteVector()}),w=t.bcs.enum("PublicKey",{ED25519:t.bcs.bytes(32),Secp256k1:t.bcs.bytes(33),Secp256r1:t.bcs.bytes(33),ZkLogin:t.bcs.byteVector(),Passkey:t.bcs.bytes(33)}),E=t.bcs.struct("MultiSigPkMap",{pubKey:w,weight:t.bcs.u8()}),B=t.bcs.struct("MultiSigPublicKey",{pk_map:t.bcs.vector(E),threshold:t.bcs.u16()}),q=t.bcs.struct("MultiSig",{sigs:t.bcs.vector(v),bitmap:t.bcs.u16(),multisig_pk:B}),K=t.bcs.byteVector().transform({input:e=>typeof e=="string"?r.fromBase64(e):e,output:e=>r.toBase64(new Uint8Array(e))}),R=t.bcs.struct("SenderSignedTransaction",{intentMessage:k(C),txSignatures:t.bcs.vector(K)}),G=t.bcs.vector(R,{name:"SenderSignedData"}),N=t.bcs.struct("PasskeyAuthenticator",{authenticatorData:t.bcs.byteVector(),clientDataJson:t.bcs.string(),userSignature:t.bcs.byteVector()});exports.Address=s;exports.AppId=V;exports.Argument=n;exports.CallArg=S;exports.Command=f;exports.CompressedSignature=v;exports.GasData=P;exports.Intent=j;exports.IntentMessage=k;exports.IntentScope=D;exports.IntentVersion=I;exports.MultiSig=q;exports.MultiSigPkMap=E;exports.MultiSigPublicKey=B;exports.ObjectArg=p;exports.ObjectDigest=g;exports.Owner=U;exports.PasskeyAuthenticator=N;exports.ProgrammableMoveCall=y;exports.ProgrammableTransaction=T;exports.PublicKey=w;exports.SenderSignedData=G;exports.SenderSignedTransaction=R;exports.SharedObjectRef=d;exports.StructTag=M;exports.SuiObjectRef=a;exports.TransactionData=C;exports.TransactionDataV1=h;exports.TransactionExpiration=O;exports.TransactionKind=A;exports.TypeTag=l;exports.base64String=K;
|
package/dist/index368.js
CHANGED
|
@@ -1,6 +1,278 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { toBase58 as g, fromBase58 as l } from "./index113.js";
|
|
2
|
+
import { toBase64 as o, fromBase64 as u } from "./index114.js";
|
|
3
|
+
import { fromHex as b, toHex as m } from "./index115.js";
|
|
4
|
+
import { bcs as t } from "./index364.js";
|
|
5
|
+
import { SUI_ADDRESS_LENGTH as S, normalizeSuiAddress as a, isValidSuiAddress as y } from "./index117.js";
|
|
6
|
+
import { TypeTagSerializer as p } from "./index365.js";
|
|
7
|
+
function f(e) {
|
|
8
|
+
return t.u64({
|
|
9
|
+
name: "unsafe_u64",
|
|
10
|
+
...e
|
|
11
|
+
}).transform({
|
|
12
|
+
input: (s) => s,
|
|
13
|
+
output: (s) => Number(s)
|
|
14
|
+
});
|
|
3
15
|
}
|
|
16
|
+
function T(e) {
|
|
17
|
+
return t.enum("Option", {
|
|
18
|
+
None: null,
|
|
19
|
+
Some: e
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const n = t.bytes(S).transform({
|
|
23
|
+
validate: (e) => {
|
|
24
|
+
const s = typeof e == "string" ? e : m(e);
|
|
25
|
+
if (!s || !y(a(s)))
|
|
26
|
+
throw new Error(`Invalid Sui address ${s}`);
|
|
27
|
+
},
|
|
28
|
+
input: (e) => typeof e == "string" ? b(a(e)) : e,
|
|
29
|
+
output: (e) => a(m(e))
|
|
30
|
+
}), O = t.byteVector().transform({
|
|
31
|
+
name: "ObjectDigest",
|
|
32
|
+
input: (e) => l(e),
|
|
33
|
+
output: (e) => g(new Uint8Array(e)),
|
|
34
|
+
validate: (e) => {
|
|
35
|
+
if (l(e).length !== 32)
|
|
36
|
+
throw new Error("ObjectDigest must be 32 bytes");
|
|
37
|
+
}
|
|
38
|
+
}), c = t.struct("SuiObjectRef", {
|
|
39
|
+
objectId: n,
|
|
40
|
+
version: t.u64(),
|
|
41
|
+
digest: O
|
|
42
|
+
}), A = t.struct("SharedObjectRef", {
|
|
43
|
+
objectId: n,
|
|
44
|
+
initialSharedVersion: t.u64(),
|
|
45
|
+
mutable: t.bool()
|
|
46
|
+
}), h = t.enum("ObjectArg", {
|
|
47
|
+
ImmOrOwnedObject: c,
|
|
48
|
+
SharedObject: A,
|
|
49
|
+
Receiving: c
|
|
50
|
+
}), Q = t.enum("Owner", {
|
|
51
|
+
AddressOwner: n,
|
|
52
|
+
ObjectOwner: n,
|
|
53
|
+
Shared: t.struct("Shared", {
|
|
54
|
+
initialSharedVersion: t.u64()
|
|
55
|
+
}),
|
|
56
|
+
Immutable: null,
|
|
57
|
+
ConsensusAddressOwner: t.struct("ConsensusAddressOwner", {
|
|
58
|
+
owner: n,
|
|
59
|
+
startVersion: t.u64()
|
|
60
|
+
})
|
|
61
|
+
}), V = t.enum("CallArg", {
|
|
62
|
+
Pure: t.struct("Pure", {
|
|
63
|
+
bytes: t.byteVector().transform({
|
|
64
|
+
input: (e) => typeof e == "string" ? u(e) : e,
|
|
65
|
+
output: (e) => o(new Uint8Array(e))
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
Object: h
|
|
69
|
+
}), i = t.enum("TypeTag", {
|
|
70
|
+
bool: null,
|
|
71
|
+
u8: null,
|
|
72
|
+
u64: null,
|
|
73
|
+
u128: null,
|
|
74
|
+
address: null,
|
|
75
|
+
signer: null,
|
|
76
|
+
vector: t.lazy(() => i),
|
|
77
|
+
struct: t.lazy(() => D),
|
|
78
|
+
u16: null,
|
|
79
|
+
u32: null,
|
|
80
|
+
u256: null
|
|
81
|
+
}), d = i.transform({
|
|
82
|
+
input: (e) => typeof e == "string" ? p.parseFromStr(e, !0) : e,
|
|
83
|
+
output: (e) => p.tagToString(e)
|
|
84
|
+
}), r = t.enum("Argument", {
|
|
85
|
+
GasCoin: null,
|
|
86
|
+
Input: t.u16(),
|
|
87
|
+
Result: t.u16(),
|
|
88
|
+
NestedResult: t.tuple([t.u16(), t.u16()])
|
|
89
|
+
}), M = t.struct("ProgrammableMoveCall", {
|
|
90
|
+
package: n,
|
|
91
|
+
module: t.string(),
|
|
92
|
+
function: t.string(),
|
|
93
|
+
typeArguments: t.vector(d),
|
|
94
|
+
arguments: t.vector(r)
|
|
95
|
+
}), P = t.enum("Command", {
|
|
96
|
+
/**
|
|
97
|
+
* A Move Call - any public Move function can be called via
|
|
98
|
+
* this transaction. The results can be used that instant to pass
|
|
99
|
+
* into the next transaction.
|
|
100
|
+
*/
|
|
101
|
+
MoveCall: M,
|
|
102
|
+
/**
|
|
103
|
+
* Transfer vector of objects to a receiver.
|
|
104
|
+
*/
|
|
105
|
+
TransferObjects: t.struct("TransferObjects", {
|
|
106
|
+
objects: t.vector(r),
|
|
107
|
+
address: r
|
|
108
|
+
}),
|
|
109
|
+
// /**
|
|
110
|
+
// * Split `amount` from a `coin`.
|
|
111
|
+
// */
|
|
112
|
+
SplitCoins: t.struct("SplitCoins", {
|
|
113
|
+
coin: r,
|
|
114
|
+
amounts: t.vector(r)
|
|
115
|
+
}),
|
|
116
|
+
// /**
|
|
117
|
+
// * Merge Vector of Coins (`sources`) into a `destination`.
|
|
118
|
+
// */
|
|
119
|
+
MergeCoins: t.struct("MergeCoins", {
|
|
120
|
+
destination: r,
|
|
121
|
+
sources: t.vector(r)
|
|
122
|
+
}),
|
|
123
|
+
// /**
|
|
124
|
+
// * Publish a Move module.
|
|
125
|
+
// */
|
|
126
|
+
Publish: t.struct("Publish", {
|
|
127
|
+
modules: t.vector(
|
|
128
|
+
t.byteVector().transform({
|
|
129
|
+
input: (e) => typeof e == "string" ? u(e) : e,
|
|
130
|
+
output: (e) => o(new Uint8Array(e))
|
|
131
|
+
})
|
|
132
|
+
),
|
|
133
|
+
dependencies: t.vector(n)
|
|
134
|
+
}),
|
|
135
|
+
// /**
|
|
136
|
+
// * Build a vector of objects using the input arguments.
|
|
137
|
+
// * It is impossible to export construct a `vector<T: key>` otherwise,
|
|
138
|
+
// * so this call serves a utility function.
|
|
139
|
+
// */
|
|
140
|
+
MakeMoveVec: t.struct("MakeMoveVec", {
|
|
141
|
+
type: T(d).transform({
|
|
142
|
+
input: (e) => e === null ? {
|
|
143
|
+
None: !0
|
|
144
|
+
} : {
|
|
145
|
+
Some: e
|
|
146
|
+
},
|
|
147
|
+
output: (e) => e.Some ?? null
|
|
148
|
+
}),
|
|
149
|
+
elements: t.vector(r)
|
|
150
|
+
}),
|
|
151
|
+
Upgrade: t.struct("Upgrade", {
|
|
152
|
+
modules: t.vector(
|
|
153
|
+
t.byteVector().transform({
|
|
154
|
+
input: (e) => typeof e == "string" ? u(e) : e,
|
|
155
|
+
output: (e) => o(new Uint8Array(e))
|
|
156
|
+
})
|
|
157
|
+
),
|
|
158
|
+
dependencies: t.vector(n),
|
|
159
|
+
package: n,
|
|
160
|
+
ticket: r
|
|
161
|
+
})
|
|
162
|
+
}), C = t.struct("ProgrammableTransaction", {
|
|
163
|
+
inputs: t.vector(V),
|
|
164
|
+
commands: t.vector(P)
|
|
165
|
+
}), k = t.enum("TransactionKind", {
|
|
166
|
+
ProgrammableTransaction: C,
|
|
167
|
+
ChangeEpoch: null,
|
|
168
|
+
Genesis: null,
|
|
169
|
+
ConsensusCommitPrologue: null
|
|
170
|
+
}), w = t.enum("TransactionExpiration", {
|
|
171
|
+
None: null,
|
|
172
|
+
Epoch: f()
|
|
173
|
+
}), D = t.struct("StructTag", {
|
|
174
|
+
address: n,
|
|
175
|
+
module: t.string(),
|
|
176
|
+
name: t.string(),
|
|
177
|
+
typeParams: t.vector(i)
|
|
178
|
+
}), I = t.struct("GasData", {
|
|
179
|
+
payment: t.vector(c),
|
|
180
|
+
owner: n,
|
|
181
|
+
price: t.u64(),
|
|
182
|
+
budget: t.u64()
|
|
183
|
+
}), j = t.struct("TransactionDataV1", {
|
|
184
|
+
kind: k,
|
|
185
|
+
sender: n,
|
|
186
|
+
gasData: I,
|
|
187
|
+
expiration: w
|
|
188
|
+
}), v = t.enum("TransactionData", {
|
|
189
|
+
V1: j
|
|
190
|
+
}), E = t.enum("IntentScope", {
|
|
191
|
+
TransactionData: null,
|
|
192
|
+
TransactionEffects: null,
|
|
193
|
+
CheckpointSummary: null,
|
|
194
|
+
PersonalMessage: null
|
|
195
|
+
}), R = t.enum("IntentVersion", {
|
|
196
|
+
V0: null
|
|
197
|
+
}), U = t.enum("AppId", {
|
|
198
|
+
Sui: null
|
|
199
|
+
}), x = t.struct("Intent", {
|
|
200
|
+
scope: E,
|
|
201
|
+
version: R,
|
|
202
|
+
appId: U
|
|
203
|
+
});
|
|
204
|
+
function K(e) {
|
|
205
|
+
return t.struct(`IntentMessage<${e.name}>`, {
|
|
206
|
+
intent: x,
|
|
207
|
+
value: e
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
const N = t.enum("CompressedSignature", {
|
|
211
|
+
ED25519: t.bytes(64),
|
|
212
|
+
Secp256k1: t.bytes(64),
|
|
213
|
+
Secp256r1: t.bytes(64),
|
|
214
|
+
ZkLogin: t.byteVector(),
|
|
215
|
+
Passkey: t.byteVector()
|
|
216
|
+
}), _ = t.enum("PublicKey", {
|
|
217
|
+
ED25519: t.bytes(32),
|
|
218
|
+
Secp256k1: t.bytes(33),
|
|
219
|
+
Secp256r1: t.bytes(33),
|
|
220
|
+
ZkLogin: t.byteVector(),
|
|
221
|
+
Passkey: t.bytes(33)
|
|
222
|
+
}), G = t.struct("MultiSigPkMap", {
|
|
223
|
+
pubKey: _,
|
|
224
|
+
weight: t.u8()
|
|
225
|
+
}), z = t.struct("MultiSigPublicKey", {
|
|
226
|
+
pk_map: t.vector(G),
|
|
227
|
+
threshold: t.u16()
|
|
228
|
+
}), W = t.struct("MultiSig", {
|
|
229
|
+
sigs: t.vector(N),
|
|
230
|
+
bitmap: t.u16(),
|
|
231
|
+
multisig_pk: z
|
|
232
|
+
}), B = t.byteVector().transform({
|
|
233
|
+
input: (e) => typeof e == "string" ? u(e) : e,
|
|
234
|
+
output: (e) => o(new Uint8Array(e))
|
|
235
|
+
}), H = t.struct("SenderSignedTransaction", {
|
|
236
|
+
intentMessage: K(v),
|
|
237
|
+
txSignatures: t.vector(B)
|
|
238
|
+
}), X = t.vector(H, {
|
|
239
|
+
name: "SenderSignedData"
|
|
240
|
+
}), Y = t.struct("PasskeyAuthenticator", {
|
|
241
|
+
authenticatorData: t.byteVector(),
|
|
242
|
+
clientDataJson: t.string(),
|
|
243
|
+
userSignature: t.byteVector()
|
|
244
|
+
});
|
|
4
245
|
export {
|
|
5
|
-
n as
|
|
246
|
+
n as Address,
|
|
247
|
+
U as AppId,
|
|
248
|
+
r as Argument,
|
|
249
|
+
V as CallArg,
|
|
250
|
+
P as Command,
|
|
251
|
+
N as CompressedSignature,
|
|
252
|
+
I as GasData,
|
|
253
|
+
x as Intent,
|
|
254
|
+
K as IntentMessage,
|
|
255
|
+
E as IntentScope,
|
|
256
|
+
R as IntentVersion,
|
|
257
|
+
W as MultiSig,
|
|
258
|
+
G as MultiSigPkMap,
|
|
259
|
+
z as MultiSigPublicKey,
|
|
260
|
+
h as ObjectArg,
|
|
261
|
+
O as ObjectDigest,
|
|
262
|
+
Q as Owner,
|
|
263
|
+
Y as PasskeyAuthenticator,
|
|
264
|
+
M as ProgrammableMoveCall,
|
|
265
|
+
C as ProgrammableTransaction,
|
|
266
|
+
_ as PublicKey,
|
|
267
|
+
X as SenderSignedData,
|
|
268
|
+
H as SenderSignedTransaction,
|
|
269
|
+
A as SharedObjectRef,
|
|
270
|
+
D as StructTag,
|
|
271
|
+
c as SuiObjectRef,
|
|
272
|
+
v as TransactionData,
|
|
273
|
+
j as TransactionDataV1,
|
|
274
|
+
w as TransactionExpiration,
|
|
275
|
+
k as TransactionKind,
|
|
276
|
+
d as TypeTag,
|
|
277
|
+
B as base64String
|
|
6
278
|
};
|
package/dist/index369.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index364.cjs"),t=require("./index368.cjs"),o=e.bcs.enum("PackageUpgradeError",{UnableToFetchPackage:e.bcs.struct("UnableToFetchPackage",{packageId:t.Address}),NotAPackage:e.bcs.struct("NotAPackage",{objectId:t.Address}),IncompatibleUpgrade:null,DigestDoesNotMatch:e.bcs.struct("DigestDoesNotMatch",{digest:e.bcs.byteVector()}),UnknownUpgradePolicy:e.bcs.struct("UnknownUpgradePolicy",{policy:e.bcs.u8()}),PackageIDDoesNotMatch:e.bcs.struct("PackageIDDoesNotMatch",{packageId:t.Address,ticketId:t.Address})}),u=e.bcs.struct("ModuleId",{address:t.Address,name:e.bcs.string()}),s=e.bcs.struct("MoveLocation",{module:u,function:e.bcs.u16(),instruction:e.bcs.u16(),functionName:e.bcs.option(e.bcs.string())}),a=e.bcs.enum("CommandArgumentError",{TypeMismatch:null,InvalidBCSBytes:null,InvalidUsageOfPureArg:null,InvalidArgumentToPrivateEntryFunction:null,IndexOutOfBounds:e.bcs.struct("IndexOutOfBounds",{idx:e.bcs.u16()}),SecondaryIndexOutOfBounds:e.bcs.struct("SecondaryIndexOutOfBounds",{resultIdx:e.bcs.u16(),secondaryIdx:e.bcs.u16()}),InvalidResultArity:e.bcs.struct("InvalidResultArity",{resultIdx:e.bcs.u16()}),InvalidGasCoinUsage:null,InvalidValueUsage:null,InvalidObjectByValue:null,InvalidObjectByMutRef:null,SharedObjectOperationNotAllowed:null}),i=e.bcs.enum("TypeArgumentError",{TypeNotFound:null,ConstraintNotSatisfied:null}),b=e.bcs.enum("ExecutionFailureStatus",{InsufficientGas:null,InvalidGasObject:null,InvariantViolation:null,FeatureNotYetSupported:null,MoveObjectTooBig:e.bcs.struct("MoveObjectTooBig",{objectSize:e.bcs.u64(),maxObjectSize:e.bcs.u64()}),MovePackageTooBig:e.bcs.struct("MovePackageTooBig",{objectSize:e.bcs.u64(),maxObjectSize:e.bcs.u64()}),CircularObjectOwnership:e.bcs.struct("CircularObjectOwnership",{object:t.Address}),InsufficientCoinBalance:null,CoinBalanceOverflow:null,PublishErrorNonZeroAddress:null,SuiMoveVerificationError:null,MovePrimitiveRuntimeError:e.bcs.option(s),MoveAbort:e.bcs.tuple([s,e.bcs.u64()]),VMVerificationOrDeserializationError:null,VMInvariantViolation:null,FunctionNotFound:null,ArityMismatch:null,TypeArityMismatch:null,NonEntryFunctionInvoked:null,CommandArgumentError:e.bcs.struct("CommandArgumentError",{argIdx:e.bcs.u16(),kind:a}),TypeArgumentError:e.bcs.struct("TypeArgumentError",{argumentIdx:e.bcs.u16(),kind:i}),UnusedValueWithoutDrop:e.bcs.struct("UnusedValueWithoutDrop",{resultIdx:e.bcs.u16(),secondaryIdx:e.bcs.u16()}),InvalidPublicFunctionReturnType:e.bcs.struct("InvalidPublicFunctionReturnType",{idx:e.bcs.u16()}),InvalidTransferObject:null,EffectsTooLarge:e.bcs.struct("EffectsTooLarge",{currentSize:e.bcs.u64(),maxSize:e.bcs.u64()}),PublishUpgradeMissingDependency:null,PublishUpgradeDependencyDowngrade:null,PackageUpgradeError:e.bcs.struct("PackageUpgradeError",{upgradeError:o}),WrittenObjectsTooLarge:e.bcs.struct("WrittenObjectsTooLarge",{currentSize:e.bcs.u64(),maxSize:e.bcs.u64()}),CertificateDenied:null,SuiMoveVerificationTimedout:null,SharedObjectOperationNotAllowed:null,InputObjectDeleted:null,ExecutionCancelledDueToSharedObjectCongestion:e.bcs.struct("ExecutionCancelledDueToSharedObjectCongestion",{congestedObjects:e.bcs.vector(t.Address)}),AddressDeniedForCoin:e.bcs.struct("AddressDeniedForCoin",{address:t.Address,coinType:e.bcs.string()}),CoinTypeGlobalPause:e.bcs.struct("CoinTypeGlobalPause",{coinType:e.bcs.string()}),ExecutionCancelledDueToRandomnessUnavailable:null}),n=e.bcs.enum("ExecutionStatus",{Success:null,Failed:e.bcs.struct("ExecutionFailed",{error:b,command:e.bcs.option(e.bcs.u64())})}),r=e.bcs.struct("GasCostSummary",{computationCost:e.bcs.u64(),storageCost:e.bcs.u64(),storageRebate:e.bcs.u64(),nonRefundableStorageFee:e.bcs.u64()}),l=e.bcs.struct("TransactionEffectsV1",{status:n,executedEpoch:e.bcs.u64(),gasUsed:r,modifiedAtVersions:e.bcs.vector(e.bcs.tuple([t.Address,e.bcs.u64()])),sharedObjects:e.bcs.vector(t.SuiObjectRef),transactionDigest:t.ObjectDigest,created:e.bcs.vector(e.bcs.tuple([t.SuiObjectRef,t.Owner])),mutated:e.bcs.vector(e.bcs.tuple([t.SuiObjectRef,t.Owner])),unwrapped:e.bcs.vector(e.bcs.tuple([t.SuiObjectRef,t.Owner])),deleted:e.bcs.vector(t.SuiObjectRef),unwrappedThenDeleted:e.bcs.vector(t.SuiObjectRef),wrapped:e.bcs.vector(t.SuiObjectRef),gasObject:e.bcs.tuple([t.SuiObjectRef,t.Owner]),eventsDigest:e.bcs.option(t.ObjectDigest),dependencies:e.bcs.vector(t.ObjectDigest)}),c=e.bcs.tuple([e.bcs.u64(),t.ObjectDigest]),d=e.bcs.enum("ObjectIn",{NotExist:null,Exist:e.bcs.tuple([c,t.Owner])}),g=e.bcs.enum("ObjectOut",{NotExist:null,ObjectWrite:e.bcs.tuple([t.ObjectDigest,t.Owner]),PackageWrite:c}),p=e.bcs.enum("IDOperation",{None:null,Created:null,Deleted:null}),O=e.bcs.struct("EffectsObjectChange",{inputState:d,outputState:g,idOperation:p}),m=e.bcs.enum("UnchangedSharedKind",{ReadOnlyRoot:c,MutateDeleted:e.bcs.u64(),ReadDeleted:e.bcs.u64(),Cancelled:e.bcs.u64(),PerEpochConfig:null}),f=e.bcs.struct("TransactionEffectsV2",{status:n,executedEpoch:e.bcs.u64(),gasUsed:r,transactionDigest:t.ObjectDigest,gasObjectIndex:e.bcs.option(e.bcs.u32()),eventsDigest:e.bcs.option(t.ObjectDigest),dependencies:e.bcs.vector(t.ObjectDigest),lamportVersion:e.bcs.u64(),changedObjects:e.bcs.vector(e.bcs.tuple([t.Address,O])),unchangedSharedObjects:e.bcs.vector(e.bcs.tuple([t.Address,m])),auxDataDigest:e.bcs.option(t.ObjectDigest)}),j=e.bcs.enum("TransactionEffects",{V1:l,V2:f});exports.TransactionEffects=j;
|