@massalabs/wallet-provider 1.3.3 → 1.3.4-dev.20230824133610
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/bundle.js +6 -22
- package/bundle.min.js +1 -1
- package/dist/bearbyWallet/BearbyAccount.d.ts.map +1 -1
- package/dist/bearbyWallet/BearbyAccount.js +6 -22
- package/dist/cmd/bearbyWallet/BearbyAccount.d.ts.map +1 -1
- package/dist/cmd/bearbyWallet/BearbyAccount.js +6 -22
- package/dist/cmd/bearbyWallet/BearbyAccount.js.map +1 -1
- package/dist/cmd/massaStation/MassaStationAccount.d.ts.map +1 -1
- package/dist/cmd/massaStation/MassaStationAccount.js.map +1 -1
- package/dist/esm/bearbyWallet/BearbyAccount.d.ts.map +1 -1
- package/dist/esm/bearbyWallet/BearbyAccount.js +6 -22
- package/dist/esm/bearbyWallet/BearbyAccount.js.map +1 -1
- package/dist/esm/massaStation/MassaStationAccount.d.ts.map +1 -1
- package/dist/esm/massaStation/MassaStationAccount.js.map +1 -1
- package/dist/massaStation/MassaStationAccount.d.ts.map +1 -1
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -6112,40 +6112,24 @@ class BearbyAccount {
|
|
|
6112
6112
|
// need testing
|
|
6113
6113
|
async buyRolls(amount, fee) {
|
|
6114
6114
|
await this.connect();
|
|
6115
|
-
const
|
|
6116
|
-
type: OperationsType.RollBuy,
|
|
6117
|
-
amount: amount.toString(),
|
|
6118
|
-
fee: fee.toString(),
|
|
6119
|
-
payload: '', // TODO: check how do we have to set it
|
|
6120
|
-
});
|
|
6115
|
+
const operationId = await bearby_js_1.web3.massa.buyRolls(amount.toString());
|
|
6121
6116
|
return {
|
|
6122
|
-
operationId
|
|
6117
|
+
operationId,
|
|
6123
6118
|
};
|
|
6124
6119
|
}
|
|
6125
6120
|
// need testing
|
|
6126
6121
|
async sellRolls(amount, fee) {
|
|
6127
6122
|
await this.connect();
|
|
6128
|
-
const
|
|
6129
|
-
type: OperationsType.RollSell,
|
|
6130
|
-
amount: amount.toString(),
|
|
6131
|
-
fee: fee.toString(),
|
|
6132
|
-
payload: '', // TODO: check how do we have to set it
|
|
6133
|
-
});
|
|
6123
|
+
const operationId = await bearby_js_1.web3.massa.sellRolls(amount.toString());
|
|
6134
6124
|
return {
|
|
6135
|
-
operationId
|
|
6125
|
+
operationId,
|
|
6136
6126
|
};
|
|
6137
6127
|
}
|
|
6138
6128
|
async sendTransaction(amount, recipientAddress, fee) {
|
|
6139
6129
|
await this.connect();
|
|
6140
|
-
const
|
|
6141
|
-
type: OperationsType.Payment,
|
|
6142
|
-
amount: amount.toString(),
|
|
6143
|
-
recipient: recipientAddress,
|
|
6144
|
-
fee: fee.toString(),
|
|
6145
|
-
payload: '',
|
|
6146
|
-
});
|
|
6130
|
+
const operationId = await bearby_js_1.web3.massa.payment(amount.toString(), recipientAddress);
|
|
6147
6131
|
return {
|
|
6148
|
-
operationId
|
|
6132
|
+
operationId,
|
|
6149
6133
|
};
|
|
6150
6134
|
}
|
|
6151
6135
|
async callSC(contractAddress, functionName, parameter, amount, fee, maxGas, nonPersistentExecution = false) {
|