-
Notifications
You must be signed in to change notification settings - Fork 22
/
MsgMigrateCode.ts
85 lines (73 loc) 路 2.12 KB
/
MsgMigrateCode.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { JSONSerializable } from '../../../util/json';
import { AccAddress } from '../../bech32';
import { Any } from '@terra-money/terra.proto/google/protobuf/any';
import { MsgMigrateCode as MsgMigrateCode_legacy_pb } from '@terra-money/legacy.proto/terra/wasm/v1beta1/tx';
import Long from 'long';
export class MsgMigrateCode extends JSONSerializable<
MsgMigrateCode.Amino,
MsgMigrateCode.Data,
MsgMigrateCode.Proto
> {
/**
* @param sender code migrator address
* @param code_id reference to the code on the blockchain
* @param wasm_byte_code base64-encoded bytecode contents
*/
constructor(
public sender: AccAddress,
public code_id: number,
public wasm_byte_code: string
) {
super();
}
public static fromAmino(
_data: MsgMigrateCode.Amino,
_?: boolean
): MsgMigrateCode {
throw new Error('Not supported for the network');
}
public toAmino(_?: boolean): MsgMigrateCode.Amino {
throw new Error('Not supported for the network');
}
public static fromProto(
_proto: MsgMigrateCode.Proto,
_?: boolean
): MsgMigrateCode {
throw new Error('Not supported for the network');
}
public toProto(_?: boolean): MsgMigrateCode.Proto {
throw new Error('Not supported for the network');
}
public packAny(_?: boolean): Any {
throw new Error('Not supported for the network');
}
public static unpackAny(_msgAny: Any, _?: boolean): MsgMigrateCode {
throw new Error('Not supported for the network');
}
public static fromData(
_data: MsgMigrateCode.Data,
_?: boolean
): MsgMigrateCode {
throw new Error('Not supported for the network');
}
public toData(_?: boolean): MsgMigrateCode.Data {
throw new Error('Not supported for the network');
}
}
export namespace MsgMigrateCode {
export interface Amino {
type: 'wasm/MsgMigrateCode';
value: {
code_id: string;
sender: AccAddress;
wasm_byte_code: string;
};
}
export interface Data {
'@type': '/terra.wasm.v1beta1.MsgMigrateCode';
code_id: string;
sender: AccAddress;
wasm_byte_code: string;
}
export type Proto = MsgMigrateCode_legacy_pb;
}