@alephium/powfi-sdk 0.0.1-rc.29 → 0.0.1-rc.30
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/lib/index.d.mts +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +46 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +46 -0
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
- package/staking/artifacts/ts/deployments.ts +36 -0
- package/staking/deployments/.deployments.testnet.json +29 -1
package/lib/index.d.mts
CHANGED
|
@@ -9788,6 +9788,9 @@ type Deployments = {
|
|
|
9788
9788
|
XAlphToken: DeployContractExecutionResult<XAlphTokenInstance>;
|
|
9789
9789
|
DistributorVault: DeployContractExecutionResult<DistributorVaultInstance>;
|
|
9790
9790
|
RewardFeeCollector: DeployContractExecutionResult<RewardFeeCollectorInstance>;
|
|
9791
|
+
GovernanceDemo?: DeployContractExecutionResult<GovernanceDemoInstance>;
|
|
9792
|
+
RewardSharingVault?: DeployContractExecutionResult<RewardSharingVaultInstance>;
|
|
9793
|
+
XAlphStakeVault?: DeployContractExecutionResult<XAlphStakeVaultInstance>;
|
|
9791
9794
|
};
|
|
9792
9795
|
};
|
|
9793
9796
|
declare function loadDeployments(networkId: NetworkId, deployerAddress?: string): Deployments;
|
package/lib/index.d.ts
CHANGED
|
@@ -9788,6 +9788,9 @@ type Deployments = {
|
|
|
9788
9788
|
XAlphToken: DeployContractExecutionResult<XAlphTokenInstance>;
|
|
9789
9789
|
DistributorVault: DeployContractExecutionResult<DistributorVaultInstance>;
|
|
9790
9790
|
RewardFeeCollector: DeployContractExecutionResult<RewardFeeCollectorInstance>;
|
|
9791
|
+
GovernanceDemo?: DeployContractExecutionResult<GovernanceDemoInstance>;
|
|
9792
|
+
RewardSharingVault?: DeployContractExecutionResult<RewardSharingVaultInstance>;
|
|
9793
|
+
XAlphStakeVault?: DeployContractExecutionResult<XAlphStakeVaultInstance>;
|
|
9791
9794
|
};
|
|
9792
9795
|
};
|
|
9793
9796
|
declare function loadDeployments(networkId: NetworkId, deployerAddress?: string): Deployments;
|
package/lib/index.js
CHANGED
|
@@ -21160,6 +21160,34 @@ var deployments_testnet_default3 = {
|
|
|
21160
21160
|
contractId: "082d9216ce6cd58e29f34150121f4a3931dddb16109c2301e69a08cecb4a6700",
|
|
21161
21161
|
groupIndex: 0
|
|
21162
21162
|
}
|
|
21163
|
+
},
|
|
21164
|
+
DistributorVault: {
|
|
21165
|
+
txId: "651177f23ecf7933ce8aac9f98920ca17e24d61b588ec27ea2947d860a18baa8",
|
|
21166
|
+
unsignedTx: "000101010103000000081500551362cc76354454f639b640f9c898aa72cf097706ad51d8fbcb2fcb4b65e78113c4016345785d8a0000a214428f030540ea410a41ac41c242830000030901409216020c3013415e7b160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816041608370201020202010ed3c0de370fb4ce02451341937b1600ce0116010f0dce000104020102050b014042d3fa47b465b3ce00411341937bb2ce01a5170513c10757b12c001706160116021367100000160416060000170716071605344c0216054a011607170816080c334c40201608160313671000001709160816092b170a160a0c334c09b2ce01160aa3160a0d0c1600011016090c334c0415000000000000000000000000000000000000000000000000000000000000000000ce011609ab1609020c02010001010008d3caa32a2cb4ce02451341937b1600ba01020411004060d3fc5a3782b41704b31705cd0d0dce00010717061604ce024517071605160641170816077a4b021816081341937b16074c12ce01cd4113167b1600160116021603100c16020d0dce00010701044a4032b2ce01a5170916090c334c402a13d0fffd8963efd1fc6a506488495d951d5263988d25170a1600170b160b160340cc170c1601160244160c44170d160b160dcc170e160e170f1606771710b2ce011609a3b21610ce010416093f160a140013070e160fd4d6407a211818144027030300030004030000000000000000000000000000000000000000000000000000000000000000140100ad188000e412c1174876e80001aaa31a3bfcdf761ea1604d428c3a349e655a27cf86639f68277050734ee6a787ee8b86900002aa2b00c7436014a228d1aac67b64daf32f482052c2186c0efc78d9784ef0a19401c50114164263b749b00000551362cc76354454f639b640f9c898aa72cf097706ad51d8fbcb2fcb4b65e78100000000000000000000",
|
|
21167
|
+
signature: "c15b27c3ecfc979480284aa66361701062658443210215941fba08b4ac15154f04d6a099ef9fc49a2d547f89c478ce88bb5e9da39be03464da88db598f5918f9",
|
|
21168
|
+
gasPrice: "100000000000",
|
|
21169
|
+
gasAmount: 58386,
|
|
21170
|
+
blockHash: "0000094f7c36b6cc648c830b4a487b28bbb6d86f5b605ff0acfc45825163db70",
|
|
21171
|
+
codeHash: "fc98a36587b76ccc81724d1c8627e5d7b5ab65414d13e43354b8e2f8be4b2d8f",
|
|
21172
|
+
contractInstance: {
|
|
21173
|
+
address: "ym2Qu2PxJ6HWcezyQr11CoJCF4mBsouAdT4LX7WEfHZZ",
|
|
21174
|
+
contractId: "4b559ebb6ca457b7f38418b20ace24caa8b644fa076e279f708de4a1ba8ef200",
|
|
21175
|
+
groupIndex: 0
|
|
21176
|
+
}
|
|
21177
|
+
},
|
|
21178
|
+
RewardFeeCollector: {
|
|
21179
|
+
txId: "93a7f8b2becbc7ef8e354481ef057723def3e960aa82a51619d7607f79447fae",
|
|
21180
|
+
unsignedTx: "000101010103000000081500551362cc76354454f639b640f9c898aa72cf097706ad51d8fbcb2fcb4b65e78113c4016345785d8a0000a21441fa060840ea413c41544175419541c441d941e80000030901409216020c3013415e7b160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e1602160837363717081604160837020100000500402cd34aa5ada95617001600a000334c041600a0002b4a010c17011600a10016010c334c190c0dce01010d1702cdcb1703ce011602a001a0021601110d16030102170416040c334c030516045e010001010009d38a69f141b4ce004513127b00011600a10101000101000ed34c696713b4ce004513127b16001367103213157b00011600a10201000303010ed35ee2294d1601cbb34113137bb416020e0d1600d4fc123a2302010001040117d39026f3feb417011601ce004513127bb11600ce00130364130064170317021600ce0216021603c102010001010008d3caa32a2cb4ce004513127b1600ba010001010104d32c56ca2f1600cb02144069030400551362cc76354454f639b640f9c898aa72cf097706ad51d8fbcb2fcb4b65e78103402098925e1a2a1693d0641670148a6f174dbc766ed9387d90b291882db92edc2a000340204b559ebb6ca457b7f38418b20ace24caa8b644fa076e279f708de4a1ba8ef200140d0302c2019daf5e0f9e02000200ad188000e3d6c1174876e80002aaa31a3babbb68342b6436464ffcf3315d90dc38b01cb70c1bdce6b0f018e23a5d33ef590002aa2b00c7436014a228d1aac67b64daf32f482052c2186c0efc78d9784ef0a194aaa31a3b4a171cc221ce557b4ec9b2d6172b56ffff404ea56a6f92e0ebe5afd2c585c74e0301c4d4278f5fc48d735700551362cc76354454f639b640f9c898aa72cf097706ad51d8fbcb2fcb4b65e78100000000000000000000",
|
|
21181
|
+
signature: "efbc2a762d6c1d843a3d4a664ec06338720449673154661ed96abc79f494dd5a255ba43c89a1236764b1c4b38ae3b3bacd2261b80b441d0a2006637fd80b8516",
|
|
21182
|
+
gasPrice: "100000000000",
|
|
21183
|
+
gasAmount: 58326,
|
|
21184
|
+
blockHash: "00000710f67922d2ac23dd75345708fe333b330c6980d502dbbd597ac8c04510",
|
|
21185
|
+
codeHash: "058245a819e604a9f9bc7b648b256d2c8152c0560a28c221039bde224e0fda75",
|
|
21186
|
+
contractInstance: {
|
|
21187
|
+
address: "yPGTtWZMiVdpoicgEd2518foNrq5c6K4ZbLrytGTQ8HD",
|
|
21188
|
+
contractId: "45c2bafc25501c447a70872a1e18b53c30b56e3980c01c6c0c932c24ad955300",
|
|
21189
|
+
groupIndex: 0
|
|
21190
|
+
}
|
|
21163
21191
|
}
|
|
21164
21192
|
},
|
|
21165
21193
|
scripts: {},
|
|
@@ -21258,6 +21286,24 @@ function toDeployments3(json) {
|
|
|
21258
21286
|
contractInstance: RewardFeeCollector.at(
|
|
21259
21287
|
json.contracts["RewardFeeCollector"].contractInstance.address
|
|
21260
21288
|
)
|
|
21289
|
+
},
|
|
21290
|
+
GovernanceDemo: json.contracts["GovernanceDemo"] === void 0 ? void 0 : {
|
|
21291
|
+
...json.contracts["GovernanceDemo"],
|
|
21292
|
+
contractInstance: GovernanceDemo.at(
|
|
21293
|
+
json.contracts["GovernanceDemo"].contractInstance.address
|
|
21294
|
+
)
|
|
21295
|
+
},
|
|
21296
|
+
RewardSharingVault: json.contracts["RewardSharingVault"] === void 0 ? void 0 : {
|
|
21297
|
+
...json.contracts["RewardSharingVault"],
|
|
21298
|
+
contractInstance: RewardSharingVault.at(
|
|
21299
|
+
json.contracts["RewardSharingVault"].contractInstance.address
|
|
21300
|
+
)
|
|
21301
|
+
},
|
|
21302
|
+
XAlphStakeVault: json.contracts["XAlphStakeVault"] === void 0 ? void 0 : {
|
|
21303
|
+
...json.contracts["XAlphStakeVault"],
|
|
21304
|
+
contractInstance: XAlphStakeVault.at(
|
|
21305
|
+
json.contracts["XAlphStakeVault"].contractInstance.address
|
|
21306
|
+
)
|
|
21261
21307
|
}
|
|
21262
21308
|
};
|
|
21263
21309
|
return {
|