Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed Nov 15, 2023
1 parent d9ba56b commit 882e81c
Show file tree
Hide file tree
Showing 6 changed files with 383 additions and 14 deletions.
66 changes: 64 additions & 2 deletions generated.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Builder } from "../boc/Builder"
import { Slice } from "../boc/Slice"
import { Builder } from "ton"
import { Slice } from "ton"
export type X = {
a: number;
b: number;
Expand Down Expand Up @@ -296,3 +296,65 @@ export function storeUnary(unary: Unary): Builder {
};
};
}
export type NFG = {
a: BitInteger;
};
export function loadNFG(slice: Slice): NFG {
return {
a: loadBitInteger(slice)
};
}
export function storeNFG(nFG: NFG): Builder {
return (builder: Builder) => {
storeBitInteger(nFG.a)(builder);
};
}
export type NFT = {

};
export function loadNFT(slice: Slice): NFT {
return {

};
}
export function storeNFT(nFT: NFT): Builder {
return (builder: Builder) => {

};
}
export type A = {
t: number;
q: number;
a: number;
e: number;
b: number;
d: number;
c: number;
};
export function loadA(slice: Slice): A {
let slice1 = slice.loadRef().beginParse();
let slice2 = slice.loadRef().beginParse();
let slice21 = slice2.loadRef().beginParse();
let slice22 = slice2.loadRef().beginParse();
let slice221 = slice22.loadRef().beginParse();
return {
t: slice.loadUint(32),
q: slice1.loadUint(32),
a: slice2.loadUint(32),
e: slice21.loadUint(32),
b: slice22.loadUint(32),
d: slice22.loadUint(32),
c: slice221.loadUint(32)
};
}
export function storeA(a: A): Builder {
return (builder: Builder) => {
builder.storeUint(a.t, 32);
builder.storeUint(a.q, 32);
builder.storeUint(a.a, 32);
builder.storeUint(a.e, 32);
builder.storeUint(a.b, 32);
builder.storeUint(a.d, 32);
builder.storeUint(a.c, 32);
};
}
47 changes: 47 additions & 0 deletions maybe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,50 @@ export function storeUnary(unary: Unary): Builder {
};
};
}


//a$_ t:# ^[ a:(## 32) ^[e:#] ^[ b:(## 32) d:# ^[ c:(## 32) ] ] ] = A;

export function loadA(slice: Slice): A {
let slice1 = slice.loadRef().beginParse();
let slice11 = slice1.loadRef().beginParse();
let slice12 = slice1.loadRef().beginParse();
let slice121 = slice12.loadRef().beginParse();
return {
t: slice.loadUint(32),
a: slice1.loadUint(32),
e: slice11.loadUint(32),
b: slice12.loadUint(32),
d: slice12.loadUint(32),
c: slice121.loadUint(32)
};
}



<ref *1> FieldAnonymousDef {
name: null,
isRef: true,
fields: [
FieldNamedDef {
name: 'a',
expr: [BuiltinOneArgExpr],
locations: [Object],
parent: [Circular *1]
},
FieldAnonymousDef {
name: null,
isRef: true,
fields: [Array],
locations: [Object],
parent: [Circular *1]
},
FieldAnonymousDef {
name: null,
isRef: true,
fields: [Array],
locations: [Object],
parent: [Circular *1]
}
]
}
Loading

0 comments on commit 882e81c

Please sign in to comment.