@agent-fuel/sdk 0.3.1 → 0.3.2
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/CHANGELOG.md +6 -0
- package/dist/cli.cjs +11 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +11 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3832,9 +3832,16 @@ async function pay(args) {
|
|
|
3832
3832
|
receiptUsed: receipt,
|
|
3833
3833
|
systemProgram: SystemProgram.programId
|
|
3834
3834
|
});
|
|
3835
|
-
const
|
|
3836
|
-
|
|
3837
|
-
|
|
3835
|
+
const computeBuilder = rep.methods.computeScore().accounts({
|
|
3836
|
+
caller: agent.publicKey,
|
|
3837
|
+
agentProfile
|
|
3838
|
+
});
|
|
3839
|
+
const [spendIx, recordIx, computeIx] = await Promise.all([
|
|
3840
|
+
spendBuilder.instruction(),
|
|
3841
|
+
recordBuilder.instruction(),
|
|
3842
|
+
computeBuilder.instruction()
|
|
3843
|
+
]);
|
|
3844
|
+
const tx = new Transaction().add(createAtaIx, spendIx, recordIx, computeIx);
|
|
3838
3845
|
try {
|
|
3839
3846
|
const signature = await sendAndConfirmTransaction(
|
|
3840
3847
|
connection,
|
|
@@ -4161,7 +4168,7 @@ async function safeText(res) {
|
|
|
4161
4168
|
}
|
|
4162
4169
|
|
|
4163
4170
|
// src/cli.ts
|
|
4164
|
-
var VERSION = "0.3.
|
|
4171
|
+
var VERSION = "0.3.2";
|
|
4165
4172
|
var RPC_DEFAULTS = {
|
|
4166
4173
|
"mainnet-beta": "https://api.mainnet-beta.solana.com",
|
|
4167
4174
|
devnet: "https://api.devnet.solana.com",
|