Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nibiru
Submodule nibiru updated 336 files
172 changes: 172 additions & 0 deletions src/protojs/eth/evm/module/module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
/* eslint-disable */
import Long from "long";
import _m0 from "protobufjs/minimal";

/** Module is the config object for the devgas module. */
export interface Module {
/** authority defines the custom module authority. If not set, defaults to the governance module. */
authority: string;
}

/** ModuleAccountPermission represents permissions for a module account. */
export interface ModuleAccountPermission {
/** account is the name of the module. */
account: string;
/**
* permissions are the permissions this module has. Currently recognized
* values are minter, burner and staking.
*/
permissions: string[];
}

function createBaseModule(): Module {
return { authority: "" };
}

export const Module = {
encode(message: Module, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
if (message.authority !== "") {
writer.uint32(10).string(message.authority);
}
return writer;
},

decode(input: _m0.Reader | Uint8Array, length?: number): Module {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseModule();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}

message.authority = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},

fromJSON(object: any): Module {
return { authority: isSet(object.authority) ? String(object.authority) : "" };
},

toJSON(message: Module): unknown {
const obj: any = {};
message.authority !== undefined && (obj.authority = message.authority);
return obj;
},

create<I extends Exact<DeepPartial<Module>, I>>(base?: I): Module {
return Module.fromPartial(base ?? {});
},

fromPartial<I extends Exact<DeepPartial<Module>, I>>(object: I): Module {
const message = createBaseModule();
message.authority = object.authority ?? "";
return message;
},
};

function createBaseModuleAccountPermission(): ModuleAccountPermission {
return { account: "", permissions: [] };
}

export const ModuleAccountPermission = {
encode(message: ModuleAccountPermission, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
if (message.account !== "") {
writer.uint32(10).string(message.account);
}
for (const v of message.permissions) {
writer.uint32(18).string(v!);
}
return writer;
},

decode(input: _m0.Reader | Uint8Array, length?: number): ModuleAccountPermission {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseModuleAccountPermission();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}

message.account = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}

message.permissions.push(reader.string());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},

fromJSON(object: any): ModuleAccountPermission {
return {
account: isSet(object.account) ? String(object.account) : "",
permissions: Array.isArray(object?.permissions) ? object.permissions.map((e: any) => String(e)) : [],
};
},

toJSON(message: ModuleAccountPermission): unknown {
const obj: any = {};
message.account !== undefined && (obj.account = message.account);
if (message.permissions) {
obj.permissions = message.permissions.map((e) => e);
} else {
obj.permissions = [];
}
return obj;
},

create<I extends Exact<DeepPartial<ModuleAccountPermission>, I>>(base?: I): ModuleAccountPermission {
return ModuleAccountPermission.fromPartial(base ?? {});
},

fromPartial<I extends Exact<DeepPartial<ModuleAccountPermission>, I>>(object: I): ModuleAccountPermission {
const message = createBaseModuleAccountPermission();
message.account = object.account ?? "";
message.permissions = object.permissions?.map((e) => e) || [];
return message;
},
};

type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;

type DeepPartial<T> = T extends Builtin ? T
: T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>>
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
: Partial<T>;

type KeysOfUnion<T> = T extends T ? keyof T : never;
type Exact<P, I extends P> = P extends Builtin ? P
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };

if (_m0.util.Long !== Long) {
_m0.util.Long = Long as any;
_m0.configure();
}

function isSet(value: any): boolean {
return value !== null && value !== undefined;
}
2 changes: 1 addition & 1 deletion src/protojs/index.eth.evm.v1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable */

export * from "./eth/evm/v1/evm";
export * from "./eth/evm/v1/events";
export * from "./eth/evm/v1/tx";
4 changes: 3 additions & 1 deletion src/protojs/index.nibiru.devgas.v1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable */

export * from "./nibiru/devgas/v1/event";
export * from "./nibiru/devgas/v1/devgas";
export * from "./nibiru/devgas/v1/genesis";
export * from "./nibiru/devgas/v1/tx";
2 changes: 1 addition & 1 deletion src/protojs/index.nibiru.epochs.v1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* eslint-disable */

export * from "./nibiru/epochs/v1/event";
export * from "./nibiru/epochs/v1/state";
3 changes: 3 additions & 0 deletions src/protojs/index.nibiru.evm.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-disable */

export * as v1 from "./index.nibiru.evm.module.v1";
3 changes: 3 additions & 0 deletions src/protojs/index.nibiru.evm.module.v1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-disable */

export * from "./eth/evm/module/module";
3 changes: 3 additions & 0 deletions src/protojs/index.nibiru.evm.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-disable */

export * as module from "./index.nibiru.evm.module";
3 changes: 2 additions & 1 deletion src/protojs/index.nibiru.inflation.v1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */

export * from "./nibiru/inflation/v1/event";
export * from "./nibiru/inflation/v1/inflation";
export * from "./nibiru/inflation/v1/tx";
2 changes: 1 addition & 1 deletion src/protojs/index.nibiru.oracle.v1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable */

export * from "./nibiru/oracle/v1/oracle";
export * from "./nibiru/oracle/v1/event";
export * from "./nibiru/oracle/v1/tx";
3 changes: 1 addition & 2 deletions src/protojs/index.nibiru.sudo.v1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */

export * from "./nibiru/sudo/v1/state";
export * from "./nibiru/sudo/v1/event";
export * from "./nibiru/sudo/v1/tx";
3 changes: 3 additions & 0 deletions src/protojs/index.nibiru.tokenfactory.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-disable */

export * as v1 from "./index.nibiru.tokenfactory.module.v1";
3 changes: 3 additions & 0 deletions src/protojs/index.nibiru.tokenfactory.module.v1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-disable */

export * from "./nibiru/tokenfactory/module/module";
3 changes: 2 additions & 1 deletion src/protojs/index.nibiru.tokenfactory.v1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */

export * from "./nibiru/tokenfactory/v1/event";
export * from "./nibiru/tokenfactory/v1/state";
export * from "./nibiru/tokenfactory/v1/tx";
2 changes: 1 addition & 1 deletion src/protojs/nibiru/oracle/v1/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface Params {
*/
voteThreshold: string;
/**
* RewardBand defines a maxium divergence that a price vote can have from the
* RewardBand defines a maximum divergence that a price vote can have from the
* weighted median in the ballot. If a vote lies within the valid range
* defined by:
* μ := weightedMedian,
Expand Down
2 changes: 1 addition & 1 deletion src/protojs/nibiru/sudo/v1/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Sudoers } from "./state";
/** EventUpdateSudoers: ABCI event emitted upon execution of "MsgEditSudoers". */
export interface EventUpdateSudoers {
sudoers?: Sudoers;
/** Action is the type of update that occured to the "sudoers" */
/** Action is the type of update that occurred to the "sudoers" */
action: string;
}

Expand Down
Loading