Constructors
constructor
- new ZkBag<IDs>(packageAddress, ids): ZkBag<IDs>
Parameters
- packageAddress: string
- ids: IDs
Properties
ids
Methods
add
- add(__namedParameters): ((tx: Transaction) => {
$kind: "Result";
Result: number;
}) Parameters
- __namedParameters: {
arguments: [store: string | TransactionObjectArgument, receiver:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}, item: string | TransactionObjectArgument];
typeArguments: [string];
}arguments: [store: string | TransactionObjectArgument, receiver:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}, item: string | TransactionObjectArgument]
typeArguments: [string]
Returns ((tx: Transaction) => {
$kind: "Result";
Result: number;
})
- (tx): {
$kind: "Result";
Result: number;
} Returns {
$kind: "Result";
Result: number;
}
$kind: "Result"
Result: number
claim
- claim(__namedParameters): ((tx: Transaction) => {
$kind: "Result";
Result: number;
}) Returns ((tx: Transaction) => {
$kind: "Result";
Result: number;
})
- (tx): {
$kind: "Result";
Result: number;
} Returns {
$kind: "Result";
Result: number;
}
$kind: "Result"
Result: number
finalize
- finalize(__namedParameters): ((tx: Transaction) => void)
Parameters
- __namedParameters: {
arguments: [bag: string | TransactionObjectArgument, claim: {
$kind: "NestedResult";
NestedResult: [number, number];
}];
}
Returns ((tx: Transaction) => void)
init_claim
- init_claim(__namedParameters): ((tx: Transaction) => readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}]) Returns ((tx: Transaction) => readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}])
- (tx): readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}] Returns readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}]
new
- new(__namedParameters): ((tx: Transaction) => void)
Parameters
- __namedParameters: {
arguments: [store: string | TransactionObjectArgument, receiver:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}];
}arguments: [store: string | TransactionObjectArgument, receiver:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}]
Returns ((tx: Transaction) => void)
reclaim
- reclaim(__namedParameters): ((tx: Transaction) => readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}]) Parameters
- __namedParameters: {
arguments: [store: string | TransactionObjectArgument, receiver:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}];
}arguments: [store: string | TransactionObjectArgument, receiver:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}]
Returns ((tx: Transaction) => readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}])
- (tx): readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}] Returns readonly [{
$kind: "NestedResult";
NestedResult: [number, number];
}, {
$kind: "NestedResult";
NestedResult: [number, number];
}]
update_receiver
- update_receiver(__namedParameters): ((tx: Transaction) => void)
Parameters
- __namedParameters: {
arguments: [bag: string | TransactionObjectArgument, from:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}, to:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}];
}arguments: [bag: string | TransactionObjectArgument, from:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}, to:
| string
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}]
Returns ((tx: Transaction) => void)