Skip to content

Commit

Permalink
Merge branch 'chore/allow-passing-custom-tmp-dir' of github.com:axela…
Browse files Browse the repository at this point in the history
…rnetwork/axelar-cgp-sui into chore/allow-passing-custom-tmp-dir
  • Loading branch information
npty committed Aug 22, 2024
2 parents dc285f0 + 0ceb860 commit 8790328
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-dodos-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@axelar-network/axelar-cgp-sui': patch
---

Added Bag and Operator bcs structs
5 changes: 5 additions & 0 deletions .changeset/perfect-tips-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@axelar-network/axelar-cgp-sui': patch
---

rename test package
2 changes: 1 addition & 1 deletion move/test/Move.lock → move/example/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 2
manifest_digest = "A841911533F1E978EA22B6F3732FCC14AE4CAD1F981092501CDFF54F4F76DC98"
manifest_digest = "35EEA97D60D29F06D44ECBC878C919B5E79C2A94B14C542D6A429B33F9572E97"
deps_digest = "060AD7E57DFB13104F21BE5F5C3759D03F0553FC3229247D9A7A6B45F50D03A3"
dependencies = [
{ name = "AxelarGateway" },
Expand Down
4 changes: 2 additions & 2 deletions move/test/Move.toml → move/example/Move.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "Test"
name = "Example"
version = "0.1.0"
edition = "2024.beta"

Expand All @@ -9,4 +9,4 @@ AxelarGateway = { local = "../axelar_gateway" }
GasService = { local = "../gas_service" }

[addresses]
test = "0xa9"
example = "0xa9"
2 changes: 1 addition & 1 deletion move/test/info.json → move/example/info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"singletons": [
"test::Singleton"
"gmp::Singleton"
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module test::test {
module example::gmp {
use std::ascii;
use std::ascii::{String};
use std::type_name;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/bcs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { bcs } from '@mysten/sui/bcs';
import { UID } from './types';

function getAxelarStructs() {
const Bytes32 = bcs.Address;
Expand Down Expand Up @@ -63,6 +64,17 @@ function getAxelarStructs() {
data: bcs.vector(bcs.U8),
});

const Bag = bcs.struct('Bag', {
id: UID,
size: bcs.U64,
});

const Operators = bcs.struct('Operators', {
id: UID,
operators: bcs.vector(bcs.Address),
caps: Bag,
});

return {
Bytes32,
Message,
Expand All @@ -75,6 +87,8 @@ function getAxelarStructs() {
MoveCall,
Transaction,
EncodedMessage,
Bag,
Operators,
};
}

Expand Down

0 comments on commit 8790328

Please sign in to comment.