Skip to content

Commit

Permalink
use latest source gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Aug 15, 2024
1 parent c8f5805 commit f76a867
Show file tree
Hide file tree
Showing 67 changed files with 72 additions and 454 deletions.
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ ext {

jsoniter = '2.11.+'

sava = '1.0.9'
sava_solana_web2 = '1.0.5'
sava_solana_programs = '1.0.7'
sava_anchor_src_gen = '1.0.4'
sava_anchor_programs = '1.0.8'
sava = '1.0.12'
sava_solana_programs = '1.0.8'
sava_anchor_src_gen = '1.0.11'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,25 +147,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 8
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16
+ 8
+ 16
+ 4
+ 2;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 4
+ 4
+ 4
+ 4
+ 4
+ 4
+ 4
+ 4;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 32
+ 32
+ 2
+ 8
+ 8
+ 8
+ 16
+ 16;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 8
+ 2
+ 8
+ 16
+ 16
+ 16
+ 16
+ 8
+ 8
+ 8
+ 16
+ 16;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 8
+ 8
+ 8
+ 8;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 8
+ 8
+ 8
+ 8
+ 8;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 8
+ 8
+ 8
+ 8;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 32
+ 16
+ 16
+ 16
+ 8
+ 8
+ 8
+ 4
+ 4;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 2
+ 2
+ 4
+ 4
+ 8
+ 8
+ 16
+ 16
+ 8;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8 + 32
+ 16
+ 16
+ 16
+ 8
+ 8
+ 8
+ 8
+ 2
+ Borsh.fixedLen(padding);
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 32
+ Borsh.len(action)
+ 8
+ 2
+ 8
+ 16
+ 16
+ 16
+ 16
+ 16
+ 16;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 32
+ Borsh.len(action)
+ 8
+ 2
+ 8
+ 8
+ 8;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 2
+ 8
+ 16
+ 2
+ 8
+ 16;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 2
+ 8
+ 16
+ 2
+ 8
+ 16;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 2
+ 8
+ 8
+ 8
+ 8
+ 8
+ 4
+ 4
+ 8
+ 8;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 2
+ 8
+ 16
+ 2
+ 8
+ 16
+ 8;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return Borsh.len(marketType) + 2;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 32
+ 32
+ 2
+ Borsh.fixedLen(name)
+ 32;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,29 +194,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 4
+ 4
+ 2
+ Borsh.len(status)
+ Borsh.len(orderType)
+ Borsh.len(marketType)
+ 1
+ Borsh.len(existingPositionDirection)
+ Borsh.len(direction)
+ 1
+ 1
+ 1
+ Borsh.len(triggerCondition)
+ 1
+ Borsh.fixedLen(padding);
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 4 + 4 + 16;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 1 + 32 + 2;
return BYTES;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8
+ 4
+ 2
+ 1
+ 1;
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 8 + 32
+ 32
+ 32
+ 32
+ 32
+ 32
+ 2
+ Borsh.len(fulfillmentType)
+ Borsh.len(status)
+ Borsh.fixedLen(padding);
return BYTES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ public int write(final byte[] _data, final int offset) {

@Override
public int l() {
return 16 + 2 + Borsh.fixedLen(padding);
return BYTES;
}
}
Loading

0 comments on commit f76a867

Please sign in to comment.