@glamsystems/glam-sdk 1.0.14-alpha.0 → 1.0.14-alpha.1
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/index.cjs.js +6 -11
- package/index.esm.js +6 -11
- package/package.json +1 -1
- package/target/types/ext_bridge.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -19483,6 +19483,7 @@ var instructions$8 = [
|
|
|
19483
19483
|
},
|
|
19484
19484
|
{
|
|
19485
19485
|
name: "glam_vault",
|
|
19486
|
+
writable: true,
|
|
19486
19487
|
pda: {
|
|
19487
19488
|
seeds: [
|
|
19488
19489
|
{
|
|
@@ -53497,9 +53498,10 @@ let TxBuilder$1 = class TxBuilder extends BaseTxBuilder {
|
|
|
53497
53498
|
}).instruction();
|
|
53498
53499
|
}
|
|
53499
53500
|
async deleteLayerzeroOftRouteIx(route, signer) {
|
|
53500
|
-
return await this.client.base.extBridgeProgram.methods.deleteLayerzeroOftRoute(normalizeRoute(route)).
|
|
53501
|
+
return await this.client.base.extBridgeProgram.methods.deleteLayerzeroOftRoute(normalizeRoute(route)).accountsPartial({
|
|
53501
53502
|
glamState: this.client.base.statePda,
|
|
53502
|
-
glamSigner: signer || this.client.base.signer
|
|
53503
|
+
glamSigner: signer || this.client.base.signer,
|
|
53504
|
+
glamProtocolProgram: this.client.base.protocolProgram.programId
|
|
53503
53505
|
}).instruction();
|
|
53504
53506
|
}
|
|
53505
53507
|
async buildOftTransferTx(params, txOptions = {}) {
|
|
@@ -53877,17 +53879,10 @@ class BridgeClient {
|
|
|
53877
53879
|
return await this.base.sendAndConfirm(tx);
|
|
53878
53880
|
}
|
|
53879
53881
|
async reconcileManagedTransfer(transferId, txOptions = {}) {
|
|
53880
|
-
|
|
53881
|
-
Buffer.from(SEED_INTEGRATION_AUTHORITY)
|
|
53882
|
-
], this.base.extBridgeProgram.programId)[0];
|
|
53883
|
-
const ix = await this.base.extBridgeProgram.methods.reconcileManagedTransfer().accounts({
|
|
53882
|
+
const ix = await this.base.extBridgeProgram.methods.reconcileManagedTransfer().accountsPartial({
|
|
53884
53883
|
glamState: this.base.statePda,
|
|
53885
|
-
// glamVault: this.base.vaultPda,
|
|
53886
53884
|
glamSigner: txOptions.signer || this.base.signer,
|
|
53887
|
-
|
|
53888
|
-
// glamProtocolProgram: this.base.protocolProgram.programId,
|
|
53889
|
-
// systemProgram: SystemProgram.programId,
|
|
53890
|
-
// bridgeRegistry: this.getRegistryPda(),
|
|
53885
|
+
glamProtocolProgram: this.base.protocolProgram.programId,
|
|
53891
53886
|
transferRecord: this.getTransferRecordPda(transferId)
|
|
53892
53887
|
}).instruction();
|
|
53893
53888
|
const tx = await this.txBuilder.buildVersionedTx([
|
package/index.esm.js
CHANGED
|
@@ -19463,6 +19463,7 @@ var instructions$8 = [
|
|
|
19463
19463
|
},
|
|
19464
19464
|
{
|
|
19465
19465
|
name: "glam_vault",
|
|
19466
|
+
writable: true,
|
|
19466
19467
|
pda: {
|
|
19467
19468
|
seeds: [
|
|
19468
19469
|
{
|
|
@@ -53477,9 +53478,10 @@ let TxBuilder$1 = class TxBuilder extends BaseTxBuilder {
|
|
|
53477
53478
|
}).instruction();
|
|
53478
53479
|
}
|
|
53479
53480
|
async deleteLayerzeroOftRouteIx(route, signer) {
|
|
53480
|
-
return await this.client.base.extBridgeProgram.methods.deleteLayerzeroOftRoute(normalizeRoute(route)).
|
|
53481
|
+
return await this.client.base.extBridgeProgram.methods.deleteLayerzeroOftRoute(normalizeRoute(route)).accountsPartial({
|
|
53481
53482
|
glamState: this.client.base.statePda,
|
|
53482
|
-
glamSigner: signer || this.client.base.signer
|
|
53483
|
+
glamSigner: signer || this.client.base.signer,
|
|
53484
|
+
glamProtocolProgram: this.client.base.protocolProgram.programId
|
|
53483
53485
|
}).instruction();
|
|
53484
53486
|
}
|
|
53485
53487
|
async buildOftTransferTx(params, txOptions = {}) {
|
|
@@ -53857,17 +53859,10 @@ class BridgeClient {
|
|
|
53857
53859
|
return await this.base.sendAndConfirm(tx);
|
|
53858
53860
|
}
|
|
53859
53861
|
async reconcileManagedTransfer(transferId, txOptions = {}) {
|
|
53860
|
-
|
|
53861
|
-
Buffer.from(SEED_INTEGRATION_AUTHORITY)
|
|
53862
|
-
], this.base.extBridgeProgram.programId)[0];
|
|
53863
|
-
const ix = await this.base.extBridgeProgram.methods.reconcileManagedTransfer().accounts({
|
|
53862
|
+
const ix = await this.base.extBridgeProgram.methods.reconcileManagedTransfer().accountsPartial({
|
|
53864
53863
|
glamState: this.base.statePda,
|
|
53865
|
-
// glamVault: this.base.vaultPda,
|
|
53866
53864
|
glamSigner: txOptions.signer || this.base.signer,
|
|
53867
|
-
|
|
53868
|
-
// glamProtocolProgram: this.base.protocolProgram.programId,
|
|
53869
|
-
// systemProgram: SystemProgram.programId,
|
|
53870
|
-
// bridgeRegistry: this.getRegistryPda(),
|
|
53865
|
+
glamProtocolProgram: this.base.protocolProgram.programId,
|
|
53871
53866
|
transferRecord: this.getTransferRecordPda(transferId)
|
|
53872
53867
|
}).instruction();
|
|
53873
53868
|
const tx = await this.txBuilder.buildVersionedTx([
|
package/package.json
CHANGED