UNPKG

pulsar-contracts

Version:

129 lines (128 loc) 6.86 kB
import { Field, MerkleList } from 'o1js'; import { PulsarActionBase } from './PulsarAction.js'; export { merkleActionsAdd, emptyActionListHash, actionListAdd, ActionList, MerkleActions, }; declare const merkleActionsAdd: (hash: Field, actionsListHash: Field) => Field; declare const emptyActionListHash: import("o1js/dist/node/lib/provable/field.js").Field; declare const actionListAdd: (hash: Field, action: PulsarActionBase) => Field; declare const ActionList_base: { new ({ hash, data }: import("o1js/dist/node/lib/provable/merkle-list.js").MerkleListBase<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>): MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>; create<T>(type: import("o1js/dist/node/lib/provable/types/provable-intf.js").WithProvable<import("o1js").ProvableHashable<T>>, nextHash?: (hash: Field, value: T) => Field, emptyHash_?: import("o1js/dist/node/lib/provable/field.js").Field): typeof MerkleList<T> & { empty: () => MerkleList<T>; from: (array: T[]) => MerkleList<T>; fromReverse: (array: T[]) => MerkleList<T>; provable: import("o1js").ProvableHashable<MerkleList<T>>; }; _nextHash: ((hash: Field, t: any) => Field) | undefined; _emptyHash: Field | undefined; _provable: import("o1js").ProvableHashable<MerkleList<any>> | undefined; _innerProvable: import("o1js").ProvableHashable<any> | undefined; get emptyHash(): import("o1js/dist/node/lib/provable/field.js").Field; } & { empty: () => MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>; from: (array: { type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }[]) => MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>; fromReverse: (array: { type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }[]) => MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>; provable: import("o1js").ProvableHashable<MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>>; }; declare class ActionList extends ActionList_base { } declare const MerkleActions_base: { new ({ hash, data }: import("o1js/dist/node/lib/provable/merkle-list.js").MerkleListBase<MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>>): MerkleList<MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>>; create<T>(type: import("o1js/dist/node/lib/provable/types/provable-intf.js").WithProvable<import("o1js").ProvableHashable<T>>, nextHash?: (hash: Field, value: T) => Field, emptyHash_?: import("o1js/dist/node/lib/provable/field.js").Field): typeof MerkleList<T> & { empty: () => MerkleList<T>; from: (array: T[]) => MerkleList<T>; fromReverse: (array: T[]) => MerkleList<T>; provable: import("o1js").ProvableHashable<MerkleList<T>>; }; _nextHash: ((hash: Field, t: any) => Field) | undefined; _emptyHash: Field | undefined; _provable: import("o1js").ProvableHashable<MerkleList<any>> | undefined; _innerProvable: import("o1js").ProvableHashable<any> | undefined; get emptyHash(): import("o1js/dist/node/lib/provable/field.js").Field; } & { empty: () => MerkleList<MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>>; from: (array: MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>[]) => MerkleList<MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>>; fromReverse: (array: MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>[]) => MerkleList<MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>>; provable: import("o1js").ProvableHashable<MerkleList<MerkleList<{ type: import("o1js/dist/node/lib/provable/field.js").Field; account: import("o1js").PublicKey; amount: import("o1js/dist/node/lib/provable/field.js").Field; pulsarAuth: import("./PulsarAction.js").PulsarAuth; }>>>; }; declare class MerkleActions extends MerkleActions_base { }