zkcloudworker 0.18.12 → 0.18.14
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/{ts → node}/index.cjs +41 -41
- package/package.json +5 -8
- package/dist/ts/mina/token/FungibleToken.d.ts +0 -338
- package/dist/ts/mina/token/FungibleToken.js +0 -292
- package/dist/ts/mina/token/FungibleToken.js.map +0 -1
- package/dist/web/mina/token/FungibleToken.d.ts +0 -338
- package/dist/web/mina/token/FungibleToken.js +0 -292
- package/dist/web/mina/token/FungibleToken.js.map +0 -1
- /package/dist/{ts → node}/cloud/config.d.ts +0 -0
- /package/dist/{ts → node}/cloud/config.js +0 -0
- /package/dist/{ts → node}/cloud/config.js.map +0 -0
- /package/dist/{ts → node}/cloud/index.d.ts +0 -0
- /package/dist/{ts → node}/cloud/index.js +0 -0
- /package/dist/{ts → node}/cloud/index.js.map +0 -0
- /package/dist/{ts → node}/cloud/networks.d.ts +0 -0
- /package/dist/{ts → node}/cloud/networks.js +0 -0
- /package/dist/{ts → node}/cloud/networks.js.map +0 -0
- /package/dist/{ts → node}/cloud/utils/base64.d.ts +0 -0
- /package/dist/{ts → node}/cloud/utils/base64.js +0 -0
- /package/dist/{ts → node}/cloud/utils/base64.js.map +0 -0
- /package/dist/{ts → node}/cloud/utils/graphql.d.ts +0 -0
- /package/dist/{ts → node}/cloud/utils/graphql.js +0 -0
- /package/dist/{ts → node}/cloud/utils/graphql.js.map +0 -0
- /package/dist/{ts → node}/cloud/utils/index.d.ts +0 -0
- /package/dist/{ts → node}/cloud/utils/index.js +0 -0
- /package/dist/{ts → node}/cloud/utils/index.js.map +0 -0
- /package/dist/{ts → node}/cloud/utils/utils.d.ts +0 -0
- /package/dist/{ts → node}/cloud/utils/utils.js +0 -0
- /package/dist/{ts → node}/cloud/utils/utils.js.map +0 -0
- /package/dist/{ts → node}/cloud/worker/cloud.d.ts +0 -0
- /package/dist/{ts → node}/cloud/worker/cloud.js +0 -0
- /package/dist/{ts → node}/cloud/worker/cloud.js.map +0 -0
- /package/dist/{ts → node}/cloud/worker/index.d.ts +0 -0
- /package/dist/{ts → node}/cloud/worker/index.js +0 -0
- /package/dist/{ts → node}/cloud/worker/index.js.map +0 -0
- /package/dist/{ts → node}/cloud/worker/job.d.ts +0 -0
- /package/dist/{ts → node}/cloud/worker/job.js +0 -0
- /package/dist/{ts → node}/cloud/worker/job.js.map +0 -0
- /package/dist/{ts → node}/cloud/worker/task.d.ts +0 -0
- /package/dist/{ts → node}/cloud/worker/task.js +0 -0
- /package/dist/{ts → node}/cloud/worker/task.js.map +0 -0
- /package/dist/{ts → node}/cloud/worker/transaction.d.ts +0 -0
- /package/dist/{ts → node}/cloud/worker/transaction.js +0 -0
- /package/dist/{ts → node}/cloud/worker/transaction.js.map +0 -0
- /package/dist/{ts → node}/cloud/worker/worker.d.ts +0 -0
- /package/dist/{ts → node}/cloud/worker/worker.js +0 -0
- /package/dist/{ts → node}/cloud/worker/worker.js.map +0 -0
- /package/dist/{ts → node}/index.d.ts +0 -0
- /package/dist/{ts → node}/index.js +0 -0
- /package/dist/{ts → node}/index.js.map +0 -0
- /package/dist/{ts → node}/mina/api/api.d.ts +0 -0
- /package/dist/{ts → node}/mina/api/api.js +0 -0
- /package/dist/{ts → node}/mina/api/api.js.map +0 -0
- /package/dist/{ts → node}/mina/index.d.ts +0 -0
- /package/dist/{ts → node}/mina/index.js +0 -0
- /package/dist/{ts → node}/mina/index.js.map +0 -0
- /package/dist/{ts → node}/mina/local/local.d.ts +0 -0
- /package/dist/{ts → node}/mina/local/local.js +0 -0
- /package/dist/{ts → node}/mina/local/local.js.map +0 -0
- /package/dist/{ts → node}/mina/storage/index.d.ts +0 -0
- /package/dist/{ts → node}/mina/storage/index.js +0 -0
- /package/dist/{ts → node}/mina/storage/index.js.map +0 -0
- /package/dist/{ts → node}/mina/storage/ipfs.d.ts +0 -0
- /package/dist/{ts → node}/mina/storage/ipfs.js +0 -0
- /package/dist/{ts → node}/mina/storage/ipfs.js.map +0 -0
- /package/dist/{ts → node}/mina/storage/pinata.d.ts +0 -0
- /package/dist/{ts → node}/mina/storage/pinata.js +0 -0
- /package/dist/{ts → node}/mina/storage/pinata.js.map +0 -0
- /package/dist/{ts → node}/mina/storage/storage.d.ts +0 -0
- /package/dist/{ts → node}/mina/storage/storage.js +0 -0
- /package/dist/{ts → node}/mina/storage/storage.js.map +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenAdmin.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenAdmin.js +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenAdmin.js.map +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenContract.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenContract.js +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenContract.js.map +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenWhitelistedAdmin.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenWhitelistedAdmin.js +0 -0
- /package/dist/{ts → node}/mina/token/FungibleTokenWhitelistedAdmin.js.map +0 -0
- /package/dist/{ts → node}/mina/token/api.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/api.js +0 -0
- /package/dist/{ts → node}/mina/token/api.js.map +0 -0
- /package/dist/{ts → node}/mina/token/bid.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/bid.js +0 -0
- /package/dist/{ts → node}/mina/token/bid.js.map +0 -0
- /package/dist/{ts → node}/mina/token/build.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/build.js +0 -0
- /package/dist/{ts → node}/mina/token/build.js.map +0 -0
- /package/dist/{ts → node}/mina/token/fee.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/fee.js +0 -0
- /package/dist/{ts → node}/mina/token/fee.js.map +0 -0
- /package/dist/{ts → node}/mina/token/index.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/index.js +0 -0
- /package/dist/{ts → node}/mina/token/index.js.map +0 -0
- /package/dist/{ts → node}/mina/token/offer.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/offer.js +0 -0
- /package/dist/{ts → node}/mina/token/offer.js.map +0 -0
- /package/dist/{ts → node}/mina/token/token.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/token.js +0 -0
- /package/dist/{ts → node}/mina/token/token.js.map +0 -0
- /package/dist/{ts → node}/mina/token/vk.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/vk.js +0 -0
- /package/dist/{ts → node}/mina/token/vk.js.map +0 -0
- /package/dist/{ts → node}/mina/token/whitelist.d.ts +0 -0
- /package/dist/{ts → node}/mina/token/whitelist.js +0 -0
- /package/dist/{ts → node}/mina/token/whitelist.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/account.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/account.js +0 -0
- /package/dist/{ts → node}/mina/transactions/account.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/blockberry.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/blockberry.js +0 -0
- /package/dist/{ts → node}/mina/transactions/blockberry.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/chain.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/chain.js +0 -0
- /package/dist/{ts → node}/mina/transactions/chain.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/index.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/index.js +0 -0
- /package/dist/{ts → node}/mina/transactions/index.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/nonce.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/nonce.js +0 -0
- /package/dist/{ts → node}/mina/transactions/nonce.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/send.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/send.js +0 -0
- /package/dist/{ts → node}/mina/transactions/send.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/tiny-contract.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/tiny-contract.js +0 -0
- /package/dist/{ts → node}/mina/transactions/tiny-contract.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/transaction.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/transaction.js +0 -0
- /package/dist/{ts → node}/mina/transactions/transaction.js.map +0 -0
- /package/dist/{ts → node}/mina/transactions/txstatus.d.ts +0 -0
- /package/dist/{ts → node}/mina/transactions/txstatus.js +0 -0
- /package/dist/{ts → node}/mina/transactions/txstatus.js.map +0 -0
- /package/dist/{ts → node}/mina/utils/base64.d.ts +0 -0
- /package/dist/{ts → node}/mina/utils/base64.js +0 -0
- /package/dist/{ts → node}/mina/utils/base64.js.map +0 -0
- /package/dist/{ts → node}/mina/utils/fee.d.ts +0 -0
- /package/dist/{ts → node}/mina/utils/fee.js +0 -0
- /package/dist/{ts → node}/mina/utils/fee.js.map +0 -0
- /package/dist/{ts → node}/mina/utils/fetch.d.ts +0 -0
- /package/dist/{ts → node}/mina/utils/fetch.js +0 -0
- /package/dist/{ts → node}/mina/utils/fetch.js.map +0 -0
- /package/dist/{ts → node}/mina/utils/fields.d.ts +0 -0
- /package/dist/{ts → node}/mina/utils/fields.js +0 -0
- /package/dist/{ts → node}/mina/utils/fields.js.map +0 -0
- /package/dist/{ts → node}/mina/utils/index.d.ts +0 -0
- /package/dist/{ts → node}/mina/utils/index.js +0 -0
- /package/dist/{ts → node}/mina/utils/index.js.map +0 -0
- /package/dist/{ts → node}/mina/utils/indexed-map.d.ts +0 -0
- /package/dist/{ts → node}/mina/utils/indexed-map.js +0 -0
- /package/dist/{ts → node}/mina/utils/indexed-map.js.map +0 -0
- /package/dist/{ts → node}/mina/utils/mina.d.ts +0 -0
- /package/dist/{ts → node}/mina/utils/mina.js +0 -0
- /package/dist/{ts → node}/mina/utils/mina.js.map +0 -0
- /package/dist/{ts → node}/mina/verification/index.d.ts +0 -0
- /package/dist/{ts → node}/mina/verification/index.js +0 -0
- /package/dist/{ts → node}/mina/verification/index.js.map +0 -0
- /package/dist/{ts → node}/mina/verification/verification.d.ts +0 -0
- /package/dist/{ts → node}/mina/verification/verification.js +0 -0
- /package/dist/{ts → node}/mina/verification/verification.js.map +0 -0
@@ -384403,9 +384403,9 @@ var require_fetch_npm_node = __commonJS({
|
|
384403
384403
|
}
|
384404
384404
|
});
|
384405
384405
|
|
384406
|
-
// dist/
|
384407
|
-
var
|
384408
|
-
__export(
|
384406
|
+
// dist/node/index.js
|
384407
|
+
var node_exports = {};
|
384408
|
+
__export(node_exports, {
|
384409
384409
|
Cloud: () => Cloud,
|
384410
384410
|
Devnet: () => Devnet,
|
384411
384411
|
FungibleToken: () => FungibleToken,
|
@@ -384491,9 +384491,9 @@ __export(ts_exports, {
|
|
384491
384491
|
zkCloudWorker: () => zkCloudWorker,
|
384492
384492
|
zkCloudWorkerClient: () => zkCloudWorkerClient
|
384493
384493
|
});
|
384494
|
-
module.exports = __toCommonJS(
|
384494
|
+
module.exports = __toCommonJS(node_exports);
|
384495
384495
|
|
384496
|
-
// dist/
|
384496
|
+
// dist/node/cloud/utils/graphql.js
|
384497
384497
|
var defaultToken = "wSHV2S4qX9jFsLjQo8r1BsMLH2ZRKsZx6EJd1sbozGPieEC4Jf";
|
384498
384498
|
async function getBalanceFromGraphQL(params2) {
|
384499
384499
|
const { publicKey, mina } = params2;
|
@@ -384702,7 +384702,7 @@ var accountQuery = (publicKey, tokenId) => `{
|
|
384702
384702
|
}
|
384703
384703
|
`;
|
384704
384704
|
|
384705
|
-
// dist/
|
384705
|
+
// dist/node/cloud/utils/utils.js
|
384706
384706
|
function sleep(ms) {
|
384707
384707
|
return new Promise((resolve3) => setTimeout(resolve3, ms));
|
384708
384708
|
}
|
@@ -384754,7 +384754,7 @@ var Memory = class _Memory {
|
|
384754
384754
|
};
|
384755
384755
|
Memory.rss = 0;
|
384756
384756
|
|
384757
|
-
// dist/
|
384757
|
+
// dist/node/cloud/utils/base64.js
|
384758
384758
|
var TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
384759
384759
|
function bigintToBase56(value2) {
|
384760
384760
|
const digits = toBase(value2, 56n);
|
@@ -384823,7 +384823,7 @@ function toBase(x3, base2) {
|
|
384823
384823
|
return digits;
|
384824
384824
|
}
|
384825
384825
|
|
384826
|
-
// dist/
|
384826
|
+
// dist/node/cloud/worker/cloud.js
|
384827
384827
|
var Cloud = class {
|
384828
384828
|
/**
|
384829
384829
|
* Constructor for the Cloud class
|
@@ -384860,7 +384860,7 @@ var Cloud = class {
|
|
384860
384860
|
}
|
384861
384861
|
};
|
384862
384862
|
|
384863
|
-
// dist/
|
384863
|
+
// dist/node/cloud/worker/worker.js
|
384864
384864
|
var zkCloudWorker = class {
|
384865
384865
|
/**
|
384866
384866
|
* Constructor for the zkCloudWorker class
|
@@ -384910,7 +384910,7 @@ var zkCloudWorker = class {
|
|
384910
384910
|
}
|
384911
384911
|
};
|
384912
384912
|
|
384913
|
-
// dist/
|
384913
|
+
// dist/node/cloud/config.js
|
384914
384914
|
var config2 = {
|
384915
384915
|
MINAFEE: "200000000",
|
384916
384916
|
ZKCLOUDWORKER_AUTH: "M6t4jtbBAFFXhLERHQWyEB9JA9xi4cWqmYduaCXtbrFjb7yaY7TyaXDunKDJNiUTBEcyUomNXJgC",
|
@@ -384920,7 +384920,7 @@ var config2 = {
|
|
384920
384920
|
};
|
384921
384921
|
var config_default = config2;
|
384922
384922
|
|
384923
|
-
// dist/
|
384923
|
+
// dist/node/cloud/networks.js
|
384924
384924
|
var Mainnet = {
|
384925
384925
|
mina: [
|
384926
384926
|
//"https://proxy.devnet.minaexplorer.com/graphql",
|
@@ -388276,10 +388276,10 @@ var {
|
|
388276
388276
|
mergeConfig: mergeConfig2
|
388277
388277
|
} = axios_default;
|
388278
388278
|
|
388279
|
-
// dist/
|
388279
|
+
// dist/node/mina/api/api.js
|
388280
388280
|
var import_chalk = __toESM(require_source(), 1);
|
388281
388281
|
|
388282
|
-
// dist/
|
388282
|
+
// dist/node/mina/local/local.js
|
388283
388283
|
var LocalCloud = class _LocalCloud extends Cloud {
|
388284
388284
|
/**
|
388285
388285
|
* Constructor for LocalCloud
|
@@ -388761,7 +388761,7 @@ LocalStorage.files = {};
|
|
388761
388761
|
LocalStorage.transactions = {};
|
388762
388762
|
LocalStorage.tasks = {};
|
388763
388763
|
|
388764
|
-
// dist/
|
388764
|
+
// dist/node/mina/api/api.js
|
388765
388765
|
var { ZKCLOUDWORKER_AUTH, ZKCLOUDWORKER_API } = config_default;
|
388766
388766
|
var zkCloudWorkerClient = class {
|
388767
388767
|
/**
|
@@ -416204,7 +416204,7 @@ var Experimental;
|
|
416204
416204
|
})(Experimental || (Experimental = {}));
|
416205
416205
|
Error.stackTraceLimit = 1e5;
|
416206
416206
|
|
416207
|
-
// dist/
|
416207
|
+
// dist/node/mina/utils/base64.js
|
416208
416208
|
var TABLE2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
416209
416209
|
function fieldToBase56(field2) {
|
416210
416210
|
const digits = toBase(field2.toBigInt(), 56n);
|
@@ -416227,7 +416227,7 @@ function fieldFromBase64(str2) {
|
|
416227
416227
|
return Field5(x3);
|
416228
416228
|
}
|
416229
416229
|
|
416230
|
-
// dist/
|
416230
|
+
// dist/node/mina/utils/fetch.js
|
416231
416231
|
async function fetchMinaAccount(params2) {
|
416232
416232
|
const { publicKey, tokenId, force: force2 = false } = params2;
|
416233
416233
|
const timeout = 1e3 * 60 * 3;
|
@@ -416304,7 +416304,7 @@ async function checkMinaZkappTransaction(hash4) {
|
|
416304
416304
|
}
|
416305
416305
|
}
|
416306
416306
|
|
416307
|
-
// dist/
|
416307
|
+
// dist/node/mina/utils/fields.js
|
416308
416308
|
function serializeFields(fields2) {
|
416309
416309
|
const hash4 = Poseidon2.hash(fields2);
|
416310
416310
|
const value2 = [Field5(fields2.length), hash4, ...fields2];
|
@@ -416326,12 +416326,12 @@ function deserializeFields(s2) {
|
|
416326
416326
|
}
|
416327
416327
|
}
|
416328
416328
|
|
416329
|
-
// dist/
|
416329
|
+
// dist/node/mina/utils/fee.js
|
416330
416330
|
async function fee2() {
|
416331
416331
|
return UInt643.fromJSON(config_default.MINAFEE);
|
416332
416332
|
}
|
416333
416333
|
|
416334
|
-
// dist/
|
416334
|
+
// dist/node/mina/utils/mina.js
|
416335
416335
|
var currentNetwork = void 0;
|
416336
416336
|
function getNetworkIdHash() {
|
416337
416337
|
if (currentNetwork === void 0) {
|
@@ -416424,7 +416424,7 @@ async function accountBalanceMina(address) {
|
|
416424
416424
|
return Number((await accountBalance(address)).toBigInt()) / 1e9;
|
416425
416425
|
}
|
416426
416426
|
|
416427
|
-
// dist/
|
416427
|
+
// dist/node/mina/storage/pinata.js
|
416428
416428
|
async function pinJSON(params2) {
|
416429
416429
|
const { data: data2, name: name2 = "data.json", keyvalues = [{ key: "library", value: "zkcloudworker" }] } = params2;
|
416430
416430
|
const auth2 = params2.auth ?? process.env.PINATA_JWT ?? process.env.NEXT_PUBLIC_PINATA_JWT ?? process.env.REACT_APP_PINATA_JWT;
|
@@ -416459,7 +416459,7 @@ async function pinJSON(params2) {
|
|
416459
416459
|
}
|
416460
416460
|
}
|
416461
416461
|
|
416462
|
-
// dist/
|
416462
|
+
// dist/node/mina/utils/indexed-map.js
|
416463
416463
|
var { IndexedMerkleMap: IndexedMerkleMap2 } = Experimental;
|
416464
416464
|
async function loadIndexedMerkleMap(params2) {
|
416465
416465
|
const { url: url3, type: type2, timeout = 6e4, attempts = 5 } = params2;
|
@@ -416571,7 +416571,7 @@ function deserializeIndexedMerkleMapInternal(params2) {
|
|
416571
416571
|
return map3;
|
416572
416572
|
}
|
416573
416573
|
|
416574
|
-
// dist/
|
416574
|
+
// dist/node/mina/token/api.js
|
416575
416575
|
var TokenAPI = class {
|
416576
416576
|
constructor(params2) {
|
416577
416577
|
const { jwt, zkcloudworker, chain } = params2;
|
@@ -416671,7 +416671,7 @@ var TokenAPI = class {
|
|
416671
416671
|
}
|
416672
416672
|
};
|
416673
416673
|
|
416674
|
-
// dist/
|
416674
|
+
// dist/node/mina/storage/storage.js
|
416675
416675
|
var Storage = class _Storage extends Struct({
|
416676
416676
|
url: Provable.Array(Field5, 2)
|
416677
416677
|
}) {
|
@@ -416719,7 +416719,7 @@ var Storage = class _Storage extends Struct({
|
|
416719
416719
|
}
|
416720
416720
|
};
|
416721
416721
|
|
416722
|
-
// dist/
|
416722
|
+
// dist/node/mina/storage/ipfs.js
|
416723
416723
|
function createIpfsURL(params2) {
|
416724
416724
|
let { hash: hash4, gateway, apiToken } = params2;
|
416725
416725
|
gateway ??= process.env.PINATA_IPFS_GATEWAY ?? process.env.NEXT_PUBLIC_PINATA_IPFS_GATEWAY ?? process.env.REACT_APP_PINATA_IPFS_GATEWAY;
|
@@ -416730,7 +416730,7 @@ function createIpfsURL(params2) {
|
|
416730
416730
|
return gateway + hash4 + (apiToken ? "?pinataGatewayToken=" + apiToken : "");
|
416731
416731
|
}
|
416732
416732
|
|
416733
|
-
// dist/
|
416733
|
+
// dist/node/mina/token/whitelist.js
|
416734
416734
|
var { IndexedMerkleMap: IndexedMerkleMap3 } = Experimental;
|
416735
416735
|
var WHITELIST_HEIGHT = 20;
|
416736
416736
|
var WhitelistMap = class extends IndexedMerkleMap3(WHITELIST_HEIGHT) {
|
@@ -416855,7 +416855,7 @@ var Whitelist = class _Whitelist extends Struct({
|
|
416855
416855
|
}
|
416856
416856
|
};
|
416857
416857
|
|
416858
|
-
// dist/
|
416858
|
+
// dist/node/mina/token/FungibleTokenContract.js
|
416859
416859
|
var FungibleTokenErrors = {
|
416860
416860
|
noAdminKey: "could not fetch admin contract key",
|
416861
416861
|
noPermissionToChangeAdmin: "Not allowed to change admin contract",
|
@@ -417124,7 +417124,7 @@ var BalanceChangeEvent = class extends Struct({
|
|
417124
417124
|
}) {
|
417125
417125
|
};
|
417126
417126
|
|
417127
|
-
// dist/
|
417127
|
+
// dist/node/mina/token/FungibleTokenAdmin.js
|
417128
417128
|
var FungibleTokenAdmin = class extends SmartContract {
|
417129
417129
|
constructor() {
|
417130
417130
|
super(...arguments);
|
@@ -417206,7 +417206,7 @@ __decorate([
|
|
417206
417206
|
__metadata("design:returntype", Promise)
|
417207
417207
|
], FungibleTokenAdmin.prototype, "canResume", null);
|
417208
417208
|
|
417209
|
-
// dist/
|
417209
|
+
// dist/node/mina/token/FungibleTokenWhitelistedAdmin.js
|
417210
417210
|
var FungibleTokenWhitelistedAdmin = class extends SmartContract {
|
417211
417211
|
constructor() {
|
417212
417212
|
super(...arguments);
|
@@ -417317,7 +417317,7 @@ __decorate([
|
|
417317
417317
|
__metadata("design:returntype", Promise)
|
417318
417318
|
], FungibleTokenWhitelistedAdmin.prototype, "updateWhitelist", null);
|
417319
417319
|
|
417320
|
-
// dist/
|
417320
|
+
// dist/node/mina/token/offer.js
|
417321
417321
|
var FungibleTokenOfferContract = class _FungibleTokenOfferContract extends SmartContract {
|
417322
417322
|
constructor() {
|
417323
417323
|
super(...arguments);
|
@@ -417480,7 +417480,7 @@ __decorate([
|
|
417480
417480
|
__metadata("design:returntype", Promise)
|
417481
417481
|
], FungibleTokenOfferContract.prototype, "updateWhitelist", null);
|
417482
417482
|
|
417483
|
-
// dist/
|
417483
|
+
// dist/node/mina/token/token.js
|
417484
417484
|
var FungibleToken = FungibleTokenContract(FungibleTokenAdmin);
|
417485
417485
|
var WhitelistedFungibleToken = FungibleTokenContract(FungibleTokenWhitelistedAdmin);
|
417486
417486
|
var tokenVerificationKeys = {
|
@@ -417562,7 +417562,7 @@ var tokenVerificationKeys = {
|
|
417562
417562
|
}
|
417563
417563
|
};
|
417564
417564
|
|
417565
|
-
// dist/
|
417565
|
+
// dist/node/mina/token/bid.js
|
417566
417566
|
var FungibleTokenBidContract = class _FungibleTokenBidContract extends SmartContract {
|
417567
417567
|
constructor() {
|
417568
417568
|
super(...arguments);
|
@@ -417713,7 +417713,7 @@ __decorate([
|
|
417713
417713
|
__metadata("design:returntype", Promise)
|
417714
417714
|
], FungibleTokenBidContract.prototype, "updateWhitelist", null);
|
417715
417715
|
|
417716
|
-
// dist/
|
417716
|
+
// dist/node/mina/token/build.js
|
417717
417717
|
async function buildTokenDeployTransaction(params2) {
|
417718
417718
|
const { fee: fee3, sender: sender2, nonce: nonce2, memo: memo2, tokenAddress, adminContractAddress, uri, symbol: symbol2, developerAddress, developerFee, provingKey, provingFee, decimals, chain, whitelist } = params2;
|
417719
417719
|
const isWhitelisted = whitelist !== void 0;
|
@@ -418078,11 +418078,11 @@ async function getTokenSymbolAndAdmin(params2) {
|
|
418078
418078
|
};
|
418079
418079
|
}
|
418080
418080
|
|
418081
|
-
// dist/
|
418081
|
+
// dist/node/mina/token/fee.js
|
418082
418082
|
var LAUNCH_FEE = 1e9;
|
418083
418083
|
var TRANSACTION_FEE = 1e8;
|
418084
418084
|
|
418085
|
-
// dist/
|
418085
|
+
// dist/node/mina/token/vk.js
|
418086
418086
|
var fungibleTokenVerificationKeys = {
|
418087
418087
|
testnet: {
|
418088
418088
|
admin: {
|
@@ -418126,7 +418126,7 @@ var fungibleTokenVerificationKeys = {
|
|
418126
418126
|
}
|
418127
418127
|
};
|
418128
418128
|
|
418129
|
-
// dist/
|
418129
|
+
// dist/node/mina/transactions/blockberry.js
|
418130
418130
|
async function getZkAppTxsFromBlockBerry(params2) {
|
418131
418131
|
const { account: account2, chain, blockBerryApiKey } = params2;
|
418132
418132
|
const options = {
|
@@ -418223,7 +418223,7 @@ async function getZkAppFromBlockBerry(params2) {
|
|
418223
418223
|
}
|
418224
418224
|
}
|
418225
418225
|
|
418226
|
-
// dist/
|
418226
|
+
// dist/node/mina/transactions/nonce.js
|
418227
418227
|
async function getNonce(params2) {
|
418228
418228
|
const { account: account2, chain, blockBerryApiKey } = params2;
|
418229
418229
|
try {
|
@@ -418302,7 +418302,7 @@ async function getAccountNonce(params2) {
|
|
418302
418302
|
}
|
418303
418303
|
}
|
418304
418304
|
|
418305
|
-
// dist/
|
418305
|
+
// dist/node/mina/transactions/transaction.js
|
418306
418306
|
function transactionParams(serializedTransaction, signedJson) {
|
418307
418307
|
const { sender: sender2, nonce: nonce2, tx } = JSON.parse(serializedTransaction);
|
418308
418308
|
const transaction3 = mina_exports.Transaction.fromJSON(JSON.parse(tx));
|
@@ -418462,7 +418462,7 @@ function deserializeLazyAuthorization(lazyAuthorization, serialized) {
|
|
418462
418462
|
}
|
418463
418463
|
}
|
418464
418464
|
|
418465
|
-
// dist/
|
418465
|
+
// dist/node/mina/transactions/txstatus.js
|
418466
418466
|
var TIMEOUT = 1e3 * 60 * 21;
|
418467
418467
|
async function txStatusBlockberry(params2) {
|
418468
418468
|
const { hash: hash4, chain, time: time2, blockBerryApiKey } = params2;
|
@@ -418477,7 +418477,7 @@ async function txStatusBlockberry(params2) {
|
|
418477
418477
|
}
|
418478
418478
|
}
|
418479
418479
|
|
418480
|
-
// dist/
|
418480
|
+
// dist/node/mina/transactions/tiny-contract.js
|
418481
418481
|
var TinyContract = class extends SmartContract {
|
418482
418482
|
constructor() {
|
418483
418483
|
super(...arguments);
|
@@ -418498,7 +418498,7 @@ __decorate([
|
|
418498
418498
|
__metadata("design:returntype", Promise)
|
418499
418499
|
], TinyContract.prototype, "setValue", null);
|
418500
418500
|
|
418501
|
-
// dist/
|
418501
|
+
// dist/node/mina/transactions/send.js
|
418502
418502
|
async function sendTx(params2) {
|
418503
418503
|
const { tx, description: description2 = "", verbose: verbose2 = true, wait = true, chain = getCurrentNetwork().network.chainId } = params2;
|
418504
418504
|
const accountUpdates = JSON.parse(tx.toJSON()).accountUpdates;
|
@@ -418598,7 +418598,7 @@ async function getTxStatusFast(params2) {
|
|
418598
418598
|
}
|
418599
418599
|
}
|
418600
418600
|
|
418601
|
-
// dist/
|
418601
|
+
// dist/node/mina/transactions/account.js
|
418602
418602
|
async function accountExists(address, tokenId) {
|
418603
418603
|
try {
|
418604
418604
|
const publicKey = typeof address === "string" ? PublicKey2.fromBase58(address) : address;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "zkcloudworker",
|
3
|
-
"version": "0.18.
|
3
|
+
"version": "0.18.14",
|
4
4
|
"type": "module",
|
5
5
|
"description": "zkCloudWorker library",
|
6
6
|
"author": "zkCloudWorker",
|
@@ -29,18 +29,15 @@
|
|
29
29
|
},
|
30
30
|
"main": "dist/web/index.js",
|
31
31
|
"exports": {
|
32
|
-
"types":
|
33
|
-
"node": "./dist/ts/index.d.ts",
|
34
|
-
"default": "./dist/web/index.d.ts"
|
35
|
-
},
|
32
|
+
"types": "./dist/node/index.d.ts",
|
36
33
|
"browser": "./dist/web/index.js",
|
37
34
|
"node": {
|
38
|
-
"import": "./dist/
|
39
|
-
"require": "./dist/
|
35
|
+
"import": "./dist/node/index.js",
|
36
|
+
"require": "./dist/node/index.cjs"
|
40
37
|
},
|
41
38
|
"default": "./dist/web/index.js"
|
42
39
|
},
|
43
|
-
"types": "dist/node/index.d.ts",
|
40
|
+
"types": "./dist/node/index.d.ts",
|
44
41
|
"files": [
|
45
42
|
"dist",
|
46
43
|
"src",
|
@@ -1,338 +0,0 @@
|
|
1
|
-
import { AccountUpdate, AccountUpdateForest, Bool, DeployArgs, Field, Int64, PublicKey, State, TokenContract, Types, UInt64, UInt8, VerificationKey } from "o1js";
|
2
|
-
import { FungibleTokenAdminBase } from "./FungibleTokenAdmin.js";
|
3
|
-
interface FungibleTokenDeployProps extends Exclude<DeployArgs, undefined> {
|
4
|
-
/** The token symbol. */
|
5
|
-
symbol: string;
|
6
|
-
/** A source code reference, which is placed within the `zkappUri` of the contract account.
|
7
|
-
* Typically a link to a file on github. */
|
8
|
-
src: string;
|
9
|
-
}
|
10
|
-
export declare const FungibleTokenErrors: {
|
11
|
-
noAdminKey: string;
|
12
|
-
noPermissionToChangeAdmin: string;
|
13
|
-
tokenPaused: string;
|
14
|
-
noPermissionToMint: string;
|
15
|
-
noPermissionToPause: string;
|
16
|
-
noPermissionToResume: string;
|
17
|
-
noTransferFromCirculation: string;
|
18
|
-
noPermissionChangeAllowed: string;
|
19
|
-
flashMinting: string;
|
20
|
-
unbalancedTransaction: string;
|
21
|
-
};
|
22
|
-
export declare class FungibleToken extends TokenContract {
|
23
|
-
decimals: State<UInt8>;
|
24
|
-
admin: State<PublicKey>;
|
25
|
-
paused: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
|
26
|
-
static AdminContract: new (...args: any) => FungibleTokenAdminBase;
|
27
|
-
readonly events: {
|
28
|
-
SetAdmin: typeof SetAdminEvent;
|
29
|
-
Pause: typeof PauseEvent;
|
30
|
-
Mint: typeof MintEvent;
|
31
|
-
Burn: typeof BurnEvent;
|
32
|
-
BalanceChange: typeof BalanceChangeEvent;
|
33
|
-
};
|
34
|
-
deploy(props: FungibleTokenDeployProps): Promise<void>;
|
35
|
-
/** Update the verification key.
|
36
|
-
* Note that because we have set the permissions for setting the verification key to `impossibleDuringCurrentVersion()`, this will only be possible in case of a protocol update that requires an update.
|
37
|
-
*/
|
38
|
-
updateVerificationKey(vk: VerificationKey): Promise<void>;
|
39
|
-
/** Initializes the account for tracking total circulation.
|
40
|
-
* @argument {PublicKey} admin - public key where the admin contract is deployed
|
41
|
-
* @argument {UInt8} decimals - number of decimals for the token
|
42
|
-
* @argument {Bool} startPaused - if set to `Bool(true), the contract will start in a mode where token minting and transfers are paused. This should be used for non-atomic deployments
|
43
|
-
*/
|
44
|
-
initialize(admin: PublicKey, decimals: UInt8, startPaused: Bool): Promise<void>;
|
45
|
-
getAdminContract(): Promise<FungibleTokenAdminBase>;
|
46
|
-
setAdmin(admin: PublicKey): Promise<void>;
|
47
|
-
mint(recipient: PublicKey, amount: UInt64): Promise<AccountUpdate>;
|
48
|
-
burn(from: PublicKey, amount: UInt64): Promise<AccountUpdate>;
|
49
|
-
pause(): Promise<void>;
|
50
|
-
resume(): Promise<void>;
|
51
|
-
transfer(from: PublicKey, to: PublicKey, amount: UInt64): Promise<void>;
|
52
|
-
private checkPermissionsUpdate;
|
53
|
-
/** Approve `AccountUpdate`s that have been created outside of the token contract.
|
54
|
-
*
|
55
|
-
* @argument {AccountUpdateForest} updates - The `AccountUpdate`s to approve. Note that the forest size is limited by the base token contract, @see TokenContractV2.MAX_ACCOUNT_UPDATES The current limit is 9.
|
56
|
-
*/
|
57
|
-
approveBase(updates: AccountUpdateForest): Promise<void>;
|
58
|
-
getBalanceOf(address: PublicKey): Promise<UInt64>;
|
59
|
-
/** Reports the current circulating supply
|
60
|
-
* This does take into account currently unreduced actions.
|
61
|
-
*/
|
62
|
-
getCirculating(): Promise<UInt64>;
|
63
|
-
getDecimals(): Promise<UInt8>;
|
64
|
-
}
|
65
|
-
declare const SetAdminEvent_base: (new (value: {
|
66
|
-
adminKey: PublicKey;
|
67
|
-
}) => {
|
68
|
-
adminKey: PublicKey;
|
69
|
-
}) & {
|
70
|
-
_isStruct: true;
|
71
|
-
} & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
72
|
-
adminKey: PublicKey;
|
73
|
-
}, {
|
74
|
-
adminKey: {
|
75
|
-
x: bigint;
|
76
|
-
isOdd: boolean;
|
77
|
-
};
|
78
|
-
}>, "fromFields"> & {
|
79
|
-
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
80
|
-
adminKey: PublicKey;
|
81
|
-
};
|
82
|
-
} & {
|
83
|
-
fromValue: (value: {
|
84
|
-
adminKey: PublicKey | {
|
85
|
-
x: Field | bigint;
|
86
|
-
isOdd: Bool | boolean;
|
87
|
-
};
|
88
|
-
}) => {
|
89
|
-
adminKey: PublicKey;
|
90
|
-
};
|
91
|
-
toInput: (x: {
|
92
|
-
adminKey: PublicKey;
|
93
|
-
}) => {
|
94
|
-
fields?: Field[] | undefined;
|
95
|
-
packed?: [Field, number][] | undefined;
|
96
|
-
};
|
97
|
-
toJSON: (x: {
|
98
|
-
adminKey: PublicKey;
|
99
|
-
}) => {
|
100
|
-
adminKey: string;
|
101
|
-
};
|
102
|
-
fromJSON: (x: {
|
103
|
-
adminKey: string;
|
104
|
-
}) => {
|
105
|
-
adminKey: PublicKey;
|
106
|
-
};
|
107
|
-
empty: () => {
|
108
|
-
adminKey: PublicKey;
|
109
|
-
};
|
110
|
-
};
|
111
|
-
export declare class SetAdminEvent extends SetAdminEvent_base {
|
112
|
-
}
|
113
|
-
declare const PauseEvent_base: (new (value: {
|
114
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
115
|
-
}) => {
|
116
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
117
|
-
}) & {
|
118
|
-
_isStruct: true;
|
119
|
-
} & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
120
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
121
|
-
}, {
|
122
|
-
isPaused: boolean;
|
123
|
-
}>, "fromFields"> & {
|
124
|
-
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
125
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
126
|
-
};
|
127
|
-
} & {
|
128
|
-
fromValue: (value: {
|
129
|
-
isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
130
|
-
}) => {
|
131
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
132
|
-
};
|
133
|
-
toInput: (x: {
|
134
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
135
|
-
}) => {
|
136
|
-
fields?: Field[] | undefined;
|
137
|
-
packed?: [Field, number][] | undefined;
|
138
|
-
};
|
139
|
-
toJSON: (x: {
|
140
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
141
|
-
}) => {
|
142
|
-
isPaused: boolean;
|
143
|
-
};
|
144
|
-
fromJSON: (x: {
|
145
|
-
isPaused: boolean;
|
146
|
-
}) => {
|
147
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
148
|
-
};
|
149
|
-
empty: () => {
|
150
|
-
isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
151
|
-
};
|
152
|
-
};
|
153
|
-
export declare class PauseEvent extends PauseEvent_base {
|
154
|
-
}
|
155
|
-
declare const MintEvent_base: (new (value: {
|
156
|
-
recipient: PublicKey;
|
157
|
-
amount: Types.UInt64;
|
158
|
-
}) => {
|
159
|
-
recipient: PublicKey;
|
160
|
-
amount: Types.UInt64;
|
161
|
-
}) & {
|
162
|
-
_isStruct: true;
|
163
|
-
} & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
164
|
-
recipient: PublicKey;
|
165
|
-
amount: Types.UInt64;
|
166
|
-
}, {
|
167
|
-
recipient: {
|
168
|
-
x: bigint;
|
169
|
-
isOdd: boolean;
|
170
|
-
};
|
171
|
-
amount: bigint;
|
172
|
-
}>, "fromFields"> & {
|
173
|
-
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
174
|
-
recipient: PublicKey;
|
175
|
-
amount: Types.UInt64;
|
176
|
-
};
|
177
|
-
} & {
|
178
|
-
fromValue: (value: {
|
179
|
-
recipient: PublicKey | {
|
180
|
-
x: Field | bigint;
|
181
|
-
isOdd: Bool | boolean;
|
182
|
-
};
|
183
|
-
amount: bigint | Types.UInt64;
|
184
|
-
}) => {
|
185
|
-
recipient: PublicKey;
|
186
|
-
amount: Types.UInt64;
|
187
|
-
};
|
188
|
-
toInput: (x: {
|
189
|
-
recipient: PublicKey;
|
190
|
-
amount: Types.UInt64;
|
191
|
-
}) => {
|
192
|
-
fields?: Field[] | undefined;
|
193
|
-
packed?: [Field, number][] | undefined;
|
194
|
-
};
|
195
|
-
toJSON: (x: {
|
196
|
-
recipient: PublicKey;
|
197
|
-
amount: Types.UInt64;
|
198
|
-
}) => {
|
199
|
-
recipient: string;
|
200
|
-
amount: string;
|
201
|
-
};
|
202
|
-
fromJSON: (x: {
|
203
|
-
recipient: string;
|
204
|
-
amount: string;
|
205
|
-
}) => {
|
206
|
-
recipient: PublicKey;
|
207
|
-
amount: Types.UInt64;
|
208
|
-
};
|
209
|
-
empty: () => {
|
210
|
-
recipient: PublicKey;
|
211
|
-
amount: Types.UInt64;
|
212
|
-
};
|
213
|
-
};
|
214
|
-
export declare class MintEvent extends MintEvent_base {
|
215
|
-
}
|
216
|
-
declare const BurnEvent_base: (new (value: {
|
217
|
-
from: PublicKey;
|
218
|
-
amount: Types.UInt64;
|
219
|
-
}) => {
|
220
|
-
from: PublicKey;
|
221
|
-
amount: Types.UInt64;
|
222
|
-
}) & {
|
223
|
-
_isStruct: true;
|
224
|
-
} & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
225
|
-
from: PublicKey;
|
226
|
-
amount: Types.UInt64;
|
227
|
-
}, {
|
228
|
-
from: {
|
229
|
-
x: bigint;
|
230
|
-
isOdd: boolean;
|
231
|
-
};
|
232
|
-
amount: bigint;
|
233
|
-
}>, "fromFields"> & {
|
234
|
-
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
235
|
-
from: PublicKey;
|
236
|
-
amount: Types.UInt64;
|
237
|
-
};
|
238
|
-
} & {
|
239
|
-
fromValue: (value: {
|
240
|
-
from: PublicKey | {
|
241
|
-
x: Field | bigint;
|
242
|
-
isOdd: Bool | boolean;
|
243
|
-
};
|
244
|
-
amount: bigint | Types.UInt64;
|
245
|
-
}) => {
|
246
|
-
from: PublicKey;
|
247
|
-
amount: Types.UInt64;
|
248
|
-
};
|
249
|
-
toInput: (x: {
|
250
|
-
from: PublicKey;
|
251
|
-
amount: Types.UInt64;
|
252
|
-
}) => {
|
253
|
-
fields?: Field[] | undefined;
|
254
|
-
packed?: [Field, number][] | undefined;
|
255
|
-
};
|
256
|
-
toJSON: (x: {
|
257
|
-
from: PublicKey;
|
258
|
-
amount: Types.UInt64;
|
259
|
-
}) => {
|
260
|
-
from: string;
|
261
|
-
amount: string;
|
262
|
-
};
|
263
|
-
fromJSON: (x: {
|
264
|
-
from: string;
|
265
|
-
amount: string;
|
266
|
-
}) => {
|
267
|
-
from: PublicKey;
|
268
|
-
amount: Types.UInt64;
|
269
|
-
};
|
270
|
-
empty: () => {
|
271
|
-
from: PublicKey;
|
272
|
-
amount: Types.UInt64;
|
273
|
-
};
|
274
|
-
};
|
275
|
-
export declare class BurnEvent extends BurnEvent_base {
|
276
|
-
}
|
277
|
-
declare const BalanceChangeEvent_base: (new (value: {
|
278
|
-
address: PublicKey;
|
279
|
-
amount: Int64;
|
280
|
-
}) => {
|
281
|
-
address: PublicKey;
|
282
|
-
amount: Int64;
|
283
|
-
}) & {
|
284
|
-
_isStruct: true;
|
285
|
-
} & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
286
|
-
address: PublicKey;
|
287
|
-
amount: Int64;
|
288
|
-
}, {
|
289
|
-
address: {
|
290
|
-
x: bigint;
|
291
|
-
isOdd: boolean;
|
292
|
-
};
|
293
|
-
amount: any;
|
294
|
-
}>, "fromFields"> & {
|
295
|
-
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
296
|
-
address: PublicKey;
|
297
|
-
amount: Int64;
|
298
|
-
};
|
299
|
-
} & {
|
300
|
-
fromValue: (value: {
|
301
|
-
address: PublicKey | {
|
302
|
-
x: Field | bigint;
|
303
|
-
isOdd: Bool | boolean;
|
304
|
-
};
|
305
|
-
amount: any;
|
306
|
-
}) => {
|
307
|
-
address: PublicKey;
|
308
|
-
amount: Int64;
|
309
|
-
};
|
310
|
-
toInput: (x: {
|
311
|
-
address: PublicKey;
|
312
|
-
amount: Int64;
|
313
|
-
}) => {
|
314
|
-
fields?: Field[] | undefined;
|
315
|
-
packed?: [Field, number][] | undefined;
|
316
|
-
};
|
317
|
-
toJSON: (x: {
|
318
|
-
address: PublicKey;
|
319
|
-
amount: Int64;
|
320
|
-
}) => {
|
321
|
-
address: string;
|
322
|
-
amount: any;
|
323
|
-
};
|
324
|
-
fromJSON: (x: {
|
325
|
-
address: string;
|
326
|
-
amount: any;
|
327
|
-
}) => {
|
328
|
-
address: PublicKey;
|
329
|
-
amount: Int64;
|
330
|
-
};
|
331
|
-
empty: () => {
|
332
|
-
address: PublicKey;
|
333
|
-
amount: Int64;
|
334
|
-
};
|
335
|
-
};
|
336
|
-
export declare class BalanceChangeEvent extends BalanceChangeEvent_base {
|
337
|
-
}
|
338
|
-
export {};
|