@nillion/client-payments
Advanced tools
Comparing version 0.1.0-rc.13 to 0.1.0-rc.14
@@ -5,3 +5,3 @@ { | ||
"author": "devsupport@nillion.com", | ||
"version": "0.1.0-rc.13", | ||
"version": "0.1.0-rc.14", | ||
"homepage": "https://nillion.pub/client-ts", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"@cosmjs/stargate": "^0.32.4", | ||
"@nillion/client-core": "0.1.0-rc.13", | ||
"@nillion/client-core": "0.1.0-rc.14", | ||
"debug": "^4.3.6", | ||
@@ -35,0 +35,0 @@ "effect": "3.6.5", |
@@ -28,6 +28,3 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
export const MsgPayFor = { | ||
encode( | ||
message: MsgPayFor, | ||
writer: BinaryWriter = new BinaryWriter(), | ||
): BinaryWriter { | ||
encode(message: MsgPayFor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { | ||
if (message.resource.length !== 0) { | ||
@@ -46,4 +43,3 @@ writer.uint32(10).bytes(message.resource); | ||
decode(input: BinaryReader | Uint8Array, length?: number): MsgPayFor { | ||
const reader = | ||
input instanceof BinaryReader ? input : new BinaryReader(input); | ||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -86,11 +82,5 @@ const message = createBaseMsgPayFor(); | ||
return { | ||
resource: isSet(object.resource) | ||
? bytesFromBase64(object.resource) | ||
: new Uint8Array(0), | ||
fromAddress: isSet(object.fromAddress) | ||
? globalThis.String(object.fromAddress) | ||
: "", | ||
amount: globalThis.Array.isArray(object?.amount) | ||
? object.amount.map((e: any) => Amount.fromJSON(e)) | ||
: [], | ||
resource: isSet(object.resource) ? bytesFromBase64(object.resource) : new Uint8Array(0), | ||
fromAddress: isSet(object.fromAddress) ? globalThis.String(object.fromAddress) : "", | ||
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e: any) => Amount.fromJSON(e)) : [], | ||
}; | ||
@@ -116,5 +106,3 @@ }, | ||
}, | ||
fromPartial<I extends Exact<DeepPartial<MsgPayFor>, I>>( | ||
object: I, | ||
): MsgPayFor { | ||
fromPartial<I extends Exact<DeepPartial<MsgPayFor>, I>>(object: I): MsgPayFor { | ||
const message = createBaseMsgPayFor(); | ||
@@ -133,6 +121,3 @@ message.resource = object.resource ?? new Uint8Array(0); | ||
export const Amount = { | ||
encode( | ||
message: Amount, | ||
writer: BinaryWriter = new BinaryWriter(), | ||
): BinaryWriter { | ||
encode(message: Amount, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { | ||
if (message.denom !== "") { | ||
@@ -148,4 +133,3 @@ writer.uint32(10).string(message.denom); | ||
decode(input: BinaryReader | Uint8Array, length?: number): Amount { | ||
const reader = | ||
input instanceof BinaryReader ? input : new BinaryReader(input); | ||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -233,27 +217,13 @@ const message = createBaseAmount(); | ||
type Builtin = | ||
| Date | ||
| Function | ||
| Uint8Array | ||
| string | ||
| number | ||
| boolean | ||
| undefined; | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
export type DeepPartial<T> = T extends Builtin | ||
? T | ||
: T extends globalThis.Array<infer U> | ||
? globalThis.Array<DeepPartial<U>> | ||
: T extends ReadonlyArray<infer U> | ||
? ReadonlyArray<DeepPartial<U>> | ||
: T extends {} | ||
? { [K in keyof T]?: DeepPartial<T[K]> } | ||
: Partial<T>; | ||
export type DeepPartial<T> = T extends Builtin ? T | ||
: T extends globalThis.Array<infer U> ? globalThis.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; | ||
export 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; | ||
}; | ||
export 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 }; | ||
@@ -260,0 +230,0 @@ function isSet(value: any): boolean { |
5328541
1396
+ Added@nillion/client-core@0.1.0-rc.14(transitive)
+ Added@nillion/client-wasm@0.1.0-rc.14(transitive)
- Removed@nillion/client-core@0.1.0-rc.13(transitive)
- Removed@nillion/client-wasm@0.1.0-rc.13(transitive)